/* Villa Oliva — site styles (from the "Villa Oliva" design canvas) */

/* Fonts, hosted on this site (no requests to Google Fonts).
   Latin character set: covers English, Spanish, French and German.
   Fraunces is a variable font limited to weights 500-600 (italic 500) with
   its "SOFT" axis fixed at 100; Manrope covers weights 400-700.
   Files are named with a content hash, so they can be cached for a year. */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/fraunces-italic-latin.b6bad967.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin.5097cb69.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin.8bd97e6b.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #EEF4F7;
  --band: #DCEAF1;
  --card: #FAFCFD;
  --chip: #E4EFF4;
  --photo-bg: #D3E2EA;
  --line: #D3E2EA;
  --line-soft: #D9E6ED;
  --line-blue: #C9DCE7;
  --pill-border: #A9C3D1;
  --ink: #14283A;
  --ink-2: #2F4558;
  --muted: #4A6275;
  --accent: #1C5D8A;
  --accent-dark: #0F3550;
  --blue: #2A6F9E;
  --olive: #5B6B3A;
  --sand: #E9C9A8;
  --peach: #F2C79F;
  --dark: #0F3550;
  --video-bg: #0A2638;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

img, video { display: block; max-width: 100%; }
/* <picture> only chooses the file; the <img> inside is styled as if it were a direct child. */
picture { display: contents; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

ul { margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }

.serif { font-family: var(--serif); font-variation-settings: 'SOFT' 100, 'WONK' 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.small-15 { font-size: 15px; }
.strong { font-weight: 600; }
.lead { font-size: 18px; color: var(--ink-2); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

.stack-10 { display: flex; flex-direction: column; gap: 10px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.stack-28 { display: flex; flex-direction: column; gap: 28px; }
.stack-40 { display: flex; flex-direction: column; gap: 40px; }
.stack-48 { display: flex; flex-direction: column; gap: 48px; }

.section { padding: 96px 0; }
.section-band { background: var(--band); }
.section-dark { background: var(--dark); color: var(--bg); }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.eyebrow-sand { color: var(--sand); }

.h2 { font-weight: 600; font-size: clamp(34px, 3.8vw, 50px); line-height: 1.1; letter-spacing: -0.005em; }
.h2-sm { font-weight: 600; font-size: 30px; line-height: 1.15; }
.h3 { font-weight: 600; font-size: 26px; line-height: 1.2; }
.h3-sm { font-weight: 600; font-size: 22px; line-height: 1.2; }

.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 22px; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-lg { padding: 14px 26px; }
.btn-primary { background: var(--accent); color: #fff; border: 1.5px solid var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light { border: 1.5px solid var(--card); color: var(--card); font-weight: 700; }
.btn-outline-light:hover { background: var(--card); color: var(--dark); }
.btn-light { background: var(--card); color: var(--dark); border: 1.5px solid var(--card); font-weight: 700; }
.btn-light:hover { background: #fff; color: var(--dark); }
.btn-header { padding: 10px 20px; }

/* Header */
.site-header { border-bottom: 3px solid var(--line); position: relative; z-index: 10; }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 16px; padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { flex-shrink: 0; }
.brand-name { font-size: 27px; font-weight: 600; letter-spacing: -0.01em; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 15px; font-weight: 500; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; color: var(--ink); text-decoration: none; }
.nav-link:hover { color: var(--accent); }

/* Language menu */
.lang { position: relative; }
.lang-button {
  min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
  border-radius: 999px; border: 1.5px solid var(--pill-border); background: transparent; color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.lang-button:hover { border-color: var(--accent); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 200px; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 14px 36px rgba(15, 53, 80, 0.16);
  display: flex; flex-direction: column; gap: 2px;
}
.lang-option {
  min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
}
.lang-option:hover { background: var(--chip); color: var(--ink); }
.lang-option[aria-current="true"] { background: var(--chip); font-weight: 700; }
.lang-code { width: 26px; font-size: 13px; letter-spacing: 0.06em; color: var(--muted); }
.lang-name { flex-grow: 1; }
.lang-check { color: var(--accent); }

/* Home: hero */
.hero { padding: 56px 0 96px; }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 1.25 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
/* Short slogan, shown large on two lines on desktop
   ("Slow days / in the sun.", "Días sin prisa / bajo el sol.") */
.hero-title {
  font-weight: 600; font-size: clamp(44px, 5.2vw, 72px); line-height: 1.06; letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero-title em { font-style: italic; font-weight: 500; color: var(--blue); white-space: nowrap; }
.hero-title .nobr { white-space: nowrap; }
.hero-lead { max-width: 500px; font-size: 18px; color: var(--muted); }
.hero-copy .btn-row { padding-top: 8px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 32px; padding-top: 24px; margin-top: 8px; border-top: 1px solid var(--line);
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats dt { font-size: 30px; line-height: 1.1; }
.hero-stats dd { font-size: 14px; color: var(--muted); }
.hero-photos {
  flex: 1 1 500px; min-width: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 250px 250px; gap: 14px;
}
.hero-photo { border-radius: 20px; overflow: hidden; background: var(--photo-bg); }
.hero-photo img, .mosaic img, .gallery-item img, .captioned-photo img, .outside-photo img, .other-villa-photo img, .villa-card-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-photo-main { grid-column: span 2; grid-row: span 2; border-radius: 28px 28px 28px 140px; }
.hero-photo-corner { border-radius: 20px 20px 90px 20px; }

/* Home: villa cards */
.villa-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 32px; }
.villa-card { background: var(--card); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.villa-card-photo { display: block; height: 360px; background: var(--photo-bg); }
.villa-card-body { padding: 32px; display: flex; flex-direction: column; gap: 20px; flex-grow: 1; }
.villa-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.villa-card-title { font-weight: 600; font-size: 36px; line-height: 1.1; }
.villa-card-title a { color: inherit; text-decoration: none; }
.villa-card-title a:hover { color: var(--accent); }
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px;
  padding: 16px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.facts li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.facts svg, .amenities svg, .kitchen-list svg, .check-list svg { color: var(--accent); flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 14px; border-radius: 999px; background: var(--chip); font-size: 14px; }
.villa-card-actions { margin-top: auto; padding-top: 8px; }

/* Home: gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  min-height: 44px; padding: 10px 20px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; background: transparent; color: var(--ink); border: 1.5px solid var(--pill-border);
}
.filter:hover { border-color: var(--accent); }
.filter[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-rows: 230px; gap: 14px; }
.gallery-item { position: relative; border-radius: 20px; overflow: hidden; background: var(--photo-bg); }
.gallery-item.is-tall { grid-row: span 2; }
.photo-tag {
  position: absolute; left: 12px; bottom: 12px; padding: 4px 12px; border-radius: 999px;
  background: rgba(250, 252, 253, 0.92); color: var(--ink); font-size: 13px; font-weight: 600;
}

/* Home: video tours (tabs switch between villas) */
.stack-32 { display: flex; flex-direction: column; gap: 32px; }
.tours-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.tour-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tour-tab {
  min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  background: transparent; color: var(--bg); border: 1.5px solid rgba(238, 244, 247, 0.35);
  transition: background-color .15s, color .15s, border-color .15s;
}
.tour-tab:hover { border-color: var(--bg); }
.tour-tab[aria-selected="true"] { background: var(--bg); color: var(--dark); border-color: var(--bg); }
.tour-tab:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }
.tour-panel + .tour-panel { margin-top: 24px; }
.video-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.video-copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.video-copy .btn { align-self: flex-start; margin-top: 8px; }
.video-text { color: #C9DCE7; max-width: 420px; }
.video-frame { flex: 2 1 560px; min-width: 0; }
.video { width: 100%; aspect-ratio: 16 / 9; background: var(--video-bg); object-fit: cover; border-radius: 24px; }
.video-md { border-radius: 20px; }

/* Home: contact */
.contact-card {
  background: var(--blue); color: var(--card); border-radius: 32px; padding: clamp(32px, 5vw, 64px);
  display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start;
}
.contact-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-title { font-weight: 600; font-size: clamp(36px, 4vw, 54px); line-height: 1.08; letter-spacing: -0.005em; }
.contact-title em { font-style: italic; font-weight: 500; color: var(--peach); }
.contact-text { max-width: 440px; color: #E8F1F7; }
.contact-phone { font-size: clamp(28px, 3vw, 40px); color: #fff; text-decoration: none; padding: 4px 0; }
.contact-phone:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.contact-list-card {
  flex: 1 1 380px; min-width: 0; background: var(--card); color: var(--ink); border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.check-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--muted);
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; color: var(--ink); }

/* Villa page: title */
.villa-title { padding: 48px 0 32px; }
.villa-title-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.villa-h1 { font-weight: 600; font-size: clamp(48px, 6vw, 84px); line-height: 1; letter-spacing: -0.025em; }
.villa-headline { max-width: 720px; font-size: 20px; font-weight: 600; line-height: 1.4; color: var(--ink-2); }
.address { display: flex; align-items: center; gap: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 10px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 15px; font-weight: 600; }

/* Villa page: photo mosaic */
.mosaic-section { padding: 0 0 72px; }
.mosaic { display: flex; flex-wrap: wrap; gap: 14px; }
.mosaic-main { flex: 2 1 520px; min-width: 0; height: 520px; border-radius: 28px; overflow: hidden; background: var(--photo-bg); }
.mosaic-side {
  flex: 1 1 380px; min-width: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 253px 253px; gap: 14px;
}
.mosaic-tile { position: relative; border-radius: 20px; overflow: hidden; background: var(--photo-bg); }
.photo-button {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: 999px; background: var(--card); color: var(--ink);
  text-decoration: none; font-size: 14px; font-weight: 700;
}
.photo-button:hover { color: var(--accent); }

/* Villa page: body + booking card */
.villa-body-section { padding: 0 0 96px; }
.villa-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px; }
.villa-content { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 64px; }
.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 24px; }
.amenities li { display: flex; align-items: center; gap: 12px; }
.panel {
  margin-top: 8px; padding: 24px 28px; background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.kitchen-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 24px; font-size: 15px; }
.kitchen-list li { display: flex; align-items: center; gap: 10px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.video-figure { display: flex; flex-direction: column; gap: 10px; }
.video-caption { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.video-caption .strong { font-weight: 700; color: var(--ink); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.captioned { display: flex; flex-direction: column; gap: 8px; }
.captioned-photo { height: 200px; border-radius: 18px; overflow: hidden; background: var(--photo-bg); }
.outside-photo { height: 260px; border-radius: 18px; overflow: hidden; background: var(--photo-bg); }
/* Location map: a placeholder until "Show map" loads Google Maps */
.map-block { display: flex; flex-direction: column; gap: 14px; }
.map-frame {
  position: relative; aspect-ratio: 16 / 9; min-height: 260px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line);
  background-color: #E0ECF2;
  background-image:
    linear-gradient(rgba(28, 93, 138, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 93, 138, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-facade {
  position: absolute; inset: 0; padding: 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.map-pin {
  width: 60px; height: 60px; border-radius: 999px; background: var(--card); color: var(--accent);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(15, 53, 80, 0.14);
}
.map-address { font-weight: 700; color: var(--ink); max-width: 420px; }
.map-note { font-size: 13px; color: var(--muted); }
.address a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.address a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* "The space" / "Location & amenities" bullets: bold label + sentence */
.feature-list { display: flex; flex-direction: column; }
.feature-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.feature-list li:first-child { padding-top: 4px; }
.feature-list svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.feature-list strong { display: block; font-weight: 700; color: var(--ink); }
.feature-list p { color: var(--muted); margin-top: 2px; }

/* Stay schedule */
.stay { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.stay-item { padding: 20px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.stay-item dt {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.stay-item dd { margin-top: 4px; font-size: 22px; font-weight: 600; line-height: 1.25; }
.closing-line { margin-top: 8px; font-size: 22px; font-style: italic; font-weight: 500; color: var(--blue); line-height: 1.35; }

.booking {
  flex: 1 1 340px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 24px;
}
.h2-booking { font-weight: 600; font-size: 28px; line-height: 1.15; }
.from-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: 15px; }
.price { font-weight: 600; font-size: 34px; line-height: 1; color: var(--ink); }
.from-block { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.see-rates {
  display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.see-rates:hover { text-decoration-thickness: 2px; }
.booking-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px;
  padding: 14px 22px; border-radius: 16px; text-decoration: none; font-weight: 700;
}
.booking-btn-primary { background: var(--accent); color: #fff; border: 1.5px solid var(--accent); }
.booking-btn-primary:hover { background: var(--accent-dark); color: #fff; }
.booking-btn-outline { border: 1.5px solid var(--ink); color: var(--ink); }
.booking-btn-outline:hover { background: var(--ink); color: #fff; }
.divider-text {
  display: flex; align-items: center; gap: 12px; color: var(--muted);
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
}
.divider-text span { flex-grow: 1; height: 1px; background: var(--line); }
.call-link { display: flex; align-items: center; gap: 14px; padding: 8px 0; color: var(--ink); text-decoration: none; }
.call-link:hover { color: var(--accent); }
.call-icon {
  width: 44px; height: 44px; border-radius: 999px; background: var(--chip); color: var(--blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.call-text { display: flex; flex-direction: column; line-height: 1.3; }
.call-number { font-weight: 700; font-size: 18px; }

/* Villa page: rates */
.rates-section { padding: 0 0 96px; }
.rates-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.h2-rates { font-weight: 600; font-size: 38px; line-height: 1.1; }
.rates-intro { max-width: 460px; }
.table-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.table-scroll { overflow-x: auto; }
.rates-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
/* Column headings may wrap onto two lines so the table fits without scrolling (~800px). */
.rates-table thead th {
  padding: 16px 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); background: var(--chip); text-align: right; vertical-align: bottom; line-height: 1.35;
}
.rates-table thead th:not(.col-season) { min-width: 5.5em; }
.rates-table thead th.col-season { text-align: left; }
.rates-table tbody tr { border-top: 1px solid var(--line-soft); }
.rates-table tbody th { padding: 14px 18px; text-align: left; font-weight: 700; white-space: nowrap; vertical-align: top; }
.rates-table td { padding: 14px 18px; text-align: right; font-weight: 600; white-space: nowrap; vertical-align: top; }
.rates-table td.na { font-weight: 400; color: var(--muted); }
.rates-table td.min-stay { font-weight: 500; color: var(--ink-2); }
/* If the table is wider than the screen (tablets), the Season column stays put while prices scroll. */
.rates-table .col-season, .rates-table tbody th {
  position: sticky; left: 0; z-index: 1;
  box-shadow: 1px 0 0 var(--line-soft);
}
.rates-table tbody th { background: var(--card); }

/* Season label: date range, then its tag (Low season, Easter…) */
.season { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rates-table .season { flex-wrap: nowrap; }
.season-dates { font-weight: 700; color: var(--ink); }

/* Phones and tablets: one compact card per season instead of the table */
.rate-cards { display: none; }
.rate-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.rate-card-head { padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
/* Prices in a two-column grid: small label above each price */
.rate-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-variant-numeric: tabular-nums; }
.rate-list > div { display: flex; flex-direction: column; min-width: 0; }
.rate-list dt { font-size: 12px; color: var(--muted); line-height: 1.3; }
.rate-list dd { font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.rate-list dd.na { font-size: 14px; font-weight: 500; color: var(--muted); }
.rate-list .min-stay {
  grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: baseline;
  padding-top: 8px; border-top: 1px solid var(--line-soft);
}
.rate-list .min-stay dt { font-size: 13px; }
.rate-list .min-stay dd { font-size: 15px; font-weight: 600; }
/* Below this width the full table would not fit, so show cards (2 per row on tablets). */
@media (max-width: 1060px) {
  .table-card { display: none; }
  .rate-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: start; }
}
.season-tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.02em; white-space: nowrap;
}
.tag-low { background: var(--chip); color: #1C4A6B; }
.tag-easter, .tag-christmas { background: #F6E9D6; color: #7A4A1C; }
.tag-may { background: #DDEFEA; color: #1E5B4E; }
.tag-high { background: #FBE1D3; color: #8A3A1C; }
.rates-extras { display: flex; flex-wrap: wrap; gap: 16px; }
.extras-card {
  flex: 1 1 360px; min-width: 0; padding: 28px; border-radius: 20px; display: flex; flex-direction: column; gap: 14px;
  background: var(--card); border: 1px solid var(--line);
}
.extras-card-tint { background: var(--chip); border-color: var(--chip); }
.h3-extras { font-weight: 600; font-size: 24px; line-height: 1.2; }
.extras-card .check-list li { padding: 10px 0; }
.price-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--line-blue);
}
/* Long single words (German "Reinigungsgebühr") may hyphenate so the row fits a phone. */
.price-list li > span:first-child { min-width: 0; hyphens: auto; overflow-wrap: break-word; }
.extra-price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Villa page: other villa */
.other-villa-section { padding: 72px 0; }
.other-villa {
  display: flex; flex-wrap: wrap; align-items: stretch; background: var(--card); border-radius: 28px; overflow: hidden;
  color: var(--ink); text-decoration: none;
}
.other-villa:hover { color: var(--ink); }
.other-villa:hover .link-arrow { text-decoration: underline; }
.other-villa-photo { flex: 1 1 360px; min-height: 260px; background: var(--photo-bg); display: block; }
.other-villa-copy { flex: 1 1 360px; padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.other-villa-name { font-weight: 600; font-size: 38px; line-height: 1.1; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); }

/* Clickable photos (open the full-size viewer) */
.zoom { display: block; width: 100%; height: 100%; cursor: pointer; }
.zoom img { transition: transform .35s ease, filter .35s ease; }
.zoom:hover img { transform: scale(1.03); filter: brightness(1.04); }
.zoom:focus-visible { outline: 3px solid var(--card); outline-offset: -6px; border-radius: inherit; }
.zoom:focus-visible img { filter: brightness(.9); }
.photo-tag { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .zoom img { transition: none; } .zoom:hover img { transform: none; } }

/* Full-size photo viewer */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(6, 18, 28, 0.96); color: #fff; overflow: hidden;
}
.lightbox::backdrop { background: rgba(6, 18, 28, 0.9); }
.lightbox[open] { display: flex; flex-direction: column; }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox-stage {
  flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center;
  padding: 64px 72px 8px; touch-action: pan-y pinch-zoom;
}
.lightbox-img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px;
  transition: opacity .2s ease; user-select: none; -webkit-user-drag: none;
}
.lightbox-img.is-loading { opacity: 0; }
.lightbox-caption {
  display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 4px 16px;
  padding: 12px 24px 24px; font-size: 15px; color: #D8E6EE; text-align: center;
}
.lightbox-count { font-variant-numeric: tabular-nums; color: #9FB8C8; font-size: 14px; }
.lightbox-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 999px; border: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: #fff; transition: background-color .15s;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
@media (max-width: 720px) {
  .lightbox-stage { padding: 64px 0 8px; }
  .lightbox-img { border-radius: 0; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; transform: none; background: rgba(255, 255, 255, 0.16); }
  .lightbox-caption { padding: 12px 72px 24px; min-height: 76px; align-content: center; }
}

/* Cookie consent banner */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
  max-width: 1040px; margin: 0 auto;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 18px 48px rgba(15, 53, 80, 0.22);
}
.consent-inner { padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.consent-main { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.consent-title { font-weight: 600; font-size: 22px; line-height: 1.2; }
.consent-text { font-size: 15px; color: var(--muted); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* Accept and Reject look exactly the same (equal choice, as Spanish rules require). */
.consent-btn { background: var(--accent); color: #fff; border: 1.5px solid var(--accent); min-width: 140px; }
.consent-btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.consent-btn-secondary { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.consent-btn-secondary:hover { background: var(--ink); color: #fff; }
.consent-settings { flex-basis: 100%; display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }
.consent-option {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
}
label.consent-option { cursor: pointer; }
.consent-option-text { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.consent-option-text strong { font-size: 15px; color: var(--ink); }
.consent-always { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }
/* On/off switch built from a real checkbox */
.switch {
  appearance: none; -webkit-appearance: none; flex-shrink: 0; margin: 0; cursor: pointer;
  width: 48px; height: 28px; border-radius: 999px; background: #B7C9D4; position: relative;
  transition: background-color .15s;
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s;
}
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(20px); }
.switch:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .switch, .switch::after { transition: none; } }
@media (max-width: 720px) {
  .consent { left: 0; right: 0; bottom: 0; border-radius: 20px 20px 0 0; max-height: 85vh; overflow-y: auto; }
  .consent-inner { padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1 1 140px; }
}
@media print { .consent { display: none !important; } }

/* Footer: cookie settings link */
.footer-end { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.footer-link {
  font: inherit; color: var(--muted); background: none; border: 0; padding: 10px 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.footer-link:hover { color: var(--accent); }

/* 404 */
.not-found { min-height: 50vh; }

/* Phones and small tablets */
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 32px 0 64px; }
  .hero-inner { gap: 40px; }
  .hero-title em { white-space: normal; }
  .hero-photos { grid-template-rows: 150px 150px; gap: 10px; }
  .hero-photo-main { border-radius: 22px 22px 22px 80px; }
  .hero-photo-corner { border-radius: 16px 16px 56px 16px; }
  .villa-card-photo { height: 240px; }
  .villa-card-body { padding: 24px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; gap: 10px; }
  .mosaic-main { height: 300px; }
  .mosaic-side { grid-template-rows: 150px 150px; }
  .mosaic-section { padding-bottom: 48px; }
  .villa-content { gap: 48px; }
  .booking { position: static; padding: 24px; }
  .contact-card { border-radius: 24px; }
  .other-villa-copy { padding: 28px; }
  .main-nav { gap: 4px 20px; }
}
