/* Gősy Apartmanok – stíluslap */

:root {
  --bg: #f8f5ef;
  --surface: #ffffff;
  --sand: #efe8dc;
  --ink: #1d2a2f;
  --muted: #5c686c;
  --line: #e3dccf;
  --lake: #1f5a61;
  --lake-dark: #163f45;
  --gold: #a9803f;
  --gold-light: #f1dfb8;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(22, 50, 55, .35);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--lake); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 .45em;
}
h1 { font-size: clamp(3.1rem, 9vw, 6rem); }
h2 { font-size: clamp(2.2rem, 4.8vw, 3.3rem); }
h3 { font-size: 1.8rem; margin-bottom: .35em; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
section { padding: clamp(4.5rem, 10vw, 7.5rem) 0; }

.eyebrow {
  margin: 0 0 1rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-head { max-width: 680px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-lead { margin: 0; font-size: 1.1rem; color: var(--muted); }
.ico { width: 20px; height: 20px; flex: none; }

/* ───── Gombok ───── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 99px;
  font: 600 .95rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--lake); color: #fff; }
.btn-primary:hover { background: var(--lake-dark); }
.btn-light { background: #fff; color: var(--lake-dark); }
.btn-light:hover { background: var(--gold-light); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--lake);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow .ico { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ───── Fejléc ───── */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: #fff;
  transition: background .3s, color .3s, box-shadow .3s;
}
.site-header.scrolled,
.site-header.menu-open {
  background: rgba(248, 245, 239, .95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; gap: 2rem; }

.brand {
  margin-right: auto;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.brand span { font-style: italic; font-weight: 500; }

.nav { display: flex; gap: 1.9rem; }
.nav a {
  position: relative;
  color: inherit;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .25s;
}
.nav a:hover::after { transform: scaleX(1); }

.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 99px;
}
.scrolled .lang, .menu-open .lang { border-color: var(--line); }
.lang button {
  padding: .45rem .62rem;
  border: 0;
  border-radius: 99px;
  background: none;
  color: inherit;
  font: 600 .72rem/1 var(--sans);
  letter-spacing: .08em;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--lake-dark); }
.scrolled .lang button[aria-pressed="true"],
.menu-open .lang button[aria-pressed="true"] { background: var(--lake); color: #fff; }

.menu-btn { display: none; }

@media (max-width: 880px) {
  .header-inner { gap: .75rem; }
  .brand { font-size: 1.4rem; }
  .menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 42px; height: 42px;
    padding: 10px;
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
  }
  .menu-btn span { height: 1.5px; background: currentColor; transition: transform .25s; }
  .menu-open .menu-btn span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav {
    display: none;
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: .25rem 16px 1.5rem;
    background: var(--bg);
    box-shadow: 0 16px 24px -16px rgba(0, 0, 0, .2);
  }
  .menu-open .nav { display: flex; }
  .nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a::after { display: none; }
}

/* ───── Nyitókép ───── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) 0 clamp(3.5rem, 10vh, 6.5rem);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(160deg, #143a40 0%, #2a6b72 55%, #b08a4e 125%);
}
.hero-bg { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease, transform 8s ease-out;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 24, 27, .5) 0%, rgba(8, 24, 27, 0) 28%, rgba(8, 24, 27, .12) 55%, rgba(8, 24, 27, .72) 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { margin-bottom: .25em; }
.hero .lead { max-width: 34ch; margin: 0 0 2.2rem; font-size: clamp(1.1rem, 2.2vw, 1.4rem); opacity: .94; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ───── Elhelyezkedés ───── */

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}
.intro p { color: var(--muted); }
.intro p.eyebrow { color: var(--gold); }
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.features li {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  padding: 1.35rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.4;
}
.features .ico { width: 28px; height: 28px; color: var(--lake); }

@media (max-width: 880px) {
  .intro-grid { grid-template-columns: 1fr; }
}

/* ───── Apartmanok ───── */

.house:nth-child(odd) { background: var(--surface); }
.apts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 3.5vw, 2.75rem);
}
.apt { display: flex; flex-direction: column; }
.apt-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding-top: 1.6rem; }
.apt-body p { margin: 0 0 1.1rem; color: var(--muted); }
.apt-body .link-arrow { margin-top: auto; }

/* Kiemelt megjegyzés (pl. „csak együtt foglalható”) */
.apt-body .apt-note {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  padding: .75rem .9rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: #fbf3df;
  color: #5f4718;
  font-size: .93rem;
  font-weight: 500;
  line-height: 1.45;
}
.apt-note .ico { width: 18px; height: 18px; margin-top: .1rem; color: var(--gold); }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.1rem; padding: 0; list-style: none; }
.chips li {
  padding: .38rem .8rem;
  border-radius: 99px;
  background: var(--sand);
  color: var(--lake-dark);
  font-size: .8rem;
  font-weight: 600;
}
.house:nth-child(even) .chips li { background: var(--surface); }

/* Oszlopokban folyó lista: egy két sorba törő tétel nem hagy üres rést a mellette lévő mellett */
.amenities {
  columns: 2 170px;
  column-gap: 1.25rem;
  width: 100%;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  font-size: .93rem;
}
.amenities li {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  padding-bottom: .4rem;
  break-inside: avoid;
}
.amenities .ico { width: 16px; height: 16px; margin-top: .3rem; color: var(--gold); }

/* Galéria */
.gallery {
  position: relative;
  display: grid;
  gap: 6px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
}
.gallery.n2, .gallery.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery.n2 .g-item, .gallery.n3 .g-item:first-child { grid-row: span 2; }

.g-item {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--sand);
  cursor: zoom-in;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.g-item:hover img { transform: scale(1.04); }

.g-count {
  position: absolute;
  right: 12px; bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .85rem;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font: 600 .8rem/1 var(--sans);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.g-count .ico { width: 16px; height: 16px; }

.g-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: .6rem;
  height: 100%;
  padding: 1rem;
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
  background: linear-gradient(135deg, #e9e1d2, #f4efe6);
}
.g-empty .ico { width: 34px; height: 34px; opacity: .55; }

.gallery.is-loading {
  background: linear-gradient(100deg, var(--sand) 30%, #f7f2ea 50%, var(--sand) 70%);
  background-size: 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ───── Árak ───── */

.prices { background: var(--lake-dark); color: #fff; }
.prices .eyebrow { color: var(--gold-light); }
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.price {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--gold-light);
}
.price-unit { display: block; margin-top: .7rem; opacity: .88; }
.price-tax { display: block; margin-top: 1.2rem; font-size: .9rem; opacity: .68; }
.rules { margin: 0; padding: 0; list-style: none; }
.rules li {
  display: flex;
  gap: .9rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.rules li:first-child { padding-top: .25rem; }
.rules .ico { margin-top: .2rem; color: var(--gold-light); }

@media (max-width: 800px) {
  .price-grid { grid-template-columns: 1fr; }
}

/* ───── Kapcsolat ───── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 7vw, 5.5rem);
  align-items: stretch;
}
.contact-list { margin: 2.2rem 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .ico { width: 22px; height: 22px; margin-top: .15rem; color: var(--lake); }
.contact-list a { color: var(--ink); text-decoration: none; font-size: 1.08rem; font-weight: 500; }
.contact-list a:hover { color: var(--lake); }
.label {
  display: block;
  margin-bottom: .2rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.addr { display: block; }
.addr + .addr { margin-top: .5rem; }
.addr small { display: block; font-size: .85rem; font-weight: 400; color: var(--muted); }

.map { min-height: 400px; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 400px; border: 0; }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
  .map, .map iframe { min-height: 320px; }
}

/* ───── Lábléc ───── */

.site-footer { padding: 2.75rem 0; background: #10292d; color: rgba(255, 255, 255, .68); font-size: .9rem; }
.site-footer p { margin: .3rem 0 0; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; font-size: 1.35rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.footer-contact { text-align: right; }
@media (max-width: 600px) { .footer-contact { text-align: left; } }

/* ───── Képnézegető ───── */

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 17, 19, .96);
  color: #fff;
}
.lb[hidden] { display: none; }
.lb-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  margin: 0;
  padding: 72px 84px;
}
.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
  transition: opacity .25s;
}
.lb-stage img.is-loading { opacity: .25; }
.lb-top {
  position: absolute;
  top: 0; left: 0; right: 80px;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  align-items: baseline;
  padding: 22px 24px;
  font-size: .9rem;
  color: rgba(255, 255, 255, .75);
}
.lb-title { font-family: var(--serif); font-size: 1.3rem; color: #fff; }
.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  transition: background .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-btn .ico { width: 22px; height: 22px; }
.lb-btn[hidden] { display: none; }
.lb-close { top: 14px; right: 14px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

@media (max-width: 640px) {
  .lb-stage { padding: 80px 0 96px; }
  .lb-prev, .lb-next { top: auto; bottom: 22px; transform: none; }
  .lb-prev { left: calc(50% - 62px); }
  .lb-next { right: calc(50% - 62px); }
}

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