/* ============================================
   Krisztina Villa — Balatonlelle
   Balatoni kék paletta: mély tó-kék, azúr, levegős világos háttér
   ============================================ */

:root {
  --bg: #f3f8fb;
  --bg-dark: #dcebf3;
  --white: #ffffff;
  --ink: #143850;
  --ink-soft: #4e6b7f;
  --blue: #2181b0;
  --blue-light: #8fd0e6;
  --blue-pale: #e1f1f8;
  --navy: #102e44;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(16, 52, 77, 0.10);
  --shadow-lg: 0 12px 40px rgba(16, 52, 77, 0.16);
  --transition: all 0.3s ease;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top contact bar ---------- */
.topbar {
  background: var(--navy);
  color: var(--bg);
  font-size: 0.85rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.topbar-contacts { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.topbar a {
  color: var(--bg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
}
.topbar a:hover { color: var(--blue-light); }
.topbar svg { width: 14px; height: 14px; fill: var(--blue-light); flex-shrink: 0; }

.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
  padding: 2px 9px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}
.lang-switch a:hover { border-color: var(--blue-light); color: var(--blue-light); }
.lang-switch a.active {
  background: var(--blue);
  color: var(--white);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 248, 251, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(33, 129, 176, 0.16);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
}
.logo span { color: var(--blue); }
.logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.main-nav ul { display: flex; list-style: none; gap: 26px; align-items: center; }
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
}
.main-nav a:hover { color: var(--blue); }
.main-nav a.nav-cta {
  background: var(--blue);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(33, 129, 176, 0.35);
}
.main-nav a.nav-cta:hover { background: #1c6f98; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(135deg, #16455f, #3d93b8);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.9);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 30, 45, 0.55), rgba(8, 30, 45, 0.35) 50%, rgba(8, 30, 45, 0.65));
}
.hero-content { position: relative; z-index: 2; padding: 100px 24px; max-width: 800px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 560px;
  margin: 0 auto 34px;
  color: rgba(255,255,255,0.92);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(33, 129, 176, 0.45);
}
.btn-primary:hover { background: #1c6f98; transform: translateY(-2px); }
.btn-outline {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
}
.btn-outline:hover { background: rgba(255,255,255,0.22); }

.hero-badges {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 12px 34px;
  flex-wrap: wrap;
  padding: 0 24px 42px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.9);
}
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 16px; height: 16px; fill: var(--blue-light); }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-head p { color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- About ---------- */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 20px;
  line-height: 1.15;
}
.about-text p { color: var(--ink-soft); margin-bottom: 16px; }
.about-features { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.about-features li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.about-features svg { width: 20px; height: 20px; fill: var(--blue); flex-shrink: 0; }
.about-media { position: relative; }
.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
.about-card {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--navy);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 20px 26px;
  box-shadow: var(--shadow-lg);
}
.about-card strong {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--blue-light);
  display: block;
  line-height: 1.1;
}
.about-card small { font-size: 0.82rem; }

/* ---------- Apartments ---------- */
.rooms { background: var(--bg); }
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.room-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.room-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.room-media { position: relative; }
.room-slider { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.room-slider .carousel-main { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(16, 52, 77, 0.2);
  transition: var(--transition);
}
.carousel-arrow:hover { background: #fff; color: var(--blue); }
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }
.room-thumbs { display: flex; gap: 8px; padding: 10px; background: var(--white); }
.room-thumb {
  flex: 1;
  aspect-ratio: 4 / 3;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: none;
  opacity: 0.65;
  transition: var(--transition);
}
.room-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-thumb:hover { opacity: 1; }
.room-thumb.active { border-color: var(--blue); opacity: 1; }
.room-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(13, 45, 66, 0.85);
  color: var(--blue-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.room-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.room-body h3 { font-family: var(--font-heading); font-size: 1.35rem; margin-bottom: 10px; }
.room-body p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 18px; }
.room-amenities {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.room-amenities li {
  font-size: 0.78rem;
  background: var(--blue-pale);
  color: var(--ink);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 500;
}
.room-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--bg-dark);
  padding-top: 18px;
}
.room-price { line-height: 1.2; }
.room-price strong { font-family: var(--font-heading); font-size: 1.45rem; color: var(--blue); }
.room-price small { display: block; color: var(--ink-soft); font-size: 0.78rem; }
.room-price .price-eur { color: var(--blue); font-weight: 600; margin-top: 3px; }
.room-footer .btn { padding: 10px 22px; font-size: 0.85rem; }

/* ---------- Pricing extra ---------- */
.price-notes {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.price-note {
  background: var(--white);
  border: 1px solid var(--bg-dark);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  padding: 18px 22px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.price-note strong { color: var(--ink); display: block; margin-bottom: 4px; }

/* ---------- Amenities ---------- */
.amenities { background: var(--white); }
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.amenity {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
}
.amenity:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.amenity-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--blue-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.amenity-icon svg { width: 26px; height: 26px; fill: var(--blue); }
.amenity h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.amenity p { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Gallery ---------- */
.gallery { background: var(--bg); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  border: none;
  padding: 0;
  background: var(--bg-dark);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.07); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6, 22, 34, 0.93);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 92vw;
  max-height: 90vh;
}
.lightbox-figure img {
  max-width: 92vw;
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  object-fit: contain;
}
.lightbox-caption {
  color: var(--bg);
  font-size: 0.98rem;
  line-height: 1.5;
  text-align: center;
  max-width: 640px;
  padding: 0 10px;
}
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 28px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Location ---------- */
.location { background: var(--white); }
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 46px;
  align-items: stretch;
}
.location-info h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 18px;
}
.location-info p { color: var(--ink-soft); margin-bottom: 22px; }
.distance-list { list-style: none; display: grid; gap: 14px; }
.distance-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.92rem;
}
.distance-list svg { width: 20px; height: 20px; fill: var(--blue); flex-shrink: 0; }
.distance-list strong { margin-left: auto; color: var(--blue); white-space: nowrap; }
.location-map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 460px;
}
#villa-map { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--bg-dark); z-index: 1; }
.leaflet-tooltip.map-label {
  background: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(16, 52, 77, 0.25);
  border-radius: 6px;
  padding: 3px 9px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--ink);
}
.leaflet-tooltip.map-label::before { display: none; }
.leaflet-tooltip.map-label-villa { font-weight: 700; }
.leaflet-tooltip.map-label-beach { font-weight: 600; color: var(--blue); }

/* Street View */
.streetview { margin-top: 34px; }
.streetview-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  text-align: center;
  margin-bottom: 20px;
}
.streetview-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  background: var(--bg-dark);
}
.streetview-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.streetview-actions { text-align: center; margin-top: 16px; }

/* ---------- Contact (highlighted) ---------- */
.contact {
  background: linear-gradient(135deg, var(--navy) 0%, #1e5f83 100%);
  color: var(--bg);
}
.contact .section-eyebrow { color: var(--blue-light); }
.contact .section-head h2 { color: var(--white); }
.contact .section-head p { color: rgba(235, 245, 250, 0.75); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.contact-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(143, 208, 230, 0.28);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  transition: var(--transition);
}
.contact-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}
.contact-card .amenity-icon { background: rgba(143, 208, 230, 0.18); }
.contact-card .amenity-icon svg { fill: var(--blue-light); }
.contact-card h3 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 10px;
}
.contact-card a, .contact-card p {
  color: var(--bg);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  word-break: break-word;
}
.contact-card a:hover { color: var(--blue-light); }
.contact-card small { display: block; margin-top: 6px; font-size: 0.8rem; color: rgba(235, 245, 250, 0.65); font-weight: 400; }

/* ---------- Booking form ---------- */
.booking { background: var(--bg); }
.booking-wrap {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 48px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.86rem; font-weight: 600; }
.form-group label .req { color: #c0392b; }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 16px;
  border: 1.5px solid var(--bg-dark);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  transition: var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(33, 129, 176, 0.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.booking-submit { margin-top: 28px; text-align: center; }
.booking-submit .btn { width: 100%; justify-content: center; font-size: 1rem; padding: 16px; }
.booking-submit .btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.form-status {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  display: none;
}
.form-status.success { display: block; background: #e8f3ec; color: #2c6e49; border: 1px solid #bcdcc8; }
.form-status.error { display: block; background: #fbeaea; color: #a33a3a; border: 1px solid #eec7c7; }
.booking-note {
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
}
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0d2436;
  color: rgba(235, 245, 250, 0.75);
  padding: 56px 0 24px;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: var(--bg); font-size: 1.3rem; }
.footer-brand p { margin-top: 12px; max-width: 320px; }
.site-footer h4 {
  color: var(--blue-light);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: rgba(235, 245, 250, 0.75); text-decoration: none; transition: var(--transition); }
.site-footer a:hover { color: var(--blue-light); }
.footer-bottom {
  border-top: 1px solid rgba(235, 245, 250, 0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(235, 245, 250, 0.5);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .about-grid, .location-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-card { left: 16px; bottom: -18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--bg-dark);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 12px 0; }
  .main-nav li { width: 100%; text-align: center; }
  .main-nav a { display: block; padding: 13px 24px; }
  .main-nav a.nav-cta { margin: 10px 24px; border-radius: 10px; }
}

@media (max-width: 720px) {
  .topbar .container { justify-content: center; }
  .form-grid { grid-template-columns: 1fr; }
  .booking-wrap { padding: 32px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero { min-height: 76vh; }
}
