/*
Theme Name: Sol Vista Coastal
Theme URI: https://solvistaretreats.com
Author: Sol Vista Retreats
Description: Custom coastal-boutique theme for Sol Vista Retreats — direct-booking condo, services, and Playa del Carmen guide. Hand-built, no page builder.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: sol-vista-coastal
*/

/* ==========================================================================
   Fonts — self-hosted variable fonts, no external CDN
   ========================================================================== */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/bricolage-variable.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/worksans-variable.woff2') format('woff2-variations');
}

/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
  /* Color */
  /* Brand teal, darkened 2026-08-20 to clear WCAG AA. The original #29b0af gave
     white-on-teal 2.65:1 and teal-eyebrow-on-sand 2.36:1, both well under 4.5:1.
     This value is 5.47:1 on white and 4.86:1 on sand. Do not lighten it back. */
  --color-teal: #1a7574;
  --color-teal-dark: #125a59;
  --color-teal-light: #e4f3f2;
  --color-sand: #f7f1e6;
  --color-sand-deep: #efe4d0;
  --color-charcoal: #2b2924;
  --color-charcoal-soft: #524e45;
  /* Same treatment: was #d97d55 at 2.99:1 on white. Now 5.46:1. */
  --color-terracotta: #a2542f;
  --color-terracotta-dark: #824123;
  --color-white: #ffffff;
  --color-border: rgba(43, 41, 36, 0.12);

  /* Type */
  --font-display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --content-width: 1240px;
  --content-width-narrow: 780px;
  --radius: 14px;
  --radius-sm: 8px;
  --section-pad-y: 6rem;
  --section-pad-y-sm: 3rem;

  /* Shadow */
  --shadow-card: 0 12px 32px -12px rgba(43, 41, 36, 0.18);
  --shadow-lift: 0 20px 48px -16px rgba(43, 41, 36, 0.28);
}

@media (max-width: 782px) {
  :root {
    --section-pad-y: var(--section-pad-y-sm);
  }
}

/* ==========================================================================
   Reset + base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-sand);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-teal-dark); text-decoration: none; }
a:hover { color: var(--color-teal); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-charcoal);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.7rem); }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.3em; }

.container {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: 1.75rem;
}

.container--narrow {
  max-width: var(--content-width-narrow);
}

.section {
  padding-block: var(--section-pad-y);
}

.section--tight { padding-block: calc(var(--section-pad-y) * 0.6); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-teal-dark);
  margin-bottom: 0.9rem;
}

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--color-teal);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-teal-dark); color: var(--color-white); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  /* Default to ink, not white: this button appears on light sections far more often
     than it appears over a hero photo. The hero override below restores white there. */
  color: var(--color-charcoal);
}
.btn-outline:hover { background: rgba(47,44,39,0.06); color: var(--color-charcoal); }

/* Over a hero image the surface is dark, so the outline button flips back to white. */
.hero .btn-outline,
.hero__content .btn-outline {
  color: var(--color-white);
}
.hero .btn-outline:hover,
.hero__content .btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--color-white); }

.btn-terracotta {
  background: var(--color-terracotta);
  color: var(--color-white);
}
.btn-terracotta:hover { background: var(--color-terracotta-dark); color: var(--color-white); }

.btn-dark {
  background: var(--color-charcoal);
  color: var(--color-white);
}
.btn-dark:hover { background: #000; }

/* ==========================================================================
   Site header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 241, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
}

.site-branding {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-branding a { color: inherit; }

.custom-logo-link { display: inline-flex; align-items: center; }

.custom-logo {
  /* Brian asked for a bigger mark in the header. Up from 46px; the header row grows
     with it rather than the logo overflowing, and it steps down on small screens. */
  height: 68px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .custom-logo { height: 52px; max-width: 240px; }
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin: 0;
}

.site-tagline {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-charcoal-soft);
  margin-top: 0.15rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2.1rem;
  margin: 0;
  padding: 0;
}

/* Nav labels must never break mid-item — if the header ever gets width-constrained,
   we want the nav to stay on one line rather than wrapping "Sol Vista del Mar" into
   a four-line stack. */
.main-nav li { flex: 0 0 auto; }
.main-nav a {
  color: var(--color-charcoal);
  font-weight: 500;
  font-size: 0.96rem;
  white-space: nowrap;
}

.main-nav a:hover { color: var(--color-teal-dark); }

.header-cta { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-charcoal);
  margin: 5px 0;
  transition: 0.2s;
}

@media (max-width: 900px) {
  .header-cta.btn { display: inline-flex; padding: 0.6em 1.2em; font-size: 0.88rem; }
}

@media (max-width: 782px) {
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 82vw);
    height: 100vh;
    background: var(--color-sand);
    transform: translateX(100%);
    /* Without this the off-screen drawer still counts toward document width,
       giving every page a ~308px horizontal scroll on mobile, and its links stay
       tabbable behind the closed menu. visibility fixes overflow and focus order
       together; it is delayed on close so the slide-out is still visible. */
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
    padding: 6rem 2rem 2rem;
    box-shadow: var(--shadow-lift);
  }
  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.25s ease, visibility 0s;
  }
  .main-nav ul { flex-direction: column; gap: 1.5rem; }
  .main-nav a { font-size: 1.15rem; }
  .nav-toggle { display: block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--color-white);
  overflow: hidden;
}

.hero--tall { min-height: 92vh; }
.hero--short { min-height: 46vh; }

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(43,41,36,0.05) 0%, rgba(43,41,36,0.15) 40%, rgba(43,41,36,0.78) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 3.5rem;
}

.hero__eyebrow {
  color: var(--color-white);
  opacity: 0.92;
}

.hero h1 {
  color: var(--color-white);
  max-width: 780px;
}

.hero__subhead {
  font-size: 1.15rem;
  max-width: 560px;
  opacity: 0.94;
  margin-bottom: 1.8rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Quick-facts chip row, sits inside or just under a hero */
.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.quick-facts__item {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--color-white);
  padding: 0.5em 1.05em;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

/* Rating row. The three review quotes below it were always real; what was
   missing was the number behind them. Sits above the quotes so the figure
   frames them rather than trailing after. */
.rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.55rem 1.4rem;
  margin: 0 0 2.4rem;
}

.rating-row__score {
  font-family: var( --font-display );
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 700;
  color: var( --color-charcoal );
}

.rating-row__stars {
  color: var( --color-terracotta );
  letter-spacing: 0.12em;
  font-size: 1.05rem;
}

.rating-row__meta {
  color: var( --color-charcoal-soft );
  font-size: 0.95rem;
}

.rating-row__badge {
  background: var( --color-teal-light );
  color: var( --color-teal-dark );
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4em 0.9em;
  border-radius: 999px;
}

/* Host credential row. Four short facts, not a stat dashboard -- they sit inside
   a content card and should read as a caption strip, not a hero band. */
.host-stats {
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax( 150px, 1fr ) );
  gap: 1.2rem;
  margin: 1.8rem 0;
  padding: 1.4rem 0;
  border-top: 1px solid var( --color-border );
  border-bottom: 1px solid var( --color-border );
}

.host-stat strong {
  display: block;
  font-family: var( --font-display );
  font-size: 1.5rem;
  line-height: 1.15;
  color: var( --color-charcoal );
}

.host-stat span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var( --color-charcoal-soft );
}

/* The standing-proof note under the rating. Constrained measure so it reads as
   a caption to the number, not a new paragraph of body copy. */
.rating-row__note {
  max-width: 62ch;
  margin: -1.4rem auto 2.6rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var( --color-charcoal-soft );
}

.rating-row__note a {
  color: var( --color-teal-dark );
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Same chip, dark-on-light variant for use outside a hero */
.quick-facts--light .quick-facts__item {
  background: var(--color-white);
  border-color: var(--color-border);
  color: var(--color-charcoal);
}

/* ==========================================================================
   Booking card — the direct-booking widget container
   ========================================================================== */

.booking-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2.4rem;
  margin-top: -6rem;
  position: relative;
  z-index: 5;
  border: 1px solid var(--color-border);
}

.booking-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.booking-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--color-teal-light);
  color: var(--color-teal-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35em 0.9em;
  border-radius: 999px;
}

.booking-widget-slot {
  /* Holds the live booking widget. It used to be a dashed placeholder box; now that
     a real widget renders inside it, it must not draw a second card around the one
     the widget already draws. */
  padding: 0;
}

/* Inside the booking card the widget is already framed, so drop its own panel
   chrome. Keep the width cap: the day cells are square, so letting the 7-column
   grid span a full-width card blows them up to enormous tiles. */
.booking-widget-slot .svr-booking { max-width: 560px; margin-inline: auto; }

.booking-widget-slot .svr-booking__panel {
  border: 0;
  box-shadow: none;
  padding: 0;
  background: transparent;
}

.booking-widget-slot .svr-booking__head { margin-bottom: 1.2rem; }

/* ==========================================================================
   Story section — alternating image / text
   ========================================================================== */

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.story + .story { margin-top: var(--section-pad-y); }

.story--reverse .story__media { order: 2; }
.story--reverse .story__text { order: 1; }

.story__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.story__text .eyebrow { display: block; }

@media (max-width: 900px) {
  .story, .story--reverse { grid-template-columns: 1fr; }
  .story--reverse .story__media,
  .story--reverse .story__text { order: initial; }
  .story + .story { margin-top: 3rem; }
}

/* ==========================================================================
   Feature / amenity grid
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.4rem;
}

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-teal-dark);
}

.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.35em; }
.feature-card p { color: var(--color-charcoal-soft); font-size: 0.95rem; }

/* Amenity chips — compact grid for the long amenities list */
/* Subheads splitting the amenity list into what is inside the condo and what the
   building provides. A guest reading "gym" needs to know it is downstairs, not
   in the unit. */
.amenity-group-title {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  margin: 2.2rem 0 1rem;
}

.amenity-group-title:first-of-type {
  margin-top: 0;
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.75rem;
}

.amenity-chip {
  display: flex;
  align-items: center;
  gap: 0.6em;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75em 1em;
  font-size: 0.93rem;
  font-weight: 500;
}

.amenity-chip::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-teal);
}

/* ==========================================================================
   Photo gallery
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 0.9rem;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.gallery-grid a { display: block; height: 100%; }

.gallery-grid > *:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.gallery-grid > *:nth-child(2) { grid-column: span 2; }
.gallery-grid > *:nth-child(3) { grid-column: span 2; }
.gallery-grid > *:nth-child(4) { grid-column: span 3; }
.gallery-grid > *:nth-child(5) { grid-column: span 3; }
.gallery-grid > *:nth-child(6) { grid-column: span 6; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-grid > * { grid-column: span 1 !important; grid-row: span 1 !important; }
  .gallery-grid > *:nth-child(1) { grid-column: span 2 !important; grid-row: span 2 !important; }
}

/* ==========================================================================
   Gallery carousel (scroll-snap, no external slider library)
   ========================================================================== */

.gallery-carousel__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.gallery-carousel__item {
  flex: 0 0 auto;
  width: min(420px, 78vw);
  aspect-ratio: 4 / 3;
  scroll-snap-align: start;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.gallery-carousel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-carousel__nav {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 1.2rem;
}

.gallery-carousel__btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.gallery-carousel__btn:hover {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: var(--color-white);
}

.gallery-carousel__btn svg { width: 18px; height: 18px; }

/* ==========================================================================
   Video walkthrough
   ========================================================================== */

.video-walkthrough video {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  background: #000;
  /* Pin the block to 16:9 and letterbox inside it. Without this the element
     sizes to the poster's ratio, then jumps to the video's ratio on play.
     `contain` rather than `cover` because a portrait clip would be gutted. */
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

/* YouTube-hosted walkthroughs. The iframe has no intrinsic ratio, so the frame
   holds 16:9 and the iframe fills it -- otherwise the embed collapses to its
   default 150px height on first paint. */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================================================
   Map embed
   ========================================================================== */

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.map-embed iframe {
  width: 100%;
  height: 420px;
  display: block;
  border: 0;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.testimonial-card__stars {
  color: var(--color-terracotta);
  letter-spacing: 0.15em;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}

.testimonial-card blockquote {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--color-charcoal);
}

.testimonial-card cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-charcoal-soft);
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: var(--color-charcoal);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 3.5rem;
  text-align: center;
}

.cta-band h2 { color: var(--color-white); }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 520px; margin-inline: auto 1.6rem auto; }

.cta-band--teal { background: var(--color-teal); }
.cta-band--terracotta { background: var(--color-terracotta); }

/* ==========================================================================
   Sticky mobile book bar
   ========================================================================== */

.sticky-book-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 0.85rem 1.1rem;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sticky-book-bar__price { font-weight: 600; }
.sticky-book-bar__price small { display: block; font-weight: 400; color: var(--color-charcoal-soft); font-size: 0.78rem; }

@media (max-width: 782px) {
  .sticky-book-bar.is-active { display: flex; }
  body.has-sticky-bar { padding-bottom: 76px; }
}

/* ==========================================================================
   Cards grid (generic — Home tier cards, service cards, tour cards)
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.tile-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  color: var(--color-white);
  box-shadow: var(--shadow-card);
}

.tile-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.tile-card__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(43,41,36,0) 30%, rgba(43,41,36,0.82) 100%);
}

.tile-card__body { position: relative; z-index: 2; padding: 1.8rem; }
.tile-card h3 { color: var(--color-white); margin-bottom: 0.3em; }
.tile-card p { color: rgba(255,255,255,0.88); font-size: 0.95rem; }
.tile-card a.tile-card__link { position: absolute; inset: 0; z-index: 3; }

/* Plain (non-photo) content card — used for Services/product blocks */
.content-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.2rem;
}

/* ==========================================================================
   Social dock (fixed side rail, desktop only — footer links cover mobile)
   ========================================================================== */

.social-dock {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  /* No container colour: each tile now carries its own brand colour. */
  border-radius: var(--radius) 0 0 var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.social-dock__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  /* Full white, not 85%: the glyph is the only thing on a saturated tile. */
  color: #fff;
  transition: filter 0.2s;
}

/*
 * Brand colours, chosen so a white glyph clears the 3:1 WCAG minimum for
 * non-text UI. WhatsApp's headline green #25D366 manages only 1.98:1, so this
 * uses #128C7E - equally official, it is the green in their own app chrome.
 * The Instagram gradient drops the #F58529 orange stop for the same reason
 * (2.54:1) and runs across the pink-to-blue stops, which all pass.
 */
.social-dock__link--whatsapp  { background: #128C7E; }
.social-dock__link--facebook  { background: #1877F2; }
.social-dock__link--google    { background: #4285F4; }
.social-dock__link--instagram {
  background: linear-gradient( 135deg, #E1306C 0%, #C13584 45%, #8134AF 75%, #515BD4 100% );
}

/* Brighten rather than recolour, so each tile stays recognisably its own brand. */
.social-dock__link:hover,
.social-dock__link:focus-visible { filter: brightness(1.12); }

.social-dock__link:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

.social-dock__link svg { width: 19px; height: 19px; }

@media (max-width: 782px) {
  .social-dock { display: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-charcoal);
  color: rgba(255,255,255,0.82);
  padding-block: 4rem 2.5rem;
}

.site-footer a { color: var(--color-white); }
.site-footer a:hover { color: var(--color-teal); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-grid h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }

.footer-brand .site-title { color: var(--color-white); }
.footer-brand p { color: rgba(255,255,255,0.65); margin-top: 0.8rem; max-width: 320px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

@media (max-width: 782px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   Blog (archive + single)
   ========================================================================== */

/* Two-column blog shell: article column + sidebar rail */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 3.5rem;
  align-items: start;
}

.blog-main { min-width: 0; }

.post-list { display: flex; flex-direction: column; gap: 2rem; }

/* Post card — image left, text right on desktop; stacks on narrow */
.post-card {
  display: grid;
  /* Wider thumbnail, closer to how the old blog list read. 260px was a stamp;
     380px lets the photo actually carry the card. */
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 1.8rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }

.post-card__media { display: block; height: 100%; min-height: 200px; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* A card with no featured image shouldn't leave a dead 260px column */
.post-card:not(:has(.post-card__media)) { grid-template-columns: minmax(0, 1fr); }

.post-card__body { padding: 1.8rem 1.8rem 1.8rem 0; display: flex; flex-direction: column; }
.post-card:not(:has(.post-card__media)) .post-card__body { padding-left: 1.8rem; }

.post-card__cats { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.7rem; }

.post-card__cat {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-teal-dark);
  background: rgba(41, 176, 175, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
}

.post-card__cat:hover { background: rgba(41, 176, 175, 0.2); color: var(--color-teal-dark); }

.post-card__title { font-size: 1.35rem; line-height: 1.25; margin-bottom: 0.4rem; }
.post-card__title a { color: var(--color-charcoal); }
.post-card__title a:hover { color: var(--color-teal-dark); }

.post-card__meta { color: var(--color-charcoal-soft); font-size: 0.82rem; margin-bottom: 0.7rem; }
.post-card__excerpt { color: var(--color-charcoal-soft); font-size: 0.95rem; }
.post-card__excerpt p { margin: 0; }

.post-card__more {
  margin-top: auto;
  padding-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-teal-dark);
  align-self: flex-start;
}

.post-card__more svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.post-card__more:hover svg { transform: translateX(3px); }

.post-meta { color: var(--color-charcoal-soft); font-size: 0.85rem; margin-bottom: 0.9rem; }

/* ---------- Blog sidebar ---------- */

.blog-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.6rem; }

.blog-widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.blog-widget__title {
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-charcoal-soft);
  margin-bottom: 1rem;
}

.blog-search { display: flex; gap: 0.5rem; }
.blog-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  font: inherit;
  font-size: 0.9rem;
  background: var(--color-sand);
  color: var(--color-charcoal);
}
.blog-search input:focus { outline: 2px solid var(--color-teal); outline-offset: 1px; }
.blog-search button {
  border: none;
  background: var(--color-teal);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  width: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.blog-search button:hover { background: var(--color-teal-dark); }
.blog-search svg { width: 17px; height: 17px; }

.blog-cat-list, .blog-archive-list { list-style: none; margin: 0; padding: 0; }

.blog-cat-list a, .blog-archive-list a {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-charcoal);
  font-size: 0.93rem;
}
.blog-cat-list li:last-child a, .blog-archive-list li:last-child a { border-bottom: none; }
.blog-cat-list a:hover, .blog-archive-list a:hover { color: var(--color-teal-dark); }
.blog-cat-list li.is-current a { color: var(--color-teal-dark); font-weight: 600; }

.blog-cat-list__count { color: var(--color-charcoal-soft); font-size: 0.82rem; }

.blog-recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.blog-recent a { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--color-charcoal); }
.blog-recent__thumb { flex: 0 0 62px; }
.blog-recent__thumb img { width: 62px; height: 62px; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.blog-recent__text { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.blog-recent__title { font-size: 0.9rem; line-height: 1.3; font-weight: 500; }
.blog-recent a:hover .blog-recent__title { color: var(--color-teal-dark); }
.blog-recent__date { font-size: 0.76rem; color: var(--color-charcoal-soft); }

.blog-widget--cta { background: var(--color-charcoal); border-color: var(--color-charcoal); }
.blog-widget--cta h3 { color: var(--color-white); font-size: 1.15rem; margin-bottom: 0.5rem; }
.blog-widget--cta p { color: rgba(255,255,255,0.72); font-size: 0.9rem; margin-bottom: 1.1rem; }

/* ---------- Single post ---------- */

.svc-post__head { max-width: var(--content-width-narrow); margin-inline: auto; text-align: center; padding-top: 1rem; }
.svc-post__head h1 { margin-bottom: 0.7rem; }
.svc-post__head .post-card__cats { justify-content: center; }
.svc-post__meta { color: var(--color-charcoal-soft); font-size: 0.9rem; }

.svc-post__hero { border-radius: var(--radius); overflow: hidden; margin-block: 2.5rem; }
.svc-post__hero img { width: 100%; height: auto; display: block; max-height: 520px; object-fit: cover; }

.svc-post__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.svc-post__nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-charcoal);
}
.svc-post__nav-link:hover { border-color: var(--color-teal); color: var(--color-teal-dark); }
.svc-post__nav-link--next { text-align: right; grid-column: 2; }
.svc-post__nav-label { font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--color-charcoal-soft); }
.svc-post__nav-title { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }

.svc-post__back { margin-top: 2rem; font-size: 0.92rem; }
.archive-backlink { margin-bottom: 1.5rem; font-size: 0.92rem; }

/* ---------- Pagination ---------- */

.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding-inline: 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-charcoal);
  font-size: 0.92rem;
}
.pagination .page-numbers.current { background: var(--color-teal); border-color: var(--color-teal); color: var(--color-white); }
.pagination a.page-numbers:hover { border-color: var(--color-teal); color: var(--color-teal-dark); }

@media (max-width: 980px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .blog-sidebar { position: static; }
}

@media (max-width: 620px) {
  .post-card { grid-template-columns: minmax(0, 1fr); }
  .post-card__media { min-height: 190px; max-height: 220px; }
  .post-card__body { padding: 1.5rem; }
  .svc-post__nav { grid-template-columns: 1fr; }
  .svc-post__nav-link--next { grid-column: 1; text-align: left; }
}

/* NOTE: namespaced as .svc-single-post, NOT .single-post — WordPress puts its own
   `single-post` class on <body>, so an unprefixed rule here would apply a max-width to
   the entire document and squeeze the header/nav on every blog post. Same reason the
   WooCommerce rules below are element-qualified (`div.woocommerce`). */
.svc-single-post {
  max-width: var(--content-width-narrow);
  margin-inline: auto;
}

.svc-single-post .post-header { margin-bottom: 2.5rem; }
.svc-single-post h1 { margin-bottom: 0.6rem; }
.svc-single-post .entry-content h2 { margin-top: 2rem; }
.svc-single-post .entry-content p { font-size: 1.05rem; }

/* ==========================================================================
   Generic page wrapper (block-editor content)
   ========================================================================== */

.page-hero-spacer { height: 1px; } /* placeholder if a page has no custom hero */

/* ==========================================================================
   Long-form legal pages (booking terms, cancellation, privacy)
   ========================================================================== */

/* A narrow measure, because nobody reads refund tiers set across 1200px. */
.legal-doc {
  max-width: var( --content-width-narrow );
  margin: 0 auto;
}

.legal-doc h3 {
  margin: 2.8rem 0 0.8rem;
}

.legal-doc h3:first-child {
  margin-top: 0;
}

.legal-doc p,
.legal-doc li {
  line-height: 1.75;
}

.legal-doc ul {
  margin: 0 0 1.3rem 1.15rem;
}

.legal-doc li {
  margin-bottom: 0.55rem;
}

.legal-doc__updated {
  font-size: 0.85rem;
  color: var( --color-charcoal-soft );
  margin-bottom: 2.4rem;
}

/* Refund tiers. A table because these are three parallel rows a guest scans
   for their own date, not prose they read start to finish. */
.refund-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.6rem;
}

.refund-table th,
.refund-table td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var( --color-border );
  vertical-align: top;
}

.refund-table thead th {
  font-family: var( --font-display );
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var( --color-charcoal-soft );
  border-bottom-width: 2px;
}

.refund-table td:last-child {
  font-weight: 600;
  white-space: nowrap;
}

.legal-note {
  background: var( --color-teal-light );
  border-radius: var( --radius-sm );
  padding: 1.1rem 1.3rem;
  margin: 0 0 1.6rem;
}

.legal-note p:last-child {
  margin-bottom: 0;
}

/* The terms link that sits directly above "Continue to payment". Scoped to the
   theme rather than the plugin so it inherits the page's type scale. */
.svr-terms-link {
  font-size: 0.85rem;
  color: var( --color-charcoal-soft );
  margin: 0 0 0.9rem;
}

@media ( max-width: 600px ) {
  .refund-table th,
  .refund-table td {
    padding: 0.6rem 0.5rem;
    font-size: 0.9rem;
  }
}


.entry-content {
  max-width: var(--content-width-narrow);
  margin-inline: auto;
}

.entry-content.is-wide { max-width: var(--content-width); }

/* ==========================================================================
   WooCommerce — minimal, non-redesigned but not broken/ugly
   ========================================================================== */

div.woocommerce {
  max-width: var(--content-width-narrow);
  margin-inline: auto;
  padding-block: var(--section-pad-y-sm);
}

.woocommerce table.shop_table { border-color: var(--color-border); }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: var(--color-teal) !important;
  color: var(--color-white) !important;
  border-radius: 999px !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  border: none !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--color-teal-dark) !important; }

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: 0.8em 1.4em;
  z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }


/* ==========================================================================
   Property layout — details left, booking calendar right
   Mirrors how the old WP Rentals property page read: the copy carries the page
   and the calendar sits beside it rather than dominating the fold.
   ========================================================================== */

.property-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 3rem;
  align-items: start;
}

.property-layout__aside {
  position: sticky;
  top: 1.5rem;
}

@media (max-width: 1000px) {
  .property-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .property-layout__aside { position: static; }
}

/* Fact row under the property title */

.property-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  padding: 1.1rem 0 1.4rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.6rem;
}

.property-fact {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.94rem;
  color: var(--color-charcoal);
}

.property-fact svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  stroke: var(--color-teal);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.property-fact strong { font-weight: 600; }

.property-stars { color: #e8a33d; letter-spacing: 0.12em; font-size: 1.05rem; }


/* ==========================================================================
   Review fixes — 2026-08-20
   ========================================================================== */

/* iOS Safari zooms the viewport whenever a focused input is under 16px. At 13.76px
   every booking field triggered a lurch-and-pinch cycle, five times in a row, at
   exactly the moment the guest is entering payment details. */
@media (max-width: 782px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px;
  }
}

/* Prose was running ~90 characters per line against a 60-75 comfortable target. */
.property-layout__main p,
.entry-content p {
  max-width: 68ch;
}

/* Belt and braces: nothing should be able to widen the document sideways. */
html, body { overflow-x: hidden; }


/* Section CTA row. Was borrowing .hero__actions, which carries hero-only assumptions. */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.6rem;
}

/* Gallery section headings, so a long gallery can be split by room. */
.gallery-group-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-teal-dark);
  margin: 2.2rem 0 0.9rem;
}
.gallery-group-title:first-of-type { margin-top: 0.6rem; }


/* ==========================================================================
   In-condo guest page (/sol-vista-del-mar/)
   Reached only by a QR code on a printed sign, so it is designed phone-first
   and at arm's length: big tap targets, no dense paragraphs, and the thing the
   guest actually came for sitting at the very top.
   ========================================================================== */

.guest-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.5rem 1.15rem 3rem;
}

.guest-head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.guest-head img {
  max-width: 240px;
  height: auto;
  margin: 0 auto 0.9rem;
}

.guest-head h1 {
  font-size: clamp( 1.5rem, 6vw, 1.9rem );
  margin: 0;
  line-height: 1.2;
}

.guest-head h1 span { color: var( --color-teal ); }

.guest-card {
  background: var( --color-white );
  border: 1px solid var( --color-border );
  border-radius: var( --radius );
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var( --shadow-card );
}

.guest-card h2 {
  font-size: 1.12rem;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guest-card h3 {
  font-size: 0.95rem;
  margin: 1.2rem 0 0.4rem;
}

.guest-card p,
.guest-card li { line-height: 1.6; }

.guest-card ol,
.guest-card ul { margin: 0 0 0.5rem 1.15rem; }

.guest-card li { margin-bottom: 0.4rem; }

/* The Wi-Fi block. Monospace and generously sized because it is read off a phone
   while typing it into another screen. */
.guest-wifi {
  background: var( --color-teal-light );
  border-radius: var( --radius-sm );
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}

.guest-wifi__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var( --color-teal-dark );
  margin-bottom: 0.15rem;
}

.guest-wifi__value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.18rem;
  font-weight: 700;
  color: var( --color-charcoal );
  word-break: break-all;
}

.guest-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.guest-btn--wa { background: #128C7E; color: #fff; }
.guest-btn--primary { background: var( --color-teal ); color: #fff; }
.guest-btn--ghost {
  background: transparent;
  color: var( --color-teal-dark );
  border: 1px solid var( --color-border );
}

.guest-btn + .guest-btn { margin-top: 0.6rem; }

/* Spanish translation, collapsed by default. A guest who needs it will look for
   it; one who does not should not have to scroll past it. */
.guest-lang {
  margin-top: 1.1rem;
  border-top: 1px solid var( --color-border );
  padding-top: 0.9rem;
}

.guest-lang > summary {
  cursor: pointer;
  font-weight: 600;
  color: var( --color-teal-dark );
  list-style: none;
}

.guest-lang > summary::-webkit-details-marker { display: none; }

.guest-lang > summary::before {
  content: "▸"; /* literal, not a CSS escape - the escape rendered as "B8" */
  display: inline-block;
  margin-right: 0.45rem;
  transition: transform 0.15s;
}

.guest-lang[open] > summary::before { transform: rotate( 90deg ); }

.guest-note {
  background: var( --color-sand-deep );
  border-radius: var( --radius-sm );
  padding: 0.7rem 0.9rem;
  font-size: 0.92rem;
  margin: 0.75rem 0 0;
}

.guest-form { margin-top: 0.9rem; }

.guest-form input[type="text"],
.guest-form input[type="email"] {
  width: 100%;
  min-height: 46px;
  padding: 0.6rem 0.85rem;
  border: 1px solid var( --color-border );
  border-radius: var( --radius-sm );
  font: inherit;
  margin-bottom: 0.6rem;
  background: #fff;
}

.guest-form__hp { position: absolute; left: -9999px; }

.guest-form__msg { margin: 0.7rem 0 0; font-weight: 600; }
.guest-form__msg.is-ok { color: var( --color-teal-dark ); }
.guest-form__msg.is-err { color: var( --color-terracotta-dark ); }

.guest-foot {
  text-align: center;
  font-size: 0.9rem;
  color: var( --color-charcoal-soft );
  margin-top: 1.5rem;
}

/* Language / currency switcher (svr-direct-booking i18n, renders only when
   the feature flag is on). A slim bar above the header, not a floating pill:
   it must be findable without competing with the nav. */
.svr-lang {
	display: flex;
	justify-content: flex-end;
	gap: .9rem;
	padding: .35rem 1.25rem;
	background: var( --color-sand, #f2ede3 );
	font-size: .8rem;
	letter-spacing: .02em;
}
.svr-lang__cur { font-weight: 700; color: var( --color-teal-dark, #125a59 ); }
.svr-lang__alt { color: var( --color-ink, #4a443a ); text-decoration: none; }
.svr-lang__alt:hover { text-decoration: underline; color: var( --color-teal-dark, #125a59 ); }

/* ---------------------------------------------------------------------------
   Promo code callout
   Used on the persona landing pages, where the offer code has to be readable
   at a glance and easy to copy on a phone. Dashed border rather than a solid
   card so it reads as "coupon" without needing an image.
   ------------------------------------------------------------------------ */

.promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  max-width: var(--content-width-narrow);
  margin: 2.5rem auto;
  padding: 1.75rem 2rem;
  background: var(--color-teal-light);
  border: 2px dashed var(--color-teal);
  border-radius: var(--radius);
  text-align: center;
}

.promo__code {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-teal-dark);
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.1rem;
  user-select: all;
}

.promo__text {
  margin: 0;
  color: var(--color-charcoal-soft);
  max-width: 34ch;
  text-align: left;
}

.promo__text strong { color: var(--color-charcoal); }

@media (max-width: 600px) {
  .promo { flex-direction: column; padding: 1.5rem 1.25rem; }
  .promo__text { text-align: center; }
}

/* Quick facts row for the landing pages. */
.factbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--color-charcoal-soft);
  font-size: 0.95rem;
}

.factbar li { position: relative; }

.factbar li + li::before {
  content: '';
  position: absolute;
  left: -1.15rem;
  top: 0.5em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-teal);
}

/* ---------------------------------------------------------------------------
   Persona landing pages
   Self-contained direct-booking pages (winter, families). Same components as
   the Makenzie page pattern: a segment greeting, a heavy proof block, perk
   cards, and a worked savings example. Built on the existing tokens so these
   pages stay part of the same site rather than looking bolted on.
   ------------------------------------------------------------------------ */

.greeting {
  background: var(--color-charcoal);
  color: var(--color-white);
  text-align: center;
  padding: 1.15rem 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.35;
}

.greeting strong { color: var(--color-teal-light); }

/* Proof block ------------------------------------------------------------ */

.proofbar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2.5rem;
  align-items: center;
  max-width: var(--content-width-narrow);
  margin: 0 auto;
  padding: 2rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.proofbar__score { text-align: center; }

.proofbar__num {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
  color: var(--color-charcoal);
}

.proofbar__stars { color: var(--color-terracotta); letter-spacing: 0.1em; }

.proofbar__meta {
  display: block;
  font-size: 0.85rem;
  color: var(--color-charcoal-soft);
  margin-top: 0.35rem;
}

.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }

.badges li {
  background: var(--color-teal-light);
  color: var(--color-teal-dark);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .proofbar { grid-template-columns: 1fr; text-align: center; padding: 1.5rem; }
  .badges { justify-content: center; }
}

/* Featured review -------------------------------------------------------- */

.review-hero {
  max-width: var(--content-width-narrow);
  margin: 2.5rem auto 0;
  padding: 2.75rem 3rem;
  background: var(--color-sand);
  border-radius: var(--radius);
  text-align: center;
}

.review-hero blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.45;
  color: var(--color-charcoal);
}

.review-hero cite { font-style: normal; color: var(--color-charcoal-soft); font-size: 0.9rem; }

/* Perks ------------------------------------------------------------------ */

.perk-card { position: relative; }

.perk-card__flag {
  position: absolute;
  top: -0.7rem;
  left: 1.5rem;
  background: var(--color-terracotta);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

/* Worked savings example ------------------------------------------------- */

.savings {
  max-width: 460px;
  margin: 2rem auto 0;
  padding: 1.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.savings__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-charcoal-soft);
}

.savings__row--total {
  border-bottom: 0;
  border-top: 2px solid var(--color-charcoal);
  margin-top: 0.4rem;
  padding-top: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-charcoal);
}

.savings__was { text-decoration: line-through; opacity: 0.55; margin-right: 0.5rem; }
.savings__free { color: var(--color-teal-dark); font-weight: 700; }

.savings__note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-charcoal-soft);
}

/* Hosts ------------------------------------------------------------------ */

.hosts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  max-width: var(--content-width-narrow);
  margin: 0 auto;
}

.hosts__photo { flex: 0 0 160px; }
.hosts__photo img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.hosts__text { flex: 1 1 320px; }

@media (max-width: 640px) {
  .hosts { justify-content: center; text-align: center; }
}

/* Amenity chips ---------------------------------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.88rem;
  color: var(--color-charcoal-soft);
}
