/* ==========================================================
   Tamarack A-Frame — közvetlen foglalási oldal
   Egy szándékosan világos, papírszerű felület: a meleg
   színeket a fotók adják, a felület csendes marad.
   ========================================================== */

:root {
  --paper:  #f5f6f3;   /* halvány, hidegzöldbe hajló alap */
  --card:   #ffffff;
  --ink:    #1a1f1c;
  --slate:  #5c6660;   /* halvány szöveg, zöld árnyalattal */
  --line:   #dee1db;
  --teal:   #1f5049;   /* egyetlen kiemelőszín: tó-zöld */
  --gold:   #b8862f;   /* kizárólag az értékelés csillagaihoz */
  --rose:   #8c3a2b;   /* hibaüzenet */

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Public Sans", "Segoe UI", system-ui, sans-serif;

  --gap: clamp(28px, 4vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.15;
  text-wrap: balance;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* A hidden jelzesnek erosebbnek kell lennie, mint a sajat
   display: flex szabalyaink, kulonben a rejtett dobozok latszanak. */
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.dim { color: var(--slate); }

/* ---------- Fejléc ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 46px);
  background: rgba(245, 246, 243, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.mark {
  font-family: var(--serif);
  font-size: 1.28rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.topnav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  font-size: 0.88rem;
}

.topnav a {
  text-decoration: none;
  color: var(--slate);
  transition: color .16s ease;
}
.topnav a:hover { color: var(--ink); }

.topnav-cta {
  padding: 8px 17px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: var(--teal) !important;
  font-weight: 500;
}
.topnav-cta:hover { background: var(--teal); color: #fff !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: clamp(380px, 68vh, 660px);
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.hero-plate {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(28px, 6vw, 64px) clamp(18px, 4vw, 52px);
  color: #fff;
  background: linear-gradient(to top, rgba(12, 16, 14, .82), rgba(12, 16, 14, 0));
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 10px;
}

.hero-plate h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
}

.hero-sub {
  margin-top: 12px;
  max-width: 46ch;
  font-size: clamp(0.98rem, 1.5vw, 1.14rem);
  opacity: .9;
}

/* ---------- Törzs ---------- */
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: var(--gap);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 68px) clamp(18px, 4vw, 30px) 80px;
}

.content {
  display: flex;
  flex-direction: column;
  gap: clamp(34px, 4.6vw, 58px);
  min-width: 0;
}

.content h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  margin-bottom: 14px;
}

/* ---------- Adatsor ---------- */
.facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.rating {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.95rem;
}

.stars { color: var(--gold); letter-spacing: 0.08em; }

.rating.small { font-size: 0.85rem; }

.fact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  font-size: 0.92rem;
  color: var(--slate);
}

.fact-list li + li { position: relative; padding-left: 18px; }
.fact-list li + li::before {
  content: "·";
  position: absolute;
  left: 5px;
}

/* ---------- Szöveg ---------- */
.prose p {
  max-width: 64ch;
  color: #2c3430;
}
.prose p + p { margin-top: 15px; }

/* ---------- Galéria ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 172px;
  gap: 12px;
}

.gallery figure {
  position: relative;
  overflow: hidden;
  background: #e7e9e4;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery figure:hover img { transform: scale(1.04); }

.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 14px 11px;
  font-size: 0.76rem;
  color: #fff;
  background: linear-gradient(to top, rgba(12, 16, 14, .78), rgba(12, 16, 14, 0));
}

.g-wide { grid-column: span 2; grid-row: span 2; }
.g-tall { grid-column: span 2; grid-row: span 2; }

/* ---------- Felszereltség ---------- */
.amenities ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 26px;
  list-style: none;
  font-size: 0.94rem;
  color: #2c3430;
}

.amenities li {
  padding-left: 20px;
  position: relative;
}
.amenities li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 9px; height: 1px;
  background: var(--teal);
}

/* ---------- Vélemények ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.review-grid blockquote {
  padding: 22px 20px 18px;
  background: var(--card);
  border: 1px solid var(--line);
}

.review-grid p {
  font-family: var(--serif);
  font-size: 1.04rem;
  font-style: italic;
  line-height: 1.5;
}

.review-grid cite {
  display: block;
  margin-top: 13px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.05em;
  color: var(--slate);
}

.host p { max-width: 60ch; color: #2c3430; }

/* ==========================================================
   Foglalókártya
   ========================================================== */
.booking {
  position: sticky;
  top: 84px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(26, 31, 28, .04), 0 12px 30px rgba(26, 31, 28, .06);
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.rate {
  font-family: var(--serif);
  font-size: 1.7rem;
}

.k {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- Naptár ---------- */
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.cal-head h3 {
  font-size: 1.02rem;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.cal-nav {
  width: 30px; height: 30px;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.cal-nav:hover:not(:disabled) { border-color: var(--ink); }
.cal-nav:disabled { opacity: .3; cursor: default; }

.cal-dow,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-dow {
  margin-bottom: 5px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--slate);
}

.day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background .14s ease, color .14s ease;
}

.day:hover:not(:disabled) { background: #e8ebe6; }

.day:disabled {
  color: #b3bab5;
  cursor: default;
  text-decoration: line-through;
}

.day.empty { visibility: hidden; }

.day.in-range { background: #e3ebe8; border-radius: 0; }

.day.edge {
  background: var(--teal);
  color: #fff;
  border-radius: 4px;
}

.cal-hint {
  margin-top: 10px;
  font-size: 0.77rem;
  line-height: 1.45;
  color: var(--slate);
}

.cal-hint.warn { color: var(--rose); }

/* ---------- Kiválasztott időszak ---------- */
.stay {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.stay-row { display: flex; gap: 26px; }

.stay .v {
  font-family: var(--serif);
  font-size: 1.02rem;
}

.linkish {
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--slate);
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}
.linkish:hover { color: var(--ink); }

/* ---------- Vendégszám ---------- */
.guests select {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
}

/* ---------- Árbontás ---------- */
.breakdown {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.breakdown .row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.breakdown .row span:last-child { font-variant-numeric: tabular-nums; }

.breakdown .muted span:first-child { color: var(--slate); }

.free { color: var(--teal); font-weight: 600; }

.breakdown .total {
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 1.06rem;
  font-weight: 600;
}

.saving {
  padding: 9px 11px;
  background: #eef3f0;
  border-left: 2px solid var(--teal);
  font-size: 0.8rem;
  line-height: 1.45;
  color: #23453e;
}

/* ---------- Vendégadatok ---------- */
.guest-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guest-form input {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.guest-form input:focus { border-color: var(--teal); }

.form-error {
  font-size: 0.8rem;
  color: var(--rose);
}

.cta {
  padding: 15px;
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--teal);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: filter .16s ease;
}
.cta:hover:not(:disabled) { filter: brightness(1.15); }
.cta:disabled { background: #b9c2bd; cursor: default; }

.reassure {
  font-size: 0.75rem;
  text-align: center;
  color: var(--slate);
}

/* ---------- Lábléc ---------- */
.foot {
  padding: 34px clamp(18px, 4vw, 46px) 46px;
  border-top: 1px solid var(--line);
  font-size: 0.83rem;
  text-align: center;
}
.foot p + p { margin-top: 5px; }

/* ==========================================================
   Keskeny képernyő
   ========================================================== */
@media (max-width: 940px) {
  .wrap { grid-template-columns: 1fr; }
  .booking { position: static; }
  .gallery { grid-auto-rows: 132px; }
}

@media (max-width: 620px) {
  .topnav a:not(.topnav-cta) { display: none; }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 128px;
  }
  .g-wide, .g-tall { grid-column: span 2; grid-row: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

/* ==========================================================
   Visszaigazoló oldal
   ========================================================== */
.confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  padding: clamp(28px, 6vw, 70px) 20px;
}

.confirm-card {
  width: min(520px, 100%);
  padding: clamp(30px, 5vw, 48px);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(26, 31, 28, .04), 0 12px 30px rgba(26, 31, 28, .06);
}

.confirm-eyebrow { color: var(--slate); }

.confirm-card h1 {
  font-size: clamp(2rem, 4.6vw, 2.8rem);
  margin-bottom: 14px;
}

.confirm-text {
  max-width: 46ch;
  color: #2c3430;
}

.confirm-rows {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 26px;
  font-size: 0.9rem;
}

.confirm-rows:empty { display: none; }

.confirm-rows .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.confirm-rows .row span:first-child { color: var(--slate); }
.confirm-rows .row span:last-child { font-variant-numeric: tabular-nums; }

.confirm-back {
  display: inline-block;
  margin-top: 28px;
  padding: 13px 26px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--teal);
  border-radius: 3px;
}
.confirm-back:hover { filter: brightness(1.15); }

/* ==========================================================
   Képnagyító
   ========================================================== */
.nagyithato { cursor: zoom-in; }

body.lb-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 38px);
  background: #0a0d0b;
}

.lb-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  max-height: 100%;
}

.lb-img {
  max-width: min(1200px, 100%);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: default;
}

.lb-bar {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: rgba(245, 246, 243, .82);
  text-align: center;
}

.lb-count {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: rgba(245, 246, 243, .5);
}

/* --- gombok --- */
.lb-close,
.lb-nav {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5f6f3;
  background: rgba(20, 24, 21, .55);
  border: 1px solid rgba(245, 246, 243, .18);
  border-radius: 50%;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}

.lb-close:hover,
.lb-nav:hover {
  background: rgba(20, 24, 21, .9);
  border-color: rgba(245, 246, 243, .5);
}

.lb-close {
  top: clamp(12px, 2.4vw, 26px);
  right: clamp(12px, 2.4vw, 26px);
  width: 42px; height: 42px;
  font-size: 1.6rem;
  line-height: 1;
}

.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  font-size: 1.9rem;
  line-height: 1;
  padding-bottom: 4px;
}

.lb-prev { left: clamp(10px, 2.4vw, 30px); }
.lb-next { right: clamp(10px, 2.4vw, 30px); }

@media (max-width: 620px) {
  .lb-img { max-height: 72vh; }
  .lb-nav { width: 40px; height: 40px; font-size: 1.5rem; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* ---------- Nyelvváltó a fejlécben ---------- */
.langs { display: inline-flex; gap: 2px; margin: 0 4px; }
.lang {
  padding: 5px 8px;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--slate); background: transparent;
  border: 1px solid transparent; border-radius: 3px; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.lang:hover { color: var(--ink); }
.lang.on { color: var(--ink); border-color: var(--line); background: var(--card); }
@media (max-width: 620px) { .langs { display: inline-flex; } }
