/* ===================================================================
   Villas Algarve — Catalina & Boa Vida
   Farbpalette: Weiß / Gold / dezentes Tiefblau
   =================================================================== */

:root {
  --white: #ffffff;
  --off-white: #faf7f2;
  --cream: #f5efe4;
  --gold: #c8a55a;
  --gold-dark: #a8863e;
  --gold-light: #e0c587;
  --blue: #1a3a5c;
  --blue-deep: #0f2540;
  --blue-soft: #4a6585;
  --text: #2b2b2b;
  --text-muted: #6b6b6b;
  --line: rgba(200, 165, 90, 0.25);
  --shadow-sm: 0 2px 12px rgba(15, 37, 64, 0.08);
  --shadow-md: 0 8px 32px rgba(15, 37, 64, 0.12);
  --shadow-lg: 0 16px 60px rgba(15, 37, 64, 0.18);
  --serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--blue-deep);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.gold-line {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin: 0 14px;
}

/* ================== LANDING PAGE (split screen) ================== */

.landing {
  height: 100vh;
  min-height: 700px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.landing-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.brand {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--white);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

/* Bigger brand on landing page — centered top */
.landing-body .brand { font-size: 34px; letter-spacing: 0.28em; }
.landing-body .landing-header {
  padding: 44px 48px;
  justify-content: center;  /* keep brand centered */
}

/* Language switcher floats top-right on landing page (no flexbox interference) */
.landing-body .lang-switcher {
  position: absolute;
  top: 44px;
  right: 48px;
}

@media (max-width: 700px) {
  .landing-body .brand { font-size: 22px; letter-spacing: 0.22em; }
  .landing-body .landing-header { padding: 28px 24px; }
  .landing-body .lang-switcher { top: 22px; right: 22px; }
}

/* ============= Language switcher (top-right, prominent) ============= */
.lang-switcher {
  position: relative;
  pointer-events: auto;
  z-index: 110;
}

/* Toggle button — solid white, gold border, always visible */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  background: var(--white);
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  color: var(--blue-deep);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 37, 64, 0.22);
  transition: all 0.3s ease;
  font-family: var(--sans);
  font-weight: 600;
}

.lang-toggle:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(15, 37, 64, 0.3);
}

.lang-toggle .lang-flag {
  width: 22px;
  height: auto;
  border-radius: 2px;
  display: block;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

.lang-toggle .lang-code {
  font-weight: 600;
}

.lang-toggle .lang-caret {
  width: 10px;
  height: 10px;
  opacity: 0.6;
  transition: transform 0.3s ease;
}

.lang-switcher.open .lang-toggle .lang-caret {
  transform: rotate(180deg);
}

/* Dropdown menu — scrollable for 20 languages */
.lang-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 240px;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(15, 37, 64, 0.28);
  border-radius: 6px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.lang-menu::-webkit-scrollbar { width: 6px; }
.lang-menu::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
.lang-menu::-webkit-scrollbar-track { background: transparent; }

.lang-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 18px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--blue-deep);
  transition: background 0.2s ease;
}

.lang-menu button:hover { background: var(--off-white); }
.lang-menu button.active { background: var(--cream); color: var(--gold-dark); font-weight: 500; }

.lang-menu button .lang-flag {
  width: 24px;
  height: auto;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

.lang-menu button .lc {
  display: inline-block;
  min-width: 26px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
  font-weight: 600;
}

.lang-menu button .lname {
  flex: 1;
}

/* Group "Both Villas" + switcher on the right (villa pages) */
.site-nav { gap: 18px; }
.site-nav .nav-back { margin-left: auto; }

/* Landing page — switcher floats top-right absolute */
.landing-body .lang-switcher {
  position: absolute;
  top: 44px;
  right: 48px;
}

@media (max-width: 700px) {
  .lang-toggle { padding: 6px 12px 6px 8px; font-size: 11px; gap: 8px; }
  .lang-toggle .lang-flag { width: 18px; }
  .lang-menu { min-width: 200px; max-height: 320px; }
  .lang-menu button { font-size: 13px; padding: 9px 14px; }
  .landing-body .lang-switcher { top: 22px; right: 22px; }
}

.brand span {
  color: var(--gold-light);
}

.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.choice-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.choice-slideshow .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease, transform 7s ease-out;
  will-change: opacity, transform;
}

.choice-slideshow .slide.active {
  opacity: 1;
  transform: scale(1);
}

.choice-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 37, 64, 0.4) 0%,
    rgba(15, 37, 64, 0.5) 50%,
    rgba(15, 37, 64, 0.7) 100%
  );
  transition: background 0.6s ease;
  z-index: 2;
  pointer-events: none;
}

.choice:hover .choice-slideshow::after {
  background: linear-gradient(
    180deg,
    rgba(15, 37, 64, 0.25) 0%,
    rgba(15, 37, 64, 0.4) 50%,
    rgba(15, 37, 64, 0.6) 100%
  );
}

.divider {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--gold-light) 20%,
    var(--gold) 50%,
    var(--gold-light) 80%,
    transparent 100%
  );
  z-index: 10;
  transform: translateX(-50%);
  opacity: 0.7;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 14px;
  height: 14px;
  background: var(--gold);
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 0 24px rgba(200, 165, 90, 0.6);
}

.divider::before {
  top: 50%;
  margin-top: -7px;
}

.choice-content {
  position: relative;
  z-index: 5;
  text-align: center;
  color: var(--white);
  padding: 0 40px;
  transform: translateY(0);
  transition: transform 0.6s ease;
}

.choice:hover .choice-content {
  transform: translateY(-8px);
}

.choice-eyebrow {
  font-size: 13px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
  font-weight: 400;
}

.choice-title {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 400;
  line-height: 1;
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.choice-subtitle {
  font-size: 16px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  max-width: 360px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.choice-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 32px;
  border: 1px solid var(--gold-light);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: all 0.4s ease;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
}

.choice:hover .choice-cta {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  letter-spacing: 0.35em;
}

.choice-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s ease;
}

.choice:hover .choice-cta svg {
  transform: translateX(6px);
}

.landing-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 28px 48px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: none;
}

/* ================== DETAIL PAGE ================== */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0);
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  padding: 14px 48px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.site-nav .brand {
  color: var(--white);
  font-size: 18px;
  transition: color 0.4s ease;
}

.site-nav.scrolled .brand {
  color: var(--blue-deep);
  text-shadow: none;
}

.site-nav.scrolled .brand span {
  color: var(--gold-dark);
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.4s ease;
}

.site-nav.scrolled .nav-back {
  color: var(--blue-deep);
}

.nav-back:hover {
  color: var(--gold);
}

.site-nav.scrolled .nav-back:hover {
  color: var(--gold-dark);
}

/* Hero */

.villa-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: var(--white);
}

.villa-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.villa-hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.villa-hero-slideshow .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.8s ease, transform 8s ease-out;
  will-change: opacity, transform;
}

.villa-hero-slideshow .slide.active {
  opacity: 1;
  transform: scale(1);
}

.villa-hero-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 37, 64, 0.45) 0%,
    rgba(15, 37, 64, 0.15) 35%,
    rgba(15, 37, 64, 0.25) 70%,
    rgba(15, 37, 64, 0.85) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 36px;
  height: 2px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.4s ease, width 0.4s ease;
  padding: 0;
}

.hero-dots button.active {
  background: var(--gold-light);
  width: 56px;
}

.villa-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 37, 64, 0.45) 0%,
    rgba(15, 37, 64, 0.15) 35%,
    rgba(15, 37, 64, 0.25) 70%,
    rgba(15, 37, 64, 0.85) 100%
  );
}

.villa-hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 0 32px 100px;
  max-width: 900px;
}

.villa-hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 22px;
}

.villa-hero-title {
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 124px);
  font-weight: 400;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 28px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.villa-hero-sub {
  font-size: 17px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
  margin: 0 auto;
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  color: var(--gold-light);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: bounce 2.4s ease-in-out infinite;
}

.scroll-hint::after {
  content: "";
  width: 1px;
  height: 30px;
  background: var(--gold-light);
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.8; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* Sections */

section.block {
  padding: 110px 0;
}

section.block.alt {
  background: var(--off-white);
}

.section-head {
  text-align: center;
  margin-bottom: 70px;
}

.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 400;
  color: var(--blue-deep);
  margin-bottom: 22px;
}

.section-lead {
  max-width: 680px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* Description */

.description {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.description-text p {
  margin-bottom: 22px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}

.description-text p:first-letter {
  /* keep neutral, no fancy dropcap */
}

.description-img {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}

.description-img::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  right: -24px;
  bottom: -24px;
  border: 1px solid var(--gold);
  z-index: -1;
}

.description-img-wrap {
  position: relative;
}

.description-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Facts strip */

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  padding: 50px 30px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.fact:last-child {
  border-right: none;
}

.fact-icon {
  color: var(--gold-dark);
  margin-bottom: 14px;
  display: inline-flex;
}

.fact-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.2;
}

.fact-value {
  font-family: var(--serif);
  font-size: 38px;
  color: var(--blue-deep);
  line-height: 1;
  margin-bottom: 8px;
}

.fact-label {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--cream);
}

.gallery-item.tall {
  aspect-ratio: 4/5;
  grid-row: span 1;
}

.gallery-item.wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 37, 64, 0) 50%,
    rgba(15, 37, 64, 0.35) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-toggle {
  text-align: center;
  margin-top: 50px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 30px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--blue-deep);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.4s ease;
}

.btn-link:hover {
  background: var(--gold);
  color: var(--white);
}

.btn-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.4s ease;
}

.btn-link:hover svg {
  transform: translateY(2px);
}

/* Amenities */

.amenities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.amenity {
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  text-align: center;
  transition: all 0.4s ease;
}

.amenity:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.amenity-icon {
  color: var(--gold-dark);
  margin-bottom: 16px;
  display: inline-flex;
}

.amenity-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.4;
}

.amenity-label {
  font-size: 13px;
  color: var(--blue-deep);
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* Location */

.location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.location-list {
  list-style: none;
}

.location-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.location-list li:last-child {
  border-bottom: none;
}

.location-list .place {
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 14px;
}

.location-list .place svg {
  color: var(--gold-dark);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.location-list .distance {
  font-family: var(--serif);
  color: var(--blue-deep);
  font-size: 18px;
}

.location-map {
  aspect-ratio: 4/3;
  background: var(--cream);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Pricing */

.pricing-table {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.pricing-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  padding: 24px 32px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-row.head {
  background: var(--blue-deep);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.pricing-row.head .price {
  color: var(--gold-light);
  text-align: right;
}

.pricing-season {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pricing-season .name {
  font-size: 16px;
  color: var(--blue-deep);
  font-weight: 500;
}

.pricing-season .period {
  font-size: 13px;
  color: var(--text-muted);
}

.pricing-row .price {
  text-align: right;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--blue-deep);
}

.pricing-note {
  max-width: 760px;
  margin: 24px auto 0;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.7;
}

/* Calendar placeholder */

.calendar-slot {
  max-width: none;
  margin: 0 auto;
}

.calendar-slot .calendar-embed:not(:empty) ~ .calendar-placeholder {
  display: none;
}

.calendar-placeholder strong {
  display: block;
  color: var(--blue-deep);
  font-family: var(--serif);
  font-size: 18px;
  margin-bottom: 10px;
}

/* Booking form */

.booking {
  background: var(--blue-deep);
  color: var(--white);
  padding: 110px 0;
}

.booking .section-title {
  color: var(--white);
}

.booking .section-eyebrow {
  color: var(--gold-light);
}

.booking .section-lead {
  color: rgba(255, 255, 255, 0.8);
}

.booking-form {
  max-width: 780px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field.full {
  grid-column: span 2;
}

.form-field label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 12px 0;
  font-size: 15px;
  font-family: var(--sans);
  transition: border-color 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.form-field textarea {
  resize: vertical;
  min-height: 80px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.btn-primary {
  grid-column: span 2;
  margin-top: 14px;
  padding: 18px 40px;
  background: var(--gold);
  border: none;
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.4s ease;
  justify-self: center;
}

.btn-primary:hover {
  background: var(--gold-dark);
  letter-spacing: 0.4em;
}

/* Footer */

.site-footer {
  background: #0a1a2e;
  color: rgba(255, 255, 255, 0.65);
  padding: 60px 0 30px;
  text-align: center;
}

.site-footer .brand {
  color: var(--white);
  margin-bottom: 16px;
  display: inline-block;
}

.site-footer p {
  font-size: 13px;
  margin-bottom: 8px;
}

.site-footer .small {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 26, 46, 0.96);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: var(--shadow-lg);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 210;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.lightbox-close {
  top: 32px;
  right: 32px;
}

.lightbox-prev {
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-counter {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-light);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  z-index: 210;
}

/* Fade-in scroll animation */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .landing { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .divider {
    left: 0;
    right: 0;
    width: 100%;
    height: 1px;
    top: 50%;
    bottom: auto;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
    transform: translateY(-50%);
  }
  .divider::before { left: 50%; top: 50%; margin-top: -7px; margin-left: -7px; }
  .description, .location { grid-template-columns: 1fr; gap: 50px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact { border-right: none; border-bottom: 1px solid var(--line); }
  .fact:nth-child(2n) { border-right: none; }
  .fact:nth-child(2n+1) { border-right: 1px solid var(--line); }
  .gallery, .amenities { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 2; }
  .booking-form { grid-template-columns: 1fr; }
  .form-field.full, .btn-primary { grid-column: span 1; }
  section.block { padding: 70px 0; }
  .site-nav { padding: 16px 24px; }
  .villa-hero-content { padding-bottom: 80px; }
  .description-img::before { display: none; }
}

@media (max-width: 560px) {
  .gallery, .amenities { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; }
  .facts { grid-template-columns: 1fr; }
  .fact, .fact:nth-child(2n+1) { border-right: none; border-bottom: 1px solid var(--line); }
  .pricing-row { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
  .pricing-row .price { text-align: left; }
}

/* =====================================================================
   V2 — Layout redesign: compact hero, sticky booking, mosaic gallery
   ===================================================================== */

/* Compact hero (overrides v1) */
.villa-hero {
  height: 72vh;
  min-height: 540px;
  align-items: center;
}

.villa-hero-content {
  padding-bottom: 0;
}

.villa-hero-title {
  font-size: clamp(48px, 6.5vw, 96px);
}

.hero-dots {
  bottom: 30px;
}

.scroll-hint { display: none; }

/* OLD hero-strip — hidden, replaced by .info-band below hero */
.hero-strip { display: none; }

/* Info band — bright white-bg chip row directly under hero */
.info-band {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.info-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.info-band-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}

.info-band-item {
  padding: 28px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  border-right: 1px solid var(--line);
  transition: background 0.4s ease;
}

.info-band-item:last-child { border-right: none; }

.info-band-item:hover { background: var(--off-white); }

.info-band-item svg {
  width: 26px;
  height: 26px;
  color: var(--gold-dark);
  stroke-width: 1.4;
}

.info-band-item .v-value {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--blue-deep);
  line-height: 1;
}

.info-band-item .v-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.3;
}

@media (max-width: 900px) {
  .info-band-grid { grid-template-columns: repeat(3, 1fr); }
  .info-band-item:nth-child(3) { border-right: none; }
  .info-band-item:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 520px) {
  .info-band-grid { grid-template-columns: repeat(2, 1fr); }
  .info-band-item { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); padding: 22px 10px; }
  .info-band-item:nth-child(2n) { border-right: none !important; }
  .info-band-item:nth-last-child(-n+2) { border-bottom: none; }
}

/* Map CTA (legacy small button — still used as fallback) */
.map-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 22px;
  border: 1px solid var(--gold);
  color: var(--blue-deep);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.map-cta:hover { background: var(--gold); color: var(--white); }
.map-cta svg { width: 14px; height: 14px; }

/* ============ FULL-WIDTH LOCATION MAP with overlay pin ============ */
.location-fullmap {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 560px;
  overflow: hidden;
  box-shadow: 0 12px 50px rgba(15, 37, 64, 0.18);
  background: var(--cream);
}

/* Portugal flag — long thin banner pinned top-right, slides in and waves like fabric */
.flag-portugal {
  position: absolute;
  top: 28px;
  right: 0;
  z-index: 6;
  width: 200px;
  height: 44px;
  transform: translate(130%, 0);
  opacity: 0;
  transition:
    transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s,
    opacity 0.8s ease 0.3s;
  pointer-events: none;
}

.location-fullmap.in-view .flag-portugal {
  transform: translate(0, 0);
  opacity: 1;
}

.flag-inner {
  width: 100%;
  height: 100%;
  filter: drop-shadow(-3px 5px 14px rgba(0,0,0,0.4));
  animation: flag-wave 4.6s ease-in-out infinite 1.4s;
  transform-origin: left center;
}

@keyframes flag-wave {
  0%, 100% { transform: skewY(0deg)    scaleX(1)    translateX(0); }
  25%      { transform: skewY(-1deg)   scaleX(1.01) translateX(-1px); }
  50%      { transform: skewY(0deg)    scaleX(0.99) translateX(0); }
  75%      { transform: skewY(1deg)    scaleX(1.01) translateX(-1px); }
}

.flag-portugal svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 900px) {
  .flag-portugal { width: 150px; height: 34px; top: 18px; }
}

@media (max-width: 560px) {
  .flag-portugal { width: 110px; height: 26px; top: 12px; }
}

.location-fullmap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Map corner label — pure caption, NOT pretending to be a location marker.
   Sits at top-left of map, doesn't drift on zoom because it's just a badge. */
.map-corner-label {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 5;
  background: var(--white);
  padding: 14px 22px;
  border-left: 3px solid var(--gold);
  box-shadow: 0 8px 24px rgba(15, 37, 64, 0.25);
  pointer-events: none;
  border-radius: 2px;
  min-width: 200px;
}

.map-corner-label strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--blue-deep);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 4px;
}

.map-corner-label span {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

@media (max-width: 560px) {
  .map-corner-label {
    top: 14px;
    left: 14px;
    padding: 10px 16px;
    min-width: 0;
  }
  .map-corner-label strong { font-size: 15px; }
  .map-corner-label span { font-size: 10px; letter-spacing: 0.18em; }
}

/* Leaflet interactive map container — replaces the static iframe */
.villa-map {
  width: 100%;
  height: 100%;
  background: var(--cream);
  z-index: 1;
}

/* Hide default Leaflet attribution corner box prettily */
.leaflet-control-attribution {
  font-size: 10px !important;
  background: rgba(255,255,255,0.85) !important;
}

/* Geo-anchored marker (custom HTML icon) — stays on the villa coordinate while zooming */
.villa-marker {
  position: relative;
  pointer-events: none;
}

/* Tiny dot sits at the exact lat/lng, bubble drops below with arrow pointing UP */
.villa-marker-dot {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow:
    0 0 0 4px rgba(200, 165, 90, 0.3),
    0 4px 12px rgba(15, 37, 64, 0.4);
  animation: pin-pulse 2.4s ease-in-out infinite;
}

.villa-marker-bubble {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  padding: 12px 20px 12px 20px;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(15, 37, 64, 0.3);
  border-left: 3px solid var(--gold);
  text-align: center;
  min-width: 200px;
  white-space: nowrap;
}

.villa-marker-bubble strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--blue-deep);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 3px;
}

.villa-marker-bubble span {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* Arrow points UP toward the tiny dot above */
.villa-marker-bubble::after {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--white);
  filter: drop-shadow(0 -2px 1px rgba(15, 37, 64, 0.15));
}

/* Bump overlays above Leaflet's internal stacking */
.flag-portugal { z-index: 800; }
.map-cta-overlay { z-index: 800; }

@media (max-width: 560px) {
  .villa-marker-bubble { min-width: 0; padding: 10px 16px; }
  .villa-marker-bubble strong { font-size: 15px; }
  .villa-marker-bubble span { font-size: 10px; letter-spacing: 0.18em; }
}

/* Legacy classes (no longer used in HTML, kept for safety) */
.map-pin { display: none; }

.pin-bubble {
  position: relative;
  background: var(--white);
  padding: 16px 28px;
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(15, 37, 64, 0.35);
  border-left: 3px solid var(--gold);
  text-align: center;
  min-width: 240px;
}

.pin-bubble strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--blue-deep);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 6px;
}

.pin-bubble span {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.pin-bubble::after {
  /* arrow removed — bubble is now a corner caption, not a downward pin */
  content: none;
}

.pin-dot {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  z-index: 4;
  box-shadow:
    0 0 0 5px rgba(200, 165, 90, 0.3),
    0 4px 14px rgba(15, 37, 64, 0.4);
  animation: pin-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pin-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 5px rgba(200, 165, 90, 0.3),
      0 4px 14px rgba(15, 37, 64, 0.4);
  }
  50% {
    box-shadow:
      0 0 0 18px rgba(200, 165, 90, 0.08),
      0 4px 14px rgba(15, 37, 64, 0.4);
  }
}

.map-cta-overlay {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  background: var(--white);
  color: var(--blue-deep);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  box-shadow: 0 8px 28px rgba(15, 37, 64, 0.25);
  transition: all 0.3s ease;
  font-weight: 500;
}

.map-cta-overlay:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(15, 37, 64, 0.35);
}

.map-cta-overlay svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s ease;
}

.map-cta-overlay:hover svg { transform: translateX(4px); }

/* POI grid below map */
.location-pois {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 50px;
  border: 1px solid var(--line);
  background: var(--white);
}

/* GPS / getting-here box under the location section */
.directions-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 560px;
  margin: 26px auto 0;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid #e7e9ee;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(15, 39, 64, 0.06);
}
.directions-box > svg { width: 26px; height: 26px; color: var(--gold-dark); flex-shrink: 0; margin-top: 2px; }
.directions-box .dir-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
.directions-box .dir-value { font-family: var(--serif); font-size: 19px; color: var(--blue-deep); text-decoration: none; }
.directions-box .dir-value:hover { color: var(--gold-dark); }
.directions-box .dir-note { margin: 6px 0 0; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

.poi-item {
  padding: 22px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.3s ease;
}

.poi-item:hover { background: var(--off-white); }
.poi-item:nth-child(4n) { border-right: none; }
.poi-item:nth-last-child(-n+4) { border-bottom: none; }

.poi-item svg {
  width: 22px;
  height: 22px;
  color: var(--gold-dark);
  flex-shrink: 0;
  stroke-width: 1.4;
}

.poi-item .poi-name {
  flex: 1;
  font-size: 14px;
  color: var(--blue-deep);
  line-height: 1.3;
}

.poi-item .poi-distance {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--blue-deep);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .location-fullmap { height: 440px; }
  .location-pois { grid-template-columns: repeat(2, 1fr); }
  .poi-item:nth-child(2n) { border-right: none; }
  .poi-item:nth-child(4n) { border-right: 1px solid var(--line); }
  .poi-item:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .poi-item:nth-last-child(-n+2) { border-bottom: none; }
  .pin-bubble { min-width: 200px; padding: 14px 22px; }
  .pin-bubble strong { font-size: 19px; }
  .map-cta-overlay { right: 14px; bottom: 14px; padding: 12px 18px; font-size: 11px; letter-spacing: 0.2em; }
}

@media (max-width: 560px) {
  .location-fullmap { height: 380px; }
  .location-pois { grid-template-columns: 1fr; }
  .poi-item, .poi-item:nth-child(n) { border-right: none; border-bottom: 1px solid var(--line); }
  .poi-item:last-child { border-bottom: none; }
}

/* Summary section: description + sticky booking widget */
.villa-summary {
  padding: 90px 0 60px;
  position: relative;
  background: var(--white);
}

.summary-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 70px;
  align-items: start;
}

.summary-main h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 44px);
  color: var(--blue-deep);
  margin-bottom: 18px;
  line-height: 1.1;
}

.summary-main .summary-eyebrow {
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
}

.summary-main p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 18px;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 30px;
}

.quick-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--blue-deep);
}

.quick-chips .chip svg {
  width: 16px;
  height: 16px;
  color: var(--gold-dark);
  flex-shrink: 0;
}

/* Booking card */
.booking-card {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 28px 26px;
  border-radius: 4px;
  font-family: var(--sans);
}

.booking-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-dark));
}

.booking-card .from {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.booking-card .price-tag {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--blue-deep);
  line-height: 1;
  margin-bottom: 4px;
}

.booking-card .price-tag .small {
  font-size: 15px;
  color: var(--text-muted);
  font-family: var(--sans);
  margin-left: 6px;
}

.booking-card .price-note {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.booking-card .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.booking-card .field label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.booking-card .field input,
.booking-card .field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-size: 15px;
  color: var(--blue-deep);
  font-family: var(--sans);
  transition: border-color 0.3s ease;
}

.booking-card .field input:focus,
.booking-card .field select:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.booking-card .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.booking-card .estimate { display: none; }

.booking-card .nights-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  margin: 6px 0 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.booking-card .nights-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.booking-card .nights-value {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--blue-deep);
}

/* Date input invalid (departure ≤ arrival) — soft warning */
.booking-card .field input:invalid {
  border-bottom-color: #c54444;
}

.booking-card .cta {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--blue-deep);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-family: var(--sans);
  transition: all 0.3s ease;
  text-align: center;
}

.booking-card .cta:hover {
  background: var(--gold);
  letter-spacing: 0.35em;
}

.booking-card .quick-contacts {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}

.booking-card .quick-contacts a {
  flex: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 4px;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
  transition: all 0.3s ease;
  text-align: center;
}

.booking-card .quick-contacts a:hover {
  border-color: var(--gold);
  background: var(--off-white);
  transform: translateY(-1px);
}

.booking-card .quick-contacts svg {
  width: 18px;
  height: 18px;
  color: var(--gold-dark);
  transition: color 0.3s ease;
}

.booking-card .quick-contacts a:hover svg {
  color: var(--gold);
}

/* Mosaic gallery */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 130px;
  grid-auto-flow: dense;
  gap: 12px;
}

.gallery-mosaic .tile {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--cream);
}

.gallery-mosaic .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-mosaic .tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,37,64,0) 50%, rgba(15,37,64,0.4) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-mosaic .tile:hover img { transform: scale(1.08); }
.gallery-mosaic .tile:hover::after { opacity: 1; }

/* Tile spans for asymmetric layout */
.gallery-mosaic .t-feature { grid-column: span 6; grid-row: span 3; }
.gallery-mosaic .t-tall    { grid-column: span 3; grid-row: span 3; }
.gallery-mosaic .t-wide    { grid-column: span 6; grid-row: span 2; }
.gallery-mosaic .t-square  { grid-column: span 3; grid-row: span 2; }
.gallery-mosaic .t-small   { grid-column: span 3; grid-row: span 2; }

/* Horizontal scrolling teaser strip */
.gallery-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 32px 8px;
  margin: 0 -32px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.gallery-strip::-webkit-scrollbar { height: 6px; }
.gallery-strip::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
.gallery-strip::-webkit-scrollbar-track { background: transparent; }

.gallery-strip .frame {
  flex: 0 0 380px;
  aspect-ratio: 4/3;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-strip .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.gallery-strip .frame:hover img { transform: scale(1.06); }

.gallery-strip .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,37,64,0), rgba(15,37,64,0.35));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-strip .frame:hover::after { opacity: 1; }

/* ===== Landing → detail PRELOADER (frosted glass + gold progress bar) ===== */
.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: var(--blue-deep);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-curtain.active { opacity: 1; visibility: visible; pointer-events: auto; }

/* Villa image — frosted (blurred) behind glass while loading */
.page-curtain .curtain-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.18);
  filter: blur(26px) brightness(0.78) saturate(1.05);
  transition: filter 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: filter, transform;
}

/* Frosted-glass sheen layer over the blurred villa */
.page-curtain .curtain-glass {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.03) 40%, rgba(15,37,64,0.25) 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.page-curtain.active .curtain-glass { opacity: 1; }

/* REVEAL: glass dissolves, villa snaps sharp just before navigation */
.page-curtain.revealed .curtain-bg { filter: blur(0) brightness(1) saturate(1); transform: scale(1); }
.page-curtain.revealed .curtain-glass { opacity: 0; }
.page-curtain.revealed .curtain-content { opacity: 0; transform: translateY(-8px); }

/* Centered content: monogram · eyebrow · villa name · progress bar */
.page-curtain .curtain-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.5s ease 0.25s, transform 0.6s ease;
}
.page-curtain.active .curtain-content { opacity: 1; }

.page-curtain .curtain-mark {
  width: 64px; height: 64px; margin-bottom: 22px;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.45));
  animation: mark-pulse 1.8s ease-in-out infinite;
}
.page-curtain .curtain-mark svg { width: 100%; height: 100%; display: block; }
@keyframes mark-pulse { 0%,100% { transform: scale(1); opacity: 0.95; } 50% { transform: scale(1.06); opacity: 1; } }

.page-curtain .curtain-eyebrow {
  font-size: 11px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 10px; opacity: 0.9;
}
.page-curtain .curtain-title {
  font-family: var(--serif); font-size: clamp(30px, 5vw, 52px); line-height: 1.05;
  font-weight: 400; text-shadow: 0 2px 22px rgba(0,0,0,0.5); margin-bottom: 26px;
  text-align: center;
}

/* Thin gold progress bar */
.page-curtain .curtain-progress {
  width: 220px; max-width: 60vw; height: 3px; border-radius: 3px;
  background: rgba(255,255,255,0.22); overflow: hidden;
}
.page-curtain .curtain-progress-fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  border-radius: 3px;
}
.page-curtain.active .curtain-progress-fill {
  animation: curtain-progress 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.2s;
}
@keyframes curtain-progress {
  0%   { width: 0; }
  70%  { width: 82%; }
  100% { width: 100%; }
}

@media (max-width: 600px) {
  .page-curtain .curtain-mark { width: 52px; height: 52px; margin-bottom: 16px; }
}

/* ===== Hero entrance animation (detail page) ===== */
.villa-hero.entrance .villa-hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.villa-hero.entrance .villa-hero-content > *:nth-child(1) { animation-delay: 0.15s; }
.villa-hero.entrance .villa-hero-content > *:nth-child(2) { animation-delay: 0.3s; }
.villa-hero.entrance .villa-hero-content > *:nth-child(3) { animation-delay: 0.45s; }

@keyframes hero-rise {
  to { opacity: 1; transform: translateY(0); }
}

.villa-hero.entrance .hero-strip {
  opacity: 0;
  animation: strip-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s forwards;
}

@keyframes strip-rise {
  to { opacity: 1; }
}

/* ===== Count-up animation accent on facts ===== */
.fact-value { transition: color 0.4s ease; }
.fact.live .fact-value { color: var(--gold-dark); }

/* ===== Compact section overrides ===== */
section.block { padding: 90px 0; }
.section-head { margin-bottom: 50px; }

/* ===== Hide v1 description block (replaced by summary-grid) ===== */
.legacy-description { display: none; }

/* Responsive layout */
@media (max-width: 980px) {
  .summary-grid { grid-template-columns: 1fr; gap: 50px; }
  .booking-card { position: relative; top: 0; }
  .gallery-mosaic { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 110px; }
  .gallery-mosaic .t-feature { grid-column: span 6; grid-row: span 3; }
  .gallery-mosaic .t-tall    { grid-column: span 3; grid-row: span 3; }
  .gallery-mosaic .t-wide    { grid-column: span 6; grid-row: span 2; }
  .gallery-mosaic .t-square,
  .gallery-mosaic .t-small   { grid-column: span 3; grid-row: span 2; }
  .villa-hero { height: 60vh; min-height: 420px; }
  .hero-strip { padding: 60px 16px 16px; font-size: 11px; gap: 10px; }
  .hero-strip .chip { padding: 6px 12px; }
}

@media (max-width: 560px) {
  .gallery-strip .frame { flex-basis: 280px; }
  .gallery-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .gallery-mosaic .t-feature,
  .gallery-mosaic .t-tall,
  .gallery-mosaic .t-wide,
  .gallery-mosaic .t-square,
  .gallery-mosaic .t-small { grid-column: span 2; grid-row: span 2; }
}


/* =====================================================================
   BOOKING SYSTEM — jacuzzi toggle, checkout modal, legal, flatpickr
   ===================================================================== */

/* Flatpickr field look (matches booking card inputs) */
.booking-card .fp-date {
  cursor: pointer;
  background: transparent;
}
.flatpickr-input[readonly] { cursor: pointer; }
.booking-card input.form-control,
.booking-card .fp-date.input { width: 100%; }

/* =========  Serious, SQUARE calendar theme (all 3 calendars)  ========= */
.flatpickr-calendar { border-radius: 6px; }
.flatpickr-calendar.open {
  box-shadow: 0 16px 48px rgba(15, 39, 64, 0.18);
  border-radius: 6px;
}
/* Month + year in an elegant serif */
.flatpickr-current-month,
.flatpickr-current-month input.cur-year,
.flatpickr-current-month .flatpickr-monthDropdown-months {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--blue-deep);
}
.flatpickr-months .flatpickr-month { color: var(--blue-deep); }
/* Weekday labels — uppercase, muted */
.flatpickr-weekday {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8a93a0;
}
/* Day cells — SQUARE, clean tabular numbers, light grid */
.flatpickr-day {
  height: 44px;
  line-height: 44px;
  border-radius: 2px;
  border: 1px solid #eef1f4;
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--blue-deep);
}
.flatpickr-day:hover { background: #f4f1ea; border-color: #e7e2d4; }
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay { color: #c2c8d0; border-color: #f1f3f5; }
/* Selected range — SQUARE gold */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  border-radius: 2px;
}
.flatpickr-day.inRange {
  background: rgba(200, 165, 90, 0.16);
  border-color: rgba(200, 165, 90, 0.16);
  box-shadow: none;
  border-radius: 0;
}
.flatpickr-day.today { border-color: var(--gold); }
.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg { width: 15px; height: 15px; }
/* Booked / unavailable — solid RED square, not clickable */
.flatpickr-day.cal-booked,
.flatpickr-day.cal-booked:hover {
  color: #fff !important;
  background: #b23b37 !important;
  border-color: #a8332f !important;
  border-radius: 2px !important;
  text-decoration: none;
  opacity: 1;
  cursor: not-allowed;
}
/* Past / out-of-range days stay subtle grey (default) — only booked is red */

/* Legend appended under the calendar */
.fp-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 8px 8px;
  margin-top: 2px;
  border-top: 1px solid #eef0f3;
  font-size: 13px;
  color: var(--blue-deep);
}
.fp-legend span.dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  vertical-align: -2px;
  margin-right: 6px;
}
.fp-legend .dot-booked { background: #d64541; }
.fp-legend .dot-free { background: #fff; border: 1.5px solid #d9dee4; }

/* Inline, always-visible calendar inside the booking card */
.bc-cal-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin: 8px 0 8px;
}
.bc-calendar { display: flex; justify-content: center; margin: 0 0 16px; }
.bc-calendar .flatpickr-calendar.inline {
  box-shadow: 0 6px 22px rgba(15, 39, 64, 0.08);
  border: 1px solid #eceef2;
  border-radius: 12px;
  width: 100%;
  max-width: 330px;
}
.bc-calendar .flatpickr-rContainer,
.bc-calendar .flatpickr-days,
.bc-calendar .flatpickr-weekdays { width: 100% !important; }
.bc-calendar .dayContainer {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

/* Read-only overview calendar in the checkout */
/* Checkout overview calendar — flatpickr renders as SIBLING of .co-calendar,
   so target .co-calcard (their shared parent). */
.co-calcard .co-calendar { display: none; } /* hidden flatpickr input stub */
.co-calcard { text-align: center; }
.co-calcard .flatpickr-calendar.inline {
  display: inline-block;
  box-shadow: none;
  border: 1px solid #eceef2;
  border-radius: 8px;
  width: 100% !important;
  max-width: 360px;
  margin: 6px auto 0;
}
.co-calcard .flatpickr-rContainer,
.co-calcard .flatpickr-days,
.co-calcard .flatpickr-weekdays { width: 100% !important; }
.co-calcard .flatpickr-days .dayContainer {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
.co-calcard .flatpickr-day { pointer-events: none; max-width: none; } /* overview only */
.co-cal-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--blue-deep);
}
.co-cal-legend .dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  vertical-align: -2px;
  margin-right: 6px;
}
.co-cal-legend .dot-booked { background: #d64541; }
.co-cal-legend .dot-stay { background: var(--gold); }

/* BIG always-visible availability calendar (Verfügbarkeit section).
   IMPORTANT: flatpickr renders the calendar as a SIBLING of .avail-calendar
   (both inside .calendar-slot), so size via .calendar-slot, not .avail-calendar.
   Full width of the section, two months side by side on desktop. */
.calendar-slot { display: block; }
.calendar-slot .avail-calendar { display: none; } /* hidden flatpickr input stub */
.calendar-slot .flatpickr-calendar.inline {
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto;
  box-shadow: 0 12px 44px rgba(15, 39, 64, 0.10);
  border: 1px solid #e7e9ee;
  border-radius: 8px;
  padding: 16px 18px 8px;
}
/* Stretch the inner containers and split evenly across the months */
.calendar-slot .flatpickr-innerContainer,
.calendar-slot .flatpickr-rContainer { width: 100% !important; }
.calendar-slot .flatpickr-days { width: 100% !important; display: flex; }
.calendar-slot .flatpickr-days .dayContainer {
  flex: 1 1 0;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}
.calendar-slot .flatpickr-weekdays { width: 100% !important; display: flex; }
.calendar-slot .flatpickr-weekdaycontainer { flex: 1 1 0; }
.calendar-slot .flatpickr-day {
  height: 66px;
  line-height: 66px;
  font-size: 16.5px;
  border-radius: 2px;
  max-width: none !important;
}
.calendar-slot .flatpickr-weekday { font-size: 12px; }
.calendar-slot .fp-legend { font-size: 14px; padding: 16px 8px 8px; }
/* On phones: one month, still full width */
@media (max-width: 640px) {
  .calendar-slot .flatpickr-day { height: 50px; line-height: 50px; }
}

/* Jacuzzi toggle (Boa Vida) */
.jacuzzi-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 18px;
  padding: 14px 16px;
  border: 1.5px solid var(--gold);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(200,165,90,0.06), rgba(200,165,90,0.02));
  cursor: pointer;
  transition: all 0.25s ease;
}
.jacuzzi-toggle:hover { background: rgba(200,165,90,0.1); }
.jacuzzi-toggle input { position: absolute; opacity: 0; }
.jacuzzi-box {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border: 1.5px solid var(--gold);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  transition: all 0.2s ease;
}
.jacuzzi-box svg { width: 16px; height: 16px; color: var(--white); opacity: 0; transition: opacity 0.2s ease; }
.jacuzzi-toggle input:checked + .jacuzzi-box { background: var(--gold); }
.jacuzzi-toggle input:checked + .jacuzzi-box svg { opacity: 1; }
.jacuzzi-label { display: flex; flex-direction: column; gap: 2px; }
.jacuzzi-label strong { font-size: 14px; color: var(--blue-deep); font-weight: 600; }
.jacuzzi-price { font-size: 13px; color: var(--gold-dark); font-weight: 600; }

/* ====================== CHECKOUT MODAL ====================== */
.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200; /* above cookie banner (600) and everything else */
  background: rgba(10, 26, 46, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.checkout-overlay.open { display: flex; }

.checkout-panel {
  position: relative;
  background: var(--white);
  width: 100%;
  max-width: 920px;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(15, 37, 64, 0.4);
  animation: co-rise 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes co-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.checkout-close {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 5;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue-deep);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.checkout-close:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }

.checkout-scroll { padding: 40px; }

.checkout-head { margin-bottom: 28px; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.checkout-eyebrow { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px; }
.checkout-villa { font-family: var(--serif); font-size: 32px; color: var(--blue-deep); margin-bottom: 10px; }
.checkout-dates { font-size: 15px; color: var(--text); }
.checkout-dates .co-nights { color: var(--text-muted); }
.checkout-times { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 14px; background: var(--off-white); border-radius: 999px; font-size: 12.5px; color: var(--blue-deep); }
.checkout-times svg { width: 15px; height: 15px; color: var(--gold-dark); flex-shrink: 0; }

.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }

.co-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 24px;
  margin-bottom: 18px;
}
.co-card h3 { font-family: var(--serif); font-size: 18px; color: var(--blue-deep); margin-bottom: 16px; }

.co-rows { display: flex; flex-direction: column; gap: 12px; }
.co-row { display: flex; justify-content: space-between; font-size: 15px; color: var(--text); }
.co-row-total { padding-top: 14px; margin-top: 4px; border-top: 2px solid var(--gold); font-family: var(--serif); font-size: 20px; color: var(--blue-deep); }
.co-row-total span:last-child { font-weight: 500; }
.co-row-deposit { color: var(--text-muted); padding-top: 12px; margin-top: 6px; border-top: 1px dashed var(--line); }
.co-row-note { color: var(--text-muted); font-size: 11.5px; line-height: 1.5; }

.co-deposit { display: flex; gap: 16px; align-items: flex-start; background: var(--off-white); }
.co-deposit-icon { flex-shrink: 0; color: var(--gold-dark); }
.co-deposit-icon svg { width: 28px; height: 28px; }
.co-deposit strong { display: block; color: var(--blue-deep); font-size: 15px; margin-bottom: 6px; }
.co-deposit p { font-size: 13px; line-height: 1.6; color: var(--text-muted); }

.co-included { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-included li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--blue-deep); }
.co-included svg { width: 18px; height: 18px; color: var(--gold-dark); flex-shrink: 0; }

.co-policy summary {
  cursor: pointer; font-family: var(--serif); font-size: 18px; color: var(--blue-deep);
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.co-policy summary::after { content: "+"; font-size: 22px; color: var(--gold-dark); }
.co-policy[open] summary::after { content: "−"; }
.co-policy summary::-webkit-details-marker { display: none; }
.co-policy-body { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.co-policy-body p { font-size: 13px; line-height: 1.6; color: var(--text); }
.co-policy-body strong { color: var(--blue-deep); }
.co-policy-body .co-note { color: var(--text-muted); font-style: italic; }

/* Side pay card */
.checkout-side { position: sticky; top: 0; }
.co-pay { box-shadow: var(--shadow-sm); }
.co-total-line { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.co-total-line span { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.co-total { font-family: var(--serif); font-size: 30px; color: var(--blue-deep); }
.co-total-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }

.co-fields { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.co-fields label { display: flex; flex-direction: column; gap: 6px; }
.co-fields label span { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-dark); }
.co-fields input {
  border: none; border-bottom: 1px solid var(--line); padding: 8px 0;
  font-size: 15px; font-family: var(--sans); color: var(--blue-deep); background: transparent;
}
.co-fields input:focus { outline: none; border-bottom-color: var(--gold); }

.co-paybtn {
  width: 100%; padding: 16px; background: var(--blue-deep); color: var(--white);
  border: none; cursor: pointer; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  font-family: var(--sans); display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all 0.3s ease;
}
.co-paybtn:hover { background: var(--gold); }
.co-paybtn svg { width: 20px; height: 20px; }

.co-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 12px; color: var(--text-muted); }
.co-secure svg { width: 15px; height: 15px; color: var(--gold-dark); }
.co-legal { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 10.5px; line-height: 1.5; color: var(--text-muted); text-align: center; }

@media (max-width: 760px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-scroll { padding: 28px 20px; }
  .checkout-villa { font-size: 26px; }
  .co-included { grid-template-columns: 1fr; }
  .checkout-side { position: static; }
}

/* ====================== LEGAL SECTION ====================== */
.legal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.legal-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 28px 26px; }
.legal-card h3 { font-family: var(--serif); font-size: 20px; color: var(--blue-deep); margin-bottom: 18px; }
.legal-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.legal-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--blue-deep); }
.legal-list svg { width: 18px; height: 18px; color: var(--gold-dark); flex-shrink: 0; }
.legal-deposit, .legal-jacuzzi { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.55; color: var(--text-muted); padding-top: 14px; border-top: 1px solid var(--line); margin-top: 6px; }
.legal-jacuzzi { border-top: none; padding-top: 0; }
.legal-deposit svg, .legal-jacuzzi svg { width: 20px; height: 20px; color: var(--gold-dark); flex-shrink: 0; }
.legal-policy { display: flex; flex-direction: column; gap: 12px; }
.legal-policy p { font-size: 13.5px; line-height: 1.6; color: var(--text); }
.legal-policy strong { color: var(--blue-deep); }
.legal-policy .co-note { color: var(--text-muted); font-style: italic; }
.legal-imprint .legal-reg { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.legal-imprint .legal-reg strong { font-family: var(--serif); font-size: 22px; letter-spacing: 0; text-transform: none; color: var(--blue-deep); }
.legal-resp { font-size: 14px; line-height: 1.9; color: var(--text); }
.footer-reg { font-size: 12px; color: rgba(255,255,255,0.5); letter-spacing: 0.05em; margin-top: 6px; }

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

/* Expanded checkout form */
.co-section-label { font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-dark); margin: 6px 0 14px; font-weight: 600; }
.co-field-row { display: flex; gap: 12px; }
.co-field-row > label { flex: 1; }
.co-field-row .co-narrow { flex: 0 0 38%; }
.co-field-row .co-grow { flex: 1; }
.co-fields select,
.co-fields textarea {
  border: none; border-bottom: 1px solid var(--line); padding: 8px 0;
  font-size: 15px; font-family: var(--sans); color: var(--blue-deep); background: transparent;
  width: 100%; resize: vertical;
}
.co-fields select:focus, .co-fields textarea:focus { outline: none; border-bottom-color: var(--gold); }
.co-fields textarea { border: 1px solid var(--line); border-radius: 4px; padding: 10px; }

.co-terms {
  display: flex; align-items: flex-start; gap: 11px; margin: 4px 0 18px; cursor: pointer;
  font-size: 13px; line-height: 1.5; color: var(--text);
}
.co-terms input { position: absolute; opacity: 0; }
.co-terms-box {
  flex-shrink: 0; width: 22px; height: 22px; border: 1.5px solid var(--gold); border-radius: 5px;
  display: flex; align-items: center; justify-content: center; background: var(--white); transition: all 0.2s ease;
}
.co-terms-box svg { width: 14px; height: 14px; color: var(--white); opacity: 0; transition: opacity 0.2s ease; }
.co-terms input:checked + .co-terms-box { background: var(--gold); }
.co-terms input:checked + .co-terms-box svg { opacity: 1; }
.co-terms-text a { color: var(--gold-dark); text-decoration: underline; }
.co-terms-text a:hover { color: var(--gold); }

/* ====================== LEGAL PAGES (impressum / privacy / terms) ====================== */
.legal-page { padding: 140px 0 90px; background: var(--white); min-height: 70vh; }
.legal-page .container { max-width: 860px; }
.legal-page h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 52px); color: var(--blue-deep); margin-bottom: 12px; }
.legal-page .lp-eyebrow { font-size: 12px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 16px; }
.legal-page h2 { font-family: var(--serif); font-size: 24px; color: var(--blue-deep); margin: 44px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-page h3 { font-size: 16px; color: var(--blue-deep); margin: 24px 0 8px; font-weight: 600; }
.legal-page p, .legal-page li { font-size: 15px; line-height: 1.8; color: var(--text); margin-bottom: 14px; }
.legal-page ul { padding-left: 22px; margin-bottom: 14px; }
.legal-page a { color: var(--gold-dark); text-decoration: underline; }
.legal-page .lp-lead { font-size: 17px; color: var(--text-muted); margin-bottom: 30px; }

/* Owner cards in impressum */
.owners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin: 30px 0 10px; }
.owner-card { text-align: center; }
.owner-photo {
  width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px;
  border: 3px solid var(--gold-light); box-shadow: var(--shadow-md); background: var(--cream);
  display: flex; align-items: center; justify-content: center;
}
.owner-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.owner-photo .ph-icon { color: var(--gold); width: 60px; height: 60px; }
.owner-card .owner-name { font-family: var(--serif); font-size: 20px; color: var(--blue-deep); margin-bottom: 4px; }
.owner-card .owner-role { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-dark); }

.imprint-box { background: var(--off-white); border: 1px solid var(--line); border-radius: 6px; padding: 28px 30px; margin: 20px 0; }
.imprint-box p { margin-bottom: 6px; }

/* Footer legal links */
.footer-links { margin: 18px 0 6px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.footer-links a { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.7); transition: color 0.3s ease; }
.footer-links a:hover { color: var(--gold-light); }

/* Booking card cancellation/payment line */
.booking-cancel {
  display: flex; align-items: flex-start; gap: 8px;
  margin: -6px 0 18px; padding: 10px 12px;
  background: rgba(200,165,90,0.08); border-radius: 5px;
  font-size: 12px; line-height: 1.5; color: var(--blue-deep);
}
.booking-cancel svg { width: 15px; height: 15px; color: var(--gold-dark); flex-shrink: 0; margin-top: 1px; }

/* Landing footer registration line */
.landing-reg { font-size: 11px; color: rgba(255,255,255,0.55); letter-spacing: 0.08em; margin-top: 8px; }

/* ============================================================
   Cookie consent banner + honeypot
   ============================================================ */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 24px; margin: 0 auto;
  z-index: 600; max-width: 720px;
  display: flex; align-items: center; gap: 24px;
  padding: 20px 26px;
  background: var(--white);
  border-top: 2px solid var(--gold);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(15,37,64,0.22), 0 2px 8px rgba(15,37,64,0.10);
  animation: cookie-slide-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.dismissed { transform: translateY(180%); opacity: 0; pointer-events: none; }

@keyframes cookie-slide-up {
  from { transform: translateY(180%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.cookie-banner p { margin: 0; flex: 1; font-size: 13px; line-height: 1.6; color: var(--blue-deep); }
.cookie-banner a { color: var(--gold-dark); text-decoration: underline; white-space: nowrap; }

.cookie-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }

.cookie-accept {
  background: var(--gold); color: var(--white);
  border: none; border-radius: 4px; cursor: pointer;
  padding: 12px 26px; font-family: var(--sans);
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background 0.3s ease;
}
.cookie-accept:hover { background: var(--gold-dark); }

@media (max-width: 600px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 18px; }
  .cookie-banner p { font-size: 12.5px; }
  .cookie-actions { flex-direction: column; gap: 10px; }
  .cookie-accept { width: 100%; min-height: 48px; }
  .cookie-actions a { text-align: center; padding: 6px; }
}

/* Honeypot — visually hidden anti-spam field */
.hp-field {
  position: absolute; left: -9999px;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

/* =====================================================================
   MOBILE-FIRST REFINEMENT LAYER  (elite-frontend-ux rules)
   Appended last so it wins the cascade. Desktop untouched.
   ===================================================================== */

/* iOS: inputs must be >=16px or Safari zooms in on focus */
@media (max-width: 768px) {
  input, select, textarea,
  .co-fields input, .co-fields select, .co-fields textarea,
  .booking-card .field input, .booking-card .field select,
  .booking-card .fp-date { font-size: 16px !important; }
}

@media (max-width: 768px) {
  /* ---- Touch targets: min 44px on every interactive element ---- */
  .lang-toggle { min-height: 44px; }
  .lang-menu button { min-height: 44px; }
  .nav-back { min-height: 44px; display: inline-flex; align-items: center; }
  .cta, .co-paybtn, .btn-primary, .cookie-accept,
  .map-cta-overlay, .btn-link, .gallery-toggle .btn-link { min-height: 48px; }
  .quick-contacts a { min-height: 56px; }

  /* Hero dots: small, subtle thin lines on mobile (no big gold box) */
  .hero-dots { gap: 7px; bottom: 16px; }
  .hero-dots button { width: 16px; height: 3px; border-radius: 2px; padding: 0; background: rgba(255,255,255,0.5); }
  .hero-dots button.active { width: 26px; height: 3px; background: var(--gold-light); }
  .hero-dots button::after { content: none; }

  /* ---- Full-width primary buttons ---- */
  .cta, .co-paybtn, .btn-primary { width: 100%; }

  /* ---- Typography (mobile clamps) ---- */
  .villa-hero-title { font-size: clamp(2rem, 9vw, 3rem); }
  .choice-title { font-size: clamp(2.2rem, 12vw, 3.4rem); }
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.2; }
  .checkout-villa { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .legal-page h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  body { line-height: 1.65; }

  /* ---- Spacing: 48px 16px sections, comfortable cards ---- */
  section.block, .villa-summary { padding: 48px 0; }
  .container { padding: 0 16px; }
  .co-card, .legal-card { padding: 18px 16px; }

  /* ---- Stack everything to one column ---- */
  .summary-grid, .description, .location, .booking-form { grid-template-columns: 1fr; }

  /* ---- Booking card: full width, generous spacing ---- */
  .booking-card { padding: 22px 18px; }

  /* ---- Hide purely decorative bits on mobile ---- */
  .scroll-hint, .description-img::before { display: none; }
}

/* ============ CHECKOUT = FULL-SCREEN PAGE on mobile (clean, serious) ============ */
@media (max-width: 768px) {
  .checkout-overlay { align-items: stretch; justify-content: stretch; padding: 0; background: var(--white); backdrop-filter: none; overflow: hidden; }
  .checkout-panel {
    max-width: 100%; width: 100%;
    min-height: 100%;
    border-radius: 0;
    box-shadow: none;
    animation: co-page-in 0.28s ease;
    display: flex; flex-direction: column;
  }
  @keyframes co-page-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
  /* Fixed top bar with the close button; content scrolls beneath it */
  .checkout-scroll {
    padding: 64px 18px calc(36px + env(safe-area-inset-bottom));
    height: 100vh; height: 100dvh;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .checkout-panel::before { display: none; } /* no grab handle on a full page */
  .checkout-close {
    position: fixed; top: 12px; right: 14px; width: 42px; height: 42px;
    background: var(--white); box-shadow: 0 2px 10px rgba(15,37,64,0.12); z-index: 10;
  }
  .checkout-head { margin-bottom: 22px; }
  /* Kill any horizontal overflow — everything fits the screen width.
     min-width:0 on grid/flex children is the key: their default min-width:auto
     (= min-content) lets long price text expand the track past the viewport. */
  .checkout-overlay, .checkout-panel, .checkout-scroll { max-width: 100vw; overflow-x: hidden; }
  .checkout-grid { grid-template-columns: 1fr; gap: 16px; width: 100%; min-width: 0; }
  .checkout-main, .checkout-side { min-width: 0; max-width: 100%; }
  .co-card, .co-pay { box-sizing: border-box; max-width: 100%; min-width: 0; }
  .co-row { gap: 12px; }
  .co-row span { min-width: 0; }
  .co-total-sub { white-space: normal; overflow-wrap: anywhere; }
  .co-included { grid-template-columns: 1fr; }
  .co-field-row { flex-direction: column; gap: 14px; }
  .co-field-row .co-narrow, .co-field-row .co-grow { flex: 1 1 auto; }
  .checkout-side { position: static; }
}

/* ============ COOKIE BANNER on mobile ============ */
@media (max-width: 600px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; width: auto; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  .cookie-actions { flex-direction: column; gap: 10px; }
  .cookie-accept { width: 100%; min-height: 48px; }
  .cookie-actions a { text-align: center; padding: 8px; }
}

/* ============ NAV / LANG SWITCHER on small screens (no overlap) ============ */
@media (max-width: 600px) {
  /* Villa-page nav: brand + back-arrow + lang on ONE row, never overlapping */
  .site-nav { padding: 10px 12px; gap: 8px; flex-wrap: nowrap; align-items: center; }
  .site-nav .brand { font-size: 14px; letter-spacing: 0.1em; white-space: nowrap; }
  .site-nav .nav-back { margin-left: auto; flex-shrink: 0; }
  .nav-back span { display: none; }            /* arrow only on mobile */
  .lang-switcher { flex-shrink: 0; }
  .lang-toggle { padding: 6px 9px 6px 8px; gap: 6px; min-height: 40px; }
  .lang-toggle .lang-flag { width: 18px; }
  .lang-toggle .lang-code { font-size: 11px; }
  .lang-menu { position: fixed; left: 8px; right: 8px; top: 58px; min-width: 0; max-height: 70vh; }

  /* Landing header: left-align brand (lang switcher is absolute top-right) → no overlap */
  .landing-body .landing-header { padding: 16px 14px; justify-content: flex-start; }
  .landing-body .brand { font-size: 16px; letter-spacing: 0.14em; white-space: nowrap; }
  .landing-body .lang-switcher { top: 12px; right: 10px; }

  /* Declutter hero photos on mobile: show the image, keep only the villa name (+ Discover).
     Removes the long subtitle that was covering the whole picture, and the eyebrow
     that overlapped the brand logo. */
  .choice-eyebrow { display: none; }
  .choice-subtitle { display: none; }
  .villa-hero-eyebrow { display: none; }
  .villa-hero-sub { display: none; }
  .choice-content { gap: 18px; }
  /* Remove the "Algarve · Portugal — choose your villa" line over the image */
  .landing-footer { display: none; }
}

/* ============ Reduce motion intensity on mobile ============ */
@media (max-width: 768px) {
  .choice-slideshow .slide, .villa-hero-slideshow .slide { transition: opacity 1.2s ease; transform: none !important; }
  .flag-portugal { width: 96px; }
}

/* ============ Respect prefers-reduced-motion (accessibility) ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .page-curtain { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .choice-slideshow .slide, .villa-hero-slideshow .slide { transform: none !important; }
}

/* ====================== CHECKOUT — THANK-YOU CONFIRMATION ====================== */
.checkout-confirm[hidden] { display: none; }
.checkout-confirm {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 60px 36px 56px; max-width: 560px; margin: 0 auto; min-height: 60vh;
  justify-content: center;
}
.checkout-confirm .cc-icon {
  width: 84px; height: 84px; border-radius: 50%;
  background: rgba(200,165,90,0.12); color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 26px;
  animation: cc-pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.checkout-confirm .cc-icon svg { width: 44px; height: 44px; }
@keyframes cc-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.checkout-confirm h2 { font-family: var(--serif); font-size: clamp(26px, 4vw, 38px); color: var(--blue-deep); margin-bottom: 18px; }
.checkout-confirm .cc-villa { font-family: var(--serif); font-size: 20px; color: var(--blue-deep); margin-bottom: 4px; }
.checkout-confirm .cc-dates { font-size: 15px; color: var(--text-muted); margin-bottom: 22px; }
.checkout-confirm .cc-total-line {
  display: flex; align-items: baseline; gap: 14px; justify-content: center;
  padding: 16px 28px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 8px;
}
.checkout-confirm .cc-total-line span { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); }
.checkout-confirm .cc-total-line strong { font-family: var(--serif); font-size: 24px; color: var(--blue-deep); }
.checkout-confirm .cc-note { font-size: 15px; line-height: 1.7; color: var(--text); max-width: 420px; margin-bottom: 10px; }
.checkout-confirm .cc-mailrow { font-size: 14px; color: var(--text-muted); margin-bottom: 30px; }
.checkout-confirm .cc-mailrow strong { color: var(--gold-dark); }
.checkout-confirm .cc-close-btn {
  padding: 15px 44px; background: var(--blue-deep); color: var(--white); border: none; cursor: pointer;
  font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; font-family: var(--sans);
  transition: background 0.3s ease; min-height: 48px;
}
.checkout-confirm .cc-close-btn:hover { background: var(--gold); }
@media (max-width: 600px) {
  .checkout-confirm { padding: 80px 20px 40px; min-height: 80vh; }
  .checkout-confirm .cc-close-btn { width: 100%; }
}
