/*
 * brand.css — North Shore Vacation Rentals (The Island) brand overrides
 * Adapted to new design system base — blue-luxury palette maintained.
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  --color-text:          #0d1f3c;
  --color-text-muted:    #4a5e7a;
  --color-bg:            #f0f4fa;
  --color-bg-light:      #e4eaf5;
  --color-bg-dark:       #011a4a;  /* deep navy */
  --color-primary:       #033198;  /* deep blue */
  --color-primary-dark:  #021f6b;
  --color-secondary:     #c79842;  /* gold */
  --color-border:        #c0cfe0;

  /* Typography override: Playfair serif + Montserrat sans */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Montserrat', system-ui, -apple-system, sans-serif;

  /* Layout: wider than the engine's 75rem default */
  --container-max: 81.25rem; /* 1300px */
}

/* 16px root (100% of the browser default, so user font scaling still works) */
html { font-size: 100%; }

/* ── Header: transparent until scrolled, then solid ──────────────────
   Transparent on every page; templates in brand.yaml
   header.transparent_templates also get white nav + logo over their dark
   hero. Once scrolled it turns solid in NSVR's own background. */
.site-header:not(.scrolled) {
  background: transparent;
  border-bottom-color: transparent;
}
.site-header.scrolled { background: var(--color-bg); }

/* Nav sizes (engine default is 0.625–0.6875rem): dropdown items 0.9rem at
   every width; top-level items and CTA 0.8rem on desktop/laptop. */
.dropdown-menu li a { font-size: 0.9rem; }
@media (min-width: 769px) {
  .nav-link { font-size: 0.8rem; }
  .nav-cta { font-size: 0.8rem !important; }
}
/* Dropdown + mobile overlay in NSVR navy (engine default is HCLR's) */
.dropdown-menu { background: rgba(1,26,74,0.98); }

/* NSVR has more items and a wider font than HCLR: tighter tracking and
   padding keep the nav on one row inside the 1300px container. */
@media (min-width: 1280px) {
  .nav-link { letter-spacing: 0.1em; padding: 0.375rem 0.5rem; }
  .nav-cta { letter-spacing: 0.15em !important; padding: 0.375rem 0.75rem !important; }
}

/* Below that the nav no longer fits on one row, so use the menu-button
   overlay (the engine switches only at 768px). Mirrors the engine's
   ≤768px mobile nav rules. */
@media (min-width: 769px) and (max-width: 1279px) {
  .nav-mobile-toggle { display: flex; margin-left: 12px; }
  .header-phone { display: inline-flex; }
  .main-nav {
    display: none;
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md);
    gap: var(--space-sm);
    z-index: 99;
  }
  .main-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .nav-link { font-size: 0.8125rem; padding: 0.75rem 1rem; }
  .nav-cta { width: 100% !important; text-align: center !important; }
  .dropdown-menu { position: static; box-shadow: none; background: rgba(255,255,255,0.05); border: none; border-left: 2px solid var(--color-secondary); margin-left: 1rem; }
}
@media (max-width: 1279px) {
  /* Opaque: at 0.98 the page text still ghosted through */
  .main-nav { background: var(--color-bg-dark); }
  .site-header .main-nav.open .nav-link { color: rgba(255,255,255,0.88); }
  /* The scrolled header's backdrop-filter makes it the containing block for
     the fixed overlay, clipping the open menu to the header's height. */
  .site-header:has(.main-nav.open) {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* The menu button is the only way to close the overlay: keep it on top
     and light against the dark background. */
  .nav-mobile-toggle { position: relative; z-index: 100; }
  .site-header .nav-mobile-toggle[aria-expanded="true"] span { background: var(--color-white); }
  /* With a submenu open the list outgrows short screens: start it below
     the header and let the overlay scroll. */
  .main-nav {
    justify-content: flex-start;
    overflow-y: auto;
    padding-top: calc(var(--header-h, 5.5rem) + var(--space-sm));
  }
}

/* ── Page hero + search hero: full-bleed image, at least 60vh ──────────
   --page-hero-image is set per page in _base.html (a listing's featured
   photo, or frontmatter hero_image); hero.jpg when neither exists. */
.page-hero,
.section-search-hero {
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h, 6.25rem) + var(--space-md));
  padding-bottom: var(--space-lg);
  border-bottom: 0;
  background-color: var(--color-bg-dark);
  background-image:
    radial-gradient(ellipse at 70% 40%, rgba(199,152,66,0.12) 0%, transparent 55%),
    linear-gradient(160deg, rgba(1,26,74,0.88) 0%, rgba(1,26,74,0.55) 100%),
    var(--page-hero-image, url('/static/images/hero.jpg'));
  background-size: cover;
  background-position: center;
  color: #F0F4FA;
}
.page-hero > .container,
.section-search-hero > .container { width: 100%; }
.page-hero h1,
.page-hero .page-hero-title,
.section-search-hero h1 { color: #F0F4FA; }
.section-search-hero .section-lead,
.page-hero p,
.page-hero .page-hero-subtitle,
.page-hero .page-hero-sub { color: rgba(240,244,250,0.85); }
.page-hero .label { color: var(--color-secondary); }
.page-hero .breadcrumb a,
.page-hero .breadcrumb li,
.page-hero .breadcrumb li:not(:last-child)::after { color: rgba(240,244,250,0.7); }
.page-hero .breadcrumb a:hover { color: var(--color-secondary); }
@media (max-width: 768px) {
  .page-hero,
  .section-search-hero {
    min-height: 50vh;
    padding-top: calc(var(--header-h, 5.3125rem) + var(--space-sm));
    padding-bottom: var(--space-md);
  }
}

/* Island guide hero is dark too: clear the header, readable eyebrow,
   light outline button */
.iolt-hero { padding-top: calc(var(--header-h, 6.25rem) + var(--space-lg)); }
.iolt-hero-eyebrow { color: var(--color-secondary); filter: none; }
.iolt-hero .btn-outline { color: #F0F4FA; border-color: rgba(240,244,250,0.6); }
.iolt-hero .btn-outline:hover { background: #F0F4FA; color: var(--color-bg-dark); }

/* ── Search: filters stay in view while scrolling the results ───────── */
@media (min-width: 769px) {
  .search-filters {
    position: sticky;
    top: calc(var(--header-h, 5.5rem) + var(--space-sm));
    max-height: calc(100vh - var(--header-h, 5.5rem) - var(--space-md));
    overflow-y: auto;
  }
}

/* ── Property page: booking sidebar stays in view ──────────────────── */
@media (min-width: 961px) {
  .prop-sidebar {
    position: sticky;
    top: calc(var(--header-h, 5.5rem) + var(--space-sm));
    max-height: calc(100vh - var(--header-h, 5.5rem) - var(--space-md));
    overflow-y: auto;
  }
  .prop-booking-card { position: static; }
}

/* ── Content widths ─────────────────────────────────────────────────── */
.container.section .prose {
  max-width: 75rem; /* 1200px */
  margin-inline: auto;
}
.cta-interstitial {
  max-width: 50rem; /* 800px */
  margin-inline: auto;
}

/* ── Footer: higher-contrast text on the navy background ─────────────── */
.site-footer { color: #E4EAF5; }
.footer-col h4 { color: var(--color-secondary); }
.footer-col a,
.nap,
.nap a { color: rgba(240,244,250,0.82); }
.footer-col a:hover,
.nap a:hover,
.footer-managed a:hover { color: #FFFFFF; }
.footer-legal,
.footer-managed { color: rgba(240,244,250,0.65); }
.footer-managed a { color: rgba(240,244,250,0.8); text-decoration: underline; }
.footer-bottom { border-top-color: rgba(240,244,250,0.12); }

/* ── Hero: resort full-bleed ─────────────────────────────────────── */
.hero {
  min-height: 80vh;
  background-image:
    linear-gradient(160deg, rgba(1,26,74,0.88) 0%, rgba(1,26,74,0.55) 100%),
    url('/static/images/hero.jpg');
}

/* Gold CTA buttons */
.btn-primary {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}
.btn-primary:hover {
  background: #a07830;
  border-color: #a07830;
  color: #fff;
}

/* Blue outline */
.btn-outline {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Nav CTA: gold */
.nav-cta {
  border-color: var(--color-secondary) !important;
  color: var(--color-secondary) !important;
}
.nav-cta:hover {
  background: var(--color-secondary) !important;
  color: #fff !important;
}

/* Property rate: gold */
.property-card-rate {
  color: var(--color-secondary);
}

/* Resort amenity badges */
.amenity-badge {
  display: inline-block;
  background: var(--color-bg-light);
  color: var(--color-primary);
  border: 1px solid #c5d3f0;
  border-radius: var(--radius);
  padding: 3px 10px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Booking widget: blue */
.widget-book-btn {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.widget-book-btn:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

/* ── Why Book Direct page ─────────────────────────────────────────── */
.wbd-hero-grid {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
@media (max-width: 900px) {
  .wbd-hero-grid { grid-template-columns: 1fr; }
}

.wbd-book-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.wbd-book-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.wbd-book-card-body { padding: 20px 22px 22px; }
.wbd-book-name { font-family: var(--font-serif); font-size: 1.1rem; color: var(--color-text); margin-bottom: 4px; }
.wbd-book-meta { font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 8px; }
.wbd-book-rating { font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 14px; }
.wbd-book-rating .stars { color: var(--color-secondary); }
.wbd-book-price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--color-border); margin-bottom: 4px;
}
.wbd-book-price { font-family: var(--font-serif); font-size: 1.4rem; color: var(--color-secondary); }
.wbd-book-price small { font-family: var(--font-sans); font-size: 0.7rem; color: var(--color-text-muted); font-weight: 300; }
.wbd-book-cta { display: block; text-align: center; margin-top: 14px; }

.wbd-verify {
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 32px 0;
}
.wbd-verify-inner {
  display: flex; justify-content: center; gap: var(--space-md); flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto; padding-inline: 20px;
}
.wbd-verify-item { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--color-text-muted); max-width: 230px; }
.wbd-verify-ico {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(3,49,152,0.08);
  color: var(--color-primary); display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.wbd-verify-item strong { display: block; color: var(--color-text); font-weight: 500; font-size: 0.86rem; }

/* ── Texas Snowbirds page — drive-time quick facts ────────────────── */
.snowbird-drive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  margin-top: var(--space-md);
}
.snowbird-drive-item {
  background: var(--color-bg);
  padding: var(--space-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.snowbird-drive-item strong {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-secondary);
}
.snowbird-drive-item span {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--color-text-muted);
}

/* ── Texas Snowbirds page — perk cards ─────────────────────────────── */
.snowbird-perk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.snowbird-perk-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-secondary);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.snowbird-perk-icon { font-size: 1.6rem; line-height: 1; }
.snowbird-perk-card h3 { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 400; color: var(--color-text); margin: 0; }
.snowbird-perk-card p { font-size: 0.9rem; font-weight: 300; color: var(--color-text-muted); line-height: 1.65; margin: 0; flex: 1; }
.snowbird-perk-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-bg-dark);
  background: rgba(199,152,66,0.18);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ── Texas Snowbirds page — neighbor directory ─────────────────────── */
.snowbird-neighbor-intro { max-width: 65ch; }
.snowbird-neighbor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.snowbird-neighbor-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: var(--space-md);
  display: flex;
  gap: 14px;
  position: relative;
}
.snowbird-neighbor-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-bg-dark);
  color: var(--color-secondary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.1rem;
}
.snowbird-neighbor-body h3 { font-family: var(--font-serif); font-size: 1rem; font-weight: 400; color: var(--color-text); margin: 0 0 2px; }
.snowbird-neighbor-from { font-size: 0.78rem; color: var(--color-text-muted); margin-bottom: 6px; display: block; }
.snowbird-neighbor-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.snowbird-neighbor-tag {
  font-size: 0.72rem; font-weight: 400; color: var(--color-primary);
  border: 1px solid var(--color-border); padding: 2px 8px; border-radius: 20px;
}
.snowbird-neighbor-quote { font-size: 0.85rem; font-weight: 300; font-style: italic; color: var(--color-text-muted); line-height: 1.6; margin: 0; }
.snowbird-neighbor-example-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-text-muted); background: var(--color-bg-light);
  padding: 2px 8px; border-radius: 20px;
}

/* ── Texas Snowbirds page — local essentials ───────────────────────── */
.snowbird-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.snowbird-info-card h3 {
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 400;
  color: var(--color-text); margin-bottom: 10px;
  padding-bottom: 8px; border-bottom: 2px solid var(--color-border);
}
.snowbird-info-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.snowbird-info-card li { font-size: 0.88rem; font-weight: 300; color: var(--color-text-muted); line-height: 1.6; }
.snowbird-info-card li strong { display: block; color: var(--color-text); font-weight: 500; }
