/* Agent 3 — mobile type, cards, comfort, banners, sticky bar, scroll.
   Additive overlay. Does not rewrite stays-search.css or footer WDV credit. */

:root {
  --pv-hero-size: clamp(56px, 5.4vw, 64px);
  --pv-section-size: clamp(32px, 3.2vw, 40px);
  --pv-card-size: clamp(24px, 2.2vw, 28px);
  --pv-body-size: 17px;
}

html {
  scroll-behavior: auto;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  overflow-x: clip;
  font-size: var(--pv-body-size);
  line-height: 1.6;
}

.hero h1,
.hero.interior h1 {
  font-size: var(--pv-hero-size);
  line-height: 1.08;
  letter-spacing: -1.4px;
  max-width: 16ch;
}
.hero.interior.hero--overlay-low h1 {
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.1;
}
h2,
.section-heading h2,
.explore-heading h2,
.closing h2,
.welcome-copy h2,
.story-copy h2 {
  font-size: var(--pv-section-size);
  line-height: 1.18;
  letter-spacing: -0.8px;
}
.stay-content h3,
.stay-card h3,
.experience-copy h3,
.dining-card .restaurant-name,
.pompano-blog .experience-card h3 {
  font-size: var(--pv-card-size);
  line-height: 1.2;
}
.stay-search-form input,
.stay-search-form select,
.booking-card-pro input,
.booking-card-pro select,
.date-box input,
.guests-trigger {
  font-size: 16px;
}

.stay-card .stay-image,
.stay-card-full .stay-mosaic-main {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dfe9e6;
}
.stay-card .stay-image img,
.stay-mosaic-main img,
.stay-mosaic-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stay-mosaic-main,
.stay-mosaic-tile {
  min-height: 0;
  position: relative;
}
.stay-card-gallery {
  pointer-events: auto;
  z-index: 4;
  touch-action: manipulation;
}
.stay-mosaic-main > a {
  display: block;
  height: 100%;
}

.comfort-strip .comfort-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding-block: 22px;
}
.comfort-inner > span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 1.3;
  color: var(--navy, #163b49);
}
.comfort-inner svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.hero.interior {
  height: min(42svh, 420px);
  min-height: 280px;
  max-height: 420px;
}
.hero.interior .hero-inner {
  padding-top: 48px;
  padding-bottom: 36px;
}
.hero-image,
.hero-slides .hero-image,
.experience-slides img,
.welcome-photo > img,
.story-photo > img {
  object-fit: cover;
}
.hero-slides,
.experience-slides,
[data-banner-carousel] {
  touch-action: pan-y;
}
.dining-rail-wrap,
[data-dining-rail] {
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
}

.pv-sticky-bar {
  display: none;
}
.stay-card-price {
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy, #163b49);
}
.stay-card-price span {
  font-weight: 400;
  color: #617078;
}

@media (min-width: 901px) {
  .hero:not(.interior) {
    min-height: 620px;
  }
}

@media (max-width: 900px) {
  :root {
    --pv-hero-size: clamp(32px, 8.6vw, 38px);
    --pv-section-size: clamp(24px, 6.4vw, 28px);
    --pv-card-size: clamp(20px, 5.4vw, 23px);
    --pv-body-size: 16px;
  }
  body { font-size: 16px; line-height: 1.5; }
  .hero:not(.interior) {
    height: auto;
    min-height: 520px;
    max-height: none;
  }
  .hero:not(.interior) .hero-inner {
    padding-top: 36px;
    padding-bottom: 280px;
  }
  .hero-description,
  .welcome-copy > p:not(.eyebrow),
  .story-copy p:not(.eyebrow),
  .section-heading > p:last-child,
  .stay-description {
    font-size: 15px;
    line-height: 1.5;
  }
  .comfort-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
    padding-block: 16px;
  }
  .comfort-inner > span {
    font-size: 14px;
    line-height: 1.3;
  }
  .comfort-inner svg {
    width: 24px;
    height: 24px;
  }
  .hero.interior {
    height: auto;
    min-height: 220px;
    max-height: none;
  }
  .hero.interior .hero-inner {
    padding-top: 32px;
    padding-bottom: 28px;
  }
  .hero.interior .hero-description {
    font-size: 15px;
    margin: 10px 0 16px;
  }
  .stay-listing-mosaic {
    grid-template-columns: 1fr;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .stay-mosaic-side { display: none; }
  .stay-card .stay-description,
  .stay-card-full .stay-description,
  .stay-card-full .stay-detail {
    display: none;
  }
  .stay-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 4.6em;
    overflow: hidden;
  }
  .wrap {
    width: calc(100% - 32px);
    max-width: 100%;
  }
  .experience-grid,
  .stay-grid {
    gap: 16px;
  }
  .experience,
  .experience-main {
    height: 280px;
  }
  .photo-note {
    max-width: calc(100% - 12px);
  }
  .footer-invitation h2,
  .footer-columns,
  .footer-baseline {
    overflow-wrap: anywhere;
  }
  .pv-sticky-bar:not([hidden]) {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fcfbf7f2;
    border-top: 1px solid #e9e8e1;
    backdrop-filter: blur(12px);
  }
  .pv-sticky-bar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--accent-teal, #218F82);
    color: #fff;
    font-family: Ubuntu, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
  }
  body.pv-sticky-visible {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }
  body.pv-sticky-hidden .pv-sticky-bar,
  body.checkout-page-body .pv-sticky-bar,
  body.booking-page .pv-sticky-bar,
  body.pv-sheet-open .pv-sticky-bar,
  body.pv-keyboard-open .pv-sticky-bar {
    display: none !important;
  }
}

@media (max-width: 430px) {
  :root { --pv-body-size: 15px; }
  body { font-size: 15px; }
  .comfort-inner > span { font-size: 14px; }
  .hero-description { max-width: none; }
  .search-field { min-width: 0; }
  .stay-meta { flex-wrap: wrap; gap: 8px 12px; }
  .button { white-space: normal; }
}

@media (max-width: 320px) {
  .wrap { width: calc(100% - 24px); }
  .comfort-inner {
    grid-template-columns: 1fr;
  }
}
