/* Hazafi Apartman – publikus oldal
   Paletta: mély vízkék #145C7C · világos víz #DCEFF5 · homok #F8F4EC ·
   fehér · meleg akcent #DD8145 · tinta #1E3540 */

:root {
  --water: #145C7C;
  --water-light: #DCEFF5;
  --sand: #F8F4EC;
  --accent: #DD8145;
  --ink: #1E3540;
  --muted: #63767F;
  --booked: #9CC3D5;
  --radius: 14px;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); color: var(--ink);
  background: #fff; line-height: 1.65; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; width: 100%; }
body > .footer { margin-top: auto; }
img { max-width: 100%; display: block; }
a { color: var(--water); }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; font-weight: 600; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 .8em; }
.muted { color: var(--muted); }
.tiny { font-size: .8rem; }

/* ---------- Fejléc ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: .9rem 2rem; background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px); border-bottom: 1px solid #E8E2D6;
}
.brand { justify-self: start; font-family: var(--display); font-size: 1.45rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand span { color: var(--water); }
.topbar nav { grid-column: 2; justify-self: center; display: flex; gap: 2.1rem; align-items: center; }
.nav-toggle { grid-column: 3; justify-self: end; }
.topbar nav a { text-decoration: none; font-size: 1.08rem; color: var(--ink); font-weight: 500;
  letter-spacing: .01em; padding: .35rem 0; border-bottom: 2px solid transparent; }
.topbar nav a:hover, .topbar nav a[aria-current] { color: var(--water); border-bottom-color: var(--accent); }
.topbar nav a.btn-nav { color: #fff; border-bottom: 0; padding: .6rem 1.6rem;
  position: absolute; right: 2rem; top: 50%; transform: translateY(-50%); }
.topbar nav a.btn-nav:hover { color: #fff; background: #0F4A66; }

/* Hamburger */
.nav-toggle { display: none; border: 0; background: none; cursor: pointer; padding: 10px;
  width: 48px; height: 48px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2.5px; width: 26px; background: var(--ink);
  border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .topbar { padding: .7rem 1rem; grid-template-columns: 1fr auto; }
  .brand { font-size: 1.25rem; }
  .nav-toggle { display: flex; grid-column: 2; }
  .topbar nav {
    grid-column: 1 / -1;
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid #E8E2D6; box-shadow: 0 10px 24px rgba(30,53,64,.12);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .topbar nav.open { max-height: 420px; }
  .topbar nav a { padding: .95rem 1.2rem; border-bottom: 1px solid #F1EDE3; font-size: 1.05rem; min-height: 48px; }
  .topbar nav a.btn-nav { position: static; transform: none; margin: .8rem 1.2rem 1rem; text-align: center; border-radius: 999px; padding: .95rem 1.5rem; }
}

/* ---------- Gombok ---------- */
.btn {
  display: inline-block; text-decoration: none; border: 0; cursor: pointer;
  font-family: var(--body); font-weight: 600; border-radius: 999px;
}
.btn-cta {
  background: var(--accent); color: #fff; padding: .85rem 1.8rem; font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(221,129,69,.35); transition: transform .15s, box-shadow .15s;
}
.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(221,129,69,.45); }
.btn-nav { background: var(--water); color: #fff; padding: .6rem 1.5rem; font-size: 1rem; line-height: 1.3; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 24s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero-placeholder { background: linear-gradient(160deg, var(--water) 0%, #2E86AB 55%, #6FB6CF 100%); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,40,52,.18) 0%, rgba(20,40,52,.30) 55%, rgba(20,40,52,.55) 100%);
}
.hero-inner { position: relative; z-index: 2; color: #fff; padding: 4rem 1.2rem; max-width: 720px; margin: 0 auto; text-align: center; width: 100%; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; margin: 0 0 .6em; opacity: .9; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin: 0 0 .3em; display: grid; gap: .35em; }
.hero-h1-sub { display: block; font-family: var(--body); font-weight: 400;
  font-size: clamp(.95rem, 2.4vw, 1.15rem); letter-spacing: .04em; opacity: .92; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 0 0 1.7em; }
.hero-chips span { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(4px); color: #fff; border-radius: 999px; padding: .35rem .95rem; font-size: .85rem; }
.hero-sub { font-size: clamp(1rem, 2.6vw, 1.25rem); margin: 0 0 1.6em; opacity: .95; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; }
.wave svg { display: block; width: 100%; height: 40px; }

/* ---------- Szekciók ---------- */
.section { max-width: 1060px; margin: 0 auto; padding: 3.5rem 1.2rem; }
.section-alt { background: var(--sand); max-width: none; }
.section-alt > * { max-width: 1060px; margin-left: auto; margin-right: auto; }
.section-lead { max-width: 640px; color: var(--muted); margin-top: -0.5rem; }
.two-col { display: grid; gap: 2rem; }
@media (min-width: 800px) { .two-col { grid-template-columns: 3fr 2fr; } }

.amenities { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; align-content: start; }
.amenities li {
  background: var(--water-light); border-radius: var(--radius);
  padding: .7rem 1rem; display: flex; gap: .6rem; align-items: center; font-size: .95rem;
}

/* ---------- Galéria ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .7rem; }
.gallery-teaser { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .gallery-teaser { grid-template-columns: repeat(4, 1fr); } }
.gallery-teaser .gal-item img { height: 170px; }
.gal-wide { grid-column: span 2; }
.gal-wide img { height: 200px; }
@media (min-width: 720px) { .gal-wide img { height: 170px; } }
.btn-cta-line { background: #fff; color: var(--accent); border: 2px solid var(--accent); box-shadow: none; }
.center { text-align: center; }
.gal-item { padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--radius); overflow: hidden; }
.gal-item img { width: 100%; height: 150px; object-fit: cover; transition: transform .25s; }
.gal-item:hover img { transform: scale(1.05); }
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(15,28,35,.92);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none !important; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: none; border: 0; color: #fff;
  font-size: 2.4rem; cursor: pointer; padding: .5rem 1rem; line-height: 1;
}
.lb-close { top: .5rem; right: .8rem; }
.lb-prev { left: .3rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .3rem; top: 50%; transform: translateY(-50%); }

/* ---------- Foglalási blokk ---------- */
.booking-wrap { display: grid; gap: 2rem; margin-top: 1.5rem; }
@media (min-width: 900px) { .booking-wrap { grid-template-columns: 3fr 2fr; align-items: start; } }

.cal-panel { background: #fff; border: 1px solid #E8E2D6; border-radius: var(--radius); padding: 1rem; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.cal-titles { display: flex; gap: 3rem; font-family: var(--display); font-size: 1.05rem; }
.cal-nav {
  border: 1px solid #D9D2C4; background: #fff; border-radius: 999px;
  width: 40px; height: 40px; font-size: 1.3rem; cursor: pointer; color: var(--water);
}
.cal-nav:disabled { opacity: .3; cursor: default; }
.calendars { display: grid; gap: 1.2rem; }
@media (min-width: 720px) { .calendars { grid-template-columns: 1fr 1fr; } }
table.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font-size: .72rem; font-weight: 600; color: var(--muted); padding: .3rem 0; text-transform: uppercase; }
.cal td { padding: 2px; }
.day {
  position: relative; width: 100%; aspect-ratio: 1; border: 0; border-radius: 9px;
  background: #fff; font: inherit; font-size: .9rem; cursor: pointer; color: var(--ink);
  outline-offset: 2px;
}
.day:focus-visible { outline: 2px solid var(--accent); }
.day.free { background: #fff; box-shadow: inset 0 0 0 1px #E4EDF1; }
.day.free:hover { background: var(--water-light); }
.day.booked { background: var(--booked); color: #fff; cursor: not-allowed; }
.day.past, .day.empty { background: #F3F3F0; color: #B9BFC2; cursor: not-allowed; box-shadow: none; }
/* Váltónapok: átlós fél-fél. 'out' = délelőtt még foglalt (bal-felső kék),
   'in' = délután már foglalt (jobb-alsó kék). */
.day.out { background: linear-gradient(135deg, var(--booked) 49.5%, #fff 50.5%); }
.day.in  { background: linear-gradient(135deg, #fff 49.5%, var(--booked) 50.5%); }
.day.pending::after {
  content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent); opacity: .55;
}
.day.sel { background: var(--water) !important; color: #fff; }
.day.sel-edge { background: var(--accent) !important; color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .9rem; font-size: .8rem; color: var(--muted); }
.legend .lg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: .3rem; }
.lg-free { background: #fff; box-shadow: inset 0 0 0 1px #C9D6DC; }
.lg-booked { background: var(--booked); }
.lg-half { background: linear-gradient(135deg, var(--booked) 49.5%, #fff 50.5%); box-shadow: inset 0 0 0 1px #C9D6DC; }
.lg-sel { background: var(--water); }

/* ---------- Kalkulátor + űrlap ---------- */
.quote-panel { background: var(--sand); border-radius: var(--radius); padding: 1.3rem; }
.sel-info { font-size: .98rem; margin-bottom: 1rem; }
.sel-info strong { color: var(--water); }
.guest-picker { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: .5rem .7rem; align-items: center; margin-bottom: .8rem; }
.guest-picker label { font-size: .9rem; font-weight: 600; }
.guest-picker select, .ages-row select {
  padding: .55rem .6rem; border-radius: 10px; border: 1px solid #D9D2C4; font: inherit; background: #fff;
}
.ages-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; }
.ages-row label { font-size: .8rem; display: grid; gap: .2rem; }

.quote-box { background: #fff; border-radius: 10px; padding: 1rem; margin-bottom: 1rem; }
.quote-box ul { list-style: none; margin: 0 0 .6rem; padding: 0; }
.quote-box li { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; padding: .2rem 0; }
.quote-total { display: flex; justify-content: space-between; border-top: 2px solid var(--water-light); padding-top: .6rem; font-size: 1.05rem; }
.quote-total strong { color: var(--water); font-size: 1.2rem; }
.quote-error { background: #FBEAE2; color: #A14A1F; border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem; font-size: .92rem; }

.book-form { display: grid; gap: .8rem; }
.book-form label { display: grid; gap: .25rem; font-size: .9rem; font-weight: 600; }
.book-form input[type=text], .book-form input[type=email], .book-form input[type=tel], .book-form textarea {
  padding: .7rem .8rem; border-radius: 10px; border: 1px solid #D9D2C4; font: inherit; background: #fff; width: 100%;
}
.book-form textarea { resize: vertical; }
.book-form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.book-form .check input { margin-top: .25rem; flex: none; width: 18px; height: 18px; }
.book-form .check span { flex: 1; line-height: 1.5; }
.hp { position: absolute !important; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.book-success { background: #E4F3E8; color: #23663A; border-radius: 10px; padding: 1rem 1.2rem; }

/* ---------- Árkártyák ---------- */
.price-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.price-card { background: #fff; border-radius: var(--radius); padding: 1.2rem 1.3rem; border: 1px solid #E8E2D6; }
.price-card h3 { margin: 0 0 .2em; font-size: 1.1rem; }
.price-dates { color: var(--muted); font-size: .85rem; margin: 0 0 .8em; }
.price-amount { font-size: 1.5rem; font-weight: 700; color: var(--water); margin: 0; }
.price-amount span { font-size: .9rem; font-weight: 400; color: var(--muted); }
.price-min { font-size: .82rem; color: var(--muted); margin: .3em 0 0; }
.price-notes { margin-top: 1.5rem; padding-left: 1.2rem; font-size: .92rem; color: var(--ink); }
.price-notes li { margin-bottom: .3em; }

/* ---------- Környék ---------- */
.area-grid { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .area-grid { grid-template-columns: 1fr 1fr; } }
.area-grid h3 { margin: 0 0 .3em; color: var(--water); }
.area-grid p { margin: 0; }

/* ---------- Vélemények ---------- */
.reviews { display: grid; gap: 1rem; }
@media (min-width: 720px) { .reviews { grid-template-columns: 1fr 1fr; } }
.review { margin: 0; background: #fff; border-radius: var(--radius); padding: 1.2rem 1.4rem; border: 1px solid #E8E2D6; }
.review footer { margin-top: .6rem; font-weight: 600; color: var(--water); }

/* ---------- Kapcsolat ---------- */
.contact-card p { margin: 0 0 1em; }
.map-wrap iframe { width: 100%; height: 300px; border: 0; border-radius: var(--radius); }

/* ---------- Lábléc + sticky CTA ---------- */
.footer { background: var(--ink); color: #C6D3DA; text-align: center; padding: 2rem 1rem; font-size: .88rem; }
.footer a { color: #fff; }
.sticky-cta {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 700;
  padding: .8rem 1.5rem; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
@media (min-width: 900px) { .sticky-cta { display: none; } }

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


/* ---------- GYIK ---------- */
.faq { max-width: 760px; }
.faq-item { background: #fff; border: 1px solid #E8E2D6; border-radius: var(--radius); margin-bottom: .7rem; }
.faq-item summary { cursor: pointer; list-style: none; padding: 1rem 1.2rem; font-weight: 600;
  position: relative; padding-right: 2.6rem; min-height: 48px; display: flex; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1.1rem; font-size: 1.4rem;
  color: var(--accent); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--ink); }

/* ---------- Kapcsolat oldal ---------- */
.contact-cols { align-items: start; }
.contact-form { background: var(--sand); border-radius: var(--radius); padding: 1.4rem; }
.contact-aside { background: var(--water-light); border-radius: var(--radius); padding: 1.4rem; }
main.section h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: .2em 0 .5em; }

/* ---------- Lábléc navigáció ---------- */
.footer-nav { margin-bottom: .6rem; }
.footer-nav a { margin: 0 .2rem; }
