/* =========================================================================
   Sundance Marinas — Design System
   Extracted verbatim from the approved Claude.ai homepage mockup.
   Single typeface: Montserrat (headings + body). No Arkhip.
   Class names mirror the reference (sm-*) for a faithful replication.

   Sections:
     1) Reset & base      6) What we offer
     2) Variables         7) Community
     3) Nav               8) Form
     4) Hero & stats      9) Footer
     5) Marina cards     10) Responsive
   ========================================================================= */

/* ── 1) RESET & BASE ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* offset sticky nav for #anchor jumps */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: #fff;
  color: var(--text-primary);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font); }
img, video { display: block; max-width: 100%; }
a { font-family: var(--font); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Accessibility skip link */
.sm-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange);
  color: var(--navy);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  z-index: 200;
  border-radius: 0 0 4px 0;
}
.sm-skip-link:focus { left: 0; }

/* ── 2) VARIABLES ──────────────────────────────────────────────────────── */
:root {
  --navy:        #1D2C42;
  --navy-dark:   #111e2e;
  --navy-deeper: #0d1a2e;
  --orange:      #ECA232;
  --tomato:      #DE6A31;
  --teal:        #3D7067;
  --yellow:      #F2CA04;
  --text-primary:   #1D2C42;
  --text-secondary: #4a5568;
  --border:      #e0e0e0;
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── 3) NAV ────────────────────────────────────────────────────────────── */
/* Sticky header. Lives on <header> (not .sm-nav) so it stays pinned for the
   whole page. The .sm-nav-hidden class slides it up (added on scroll-down,
   removed on scroll-up — see main.js) for a "reappear on scroll up" mobile nav. */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}
header.sm-nav-hidden { transform: translateY(-100%); }

.sm-nav {
  background: var(--navy);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  gap: 1rem;
  position: relative;
}
.sm-nav-logo { flex-shrink: 0; }
.sm-nav-logo img { height: 46px; display: block; width: auto; max-width: none; }

/* On desktop the menu wrapper is transparent — its children (links + CTA)
   sit directly in the nav flex row, preserving the logo · links · CTA layout. */
.sm-nav-menu { display: contents; }

.sm-nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}
.sm-nav-links a {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.15s;
}
.sm-nav-links a:hover,
.sm-nav-links a.is-active { color: var(--orange); }

.sm-nav-links a.maintenance {
  color: rgba(255,255,255,0.55);
  border: 0.5px solid rgba(255,255,255,0.2);
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 12px;
}
.sm-nav-links a.maintenance:hover {
  color: var(--orange);
  border-color: rgba(236,162,50,0.5);
}

.sm-nav-cta {
  background: var(--orange);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}
.sm-nav-cta:hover { background: #f0b040; }

/* Hamburger toggle — hidden on desktop, shown on mobile (see Responsive) */
.sm-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 7px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.sm-nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.sm-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.sm-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sm-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── 4) HERO & STATS ───────────────────────────────────────────────────── */
.sm-hero { position: relative; }

.sm-hero-video-wrap {
  width: 100%;
  height: 480px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

/* Production video: fills the wrap, sits behind the overlay */
.sm-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.sm-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(13,26,46,0.94) 0%, rgba(13,26,46,0.6) 45%, rgba(13,26,46,0.35) 100%);
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
}
.sm-hero-badge {
  display: inline-block;
  background: rgba(236,162,50,0.2);
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 3px;
  border: 0.5px solid rgba(236,162,50,0.4);
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sm-hero h1 {
  color: #fff;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  max-width: 520px;
  text-shadow: 0 1px 16px rgba(13,26,46,0.7);
}
.sm-hero p {
  color: rgba(255,255,255,0.92);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 440px;
  text-shadow: 0 1px 12px rgba(13,26,46,0.7);
}
.sm-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.sm-btn-primary {
  background: var(--orange);
  color: var(--navy);
  padding: 11px 22px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}
.sm-btn-primary:hover { background: #f0b040; }

.sm-btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  padding: 11px 22px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 0.5px solid rgba(255,255,255,0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s, color 0.15s;
}
.sm-btn-outline:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

/* Ghost button for light/white backgrounds (navy outline) */
.sm-btn-ghost {
  background: transparent;
  color: var(--navy);
  padding: 11px 22px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--gray-300, #cbd2da);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s, background 0.15s;
}
.sm-btn-ghost:hover { border-color: var(--navy); background: #f7f9f9; }

.sm-hero-stats {
  display: flex;
  gap: 2.5rem;
  background: var(--navy);
  padding: 1.25rem 2.5rem;
  border-top: 1px solid rgba(236,162,50,0.2);
  flex-wrap: wrap;
}
.sm-stat-num {
  color: var(--orange);
  font-size: 26px;
  font-weight: 600;
  display: block;
}
.sm-stat-label {
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── SHARED SECTION ───────────────────────────────────────────────────── */
.sm-section { padding: 3.5rem 2.5rem; background: #fff; }
.sm-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tomato);
  margin-bottom: 0.5rem;
}
.sm-section-h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.sm-section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* ── 5) MARINA CARDS ──────────────────────────────────────────────────── */
.sm-marina-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sm-marina-card {
  border: 0.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}
.sm-marina-card:hover {
  border-color: var(--orange);
  box-shadow: 0 2px 14px rgba(236,162,50,0.12);
}
/* Whole card is a link */
a.sm-marina-card { text-decoration: none; color: inherit; cursor: pointer; }
a.sm-marina-card:hover .sm-marina-link { color: var(--orange); }

/* Image holder — navy fallback shows behind a lazy <img> until/if it loads */
.sm-marina-img {
  position: relative;
  width: 100%;
  height: 150px;
  background: var(--navy);
  flex-shrink: 0;
  overflow: hidden;
}
.sm-marina-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sm-marina-body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.sm-marina-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
}
.sm-marina-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.sm-marina-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.sm-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.sm-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: inline-block;
  white-space: nowrap;
}
.tag-wet     { background: #e8f5f0; color: #0F6E56; }
.tag-dry     { background: #e8eef7; color: #185FA5; }
.tag-covered { background: #eeedfb; color: #534AB7; }
.tag-club    { background: #fef3e2; color: #7a4f00; }
.tag-house   { background: #f0ece8; color: #5c3d20; }

.sm-marina-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--tomato);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s;
}
.sm-marina-link:hover { color: var(--orange); }

/* Pacmar — full-width horizontal card */
.sm-marina-card.full-width {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 280px 1fr;
}
.sm-marina-card.full-width .sm-marina-img {
  height: auto;
  min-height: 140px;
  width: 100%;
}

/* ── 6) WHAT WE OFFER ─────────────────────────────────────────────────── */
.sm-offer { background: var(--navy); padding: 3.5rem 2.5rem; }
.sm-offer-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.5rem;
}
.sm-offer h2 { color: #fff; font-size: 28px; font-weight: 600; margin-bottom: 2rem; }
.sm-offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  overflow: hidden;
}
.sm-offer-item {
  background: var(--navy);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sm-offer-item i { font-size: 28px; color: var(--orange); }
.sm-offer-item h4 { font-size: 15px; font-weight: 600; color: #fff; }
.sm-offer-item p { font-size: 14px; color: rgba(255,255,255,0.82); line-height: 1.6; }

/* ── 7) COMMUNITY ─────────────────────────────────────────────────────── */
.sm-community { padding: 3.5rem 2.5rem; background: #fff; }
.sm-community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 0.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 1.5rem;
}
.sm-community-card {
  padding: 1.5rem;
  background: #fff;
  border-right: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
.sm-community-card:nth-child(2n) { border-right: none; }
.sm-community-card:nth-child(3),
.sm-community-card:nth-child(4) { border-bottom: none; }
.sm-community-icon {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background: #f0f4f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.sm-community-icon i { font-size: 20px; color: var(--teal); }
/* Linked community cards get a hover affordance */
a.sm-community-card { text-decoration: none; transition: background 0.15s; }
a.sm-community-card:hover { background: #f7f9f9; }
a.sm-community-card:hover h3 { color: var(--tomato); }
.sm-community-card h3 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 0.35rem; }
.sm-community-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

/* ── 8) FORM ──────────────────────────────────────────────────────────── */
/* Navy background, WHITE inputs with dark navy text */
.sm-form-section { background: var(--navy); padding: 3.5rem 2.5rem; }
.sm-form-section h2 { color: #fff; font-size: 28px; font-weight: 600; margin-bottom: 0.4rem; }
.sm-form-section > p { color: rgba(255,255,255,0.5); font-size: 15px; margin-bottom: 2rem; }
.sm-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sm-form-group { display: flex; flex-direction: column; gap: 5px; }
.sm-form-group.full { grid-column: 1 / -1; }
.sm-form-group label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sm-form-group input,
.sm-form-group select,
.sm-form-group textarea {
  background: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 10px 12px;
  color: var(--navy);
  font-size: 15px;
  font-family: var(--font);
  resize: none;
  outline: none;
}
.sm-form-group input::placeholder,
.sm-form-group textarea::placeholder { color: #aaa; }
.sm-form-group input:focus,
.sm-form-group select:focus,
.sm-form-group textarea:focus { box-shadow: 0 0 0 2px var(--orange); }
.sm-form-group textarea { height: 90px; }
.sm-form-group select { cursor: pointer; }

.sm-form-btn {
  margin-top: 1rem;
  background: var(--orange);
  color: var(--navy);
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  letter-spacing: 0.02em;
  transition: background 0.15s;
}
.sm-form-btn:hover { background: #f0b040; }

/* Netlify honeypot — visually hidden anti-spam field */
.sm-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ── 9) FOOTER ────────────────────────────────────────────────────────── */
.sm-footer { background: var(--navy-dark); padding: 2.5rem 2.5rem 1.5rem; }
/* Cap + center footer content so it doesn't spread edge-to-edge on wide screens */
.sm-footer-locations-row,
.sm-footer-links-row,
.sm-footer-bottom {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}
.sm-footer-locations-row {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
}
.sm-footer h5 {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}
.sm-footer-locations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 2rem;
}
.sm-footer-loc-name { font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.95); margin-bottom: 3px; }
.sm-footer-loc-addr { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.65; font-style: normal; }
.sm-footer-directions {
  font-size: 14px;
  color: var(--orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  font-weight: 600;
}
.sm-footer-directions:hover { color: var(--yellow); }
.sm-footer-links-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.sm-footer-col h5 { margin-bottom: 0.75rem; }
.sm-footer-col a {
  display: block;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.sm-footer-col a:hover { color: var(--orange); }
.sm-footer-bottom {
  border-top: 0.5px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sm-footer-bottom span { font-size: 13px; color: rgba(255,255,255,0.55); }
.sm-footer-social { display: flex; gap: 1rem; }
.sm-footer-social a { color: rgba(255,255,255,0.7); font-size: 14px; text-decoration: none; }
.sm-footer-social a:hover { color: var(--orange); }

/* ── 10) RESPONSIVE ───────────────────────────────────────────────────── */
/* Breakpoints mirror the reference (720px / 600px). The mobile nav menu
   behavior (≤720px) is the one production addition layered on the design. */

/* Nav collapses to a hamburger at ≤1220px — the full row (logo + 5 links +
   pill + CTA) needs ~1190px, so collapse before "Request Moorage" can clip. */
@media (max-width: 1220px) {
  .sm-nav { padding: 0 1.25rem; }
  .sm-nav-toggle { display: flex; }
  .sm-nav-cta { display: none; } /* surfaced inside the open menu instead */

  .sm-nav-menu {
    display: block;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 0.5px solid rgba(255,255,255,0.1);
    padding: 0.5rem 1.25rem 1.25rem;
    transform: translateY(-130%);
    transition: transform 0.2s ease;
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
    z-index: 99;
  }
  .sm-nav-menu.is-open { transform: translateY(0); }
  .sm-nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .sm-nav-links li { width: 100%; }
  .sm-nav-links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 16px;
    border-bottom: 0.5px solid rgba(255,255,255,0.08);
  }
  .sm-nav-links a.maintenance {
    border: 0.5px solid rgba(255,255,255,0.2);
    margin-top: 0.75rem;
    text-align: center;
    padding: 0.7rem;
  }
  .sm-nav-menu .sm-nav-cta {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.7rem;
    font-size: 15px;
  }
}

@media (max-width: 720px) {
  /* Hero grows to fit its content so the badge/headline never tuck under the
     sticky nav on narrow screens (the headline wraps to many lines on mobile). */
  .sm-hero-video-wrap { height: auto; }
  .sm-hero-overlay { position: relative; min-height: 480px; }

  /* Marina grid → single column; Pacmar stacks */
  .sm-marina-grid { grid-template-columns: 1fr; }
  .sm-marina-card.full-width {
    grid-column: 1;
    display: flex;
    flex-direction: column;
  }
  .sm-marina-card.full-width .sm-marina-img {
    width: 100%;
    height: 160px;
    min-height: unset;
  }
}

/* Footer locations: 4-up on wide desktop → 2-up on smaller → 1-up on phones */
@media (max-width: 980px) {
  .sm-footer-locations-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .sm-section,
  .sm-offer,
  .sm-community,
  .sm-form-section,
  .sm-intro,
  .sm-amenities-section,
  .sm-gallery-section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .sm-hero-overlay { padding: 1.5rem; }
  /* Even 2x2 grid so the stats line up cleanly on phones */
  .sm-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1rem;
    padding: 1.5rem;
  }
  .sm-form-grid { grid-template-columns: 1fr; }
  .sm-footer-locations-grid { grid-template-columns: 1fr; }
  .sm-footer-links-row { grid-template-columns: 1fr 1fr; }
  .sm-footer { padding: 2rem 1.25rem 1.5rem; }
  .sm-page-hero-overlay { padding: 1.5rem; }
}

/* =========================================================================
   SUBPAGE COMPONENTS
   Built on the same tokens/scale as the homepage so marina pages feel native.
     A) Page hero      B) Breadcrumb     C) Intro + At-a-glance
     D) Amenities      E) Gallery        F) Map
   ========================================================================= */

/* ── A) PAGE HERO (photo) ─────────────────────────────────────────────── */
.sm-page-hero {
  position: relative;
  height: 360px;
  background: var(--navy);
  overflow: hidden;
}
.sm-page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.sm-page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(13,26,46,0.94) 0%, rgba(13,26,46,0.55) 50%, rgba(13,26,46,0.3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
}
.sm-page-hero h1 {
  color: #fff;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 16px rgba(13,26,46,0.7);
}
.sm-page-hero .tagline {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 0.85rem;
  text-shadow: 0 1px 12px rgba(13,26,46,0.7);
}
.sm-page-hero .sm-tags { margin-top: 0.25rem; }
.sm-page-hero .sm-tag { font-size: 12px; }

/* ── B) BREADCRUMB ────────────────────────────────────────────────────── */
.sm-breadcrumb {
  background: #fff;
  padding: 0.9rem 2.5rem;
  border-bottom: 0.5px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}
.sm-breadcrumb a { color: var(--tomato); text-decoration: none; }
.sm-breadcrumb a:hover { color: var(--orange); }
.sm-breadcrumb span { color: var(--text-secondary); margin: 0 0.4rem; }

/* ── C) INTRO + AT-A-GLANCE ───────────────────────────────────────────── */
.sm-intro { background: #fff; padding: 3.5rem 2.5rem; }
.sm-intro-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.sm-intro-main p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.sm-intro-main p:last-child { margin-bottom: 0; }

.sm-glance {
  border: 0.5px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  background: #fafbfc;
}
.sm-glance h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tomato);
  margin-bottom: 1rem;
}
.sm-glance-row {
  display: flex;
  gap: 10px;
  padding: 0.7rem 0;
  border-bottom: 0.5px solid var(--border);
  font-size: 15px;
}
.sm-glance-row:last-of-type { border-bottom: none; }
.sm-glance-row i { color: var(--teal); font-size: 17px; flex-shrink: 0; margin-top: 1px; }
.sm-glance-row .label { color: var(--text-secondary); }
.sm-glance-row .value { color: var(--navy); font-weight: 600; }
.sm-glance-row address { font-style: normal; color: var(--navy); font-weight: 600; line-height: 1.5; }
.sm-glance .sm-footer-directions,
.sm-glance .glance-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 1rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--tomato);
  text-decoration: none;
}
.sm-glance .glance-link:hover { color: var(--orange); }

/* ── D) AMENITIES ─────────────────────────────────────────────────────── */
.sm-amenities-section { background: #fff; padding: 0 2.5rem 3.5rem; }
.sm-amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem 1.5rem;
  margin-top: 1.5rem;
}
.sm-amenity {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--navy);
  line-height: 1.5;
}
.sm-amenity i {
  flex-shrink: 0;
  color: var(--teal);
  font-size: 18px;
  margin-top: 1px;
}

/* ── E) GALLERY ───────────────────────────────────────────────────────── */
.sm-gallery-section { background: #fff; padding: 0 2.5rem 3.5rem; }
.sm-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 1.5rem;
}
.sm-gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--navy);
  border-radius: 6px;
  overflow: hidden;
}
.sm-gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── F) MAP ───────────────────────────────────────────────────────────── */
.sm-map { line-height: 0; }
.sm-map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

/* ── Subpage responsive ───────────────────────────────────────────────── */
@media (max-width: 720px) {
  .sm-intro-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .sm-gallery { grid-template-columns: repeat(2, 1fr); }
  .sm-breadcrumb { padding-left: 1.25rem; padding-right: 1.25rem; }
  .sm-map iframe { height: 320px; }
}

/* =========================================================================
   MORE SUBPAGE COMPONENTS (Directions / Contact / Maintenance / About)
   ========================================================================= */

/* ── Directions cards (map + address + button per marina) ─────────────── */
.sm-directions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 1.5rem;
}
.sm-direction-card {
  border: 0.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sm-direction-card iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}
.sm-direction-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.sm-direction-body h3 { font-size: 17px; font-weight: 600; color: var(--navy); }
.sm-direction-body address { font-style: normal; font-size: 15px; color: var(--text-secondary); line-height: 1.6; }
.sm-direction-body .phone { font-size: 15px; color: var(--navy); font-weight: 600; text-decoration: none; }
.sm-direction-body .phone:hover { color: var(--tomato); }
.sm-direction-card .sm-btn-primary { align-self: flex-start; margin-top: 0.6rem; }

/* ── Navy form panel on a white page (Maintenance / Contact) ──────────── */
.sm-form-panel {
  background: var(--navy);
  border-radius: 8px;
  padding: 2rem 2rem 2.25rem;
  max-width: 780px;
  margin-top: 1.75rem;
}
.sm-form-panel .sm-form-btn { margin-top: 1.25rem; }

/* ── Contact details list ─────────────────────────────────────────────── */
.sm-contact-list { display: flex; flex-direction: column; gap: 1.1rem; }
.sm-contact-item { display: flex; gap: 12px; align-items: flex-start; }
.sm-contact-item i { color: var(--teal); font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.sm-contact-item .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}
.sm-contact-item .value,
.sm-contact-item a { font-size: 16px; color: var(--navy); font-weight: 600; text-decoration: none; }
.sm-contact-item a:hover { color: var(--tomato); }

/* ── About: standalone stats band + prose ─────────────────────────────── */
.sm-stats-band {
  display: flex;
  gap: 2.5rem;
  background: var(--navy);
  padding: 1.75rem 2.5rem;
  flex-wrap: wrap;
}
.sm-prose p { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 1rem; max-width: 760px; }
.sm-prose p:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .sm-directions-grid { grid-template-columns: 1fr; }
  .sm-stats-band { padding: 1.5rem 1.25rem; gap: 1.5rem; }
}
@media (max-width: 600px) {
  .sm-contact-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   RATES (elegant moorage pricing) + LOCATION VIDEO
   ========================================================================= */

/* ── Rates ────────────────────────────────────────────────────────────── */
.sm-rates-section { background: #fff; padding: 0 2.5rem 3.5rem; }
.sm-rates { max-width: 760px; margin-top: 1.5rem; }

/* Segmented Lease / Month-to-Month toggle */
.sm-rates-toggle {
  display: inline-flex;
  gap: 4px;
  background: #f1f4f7;
  border: 0.5px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 1.5rem;
}
.sm-rates-toggle button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.sm-rates-toggle button.is-active { background: var(--navy); color: #fff; }

.sm-rate-group { margin-bottom: 1.75rem; }
.sm-rate-group:last-of-type { margin-bottom: 0; }
.sm-rate-group h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tomato);
  margin-bottom: 0.5rem;
}
/* Optional column headers (e.g. No trailer / With trailer) */
.sm-rate-cols {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 0.5px solid var(--border);
}
.sm-rate-cols span {
  min-width: 92px;
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.sm-rate-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 0.5px solid var(--border);
}
.sm-rate-group .sm-rate-row:last-child { border-bottom: none; }
.sm-rate-row .size { font-size: 15px; font-weight: 600; color: var(--navy); }
.sm-rate-row .note { font-size: 13px; font-weight: 400; color: var(--text-secondary); margin-left: 0.4rem; }
.sm-rate-prices { display: flex; gap: 1.5rem; flex-shrink: 0; }
.sm-price { min-width: 92px; text-align: right; }
.sm-price .pval { font-size: 17px; font-weight: 600; color: var(--navy); }
.sm-price .per { font-size: 12px; color: var(--text-secondary); margin-left: 1px; }
.sm-rate-note { font-size: 12px; color: var(--text-secondary); margin-top: 1.5rem; line-height: 1.6; max-width: 760px; }

/* ── Location video (YouTube) ─────────────────────────────────────────── */
.sm-video-section { background: #fff; padding: 0 2.5rem 3.5rem; }
.sm-video-frame {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin-top: 1.5rem;
  aspect-ratio: 16 / 9;
  background: var(--navy);
  border-radius: 8px;
  overflow: hidden;
}
.sm-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sm-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 1rem;
}
.sm-video-placeholder i { font-size: 46px; color: rgba(255,255,255,0.25); }
.sm-video-placeholder span { font-size: 13px; }

@media (max-width: 600px) {
  .sm-rates-section,
  .sm-video-section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .sm-rate-prices { gap: 1rem; }
  .sm-price,
  .sm-rate-cols span { min-width: 78px; }
}

/* =========================================================================
   CUSTOM INLINE SVG ICONS (for glyphs Tabler doesn't ship, e.g. taco)
   Sized + colored to match the Tabler icon in each context.
   ========================================================================= */
.sm-community-icon svg { width: 22px; height: 22px; color: var(--teal); }
.sm-offer-item svg { width: 26px; height: 26px; color: var(--orange); }

/* =========================================================================
   BOATER EDUCATION + COMMUNITY CALENDAR
   ========================================================================= */
.sm-edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 1.5rem;
}
.sm-edu-card {
  border: 0.5px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sm-edu-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #f0f4f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
}
.sm-edu-icon i { font-size: 21px; color: var(--teal); }
.sm-edu-card h3 { font-size: 15px; font-weight: 600; color: var(--navy); }
.sm-edu-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* Callout box (e.g. "see the calendar for dates") */
.sm-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #f0f4f0;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}
.sm-callout p { font-size: 14px; color: var(--navy); margin: 0; max-width: 520px; }
.sm-callout .sm-btn-primary { flex-shrink: 0; }

/* Seminar schedule (month -> topic) */
.sm-schedule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.5rem;
  margin-top: 1.5rem;
  max-width: 860px;
}
.sm-schedule div {
  display: flex;
  gap: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 0.5px solid var(--border);
  font-size: 14px;
  line-height: 1.5;
}
.sm-schedule .mon { font-weight: 600; color: var(--navy); min-width: 58px; flex-shrink: 0; }
.sm-schedule .top { color: var(--text-secondary); }
@media (max-width: 600px) { .sm-schedule { grid-template-columns: 1fr; } }

/* Calendar embed — responsive, with a placeholder until a calendar is connected */
.sm-calendar-section { background: #fff; padding: 0 2.5rem 3.5rem; }
.sm-calendar-frame {
  position: relative;
  width: 100%;
  margin-top: 0;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fafbfc;
}
.sm-calendar-frame iframe { display: block; width: 100%; height: 620px; border: 0; }
.sm-calendar-placeholder {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 360px;
  padding: 2rem;
  color: var(--text-secondary);
}
.sm-calendar-placeholder i { font-size: 46px; color: var(--gray-300, #cbd2da); }
.sm-calendar-placeholder span { font-size: 14px; max-width: 420px; line-height: 1.6; }

@media (max-width: 600px) {
  .sm-calendar-section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .sm-calendar-frame iframe { height: 520px; }
}

/* =========================================================================
   PRICING COMPARISON PAGE
   ========================================================================= */
.sm-pricing-block {
  padding-top: 1.75rem;
  margin-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.sm-pricing-block:first-of-type { padding-top: 0; margin-top: 0; border-top: 0; }
.sm-pricing-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.sm-pricing-name a { color: var(--navy); text-decoration: none; }
.sm-pricing-name a:hover { color: var(--tomato); }
.sm-pricing-note { font-size: 13px; color: var(--text-secondary); margin: -0.5rem 0 0.9rem; }

/* =========================================================================
   GALLERY LIGHTBOX + CAROUSEL (vanilla JS, no dependencies)
   ========================================================================= */
.sm-gallery-item { cursor: pointer; }
.sm-gallery-item img { transition: transform 0.25s ease; }
.sm-gallery-item:hover img { transform: scale(1.05); }
.sm-gallery-item:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.sm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(13,26,46,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
.sm-lightbox.is-open { opacity: 1; visibility: visible; }
.sm-lightbox-figure {
  margin: 0;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.sm-lightbox-img {
  max-width: 92vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  background: var(--navy-deeper);
}
.sm-lightbox-cap { color: rgba(255,255,255,0.85); font-size: 13px; text-align: center; max-width: 80vw; }
.sm-lb-btn {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 0;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.sm-lb-btn i { font-size: 24px; }
.sm-lb-btn:hover { background: var(--orange); color: var(--navy); }
.sm-lb-close { top: 18px; right: 18px; }
.sm-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.sm-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.sm-lb-counter {
  position: absolute;
  top: 24px;
  left: 24px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}
@media (max-width: 600px) {
  .sm-lb-prev { left: 8px; }
  .sm-lb-next { right: 8px; }
  .sm-lb-btn { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .sm-gallery-item:hover img { transform: none; }
}
