/*
Theme Name: Clearwater Beach Suites
Theme URI: https://clearwaterbeachsuites.com
Author: Sunny Orange Stays
Author URI: https://sunnyorangestays.com
Description: Custom theme for Clearwater Beach Suites — a boutique beach suites on Clearwater Beach, Florida. Features dynamic suite listings and booking integration with Sunny Orange Stays.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: clearwater-beach-suites
*/

/* ==========================================================================
   Webfonts (mirror of Sunny Orange Stays' font stack)
   ========================================================================== */
@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-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-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-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-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-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-display: swap; }

/* Sand Beach — hand-drawn display font. size-adjust flattens native metrics
   so headings don't float with extra vertical space. */
@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-display: swap;
  size-adjust: 140%;
  ascent-override: 70%;
  descent-override: 20%;
  line-gap-override: 0%;
}

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

:root {
  /* Brand Colors */
  --cbs-sunset:        #f9a229;
  --cbs-sunset-hover:  #e8911a;
  --cbs-sunset-light:  rgba(249, 162, 41, 0.12);
  --cbs-ocean:         #01A4B6;
  --cbs-ocean-hover:   #018e9e;
  --cbs-ocean-light:   rgba(1, 164, 182, 0.08);
  --cbs-ocean-deep:    #016d7a;
  --cbs-sky:           #2dc5d3;

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

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

  /* Typography — Sunny Orange Stays stack */
  --cbs-font-display:  'Sand Beach', 'Raleway', serif;
  --cbs-font-body:     'Manrope', 'Open Sans', sans-serif;

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

  /* Radius */
  --cbs-radius-sm:     6px;
  --cbs-radius-md:     10px;
  --cbs-radius-lg:     16px;
  --cbs-radius-xl:     24px;
  --cbs-radius-full:   9999px;

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

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

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

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

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

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

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

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--cbs-ocean); text-decoration: none; transition: color var(--cbs-duration) var(--cbs-ease); }
a:hover { color: var(--cbs-ocean-hover); }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--cbs-font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--cbs-slate-900);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.cbs-btn--primary {
  background: var(--cbs-sunset);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249, 162, 41, 0.35);
}
.cbs-btn--primary:hover {
  background: var(--cbs-sunset-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 162, 41, 0.45);
}

.cbs-btn--secondary {
  background: var(--cbs-ocean);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 165, 181, 0.3);
}
.cbs-btn--secondary:hover {
  background: var(--cbs-ocean-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 165, 181, 0.4);
}

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

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

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

.cbs-card {
  background: #fff;
  border-radius: var(--cbs-radius-lg);
  overflow: hidden;
  box-shadow: var(--cbs-shadow-sm);
  transition: all var(--cbs-duration) var(--cbs-ease);
}

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

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

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

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

.cbs-card__body {
  padding: var(--cbs-gap-lg);
}

.cbs-card__title {
  font-size: 1.15rem;
  margin-bottom: var(--cbs-gap-xs);
}

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

/* Card heart — top-right of image */
.cbs-fav-heart {
  position: absolute;
  top: var(--cbs-gap-sm);
  right: var(--cbs-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;
}
.cbs-fav-heart:hover { background: rgba(0, 0, 0, 0.55); transform: scale(1.1); }
.cbs-fav-heart--active { color: #ef4444; }
.cbs-fav-heart--active i { filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3)); }

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

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

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

@media (max-width: 768px) {
  .cbs-fav-heart { width: 32px; height: 32px; font-size: 0.85rem; }
  .cbs-fav-heart--detail { width: 38px; height: 38px; font-size: 1rem; }
}

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

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

.cbs-badge--sunset {
  background: rgba(249, 162, 41, 0.9);
  color: #fff;
}

.cbs-badge--ocean {
  background: rgba(0, 165, 181, 0.9);
  color: #fff;
}

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

.cbs-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--cbs-header-h);
  transition: background var(--cbs-duration) var(--cbs-ease), box-shadow var(--cbs-duration) var(--cbs-ease);
}

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

.cbs-header--solid {
  background: rgba(242, 249, 249, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--cbs-shadow-sm);
}

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

.cbs-header__logo img,
.cbs-header__logo-img {
  height: 80px;
  width: auto;
}

@media (max-width: 768px) {
  :root { --cbs-header-h: 72px; }
  .cbs-header__logo img,
  .cbs-header__logo-img { height: 48px; }
}

.cbs-header__logo-text {
  font-family: var(--cbs-font-display);
  font-weight: 400;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: 0.02em;
}

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

/* Header actions — fav icon always, hamburger on mobile */
.cbs-header__actions {
  display: flex;
  align-items: center;
  gap: var(--cbs-gap-sm);
}

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

.cbs-nav__link {
  font-family: var(--cbs-font-body);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  padding: 4px 0;
}

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

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

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

.cbs-header--solid .cbs-nav__link {
  color: var(--cbs-gray-600);
}

.cbs-header--solid .cbs-nav__link:hover,
.cbs-header--solid .cbs-nav__link--active {
  color: var(--cbs-slate-900);
}

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

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

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

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

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

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

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

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

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

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

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

  /* Close button */
  .cbs-nav__close {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--cbs-sand-300);
    background: none;
    color: var(--cbs-slate-800);
    font-size: 1.1rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
  }
  .cbs-nav__close:hover { border-color: var(--cbs-ocean); background: var(--cbs-ocean-light); }

  /* Mobile logo */
  .cbs-nav__mobile-logo {
    display: block;
    position: absolute;
    top: 20px;
    left: var(--cbs-gap-lg);
  }
  .cbs-nav__mobile-logo img { height: 40px; width: auto; }

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

  .cbs-nav__link:hover { color: var(--cbs-ocean); }

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

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

  /* Mobile: mega dropdown with image cards */
  .cbs-nav__mega-wrap {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  .cbs-nav__mega-wrap .cbs-nav__link {
    width: 100%;
  }
  .cbs-nav__mega {
    display: none;
    position: static;
    transform: none;
    width: 100%;
  }
  .cbs-nav__mega-wrap::after { display: none; }
  .cbs-nav__mega-wrap .cbs-nav__mega { display: block; }
  .cbs-nav__mega-inner {
    background: none;
    backdrop-filter: none;
    border-radius: 0;
    padding: 10px 0 6px;
    min-width: 0;
    box-shadow: none;
    border: none;
  }
  .cbs-nav__mega-title { display: none; }
  .cbs-nav__mega-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cbs-nav__mega-card {
    background: var(--cbs-white);
    border: 1px solid var(--cbs-sand-200);
    border-radius: var(--cbs-radius-md);
  }
  .cbs-nav__mega-card img { width: 100%; height: 90px; }
  .cbs-nav__mega-card span {
    color: var(--cbs-slate-800);
    padding: 10px 12px;
    font-size: 0.85rem;
    text-align: center;
  }
  .cbs-nav__mega-card:hover { box-shadow: var(--cbs-shadow-sm); }

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

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

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

.cbs-hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
  pointer-events: none;
  color: var(--cbs-sand-50); /* matches background of the section below (cbs-section--sand) */
}
.cbs-hero__wave svg { width: 100%; height: 80px; display: block; }

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

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

.cbs-hero__bg img,
.cbs-hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cbs-hero__overlay {
  display: none;
}

.cbs-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 0 var(--cbs-gap-xl);
}

.cbs-hero__eyebrow {
  font-family: var(--cbs-font-body);
  font-weight: 600;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: var(--cbs-gap-md);
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.cbs-hero__title {
  font-family: var(--cbs-font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 4.8rem);
  color: #fff;
  line-height: 1.05;
  margin-bottom: var(--cbs-gap-lg);
  text-shadow: 0 2px 20px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.3);
  white-space: nowrap;
}
@media (max-width: 540px) {
  .cbs-hero__title { white-space: normal; } /* allow wrap on small screens where one line wouldn't fit */
}

.cbs-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  max-width: 580px;
  margin: var(--cbs-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);
}

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

.cbs-hero__search {
  margin-top: var(--cbs-gap-xl);
  max-width: 820px;
  width: 100%;
  text-shadow: none;
  position: relative;
  z-index: 100;
}
@media (max-width: 768px) {
  .cbs-hero__content {
    padding: 0 var(--cbs-gap-md);
  }
  .cbs-hero__search .cbs-sb__outer {
    border-radius: var(--cbs-radius-lg);
    padding: 4px;
  }
  .cbs-hero__search .cbs-sb__inner {
    border-radius: calc(var(--cbs-radius-lg) - 2px);
  }
  .cbs-hero__search .cbs-sb__btn {
    border-radius: calc(var(--cbs-radius-lg) - 2px);
  }
}
.cbs-hero__search .cbs-sb__outer {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.4);
}
.cbs-hero__search .cbs-sb__outer:focus-within,
.cbs-hero__search .cbs-sb__outer:has(.cbs-sb-cal--open) {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.2);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.5);
}
.cbs-hero__search .cbs-sb__inner {
  background: rgba(255,255,255,0.88);
}

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

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

.cbs-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;
}

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

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

/* Wave divider at the bottom of every inner-page hero (auto-injected via ::after).
   Fill color %23E8F4F5 = --cbs-white (matches the Suites listing/map container bg).
   To change per-page, override just this rule with a different fill hex. */
.cbs-page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 60 C360 120 720 0 1080 60 C1260 90 1380 80 1440 70 L1440 120 L0 120Z' fill='%23E8F4F5'/%3E%3C/svg%3E") no-repeat center / 100% 80px;
}

/* Star rating — solid, single color. --on lit, --off faded, both ocean-tinted. */
.cbs-stars { display: inline-flex; gap: 2px; color: var(--cbs-sunset); }
.cbs-star { color: inherit; }
.cbs-star--off { color: var(--cbs-sand-300); }

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

.cbs-footer {
  background: #01A4B6;
  color: rgba(255, 255, 255, 0.85);
  padding: var(--cbs-gap-3xl) 0 0;
}

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

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

.cbs-footer__heading {
  font-family: var(--cbs-font-body);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--cbs-gap-lg);
}

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

.cbs-footer__links a:hover { color: var(--cbs-sunset); }

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

.cbs-footer__social {
  display: flex;
  gap: var(--cbs-gap-sm);
  margin-top: var(--cbs-gap-lg);
}

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

.cbs-footer__social a:hover {
  background: var(--cbs-sunset);
  color: #fff;
}

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

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

.cbs-footer__bottom { color: rgba(255, 255, 255, 0.6); }
.cbs-footer__bottom a { color: rgba(255, 255, 255, 0.75); text-decoration: none; transition: color var(--cbs-duration) var(--cbs-ease); }
.cbs-footer__bottom a:hover { color: #fff; }
.cbs-footer__credits { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cbs-footer__credit-sep { opacity: 0.5; }

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

@media (max-width: 640px) {
  .cbs-footer__grid { grid-template-columns: 1fr; }
  .cbs-footer__bottom { flex-direction: column; gap: var(--cbs-gap-sm); text-align: center; }
  .cbs-footer__credits { justify-content: center; }
  .cbs-footer__credit-sep { display: none; } /* drop bullet; each credit gets its own line */
  .cbs-footer__credits { flex-direction: column; gap: 4px; }
}

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

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

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

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

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

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

/* ==========================================================================
   Map markers — shared across MapLibre maps (suites, area-guide, suite-detail)
   ========================================================================== */
/* Outer marker element is owned by MapLibre — do NOT set position or transform on it,
   or the marker strands at the map's top-left corner. All visual + animation lives on __inner. */
.cbs-home-pin-logo {
    width: 72px;
    height: 72px;
    cursor: pointer;
}
.cbs-home-pin-logo__inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 50%;
    border: 3px solid #01A4B6;
    box-shadow: 0 6px 14px rgba(0,0,0,.28);
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: 50% 100%;
    animation: cbs-pin-drop 0.55s cubic-bezier(.25,.85,.4,1.2) both;
    transition: transform .2s ease;
}
.cbs-home-pin-logo:hover .cbs-home-pin-logo__inner { transform: translateY(-3px) scale(1.06); }
.cbs-home-pin-logo__inner img { width: 82%; height: 82%; object-fit: contain; display: block; }
.cbs-home-pin__pulse {
    position: absolute; left: 50%; bottom: -4px;
    width: 22px; height: 8px; margin-left: -11px;
    border-radius: 50%;
    background: rgba(1,164,182,.35);
    filter: blur(3px);
    animation: cbs-pin-pulse 2.4s ease-in-out infinite;
}
@keyframes cbs-pin-drop {
    0%   { transform: translateY(-34px) scale(0.6); opacity: 0; }
    60%  { transform: translateY(2px)   scale(1.05); opacity: 1; }
    100% { transform: translateY(0)     scale(1); }
}
@keyframes cbs-pin-pulse {
    0%,100% { transform: scale(1); opacity: .45; }
    50%     { transform: scale(1.7); opacity: .15; }
}
.cbs-poi-pin { filter: drop-shadow(0 2px 3px rgba(0,0,0,.18)); transition: transform .18s ease; cursor: pointer; }
.cbs-poi-pin:hover { transform: translateY(-2px) scale(1.08); }
