/*
Theme Name: Sunny Orange Stays
Theme URI: https://sunnyorangestays.com
Author: Tory Belloise
Author URI: https://sunnyorangestays.com
Description: Custom theme for Sunny Orange Stays — a boutique vacation rental property in Florida. Features dynamic property listings, availability calendar, and booking integration.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: sunny-orange-stays
*/

@font-face {
  font-family: 'Athena';
  src: url('./assets/fonts/athena-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Manrope — body font (replaces Montserrat). SIL OFL, commercial OK.
   Ships 6 weights; browser picks the right file via font-weight. */
@font-face {
  font-family: 'Manrope';
  src: url('./assets/fonts/Manrope-thin.woff2') format('woff2'),
       url('./assets/fonts/Manrope-thin.woff') format('woff');
  font-weight: 100 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('./assets/fonts/Manrope-light.woff2') format('woff2'),
       url('./assets/fonts/Manrope-light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('./assets/fonts/Manrope-regular.woff2') format('woff2'),
       url('./assets/fonts/Manrope-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('./assets/fonts/Manrope-medium.woff2') format('woff2'),
       url('./assets/fonts/Manrope-medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('./assets/fonts/Manrope-semibold.woff2') format('woff2'),
       url('./assets/fonts/Manrope-semibold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('./assets/fonts/Manrope-bold.woff2') format('woff2'),
       url('./assets/fonts/Manrope-bold.woff') format('woff');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

/* Becham Blur — demo display font by Craft Supply Co. ⚠️ Demo license,
   evaluation only. File is 9KB — very limited glyph set expected. */
@font-face {
  font-family: 'Becham Blur';
  src: url('./assets/fonts/BechamBlur-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Fresh Orange — display font by Masyafi Studio / Funtype Foundry.
   ⚠️ Personal-use license only. Commercial use requires a paid license
   from funtypefonts.com (README explicitly threatens penalty otherwise). */
@font-face {
  font-family: 'Fresh Orange';
  src: url('./assets/fonts/FreshOrange-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Blue Mirage — demo display font (self-hosted). ⚠️ Demo license only
   — evaluation use, not commercial deployment. Limited glyph set. */
@font-face {
  font-family: 'Blue Mirage';
  src: url('./assets/fonts/BlueMirage-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Sand Beach — hand-drawn display font (self-hosted).
   Single weight. Personal-use license only.
   ascent/descent overrides flatten the font's generous native metrics
   so headings don't float with extra space above/below the letters. */
@font-face {
  font-family: 'Sand Beach';
  src: url('./assets/fonts/SandBeach-Regular.woff') format('woff'),
       url('./assets/fonts/SandBeach-Regular.otf') format('opentype'),
       url('./assets/fonts/SandBeach-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 140%;
  ascent-override: 70%;
  descent-override: 20%;
  line-gap-override: 0%;
}

/* Canela Deck — Commercial Type premium display serif (TRIAL).
   ⚠️ LOCAL TESTING ONLY — trial license prohibits commercial/web deployment.
   Purchase a proper web license from commercialtype.com before production. */
@font-face {
  font-family: 'Canela Deck';
  src: url('./assets/fonts/CanelaDeck-Regular.otf') format('opentype');
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Canela Deck';
  src: url('./assets/fonts/CanelaDeck-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Canela Deck';
  src: url('./assets/fonts/CanelaDeck-Bold.otf') format('opentype');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Canela Deck';
  src: url('./assets/fonts/CanelaDeck-Black.otf') format('opentype');
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

/* Minimalist — clean hand-made display font (self-hosted).
   Single weight. Personal-use license only. */
@font-face {
  font-family: 'Minimalist';
  src: url('./assets/fonts/Minimalist-Regular.woff') format('woff'),
       url('./assets/fonts/Minimalist-Regular.otf') format('opentype'),
       url('./assets/fonts/Minimalist-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Beach Writing — hand-drawn display font.
   size-adjust bumps the rendered size because Beach Writing's native
   x-height is small; without it, 48pt reads like ~34pt compared to a
   standard serif. 135% brings it into line with normal display fonts. */
@font-face {
  font-family: 'Beach Writing';
  src: url('./assets/fonts/BeachWriting-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 180%;
}

/* Svetze — display serif (self-hosted).
   Free distribution only ships Light/Bold/ExtraBold — Light serves as the
   default display weight (400), Bold handles 700, ExtraBold handles 800. */
@font-face {
  font-family: 'Svetze';
  src: url('./assets/fonts/Svetze-Light.woff2') format('woff2'),
       url('./assets/fonts/Svetze-Light.ttf') format('truetype');
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Svetze';
  src: url('./assets/fonts/Svetze-Bold.woff2') format('woff2'),
       url('./assets/fonts/Svetze-Bold.ttf') format('truetype');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Svetze';
  src: url('./assets/fonts/Svetze-ExtraBold.woff2') format('woff2'),
       url('./assets/fonts/Svetze-ExtraBold.ttf') format('truetype');
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

/* Advercase — kept as fallback in case Svetze fails to load. */
@font-face {
  font-family: 'Advercase';
  src: url('./assets/fonts/Advercase-Regular.woff2') format('woff2'),
       url('./assets/fonts/Advercase-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Advercase';
  src: url('./assets/fonts/Advercase-Bold.woff2') format('woff2'),
       url('./assets/fonts/Advercase-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Design System
   ========================================================================== */

:root {
  /* Brand Colors */
  --sos-orange:        #f8a41e;
  --sos-orange-hover:  #e5930e;
  --sos-orange-light:  rgba(248, 164, 30, 0.12);
  --sos-teal:          #0c9cbe;
  --sos-teal-hover:    #0a89a6;
  --sos-teal-light:    rgba(12, 156, 190, 0.08);
  --sos-teal-deep:     #087a94;
  --sos-sky:           #91d4da;

  /* Neutrals — soft teal-tinted palette */
  --sos-white:         #FFFFFF;
  --sos-sand-50:       #ddeef0;
  --sos-sand-100:      #d4eaec;
  --sos-sand-200:      #c2dfe2;
  --sos-sand-300:      #a8ced2;
  --sos-sand-400:      #8bbfc4;
  --sos-gray-400:      #7fa8ad;
  --sos-gray-500:      #587e83;
  --sos-gray-600:      #3e6166;
  --sos-slate-700:     #2a4d52;
  --sos-slate-800:     #1a3a3f;
  --sos-slate-900:     #000000;

  /* Functional */
  --sos-success:       #16a34a;
  --sos-error:         #dc2626;
  --sos-overlay:       rgba(13, 44, 49, 0.6);

  /* Typography */
  --sos-font-display:  'Sand Beach', 'Becham Blur', 'Fresh Orange', 'Blue Mirage', 'Canela Deck', 'Beach Writing', 'Minimalist', 'Svetze', 'Josefin Sans', 'Advercase', 'Cinzel', serif;
  --sos-font-body:     'Manrope', 'Montserrat', sans-serif;
  --sos-font-accent:   'Satisfy', cursive;

  /* Spacing */
  --sos-container:     1280px;
  --sos-gap-xs:        8px;
  --sos-gap-sm:        12px;
  --sos-gap-md:        16px;
  --sos-gap-lg:        24px;
  --sos-gap-xl:        32px;
  --sos-gap-2xl:       48px;
  --sos-gap-3xl:       64px;
  --sos-section-pad:   80px;

  /* Radius
     Concentric rule: outer-radius = inner-radius + padding.
     For deeply nested layers, halve the padding adjustment each step
     so innermost corners don't flatten out. */
  --sos-radius-sm:     6px;
  --sos-radius-md:     10px;
  --sos-radius-lg:     16px;
  --sos-radius-xl:     24px;
  --sos-radius-2xl:    32px;
  --sos-radius-full:   9999px;

  /* Shadows */
  --sos-shadow-sm:     0 1px 3px rgba(0, 0, 0, 0.06);
  --sos-shadow-md:     0 4px 12px rgba(0, 0, 0, 0.08);
  --sos-shadow-lg:     0 10px 30px rgba(0, 0, 0, 0.10);
  --sos-shadow-xl:     0 20px 50px rgba(0, 0, 0, 0.14);

  /* Transitions */
  --sos-ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --sos-duration:      0.25s;

  /* Header height (used for scroll offset) */
  --sos-header-h:      100px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--sos-header-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sos-font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--sos-slate-800);
  background: var(--sos-white);
  overflow-x: clip;
}

html { overflow-x: clip; }
*, *::before, *::after { box-sizing: border-box; }
/* Advercase ships Regular (400) and Bold (700); let browser synthesis stay
   disabled for everything else so Montserrat's other weights don't get
   faux-synthesized either. */
body { font-synthesis-weight: none; -webkit-font-synthesis: none; }
img, video, iframe { max-width: 100%; height: auto; }

img, video { max-width: 100%; height: auto; display: block; }

/* Apple MapKit JS — zoom controls are moved to top-left via JS */

/* Material SVG icons — drop-in replacement for Phosphor where a better icon exists.
   Inherits size/color from parent, so it blends seamlessly with Phosphor duotone. */
.sos-mi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  color: inherit;
  line-height: 1;
}
.sos-mi svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}
a { color: var(--sos-teal); text-decoration: none; transition: color var(--sos-duration) var(--sos-ease); }
a:hover { color: var(--sos-teal-hover); }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sos-font-display);
  font-weight: 400;
  line-height: 1.15;
  /* Advercase sits tighter than Cinzel — bumped the baseline +0.02em
     across heading levels to preserve the airy classical rhythm. */
  letter-spacing: 0.1em;
  color: var(--sos-slate-900);
  /* Thicken single-weight handmade display fonts (Sand Beach etc.) so
     they read a touch heavier without relying on faux-bold synthesis
     which looks rough on hand-drawn strokes. */
  -webkit-text-stroke: 0.4px currentColor;
  text-stroke: 0.4px currentColor;
}
.sos-nav__link {
  -webkit-text-stroke: 0.35px currentColor;
  text-stroke: 0.35px currentColor;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); letter-spacing: 0.12em; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); letter-spacing: 0.14em; }
h4 { font-size: 1.15rem; }

p + p { margin-top: 1em; }

/* ==========================================================================
   Layout
   ========================================================================== */

.sos-container {
  width: 100%;
  max-width: var(--sos-container);
  margin: 0 auto;
  padding: 0 var(--sos-gap-lg);
}

.sos-section {
  padding: var(--sos-section-pad) 0;
}

.sos-section--sand {
  background: var(--sos-sand-50);
}

.sos-section--dark {
  background: var(--sos-teal-deep);
  color: rgba(255, 255, 255, 0.85);
}

.sos-section--dark h2,
.sos-section--dark h3 {
  color: #fff;
}

.sos-section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--sos-gap-2xl);
}

.sos-section__header p {
  margin-top: var(--sos-gap-sm);
  color: var(--sos-gray-500);
  font-size: 1.1rem;
}

.sos-grid {
  display: grid;
  gap: var(--sos-gap-lg);
  padding: 4px;
}

.sos-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sos-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sos-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .sos-grid--3, .sos-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .sos-grid--2, .sos-grid--3, .sos-grid--4 { grid-template-columns: 1fr; }
  .sos-section { padding: var(--sos-gap-2xl) 0; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.sos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sos-gap-xs);
  padding: 14px 28px;
  font-family: var(--sos-font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border: none;
  border-radius: var(--sos-radius-full);
  transition: all var(--sos-duration) var(--sos-ease);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.sos-btn--primary {
  background: var(--sos-orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(248, 164, 30, 0.35);
}
.sos-btn--primary:hover {
  background: var(--sos-orange-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(248, 164, 30, 0.45);
}

.sos-btn--secondary {
  background: var(--sos-teal);
  color: #fff;
  box-shadow: 0 4px 14px rgba(12, 156, 190, 0.3);
}
.sos-btn--secondary:hover {
  background: var(--sos-teal-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12, 156, 190, 0.4);
}

.sos-btn--outline {
  background: transparent;
  color: var(--sos-slate-800);
  border: 2px solid var(--sos-sand-300);
}
.sos-btn--outline:hover {
  border-color: var(--sos-teal);
  color: var(--sos-teal);
  background: var(--sos-teal-light);
}

.sos-btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.sos-btn--lg { padding: 18px 36px; font-size: 1.05rem; }

/* ==========================================================================
   Cards
   ========================================================================== */

.sos-card {
  background: #fff;
  /* Concentric: 24px outer pairs with ~16px body padding + ~8px inner radii */
  border-radius: var(--sos-radius-xl);
  overflow: hidden;
  border: 1px solid var(--sos-sand-200);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.06);
  transition: all var(--sos-duration) var(--sos-ease);
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

.sos-card:hover {
  box-shadow: var(--sos-shadow-lg);
  transform: translateY(-4px);
  z-index: 2;
  position: relative;
}

.sos-card__image {
  position: relative;
  overflow: hidden;
}

.sos-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--sos-ease);
}

.sos-card:hover .sos-card__image img {
  transform: scale(1.05);
}

.sos-card__body {
  padding: var(--sos-gap-md) var(--sos-gap-lg) var(--sos-gap-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}
a.sos-card__link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sos-card__title {
  font-size: 1.4rem;
  margin-bottom: var(--sos-gap-sm);
}

/* ==========================================================================
   Favorites
   ========================================================================== */

/* Card heart — top-right of image */
.sos-fav-heart {
  position: absolute;
  top: var(--sos-gap-sm);
  right: var(--sos-gap-sm);
  z-index: 5;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.sos-fav-heart:hover { background: rgba(0, 0, 0, 0.55); transform: scale(1.1); }
.sos-fav-heart--active { color: #ef4444; }
.sos-fav-heart--active:hover { color: #dc2626; }
.sos-fav-heart--active i { filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3)); }

/* Detail page heart — inline next to h1 */
.sos-detail-title-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sos-gap-sm);
}
.sos-detail-title-row h1 { flex: 1; }
.sos-fav-heart--detail {
  position: static;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  background: var(--sos-sand-100);
  color: var(--sos-gray-400);
  margin-top: 4px;
}
.sos-fav-heart--detail:hover { background: var(--sos-sand-200); color: var(--sos-gray-600); }
.sos-fav-heart--detail.sos-fav-heart--active { background: #fef2f2; color: #ef4444; }

/* Nav favorites link */
.sos-nav__fav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--sos-gray-500);
  font-size: 1rem;
  transition: color var(--sos-duration), background var(--sos-duration);
  text-decoration: none;
}
.sos-nav__fav:hover { color: #ef4444; background: var(--sos-sand-100); }
.sos-nav__fav-count {
  position: absolute;
  top: -3px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.sos-header--transparent .sos-nav__fav { color: rgba(255,255,255,0.85); }
.sos-header--transparent .sos-nav__fav:hover { color: #ef4444; background: rgba(255,255,255,0.15); }

/* Nav trip bag (multi-home checkout) — sits right of the Book Now button */
.sos-nav__bag {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--sos-gray-500);
  font-size: 1.05rem;
  cursor: pointer;
  transition: color var(--sos-duration), background var(--sos-duration), transform var(--sos-duration);
}
.sos-nav__bag:hover,
.sos-nav__bag[aria-expanded="true"] { color: var(--sos-teal); background: var(--sos-sand-100); }
.sos-nav__bag--filled { color: var(--sos-teal); }
.sos-nav__bag-count {
  position: absolute;
  top: -3px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 50%;
  background: var(--sos-orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  display: none;
  align-items: center;
  justify-content: center;
}
.sos-header--transparent .sos-nav__bag { color: rgba(255,255,255,0.85); }
.sos-header--transparent .sos-nav__bag:hover,
.sos-header--transparent .sos-nav__bag[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,0.15); }
@keyframes sosBagBump { 0% { transform: scale(1); } 40% { transform: scale(1.25) rotate(-6deg); } 100% { transform: scale(1); } }
.sos-nav__bag--bump { animation: sosBagBump 0.45s ease; }
.sos-mnav__bag-count {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--sos-orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Trip bag panel */
.sos-bag {
  position: fixed;
  z-index: 10005;
  width: 380px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 100px);
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(26,58,63,0.22), 0 0 0 1px rgba(12,156,190,0.08);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  font-family: var(--sos-font-body, inherit);
}
.sos-bag.is-open { opacity: 1; transform: none; }
.sos-bag--sheet {
  left: 12px !important;
  right: 12px !important;
  bottom: 12px;
  top: auto !important;
  width: auto;
  max-height: calc(100vh - 80px);
  transform: translateY(12px);
}
.sos-bag--sheet.is-open { transform: none; }
.sos-bag__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--sos-sand-100);
}
.sos-bag__title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--sos-slate-800); font-size: 1rem; }
.sos-bag__title i { color: var(--sos-teal); font-size: 1.2rem; }
.sos-bag__pill { background: var(--sos-sand-50); color: var(--sos-teal); font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.sos-bag__close { border: 0; background: transparent; color: var(--sos-gray-500); font-size: 1.1rem; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.sos-bag__close:hover { background: var(--sos-sand-50); color: var(--sos-slate-800); }
.sos-bag__empty { padding: 26px 22px 24px; text-align: center; color: var(--sos-gray-500); font-size: 0.9rem; line-height: 1.55; }
.sos-bag__empty > i { font-size: 2.4rem; color: var(--sos-teal); opacity: 0.7; }
.sos-bag__empty p { margin: 8px 0; }
.sos-bag__empty strong { color: var(--sos-slate-800); }
.sos-bag__empty .sos-bag__btn { margin-top: 10px; }
.sos-bag__dates {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 18px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--sos-sand-50);
  color: var(--sos-slate-800);
}
.sos-bag__dates > i { font-size: 1.5rem; color: var(--sos-teal); }
.sos-bag__dates > div { flex: 1; min-width: 0; line-height: 1.3; }
.sos-bag__dates-label { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sos-gray-500); font-weight: 700; }
.sos-bag__dates strong { font-size: 0.95rem; }
.sos-bag__dates-n { font-size: 0.8rem; color: var(--sos-gray-500); }
.sos-bag__lock { display: inline-flex; align-items: center; gap: 4px; font-size: 0.7rem; font-weight: 700; color: var(--sos-teal); background: #fff; padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.sos-bag__note { margin: 8px 18px 0; font-size: 0.76rem; color: var(--sos-gray-500); line-height: 1.4; }
.sos-bag__list { list-style: none; margin: 6px 0 0; padding: 4px 8px; }
.sos-bag__item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; transition: background var(--sos-duration); }
.sos-bag__item:hover { background: var(--sos-sand-50); }
.sos-bag__thumb { flex: 0 0 64px; width: 64px; height: 50px; border-radius: 10px; background: var(--sos-sand-100) center/cover no-repeat; }
.sos-bag__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sos-bag__name { font-weight: 700; color: var(--sos-slate-800); font-size: 0.88rem; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sos-bag__name:hover { color: var(--sos-teal); }
.sos-bag__meta { font-size: 0.74rem; color: var(--sos-gray-500); display: flex; align-items: center; gap: 4px; }
.sos-bag__remove { flex: 0 0 auto; border: 0; background: transparent; color: var(--sos-gray-500); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 0.95rem; }
.sos-bag__remove:hover { background: #fef2f2; color: #ef4444; }
.sos-bag__ft { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 18px 16px; border-top: 1px solid var(--sos-sand-100); margin-top: 6px; }
.sos-bag__hint { font-size: 0.74rem; color: var(--sos-gray-500); text-align: center; line-height: 1.4; }
.sos-bag__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--sos-duration), box-shadow var(--sos-duration), background var(--sos-duration);
}
.sos-bag__btn--primary { background: var(--sos-orange); color: #fff; box-shadow: 0 6px 18px rgba(248,164,30,0.35); }
.sos-bag__btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(248,164,30,0.45); color: #fff; }
.sos-bag__btn--ghost { background: var(--sos-sand-50); color: var(--sos-teal); }
.sos-bag__btn--ghost:hover { background: var(--sos-sand-100); }
.sos-bag__clear { align-self: center; border: 0; background: transparent; color: var(--sos-gray-500); font-size: 0.76rem; text-decoration: underline; cursor: pointer; padding: 4px; }
.sos-bag__clear:hover { color: #ef4444; }

/* Toast */
.sos-bag-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10006;
  transform: translate(-50%, 20px);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--sos-slate-800);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.sos-bag-toast i { color: #7ee2a8; font-size: 1.1rem; }
.sos-bag-toast.is-error { background: #b42318; }
.sos-bag-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* Date-lock modal */
.sos-bag-modal {
  position: fixed;
  inset: 0;
  z-index: 10007;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(26,58,63,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sos-bag-modal.is-open { display: flex; }
.sos-bag-modal__card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 22px;
  padding: 28px 26px 22px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  animation: sosBagModalIn 0.22s ease;
}
@keyframes sosBagModalIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.sos-bag-modal__icon { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 50%; background: var(--sos-sand-50); color: var(--sos-teal); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.sos-bag-modal__card h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--sos-slate-800); }
.sos-bag-modal__card p { margin: 0 0 16px; font-size: 0.9rem; color: var(--sos-gray-500); line-height: 1.55; }
.sos-bag-modal__card p strong { color: var(--sos-slate-800); }
.sos-bag-modal__actions { display: flex; flex-direction: column; gap: 8px; }
.sos-bag-modal__cancel { border: 0; background: transparent; color: var(--sos-gray-500); font-size: 0.82rem; text-decoration: underline; cursor: pointer; padding: 6px; }

/* "Add to trip" controls (cards, detail page, pairing funnel) */
.sos-bag-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--sos-teal);
  background: #fff;
  color: var(--sos-teal);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--sos-duration), color var(--sos-duration), border-color var(--sos-duration);
}
.sos-bag-add i { font-size: 1rem; }
.sos-bag-add:hover { background: var(--sos-teal); color: #fff; }
.sos-bag-add.is-in-bag { background: var(--sos-sand-50); border-color: var(--sos-sand-200); color: var(--sos-gray-500); }
.sos-bag-add.is-in-bag i { color: #16a34a; }
.sos-bag-add--block { width: 100%; padding: 12px 16px; font-size: 0.9rem; }
/* Listing cards: full-width bar flush along the card's bottom edge. Radius 0
   because the card (24px, overflow hidden) supplies the outer corners; a pill
   nested inside the card would break the concentric-radius rule. */
.sos-bag-add--bar {
  display: flex;
  width: 100%;
  margin-top: auto;
  padding: 12px 24px;
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--sos-sand-200);
  background: var(--sos-sand-50);
  color: var(--sos-teal);
  font-size: 0.82rem;
}
.sos-bag-add--bar:hover { background: var(--sos-teal); color: #fff; }
.sos-bag-add--bar.is-in-bag { background: var(--sos-sand-50); color: var(--sos-gray-500); }
.sos-bag-add--bar.is-in-bag:hover { background: var(--sos-sand-100); }
.sos-card__body:has(+ .sos-bag-add--bar) { padding-bottom: 16px; }
.sos-pair-card .sos-bag-add { margin-top: 12px; }
.sos-bag-add--detail { margin-top: 10px; }
.sos-booking-card__bag-hint { margin: 8px 0 0; font-size: 0.74rem; color: var(--sos-gray-500); text-align: center; line-height: 1.4; }


/* Nav search button */
.sos-nav__search-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: none;
  color: var(--sos-gray-500);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color var(--sos-duration), background var(--sos-duration);
}
.sos-nav__search-btn:hover { color: var(--sos-teal); background: var(--sos-sand-50); }
.sos-header--transparent .sos-nav__search-btn { color: rgba(255,255,255,0.85); }
.sos-header--transparent .sos-nav__search-btn:hover { color: #fff; background: rgba(255,255,255,0.15); }

/* Frosted bar behind whole header on transparent (homepage) */
.sos-header--transparent {
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.2) 100%);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.sos-header--transparent .sos-nav__link,
.sos-header--transparent .sos-nav__brand {
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Global search overlay */
.sos-gsearch-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}
.sos-gsearch-overlay--open { display: flex; }
.sos-gsearch {
  width: 90%;
  max-width: 560px;
  background: var(--sos-white);
  border-radius: var(--sos-radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  overflow: hidden;
}
.sos-gsearch__input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--sos-sand-200);
}
.sos-gsearch__input-wrap > i {
  color: var(--sos-gray-400);
  font-size: 1rem;
  flex-shrink: 0;
}
.sos-gsearch__input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--sos-font-body);
  font-size: 1.05rem;
  color: var(--sos-slate-800);
  background: none;
}
.sos-gsearch__input::placeholder { color: var(--sos-gray-400); }
.sos-gsearch__close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: var(--sos-gray-400);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sos-gsearch__close:hover { background: var(--sos-sand-50); color: var(--sos-slate-800); }
.sos-gsearch__results {
  max-height: 50vh;
  overflow-y: auto;
}
.sos-gsearch__results:empty { display: none; }
.sos-gsearch__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  text-decoration: none;
  color: var(--sos-slate-800);
  transition: background 0.15s;
  border-bottom: 1px solid var(--sos-sand-100);
}
.sos-gsearch__item:last-child { border-bottom: none; }
.sos-gsearch__item:hover { background: var(--sos-sand-50); }
.sos-gsearch__item-img {
  width: 56px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--sos-sand-100);
}
.sos-gsearch__item-info { flex: 1; min-width: 0; }
.sos-gsearch__item-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sos-gsearch__item-meta {
  font-size: 0.78rem;
  color: var(--sos-gray-500);
}
.sos-gsearch__empty {
  padding: 24px 20px;
  text-align: center;
  color: var(--sos-gray-400);
  font-size: 0.9rem;
}

/* Favorites toggle on properties search bar */
.sos-fav-toggle { color: var(--sos-gray-400); }
.sos-fav-toggle:hover { color: #ef4444; }
.sos-fav-toggle--active {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #ef4444 !important;
}

@media (max-width: 768px) {
  .sos-fav-heart { width: 28px; height: 28px; font-size: 0.8rem; }
  .sos-fav-heart--detail { width: 38px; height: 38px; font-size: 1rem; }
}

/* ==========================================================================
   Badge / Tag
   ========================================================================== */

.sos-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--sos-radius-full);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--sos-slate-800);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.sos-badge--orange {
  background: rgba(248, 164, 30, 0.9);
  color: #fff;
}

.sos-badge--teal {
  background: rgba(12, 156, 190, 0.9);
  color: #fff;
}

.sos-badge--feature {
  background: var(--sos-sand-50);
  color: var(--sos-slate-800);
  border: 1px solid var(--sos-sand-200);
  font-weight: 600;
}
.sos-badge--feature i { color: var(--sos-orange); font-size: 0.65em; }

/* ==========================================================================
   Header
   ========================================================================== */

.sos-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--sos-header-h);
  overflow: visible;
}

.sos-header--transparent {
  background: transparent;
}

.sos-header--solid {
  background: #ffffff;
  box-shadow: var(--sos-shadow-sm);
}

.sos-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--sos-container);
  margin: 0 auto;
  padding: 8px var(--sos-gap-lg);
}

/* Centered-logo layout using CSS Grid.
   1fr | auto | 1fr guarantees the logo column is always at the
   exact physical center regardless of content width on either side.
   Right nav and actions share the third column. */
/* Centered-logo nav bar layout:
   - Flexbox row: left-nav | spacer | right-nav | actions
   - Logo circle is position:fixed at viewport center, independent of layout
   - Nav items are centered vertically in the header bar
   - Logo extends below the header bar as a semi-circle */
.sos-header--centered .sos-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--sos-gap-xl);
}
.sos-header--centered .sos-nav--left {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
/* Logo spacer — invisible in the grid, the visual circle is position:fixed */
.sos-header--centered .sos-header__logo {
  width: 160px;
  margin: 0 12px;
}
.sos-header--centered .sos-nav--right {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: nowrap;
}
.sos-header--centered .sos-header__actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sos-header--centered .sos-nav__link {
  white-space: nowrap;
}
/* The visible logo circle — fixed to exact viewport center */
.sos-header__logo-circle {
  position: fixed;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 131px;
  height: 131px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  z-index: 1001;
  transition: width 0.28s var(--sos-ease), height 0.28s var(--sos-ease), top 0.28s var(--sos-ease), padding 0.28s var(--sos-ease), box-shadow 0.28s var(--sos-ease);
}
/* Scrolled state — shrink the centered logo circle so it fits cleanly
   inside the nav bar (100px header). Only applies on desktop; mobile
   already uses a compact top-left logo. */
.sos-header--scrolled .sos-header__logo-circle {
  width: 78px;
  height: 78px;
  top: 4px;
  padding: 4px;
}
.sos-header__logo-circle img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* Hide the inline logo images — the circle handles display */
.sos-header--centered .sos-header__logo-img { display: none; }
@media (max-width: 1280px) {
  .sos-header--centered .sos-header__inner { gap: 18px; }
  .sos-header--centered .sos-nav--left,
  .sos-header--centered .sos-nav--right { gap: 16px; }
  .sos-header--centered .sos-nav__link  { font-size: 1.15rem; }
}
@media (max-width: 1100px) {
  .sos-header--centered .sos-header__inner { gap: 12px; }
  .sos-header--centered .sos-nav--left,
  .sos-header--centered .sos-nav--right { gap: 12px; }
  .sos-header--centered .sos-nav__link  { font-size: 1.05rem; letter-spacing: 0.08em; }
  .sos-header--centered .sos-header__logo { width: 70px; height: 70px; padding: 8px; margin-top: 4px; }
}


.sos-header__logo img,
.sos-header__logo-img {
  height: 80px;
  width: auto;
}
@media (max-width: 768px) {
  .sos-header__logo img,
  .sos-header__logo-img { height: 50px; }
  :root { --sos-header-h: 100px; }
  /* Mobile: logo in top-left corner, no centered circle.
     `!important` on scrolled-overrides so the desktop shrink rule
     doesn't interfere with the mobile top-left placement.
     Sized down from 88px → 68px so the absolute-positioned logo
     doesn't crowd the action buttons on narrow Android viewports
     (Brave reported overlapping the search icon at 360px wide). */
  .sos-header__logo-circle,
  .sos-header--scrolled .sos-header__logo-circle {
    width: 68px !important;
    height: 68px !important;
    top: 6px !important;
    left: 16px;   /* 2026-10-16 (Tory): was 6px, too close to the screen edge; matches the 16px side margin below */
    padding: 3px !important;
    border-radius: 50%;
    background: #fff;
    transform: none;
    box-shadow: none !important;
  }
  /* Tighten the action-row spacing on mobile. The desktop "centered"
     header sets gap: 10px which felt cavernous between the search and
     favorite icons once the buttons themselves shrink down. 4px keeps
     them visually grouped without overlapping their hit areas. */
  .sos-header--centered .sos-header__actions { gap: 4px !important; }
  /* Same 16px side margin on both sides of the phone header (was 32px on the right only, logo at 6px on the left). */
  .sos-header--centered .sos-header__inner { padding: 0 16px; }
  .sos-nav__search-btn,
  .sos-nav__fav,
  .sos-nav__bag { width: 34px !important; height: 34px !important; font-size: 1.05rem !important; }
  .sos-header--centered .sos-header__logo {
    display: none;
  }
  .sos-header--centered .sos-nav--left,
  .sos-header--centered .sos-nav--right { gap: 16px; }
  .sos-header--centered .sos-nav__link { font-size: 0.88rem; }
}

.sos-header__logo-text {
  font-family: var(--sos-font-display);
  font-weight: 400;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: 0.02em;
  -webkit-text-stroke: 0.4px currentColor;
  text-stroke: 0.4px currentColor;
}

.sos-header--solid .sos-header__logo-text {
  color: var(--sos-slate-900);
}

/* Header actions — fav icon always, hamburger on mobile */
.sos-header__actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.sos-nav { display: flex; align-items: center; gap: var(--sos-gap-xl); justify-content: flex-end; flex: 1; }

.sos-nav__link {
  font-family: var(--sos-font-display);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  padding: 4px 0;
}

.sos-nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sos-orange);
  transition: width var(--sos-duration) var(--sos-ease);
}

.sos-nav__link:hover,
.sos-nav__link--active {
  color: #fff;
}

.sos-nav__link:hover::after,
.sos-nav__link--active::after {
  width: 100%;
}

.sos-header--solid .sos-nav__link {
  color: #000;
}

.sos-header--solid .sos-nav__link:hover,
.sos-header--solid .sos-nav__link--active {
  color: #000;
}

.sos-nav__cta {
  padding: 10px 22px;
  background: var(--sos-orange);
  color: #fff !important;
  border-radius: var(--sos-radius-full);
  font-family: var(--sos-font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--sos-duration) var(--sos-ease);
}

.sos-nav__cta:hover {
  background: var(--sos-orange-hover);
  color: #fff !important;
  transform: translateY(-1px);
}

/* Nav — Properties mega dropdown */
.sos-nav__mega-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.sos-nav__mega {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
}
.sos-nav__mega-wrap::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}
.sos-nav__mega-wrap:hover .sos-nav__mega { display: block; }
.sos-nav__mega-inner {
  background: rgba(242, 249, 249, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--sos-radius-xl);
  padding: 24px 28px;
  min-width: 760px;
  max-width: 900px;
  box-shadow: var(--sos-shadow-xl);
  border: 1px solid var(--sos-sand-200);
}
.sos-nav__mega-title {
  font-family: var(--sos-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sos-slate-800);
  margin: 0 0 16px;
}
.sos-nav__mega-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.sos-nav__mega-card {
  display: block;
  border-radius: var(--sos-radius-md);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--sos-duration) var(--sos-ease), box-shadow var(--sos-duration);
  background: var(--sos-white);
  border: 1px solid var(--sos-sand-200);
}
.sos-nav__mega-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sos-shadow-md);
}
.sos-nav__mega-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}
.sos-nav__mega-card span {
  display: block;
  padding: 10px 12px;
  font-family: var(--sos-font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--sos-slate-800);
}

/* Locations row in mega menu (5 per row) */
.sos-nav__mega-cards--locations {
  grid-template-columns: repeat(5, 1fr);
}

/* Modern dropdown menu */
.sos-nav__dropdown {
  display: flex;
  gap: 0;
  min-width: 820px;
  background: #fff;
  border-radius: var(--sos-radius-xl);
  box-shadow: var(--sos-shadow-xl);
  border: 1px solid var(--sos-sand-200);
  overflow: hidden;
}
.sos-nav__dropdown-col {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sos-nav__dropdown-col + .sos-nav__dropdown-col {
  border-left: 1px solid var(--sos-sand-200);
}
.sos-nav__dropdown-heading {
  font-family: var(--sos-font-display);
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--sos-teal);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sos-sand-100);
}
.sos-nav__dropdown-col a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-family: var(--sos-font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--sos-slate-800);
  text-decoration: none;
  border-radius: var(--sos-radius-sm);
  transition: background 0.15s, color 0.15s;
}
.sos-nav__dropdown-col a:hover {
  background: var(--sos-teal-light);
  color: var(--sos-teal);
}
/* The "Condos & Resorts" column heading links to the aggregate landing page,
   so it has to shed the item styling that .sos-nav__dropdown-col a applies. */
.sos-nav__dropdown-heading a {
  display: inline;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  border-radius: 0;
  text-decoration: none;
}
.sos-nav__dropdown-heading a:hover {
  background: none;
  color: var(--sos-teal-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* "All Condos & Resorts" sits at the foot of the column list */
.sos-nav__dropdown-col a.sos-nav__dropdown-all {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--sos-sand-100);
  border-radius: 0 0 var(--sos-radius-sm) var(--sos-radius-sm);
  font-weight: 700;
  color: var(--sos-teal);
}
.sos-mnav__panel a.sos-mnav__all {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--sos-sand-200);
  font-weight: 700;
  color: var(--sos-teal);
}
.sos-nav__dropdown-col a i {
  color: #0C9CBE;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  flex-shrink: 0;
  font-size: 16px;
  text-align: center;
}
.sos-nav__sub-link i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #0C9CBE;
}

/* Contact sub-dropdown */
.sos-nav__sub {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--sos-sand-200);
  border-radius: var(--sos-radius-md);
  box-shadow: var(--sos-shadow-lg);
  padding: 8px;
  min-width: 200px;
  display: none;
  z-index: 999;
}
.sos-nav__item-with-sub:hover .sos-nav__sub { display: block; }
.sos-nav__sub-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--sos-slate-800);
  text-decoration: none;
  border-radius: var(--sos-radius-sm);
  transition: background 0.15s;
  white-space: nowrap;
}
.sos-nav__sub-link:hover { background: var(--sos-teal-light); color: var(--sos-teal); }
.sos-nav__sub-link i { color: var(--sos-teal); width: 18px; text-align: center; font-size: 0.82rem; }

/* Multi-column mega menu */
.sos-nav__mega-inner--wide {
  display: flex;
  gap: 36px;
  min-width: 680px;
}
.sos-nav__mega-col {
  flex: 1;
  min-width: 0;
}
.sos-nav__mega-col .sos-nav__mega-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sos-teal);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sos-sand-200);
}
.sos-nav__mega-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sos-nav__mega-links a {
  display: block;
  padding: 7px 10px;
  font-family: var(--sos-font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--sos-slate-800);
  text-decoration: none;
  border-radius: var(--sos-radius-sm);
  transition: background 0.15s, color 0.15s;
}
.sos-nav__mega-links a:hover {
  background: var(--sos-teal-light);
  color: var(--sos-teal);
}

/* Nav — Contact with FAQ sub-item */
.sos-nav__item-with-sub {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.sos-nav__sub {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--sos-white);
  border-radius: var(--sos-radius-md);
  box-shadow: var(--sos-shadow-lg);
  padding: 6px 0;
  min-width: 100px;
  z-index: 1001;
}
.sos-nav__item-with-sub::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}
.sos-nav__item-with-sub:hover .sos-nav__sub { display: block; }
.sos-nav__sub-link {
  display: block;
  padding: 10px 20px;
  font-family: var(--sos-font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: #3e6166;
  white-space: nowrap;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all var(--sos-duration);
}
.sos-nav__sub-link:hover {
  color: var(--sos-teal);
  background: #e8f4f5;
}

/* Hide mobile-only elements on desktop */
.sos-nav__close { display: none; }
.sos-nav__mobile-logo { display: none; }
.sos-nav__mobile-hdr { display: none; }
.sos-nav__link--mobile-only { display: none; }

/* Mobile Menu Toggle */
.sos-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.sos-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--sos-white);
  transition: all var(--sos-duration) var(--sos-ease);
}

.sos-header--solid .sos-hamburger span {
  background: var(--sos-slate-800);
}

@media (max-width: 1024px) {
  .sos-hamburger { display: flex; }

  .sos-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--sos-white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0 var(--sos-gap-lg) var(--sos-gap-xl);
    transition: opacity 0.3s var(--sos-ease), visibility 0.3s;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
  }

  .sos-nav--open { opacity: 1; visibility: visible; }

  .sos-nav__mobile-hdr { display: flex; }

  /* Mobile nav header row: logo + close */
  .sos-nav__mobile-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--sos-header-h);
    flex-shrink: 0;
  }
  .sos-nav__mobile-logo {
    display: flex;
    align-items: center;
  }
  .sos-nav__mobile-logo img { height: 50px; width: auto; }

  .sos-nav__close {
    display: flex;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--sos-sand-300);
    background: none;
    color: var(--sos-slate-800);
    font-size: 1.1rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
  }
  .sos-nav__close:hover { border-color: var(--sos-teal); background: var(--sos-teal-light); }

  .sos-nav__link {
    color: var(--sos-slate-800);
    font-size: 1rem;
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--sos-sand-200);
  }
  .sos-nav__link::after { display: none !important; }

  .sos-nav__link:hover { color: var(--sos-teal); }

  /* Show FAQ as its own item on mobile, hide the dropdown version */
  .sos-nav__link--mobile-only { display: block !important; }
  .sos-nav__item-with-sub .sos-nav__sub { display: none !important; }
  .sos-nav__item-with-sub .sos-nav__link::after { display: none !important; }

  .sos-nav__cta {
    margin-top: var(--sos-gap-lg);
    text-align: center;
    width: 100%;
    display: block;
  }
  /* Header CTA stays inline & centered on mobile (it's in the actions row, not the drawer) */
  .sos-nav__cta--header {
    margin-top: 0 !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
    padding: 8px 14px !important;
    font-size: 0.72rem !important;
    white-space: nowrap !important;
  }

  /* Mobile: mega dropdown with image cards */
  .sos-nav__mega-wrap {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  .sos-nav__mega-wrap .sos-nav__link {
    width: 100%;
  }
  .sos-nav__mega {
    display: none;
    position: static;
    transform: none;
    width: 100%;
  }
  .sos-nav__mega-wrap::after { display: none; }
  .sos-nav__mega-wrap .sos-nav__mega { display: none; }
  .sos-nav__mega-wrap.sos-mega--open .sos-nav__mega { display: block; }
  .sos-nav__mega-inner, .sos-nav__dropdown {
    background: none;
    backdrop-filter: none;
    border-radius: 0;
    padding: 10px 0 6px;
    min-width: 0;
    box-shadow: none;
    border: none;
    flex-direction: column;
    gap: 0;
  }
  .sos-nav__dropdown-col { padding: 8px 0; border-left: none !important; }
  .sos-nav__dropdown-col + .sos-nav__dropdown-col { border-top: 1px solid var(--sos-sand-200); }
  .sos-nav__dropdown-heading { font-size: 1.05rem; margin-bottom: 6px; }
  .sos-nav__dropdown-col a { padding: 6px 10px; font-size: 0.85rem; }

  .sos-nav__mega-title { display: block; font-size: 0.7rem; margin-bottom: 8px; }
  .sos-nav__mega-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sos-nav__mega-inner--wide { flex-direction: column; gap: 16px; min-width: 0; }
  .sos-nav__mega-links a { padding: 5px 10px; font-size: 0.85rem; }

  /* Mobile: Contact sub-menu */
  .sos-nav__sub { position: static; transform: none; box-shadow: none; border: none; padding: 0; min-width: 0; display: block !important; }
  .sos-nav__item-with-sub .sos-nav__sub { display: block !important; }
  .sos-nav__sub-link { padding: 6px 10px; font-size: 0.85rem; }
  .sos-nav__mega-card {
    background: var(--sos-white);
    border: 1px solid var(--sos-sand-200);
    border-radius: var(--sos-radius-md);
  }
  .sos-nav__mega-card img { width: 100%; height: 90px; }
  .sos-nav__mega-card span {
    color: var(--sos-slate-800);
    padding: 10px 12px;
    font-size: 0.85rem;
    text-align: center;
  }
  .sos-nav__mega-card:hover { box-shadow: var(--sos-shadow-sm); }

  .sos-nav__cta {
    margin-top: var(--sos-gap-lg);
    text-align: center;
    width: 100%;
    display: block;
  }

  /* Mobile: FAQ hidden behind Contact toggle */
  .sos-nav__item-with-sub {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .sos-nav__item-with-sub .sos-nav__link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .sos-nav__item-with-sub .sos-nav__link::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.65rem;
    color: var(--sos-gray-400);
    transition: transform var(--sos-duration);
    width: auto;
    height: auto;
    background: none;
    position: static;
  }
  .sos-nav__item-with-sub.sos-sub-open .sos-nav__link::after {
    transform: rotate(180deg);
  }
  .sos-nav__sub {
    display: none;
    position: static;
    transform: none;
    background: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    width: 100%;
  }
  .sos-nav__item-with-sub.sos-sub-open .sos-nav__sub {
    display: block;
  }
  .sos-nav__item-with-sub::after { display: none; }
  .sos-nav__sub-link {
    padding: 12px 0 12px 24px;
    color: var(--sos-gray-500);
    border-bottom: 1px solid var(--sos-sand-200);
    font-size: 0.9rem;
  }
  .sos-nav__sub-link:hover { color: var(--sos-teal); background: none; }
  .sos-nav__item-with-sub .sos-nav__link::after { color: var(--sos-gray-400); }
}

/* ==========================================================================
   Mobile Nav Drawer
   ========================================================================== */

/* Hide mobile nav on desktop */
.sos-mnav, .sos-mnav-overlay { display: none; }

@media (max-width: 1024px) {
  /* Hide desktop nav on mobile */
  .sos-nav--desktop { display: none !important; }

  .sos-mnav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }
  .sos-mnav-overlay--open {
    opacity: 1;
    visibility: visible;
  }

  .sos-mnav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background: var(--sos-white);
    z-index: 9999;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  }
  .sos-mnav--open {
    right: 0;
  }

  .sos-mnav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--sos-sand-200);
    flex-shrink: 0;
  }
  .sos-mnav__logo img {
    height: 45px;
    width: auto;
  }
  .sos-mnav__close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--sos-sand-200);
    background: none;
    color: var(--sos-slate-800);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
  }
  .sos-mnav__close:hover {
    background: var(--sos-sand-50);
    border-color: var(--sos-teal);
    color: var(--sos-teal);
  }

  .sos-mnav__body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
  }

  .sos-mnav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    font-family: var(--sos-font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sos-slate-800);
    text-decoration: none;
    transition: background 0.15s;
  }
  .sos-mnav__link:hover,
  .sos-mnav__link:active {
    background: var(--sos-sand-50);
    color: var(--sos-teal);
  }
  .sos-mnav__link i {
    width: 20px;
    text-align: center;
    color: var(--sos-teal);
    font-size: 0.9rem;
  }
  .sos-mnav__link--sm {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--sos-gray-500);
    padding: 10px 24px;
  }
  .sos-mnav__link--sm i {
    color: var(--sos-gray-400);
  }

  /* Accordion */
  .sos-mnav__accordion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 24px;
    border: none;
    background: none;
    font-family: var(--sos-font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sos-slate-800);
    cursor: pointer;
    transition: background 0.15s;
  }
  .sos-mnav__accordion:hover {
    background: var(--sos-sand-50);
  }
  .sos-mnav__accordion span {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .sos-mnav__accordion span i {
    width: 20px;
    text-align: center;
    color: var(--sos-teal);
    font-size: 0.9rem;
  }
  .sos-mnav__arrow {
    font-size: 0.7rem;
    color: var(--sos-gray-400);
    transition: transform 0.25s;
  }
  .sos-mnav__accordion--open .sos-mnav__arrow {
    transform: rotate(180deg);
  }

  .sos-mnav__panel {
    display: none;
    padding: 0 24px 8px 56px;
  }
  .sos-mnav__panel--open {
    display: block;
  }
  .sos-mnav__panel a {
    display: block;
    padding: 8px 0;
    font-size: 0.88rem;
    color: var(--sos-gray-600);
    text-decoration: none;
    border-bottom: 1px solid var(--sos-sand-100);
    transition: color 0.15s;
  }
  .sos-mnav__panel a:last-child {
    border-bottom: none;
  }
  .sos-mnav__panel a:hover {
    color: var(--sos-teal);
  }

  .sos-mnav__divider {
    height: 1px;
    background: var(--sos-sand-200);
    margin: 4px 24px;
  }

  .sos-mnav__footer {
    flex-shrink: 0;
    padding: 16px 24px;
    border-top: 1px solid var(--sos-sand-200);
    background: var(--sos-sand-50);
  }
  .sos-mnav__cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 1rem;
    margin-bottom: 10px;
  }
  .sos-mnav__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--sos-teal);
    text-decoration: none;
  }
  .sos-mnav__phone:hover {
    text-decoration: underline;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.sos-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.sos-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sos-hero__bg img,
.sos-hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sos-hero__video {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.sos-hero__image--fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sos-hero__overlay {
  display: none;
}

.sos-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--sos-gap-xl);
}

.sos-hero__eyebrow {
  font-family: var(--sos-font-body);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  letter-spacing: 0.04em;
  text-transform: none;
  margin-bottom: var(--sos-gap-sm);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.4);
}

.sos-hero__title {
  font-family: var(--sos-font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  color: #fff;
  line-height: 1.05 !important;
  letter-spacing: 0.02em;
  margin-bottom: var(--sos-gap-lg);
  /* Layered shadows: tight crisp edge + soft wide halo for legibility on any video frame */
  text-shadow:
    0 1px 2px rgba(0,0,0,0.55),
    0 2px 6px rgba(0,0,0,0.45),
    0 6px 24px rgba(0,0,0,0.55),
    0 0 60px rgba(0,0,0,0.35);
  min-height: 2.1em;
  position: relative;
  isolation: isolate;
}
.sos-hero__title::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 130%;
  height: 220%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.18) 35%, rgba(0,0,0,0) 70%);
  z-index: -1;
  pointer-events: none;
}
.sos-hero__title--fit {
  font-size: 6.5rem; /* placeholder; replaced by JS measurement */
  white-space: nowrap;
  display: block;
  width: 100%;
  min-height: 0;
}

.sos-hero__highlight {
  position: relative;
  display: inline;
}
.sos-hero__highlight::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 0.05em;
  height: 0.22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M0 8 Q25 2 50 8 T100 8 T150 8 T200 8' fill='none' stroke='%23f8a41e' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x;
  background-size: 200px 100%;
  opacity: 0.9;
}

.sos-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  max-width: 580px;
  margin: var(--sos-gap-xl) auto 0;
  color: #fff;
  line-height: 1.6;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.4);
}

.sos-hero__actions {
  display: flex;
  gap: var(--sos-gap-md);
  justify-content: center;
  flex-wrap: wrap;
}

.sos-hero__search {
  margin: var(--sos-gap-xl) auto 0;
  max-width: 1140px;
  width: 100%;
  text-shadow: none;
  position: relative;
  z-index: 100;
}
@media (max-width: 768px) {
  .sos-hero__content {
    padding: 0 var(--sos-gap-md);
  }
  .sos-hero__title {
    min-height: 2.1em;
  }
  .sos-hero__search .sos-sb__outer {
    border-radius: var(--sos-radius-lg);
    padding: 4px;
  }
  .sos-hero__search .sos-sb__inner {
    border-radius: calc(var(--sos-radius-lg) - 2px);
  }
  .sos-hero__search .sos-sb__btn {
    border-radius: calc(var(--sos-radius-lg) - 2px);
  }
}

/* ==========================================================================
   Google Rating Badge
   ========================================================================== */

.sos-google-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--sos-sand-200);
  border-radius: var(--sos-radius-full);
  text-decoration: none;
  color: var(--sos-slate-800);
  font-family: var(--sos-font-display);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--sos-shadow-sm);
  transition: box-shadow var(--sos-duration) var(--sos-ease), transform var(--sos-duration) var(--sos-ease);
}
.sos-google-badge:hover {
  box-shadow: var(--sos-shadow-md);
  transform: translateY(-1px);
  color: var(--sos-slate-800);
}
.sos-google-badge__logo { flex-shrink: 0; }
.sos-google-badge__rating { font-family: var(--sos-font-body); font-weight: 800; font-size: 1rem; }
.sos-google-badge__stars { color: #FBBC05; font-size: 0.75rem; display: inline-flex; gap: 1px; }
.sos-google-badge__count { font-family: var(--sos-font-body); color: var(--sos-gray-500); font-weight: 400; font-size: 0.8rem; }

/* Hero variant — semi-transparent on dark backgrounds */
.sos-google-badge--hero {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.sos-google-badge--hero:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.sos-google-badge--hero .sos-google-badge__count { color: rgba(255,255,255,0.7); }
.sos-google-badge--hero .sos-google-badge__stars { color: #FBBC05; }

/* Footer variant — blends with teal background */
.sos-google-badge--footer {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
  box-shadow: none;
}
.sos-google-badge--footer:hover {
  background: rgba(255,255,255,0.22);
  box-shadow: none;
  color: #fff;
}
.sos-google-badge--footer .sos-google-badge__rating { color: #fff; }
.sos-google-badge--footer .sos-google-badge__stars { color: var(--sos-orange); }
.sos-google-badge--footer .sos-google-badge__count { color: rgba(255,255,255,0.6); }

/* ==========================================================================
   Page Hero (shorter, for inner pages)
   ========================================================================== */

.sos-page-hero {
  position: relative;
  padding: calc(var(--sos-header-h) + var(--sos-gap-3xl)) 0 var(--sos-gap-3xl);
  background: linear-gradient(135deg, var(--sos-teal-deep) 0%, var(--sos-teal) 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.sos-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>') repeat;
  background-size: 60px;
}

.sos-page-hero h1 {
  color: #fff;
  position: relative;
}

.sos-page-hero p {
  position: relative;
  max-width: 600px;
  margin: var(--sos-gap-md) auto 0;
  opacity: 0.85;
  font-size: 1.1rem;
}

.sos-page-hero__wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  z-index: 3; line-height: 0;
  pointer-events: none;
}
.sos-page-hero__wave svg { width: 100%; height: 80px; display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */

.sos-footer {
  background: var(--sos-teal);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--sos-gap-3xl) 0 0;
}

.sos-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--sos-gap-2xl);
  padding-bottom: var(--sos-gap-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sos-footer__brand p {
  margin-top: var(--sos-gap-md);
  line-height: 1.7;
  font-size: 0.95rem;
}

.sos-footer__heading {
  font-family: var(--sos-font-display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #fff;
  margin-bottom: var(--sos-gap-lg);
}

.sos-footer__links a {
  display: block;
  color: var(--sos-sand-300);
  padding: 6px 0;
  font-size: 0.95rem;
  transition: color var(--sos-duration) var(--sos-ease);
}

.sos-footer__links a:hover { color: var(--sos-orange); }

.sos-footer__contact p {
  display: flex;
  align-items: flex-start;
  gap: var(--sos-gap-sm);
  margin-bottom: var(--sos-gap-sm);
  font-size: 0.95rem;
}

.sos-footer__social {
  display: flex;
  align-items: center;
  gap: var(--sos-gap-sm);
  margin-top: var(--sos-gap-lg);
}

.sos-footer__social a:not(.sos-google-badge) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: all var(--sos-duration) var(--sos-ease);
}

.sos-footer__social a:not(.sos-google-badge):hover {
  background: var(--sos-orange);
  color: #fff;
}

/* Owner Portal link — sits inline in the contact column as another row
   styled exactly like the phone/address rows, with a subtle orange-on-hover
   to signal it's actionable. */
.sos-footer__owner-portal { transition: color var(--sos-duration) var(--sos-ease); }
.sos-footer__owner-portal:hover { color: var(--sos-orange); }

.sos-footer__grid {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}
.sos-footer__links a {
  color: rgba(255, 255, 255, 0.8);
}
.sos-footer__links a:hover { color: #fff; }
.sos-footer__contact p { color: rgba(255, 255, 255, 0.8); }
.sos-footer__contact a { color: rgba(255, 255, 255, 0.9); }

.sos-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sos-gap-lg) 0;
  font-size: 0.85rem;
  color: var(--sos-gray-500);
}

.sos-footer__bottom { color: rgba(255, 255, 255, 0.6); }
.sos-footer__bottom a { color: rgba(255, 255, 255, 0.6); }
.sos-footer__bottom a:hover { color: #fff; }

@media (max-width: 1024px) {
  .sos-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .sos-footer__grid { grid-template-columns: 1fr; }
  .sos-footer__bottom { flex-direction: column; gap: var(--sos-gap-sm); text-align: center; }
}

/* ==========================================================================
   Skeleton / Shimmer Loading
   ========================================================================== */

@keyframes sos-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.sos-skel-bar {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--sos-sand-100) 25%, var(--sos-sand-200) 50%, var(--sos-sand-100) 75%);
  background-size: 200% 100%;
  animation: sos-shimmer 1.5s ease infinite;
}
.sos-skel-bar--lg { height: 24px; width: 55%; margin: 4px auto 2px; border-radius: 8px; }
.sos-skel-bar--md { width: 35%; }
.sos-skel-bar--sm { width: 50%; }
.sos-skel-row { display: flex; justify-content: space-between; align-items: center; }
.sos-skel-divider { height: 1px; background: var(--sos-sand-200); margin: 4px 0; }
.sos-skel { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }

/* ==========================================================================
   Utilities
   ========================================================================== */

.sos-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.sos-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--sos-ease), transform 0.6s var(--sos-ease);
}

.sos-fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Mobile Overflow Fixes
   ========================================================================== */

@media (max-width: 768px) {
  .sos-hero__content { max-width: 100%; padding: 0 var(--sos-gap-md); box-sizing: border-box; }
  .sos-hero__title { font-size: clamp(1.7rem, 7vw, 2.6rem); word-break: break-word; }
  /* Disable the JS auto-fit on mobile and let the title wrap naturally */
  .sos-hero__title--fit {
    font-size: clamp(1.7rem, 7vw, 2.6rem) !important;
    white-space: normal !important;
    line-height: 1.1 !important;
  }
  .sos-hero__title--fit > span {
    font-size: inherit !important;
    white-space: normal !important;
    display: inline !important;
  }
  .sos-hero__search { max-width: 100%; }
  .sos-container { padding: 0 var(--sos-gap-md); }
  .sos-section { padding: var(--sos-gap-xl) 0; }
  .sos-detail-layout { grid-template-columns: 1fr !important; }
  .sos-detail-sidebar { position: static !important; }
  .sos-detail-gallery { padding-left: 0; padding-right: 0; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  pre, code { word-break: break-all; white-space: pre-wrap; }
  .sos-features-grid { grid-template-columns: 1fr 1fr !important; }
  .sos-about-team { grid-template-columns: repeat(2, 1fr) !important; }
}
/* True-mobile-only overrides (≤640) — pulled out of the 768 block above so
   foldable widths (641-1023) get the proper layouts:
   - 2-column reviews grid (so the user's Z Fold 7 unfolded shows two cols)
   - desktop-style single-hero gallery with mob hidden (foldable middle-tier
     rule in property-detail.css owns this) */
@media (max-width: 640px) {
  .sos-gallery-grid { grid-template-columns: 1fr !important; max-height: none !important; }
  .sos-gallery-grid__hero { grid-row: auto !important; }
  .sos-gallery-grid__thumb { display: none; }
  .sos-gallery-mob { display: block !important; }
  .sos-reviews-grid { grid-template-columns: 1fr !important; }
}

/* Share buttons on property detail pages */
.sos-share { display: inline-flex; gap: 6px; align-items: center; }
.sos-share__label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--sos-slate-700);
    margin-right: 4px;
}
.sos-share__btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--sos-sand-50, #fafaf8);
    border: 1px solid var(--sos-sand-200);
    color: var(--sos-slate-700);
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}
.sos-share__btn:hover { background: var(--sos-teal, var(--sos-orange)); color: #fff; border-color: transparent; }
.sos-share__copy { font: inherit; }

/* Breadcrumb wrappers now render only invisible JSON-LD — collapse their
   layout so they don't leave empty space between the header and gallery. */
.sos-detail-breadcrumbs,
.sos-detail-breadcrumbs--desktop,
.sos-detail-breadcrumbs--mobile {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
}

/* Property detail: one share bar per breakpoint (desktop / mobile) */
.sos-detail-share-slot--mobile { display: none; }
.sos-detail-share-slot--desktop { display: inline-flex; }
@media (max-width: 1024px) {
    .sos-detail-share-slot--desktop { display: none !important; }
    .sos-detail-share-slot--mobile { display: flex; margin-bottom: var(--sos-gap-lg); }
}

/* "Change dates" link on mobile sticky booking bar */
.sos-mbar__change {
    display: inline-block;
    margin-left: 10px;
    color: var(--sos-teal, #089cbf);
    text-decoration: underline;
    font-size: 0.76rem;
    font-weight: 600;
}
.sos-mbar__change:hover { text-decoration: none; }



/* Trip bag: Apple Pay / Google Pay button under Checkout, and the branded confirm dialog's destructive button (2026-10-02) */
.sos-bag__wallet { background: var(--sos-teal); color: #fff; box-shadow: 0 6px 16px rgba(12, 156, 190, .26); margin-top: 8px; }
.sos-bag__wallet:hover { background: var(--sos-teal-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(12, 156, 190, .32); }
.sos-bag__wlabel { font-weight: 800; }
.sos-bag__wsep { width: 1px; height: 18px; background: rgba(255, 255, 255, .55); margin: 0 10px; flex: none; }
.sos-bag__marks { display: inline-flex; align-items: center; gap: 8px; line-height: 1; font-weight: 700; }
.sos-bag__apple { width: 17px; height: 17px; display: block; margin-top: -2px; }
.sos-bag__google { width: 15px; height: 15px; display: block; }
.sos-bag__cash { width: 17px; height: 17px; display: block; border-radius: 4px; }
.sos-bag__btn--danger { background: #ef4444; color: #fff; box-shadow: 0 6px 18px rgba(239, 68, 68, .3); }
.sos-bag__btn--danger:hover { background: #dc2626; color: #fff; transform: translateY(-1px); }
.sos-bag-modal__icon--warn { background: #fef2f2; color: #ef4444; }
.sos-bag-modal .sos-bag__btn:focus { outline: none; }
.sos-bag-modal .sos-bag__btn--danger:focus-visible { box-shadow: 0 0 0 4px rgba(239, 68, 68, .25), 0 6px 18px rgba(239, 68, 68, .3); }
.sos-bag-modal .sos-bag__btn--primary:focus-visible { box-shadow: 0 0 0 4px rgba(248, 164, 30, .3), 0 6px 18px rgba(248, 164, 30, .35); }

/* Ad landing pages (/join/start/, ?lp=1 on /join pages; body.sos-lp): logo-only header, so centre the logo on phones too. */
@media (max-width: 768px) {
  body.sos-lp .sos-header__logo-circle,
  body.sos-lp .sos-header--scrolled .sos-header__logo-circle { left: 50%; transform: translateX(-50%); }
}
