@import url("/assets/css/rp-base.css"); /* UI-VOCAB-01 §1.2: the ONE shared base sheet (tokens + scrollbars) — rules live there, never here */
/* ResPilot — Public marketing site stylesheet */
/* Brand tokens are injected via <style> from tenant_setting('site_brand_color') */

:root {
  --brand:      #1877be;
  --brand-dark: #0f4f7c;
  --text:       #1b1f24;
  --muted:      #5b6773;
  --bg:         #ffffff;
  --panel:      #f6f8fb;
  --border:     #e6e9ee;
  --shadow:     0 10px 30px rgba(0,0,0,.12);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.brand__logo {
  height: 72px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}
.brand__name { font-weight: 700; font-size: 15px; line-height: 1.15; }
.brand__meta { font-size: 11px; opacity: .78; margin-top: 2px; }

/* Hamburger toggle */
.nav-toggle { display: none; }
.nav-toggle__btn {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle__btn span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  margin: 3px 0;
  border-radius: 2px;
}

/* Nav */
.site-nav {
  margin-left: auto;
  display: flex;
  gap: 2px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav > a {
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}
.site-nav > a:hover { background: var(--panel); text-decoration: none; }
.site-nav > a.active,
.site-nav > a[aria-current="page"] {
  background: var(--panel);
  border: 1px solid var(--border);
  font-weight: 700;
  text-decoration: none;
}

/* Legal dropdown */
.dd-wrap {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.dd-wrap .nav-dd {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.dd-wrap .nav-dd:hover,
.dd-wrap.open .nav-dd { background: var(--panel); }
.dd-wrap .nav-dd svg { transition: transform .2s; flex-shrink: 0; }
.dd-wrap.open .nav-dd svg { transform: rotate(180deg); }
.dd-wrap .dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 440px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
  box-shadow: var(--shadow);
}
.dd-wrap.open .dropdown { display: flex; }
.dd-head { padding: 4px 8px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.dd-head h4 { font-size: 13px; font-weight: 700; margin: 0 0 2px; }
.dd-head p  { font-size: 12px; color: var(--muted); margin: 0; }
.dd-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .1s, border-color .1s;
  color: var(--text);
}
.dd-item:hover { background: var(--panel); border-color: var(--border); text-decoration: none; }
.dd-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.dd-icon.teal  { background: #E1F5EE; }
.dd-icon.blue  { background: #E6F1FB; }
.dd-icon.amber { background: #FAEEDA; }
.dd-icon.coral { background: #FAECE7; }
.dd-icon.green { background: #EAF3DE; }
.dd-item h5 { font-size: 13px; font-weight: 700; margin: 0 0 1px; }
.dd-item p  { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.35; }
.dd-footer { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border); text-align: right; }
.dd-footer a { font-size: 12px; color: var(--muted); }
.dd-footer a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 420px;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero--img { background-color: transparent; }
.hero__overlay {
  min-height: 420px;
  background: linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,.18));
  display: flex;
  align-items: center;
}
.hero__content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 60px 18px 40px;
  color: #fff;
}
.hero__content h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  max-width: 56ch;
}
.hero__content p {
  margin: 0 0 20px;
  color: rgba(255,255,255,.92);
  font-size: 17px;
  max-width: 52ch;
}
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* Page hero (sub-pages) */
.page-hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
}
.page-hero--img { background-color: transparent; }
.page-hero__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 34px 18px;
}
.page-hero__inner h1 {
  margin: 0 0 6px;
  font-size: 26px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.page-hero__inner p {
  margin: 0;
  color: rgba(255,255,255,.90);
  font-size: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,.30);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.7);
  color: #fff;
  padding: 10px 16px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

/* ── Main content container ────────────────────────────────── */
.main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 30px 18px 56px;
}
.section-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--text);
}
.section-sub {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 22px;
}
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
}

/* Feature grid cards (accommodations, etc.) */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.feature {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.07);
  transition: box-shadow .15s, transform .15s;
}
.feature:hover { box-shadow: 0 10px 28px rgba(0,0,0,.11); transform: translateY(-2px); }
.feature img {
  width: 100%; height: 190px;
  object-fit: cover; display: block;
}
.feature-body { padding: 14px 16px 16px; }
.feature-title { font-weight: 700; font-size: 15px; margin: 0 0 5px; }
.feature-meta  { font-size: 13px; color: var(--muted); margin: 0; }
/* .feature-badge retired — UI-06 §1.4 (.rp-badge--info) */

/* ── Gallery ───────────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery img {
  width: 100%; height: 210px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: block;
}

/* ── Rates table ───────────────────────────────────────────── */
.rates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.rates-table th, .rates-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.rates-table thead th {
  background: var(--panel);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.rates-table tbody tr:last-child td { border-bottom: none; }
.rates-table tbody tr:hover td { background: #fafbfc; }
.rate-amount { font-size: 18px; font-weight: 700; color: var(--brand); }
.rate-period { font-size: 12px; color: var(--muted); }

/* ── Contact form ──────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color .15s;
}
.form-control:focus { outline: none; border-color: var(--brand); }
textarea.form-control { resize: vertical; min-height: 110px; }
.map-wrap {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; }
.map-placeholder {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 40px;
}

/* ── Legal pages ───────────────────────────────────────────── */
.legal-body { max-width: 820px; }
.legal-section { margin-bottom: 28px; }
.legal-section h2 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.legal-section h3 { font-size: 15px; font-weight: 700; color: var(--brand); margin: 18px 0 6px; }
.legal-section p, .legal-section li { font-size: 14px; color: var(--text); line-height: 1.65; }
.legal-section ul { padding-left: 18px; margin: 8px 0; }
.terms-group { margin-bottom: 36px; }
.terms-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.terms-item { margin-bottom: 20px; }
.terms-item h3 { font-size: 15px; margin: 0 0 6px; }
.terms-item p { font-size: 14px; color: #333; margin: 0; line-height: 1.65; }

/* Alert box for legal pages */
.legal-alert {
  background: #e6f1fb;
  border: 1px solid #bee3f8;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--brand-dark);
  margin-bottom: 24px;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: #0b1220;
  color: rgba(255,255,255,.88);
}
.site-footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 26px 18px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-col { min-width: 160px; }
.footer-title { font-weight: 700; margin: 0 0 8px; color: #fff; font-size: 14px; }
.footer-line { font-size: 13px; margin: 3px 0; color: rgba(255,255,255,.80); }
.site-footer a { color: rgba(255,255,255,.80); }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.10);
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 18px;
  font-size: 12px;
  color: rgba(255,255,255,.50);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* ── Info strips / stat bars ───────────────────────────────── */
.info-strip {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.info-strip-item { display: flex; flex-direction: column; gap: 2px; }
.info-strip-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.info-strip-value { font-size: 16px; font-weight: 700; color: var(--text); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .brand { flex-shrink: 1; min-width: 0; }   /* B-40: a long park name pushed the hamburger 8 px past a 390 px screen on every public page */
  .brand__name { overflow-wrap: anywhere; }
  .nav-toggle__btn { display: flex; }
  .brand__meta { display: none; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 0 6px;
  }
  .site-nav > a { width: 100%; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .hero__content { padding: 40px 18px 28px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .info-strip { gap: 18px; }
  /* Dropdown mobile flatten */
  .dd-wrap { width: 100%; flex-direction: column; align-items: flex-start; height: auto; }
  .dd-wrap .nav-dd { width: 100%; justify-content: space-between; }
  .dd-wrap .dropdown {
    position: static; transform: none; width: 100%;
    border: none; border-radius: 0; padding: 0 0 0 12px;
    box-shadow: none; background: transparent;
    border-left: 2px solid var(--border); margin-top: 4px;
  }
  .dd-wrap.open .dropdown { display: flex; }
  .dd-head { display: none; } .dd-footer { display: none; }
  .dd-icon { display: none; }
  .dd-item { padding: 6px 8px; }
  .dd-item p { display: none; }
  .site-footer__inner { gap: 16px; }
}
@media (max-width: 480px) {
  .hero__content h1 { font-size: 24px; }
}
