/* KuboVistas site shell — header, responsive drawer and footer */
:root {
  --shell-height: 78px;
  --shell-ink: #163b37;
  --shell-paper: #fffdf7;
  --shell-line: rgba(22, 59, 55, .14);
  --shell-accent: #b96d4b;
  --footer-bg: #171b1a;
  --footer-text: #d7d5cf;
  --footer-muted: #979b96;
}
#header {
  position: sticky; z-index: 60; top: 0; display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center; min-height: var(--shell-height);
  padding: 10px clamp(18px, 3.5vw, 64px);
  border-bottom: 1px solid var(--shell-line);
  background: color-mix(in srgb, var(--shell-paper) 94%, transparent);
  box-shadow: 0 10px 34px rgba(16, 48, 43, .06);
  backdrop-filter: saturate(130%) blur(14px);
}
#header .brand {
  grid-column: 1; display: inline-flex; align-items: center; justify-self: start;
  gap: 11px; min-width: 0; color: var(--shell-ink); text-decoration: none;
}
#header .brand-mark {
  flex: 0 1 auto; width: clamp(64px, 9vw, 132px); height: 64px; object-fit: contain;
  border-radius: 0; box-shadow: none;
}
#header #nav {
  grid-column: 2; display: flex; align-items: center; justify-content: center;
  gap: clamp(2px, .45vw, 8px);
}
#header #nav > a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 clamp(8px, .85vw, 14px); border-radius: 999px; color: #263d39;
  font-size: 13px; font-weight: 650; text-decoration: none; white-space: nowrap;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}
#header #nav > a:hover,
#header #nav > a.active,
#header #nav > a[aria-current="page"] {
  color: var(--shell-ink); background: #e8efe7; transform: translateY(-1px);
}
#header #nav > a:focus-visible,
#header .header-actions > *:focus-visible,
#header .menu-toggle:focus-visible,
.vista-footer a:focus-visible,
.vista-footer button:focus-visible { outline: 3px solid #cf8d61; outline-offset: 3px; }
#header .nav-mobile-kicker { display: none; }
#header .header-actions {
  grid-column: 3; display: flex; align-items: center; justify-self: end;
  gap: 7px; min-width: 0;
}
#header .icon-button,
#header .account-button,
#header .saved-places-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; border: 1px solid transparent;
  border-radius: 999px; color: var(--shell-ink); background: transparent;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
#header .icon-button:hover,
#header .account-button:hover,
#header .saved-places-button:hover {
  border-color: var(--shell-line); background: #edf2eb; transform: translateY(-1px);
}
#header .icon-button svg,
#header .account-avatar,
#header .saved-places-button svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
#header .saved-places-button {
  gap: 7px; padding: 0 8px 0 12px; font: inherit; cursor: pointer;
}
#header .saved-label { font-size: 12px; font-weight: 700; white-space: nowrap; }
#header #saved-count {
  display: grid; place-items: center; min-width: 23px; height: 23px; padding: 0 6px;
  border-radius: 999px; color: #fff; background: var(--shell-accent);
  font-size: 11px; font-weight: 800;
}
#header .account-button { gap: 7px; padding: 0 12px; border-color: var(--shell-line); }
#header .account-label { font-size: 12px; font-weight: 750; white-space: nowrap; }
#header .header-plan {
  min-height: 44px; padding-inline: 16px; border-color: var(--shell-ink);
  color: #fff; background: var(--shell-ink);
  box-shadow: 0 9px 20px rgba(22, 59, 55, .16); white-space: nowrap;
}
#header .header-plan:hover { color: #fff; background: #22524c; transform: translateY(-1px); }
#header .menu-toggle { display: none; }
#header [hidden] { display: none !important; }
.nav-backdrop { display: none; }
.mobile-dock { display: none !important; }

/* Premium editorial footer */
.vista-footer {
  --footer-bg: #142d29;
  --footer-text: #f5f2e9;
  --footer-muted: #b5c4bc;
  position: relative; z-index: 2; overflow: hidden;
  color: var(--footer-text); background: var(--footer-bg); font-size: 13px;
}
.vista-footer a:focus-visible,
.vista-footer button:focus-visible,
.vista-footer summary:focus-visible { outline: 3px solid #d6a778; outline-offset: 4px; }
.vista-footer .footer-promo {
  position: relative; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; max-width: 1440px; margin: 0 auto;
  padding: clamp(42px, 6vw, 78px) clamp(22px, 5vw, 72px);
  border-bottom: 1px solid rgba(255,255,255,.16);
  background: radial-gradient(ellipse at 84% 10%, rgba(190,143,94,.16), transparent 42%);
}
.vista-footer .footer-promo-copy { max-width: 780px; }
.vista-footer .footer-eyebrow {
  display: block; margin-bottom: 16px; color: #d6b58a;
  font-size: 10px; font-weight: 800; letter-spacing: .18em;
}
.vista-footer .footer-promo h2 {
  margin: 0; color: #fffdf7;
  font: 500 clamp(30px, 4.3vw, 54px)/1.12 var(--serif, Georgia, serif);
  letter-spacing: -.035em;
}
.vista-footer .footer-promo h2 em { color: #d8bd98; font-weight: 400; }
.vista-footer .footer-promo p { margin: 15px 0 0; color: #c0ccc4; font-size: 14px; line-height: 1.7; }
.vista-footer .footer-cta {
  display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 22px;
  min-height: 52px; padding: 0 21px; border: 1px solid #e5d4b9; border-radius: 999px;
  color: #193a33; background: #e9d9bf; font-size: 13px; font-weight: 800;
  text-decoration: none; transition: transform .2s ease, background .2s ease;
}
.vista-footer .footer-cta:hover { transform: translateY(-2px); background: #f5e8d2; }
.vista-footer .footer-main {
  display: grid; grid-template-columns: minmax(220px, 1.05fr) minmax(0, 3fr);
  gap: clamp(40px, 6vw, 88px); max-width: 1440px; margin: 0 auto;
  padding: clamp(48px, 6vw, 76px) clamp(22px, 5vw, 72px) clamp(42px, 5vw, 64px);
}
.vista-footer .footer-top { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.vista-footer .footer-wordmark { display: inline-flex; align-items: center; color: #fff; text-decoration: none; }
.vista-footer .footer-wordmark img { display: block; width: clamp(112px, 13vw, 164px); height: 86px; object-fit: contain; object-position: left center; }
.vista-footer .footer-tagline { max-width: 320px; margin: 0; color: #c0ccc4; font-size: 14px; line-height: 1.85; }
.vista-footer .footer-social { display: grid; gap: 11px; }
.vista-footer .footer-social > span,
.vista-footer .footer-group > summary {
  color: #d5c4a8; font-size: 10px; font-weight: 800;
  letter-spacing: .15em; text-transform: uppercase;
}
.vista-footer .social-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.vista-footer .social-links a { display: inline-flex; align-items: center; gap: 8px; color: #e8e8dc; font-size: 13px; text-decoration: none; }
.vista-footer .social-links a:hover { color: #e3bd8d; }
.vista-footer .footer-contact-link { color: #e3bd8d; font-size: 12px; line-height: 1.6; text-decoration: none; }
.vista-footer .footer-contact-link:hover { color: #fff; }
.vista-footer .footer-links {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
}
.vista-footer .footer-group { min-width: 0; margin: 0; border: 0; }
.vista-footer .footer-group > summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 35px;
  list-style: none; cursor: default; letter-spacing: .11em;
}
.vista-footer .footer-group > summary::-webkit-details-marker { display: none; }
.vista-footer .footer-group > summary span { display: none; }
.vista-footer .footer-group > div { display: grid; gap: 2px; padding-top: 12px; }
.vista-footer .footer-group a {
  display: flex; align-items: center; width: fit-content; min-height: 34px;
  color: var(--footer-muted); font-size: 12px; line-height: 1.5;
  text-decoration: none; overflow-wrap: anywhere;
  transition: color .18s ease, transform .18s ease;
}
.vista-footer .footer-group a:hover { color: #fff; transform: translateX(2px); }
.vista-footer .footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: 1440px; margin: 0 auto; padding: 22px clamp(22px, 5vw, 72px) calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,.12); color: #a9b8af; background: rgba(0,0,0,.12);
  font-size: 11px; line-height: 1.6;
}
.vista-footer .footer-bottom em { color: #e0d0b4; font-style: normal; }
.vista-footer .footer-utility-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 19px; }
.vista-footer .footer-bottom a,
.vista-footer .footer-bottom button { color: #b5c4bc; font: inherit; text-decoration: none; }
.vista-footer .footer-bottom a:hover,
.vista-footer .footer-bottom button:hover { color: #fff; }
.vista-footer .footer-bottom .text-button { min-height: 36px; padding: 0; border: 0; background: transparent; cursor: pointer; }
@media (max-width: 1179px) {
  .vista-footer .footer-main { grid-template-columns: 1fr; gap: 38px; }
  .vista-footer .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; }
}
@media (max-width: 820px) {
  .vista-footer .footer-promo { align-items: flex-start; flex-direction: column; }
  .vista-footer .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; }
  .vista-footer .footer-bottom { align-items: flex-start; flex-direction: column; }
  .vista-footer .footer-utility-links { justify-content: flex-start; }
}
@media (max-width: 719px) {
  .vista-footer .footer-promo { gap: 24px; padding-block: 42px; }
  .vista-footer .footer-promo h2 { font-size: clamp(29px, 8vw, 40px); }
  .vista-footer .footer-main { padding-block: 42px 34px; gap: 36px; }
  .vista-footer .footer-links { grid-template-columns: 1fr; gap: 0; }
  .vista-footer .footer-group { border-bottom: 1px solid rgba(255,255,255,.13); }
  .vista-footer .footer-group > summary { min-height: 57px; cursor: pointer; font-size: 11px; }
  .vista-footer .footer-group > summary span { display: block; color: #d6b58a; font-size: 19px; font-weight: 400; transition: transform .18s ease; }
  .vista-footer .footer-group[open] > summary span { transform: rotate(45deg); }
  .vista-footer .footer-group > div { padding: 0 0 16px; }
  .vista-footer .footer-group a { min-height: 42px; font-size: 13px; }
  .vista-footer .footer-bottom { padding-block: 20px calc(24px + env(safe-area-inset-bottom)); }
}
@media (max-width: 390px) {
  .vista-footer .footer-promo,
  .vista-footer .footer-main { padding-inline: 18px; }
  .vista-footer .footer-utility-links { gap: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .vista-footer *, .vista-footer *::before, .vista-footer *::after { transition: none !important; animation: none !important; }
}
.reduce-motion .vista-footer *, .reduce-motion .vista-footer *::before, .reduce-motion .vista-footer *::after { transition: none !important; animation: none !important; }

@media (max-width: 1179px) {
  :root { --shell-height: 70px; }
  #header {
    grid-template-columns: minmax(48px, 1fr) auto minmax(48px, 1fr);
    min-height: var(--shell-height); padding: 8px clamp(12px, 3vw, 28px);
  }
  #header .menu-toggle {
    grid-column: 1; grid-row: 1; display: inline-grid; place-items: center;
    justify-self: start; width: 44px; min-height: 44px;
    border: 1px solid var(--shell-line); border-radius: 50%;
    color: var(--shell-ink); background: transparent; font-size: 20px; cursor: pointer;
  }
  #header .brand { grid-column: 2; grid-row: 1; justify-self: center; }
  #header .header-actions { grid-column: 3; grid-row: 1; }
  #header #nav {
    position: fixed; z-index: 62; inset: var(--shell-height) auto 0 0;
    display: flex; align-items: stretch; justify-content: flex-start;
    flex-direction: column; gap: 4px; width: min(88vw, 390px);
    padding: 30px 22px calc(30px + env(safe-area-inset-bottom));
    overflow-y: auto; color: #fff; background: #173f3a;
    box-shadow: 18px 0 50px rgba(5, 21, 19, .3);
    transform: translateX(-104%); visibility: hidden;
    transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility .28s;
  }
  #header #nav.open { transform: translateX(0); visibility: visible; }
  #header .nav-mobile-kicker {
    display: block; margin: 2px 12px 20px; color: #c8a778;
    font-size: 11px; font-weight: 800; letter-spacing: .16em;
  }
  #header #nav > a {
    justify-content: space-between; min-height: 56px; padding: 0 12px;
    border-radius: 8px; color: #f9f6ee;
    font-family: var(--serif, Georgia, serif); font-size: 26px; font-weight: 500;
  }
  #header #nav > a::after { content: "↗"; color: #c8a778; font-family: sans-serif; font-size: 15px; }
  #header #nav > a:hover,
  #header #nav > a.active,
  #header #nav > a[aria-current="page"] {
    color: #fff; background: rgba(255,255,255,.09); transform: none;
  }
  .nav-backdrop {
    position: fixed; z-index: 58; inset: var(--shell-height) 0 0;
    display: block; border: 0; background: rgba(10, 24, 22, .52);
    opacity: 0; pointer-events: none; transition: opacity .25s ease;
  }
  .nav-backdrop.open,
  .nav-backdrop.visible { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  .vista-footer .footer-main { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 820px) {
  #header .saved-label,
  #header .account-label { display: none; }
  #header .saved-places-button,
  #header .account-button { width: 44px; padding: 0; }
  #header .header-plan { width: 44px; padding: 0; overflow: hidden; font-size: 0; }
  #header .header-plan::before { content: "↗"; font-size: 18px; }
  #header .header-plan > span { display: none; }
  #header .account-button[data-session="authenticated"] { display: none; }
  .vista-footer .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .vista-footer .footer-bottom { align-items: flex-start; flex-direction: column; }
  .vista-footer .footer-bottom > div { justify-content: flex-start; }
}
@media (max-width: 719px) {
  .vista-footer .footer-links { grid-template-columns: 1fr; gap: 0; }
  .vista-footer .footer-group { border-bottom: 1px solid rgba(255,255,255,.1); }
  .vista-footer .footer-group > summary { min-height: 57px; cursor: pointer; }
  .vista-footer .footer-group > summary span {
    display: block; font-size: 18px; transition: transform .18s ease;
  }
  .vista-footer .footer-group[open] > summary span { transform: rotate(45deg); }
  .vista-footer .footer-group > div { padding: 0 0 18px; }
  .vista-footer .footer-group a { min-height: 42px; }
}
@media (max-width: 600px) {
  #header { padding-inline: 10px; }
  #header .brand { gap: 7px; }
  #header .brand-mark { width: 64px; height: 50px; flex-basis: auto; }
  #header .header-actions { gap: 2px; }
  #header .header-actions .icon-button,
  #header .saved-places-button,
  #header .account-button,
  #header .header-plan { width: 42px; min-width: 42px; min-height: 44px; }
  #header #saved-count {
    position: absolute; margin: -25px -25px 0 0; min-width: 18px;
    height: 18px; padding: 0 4px; font-size: 9px;
  }
  .vista-footer .footer-main { padding-inline: 22px; }
  .vista-footer .footer-bottom { padding-inline: 22px; }
}
@media (max-width: 390px) {
  #header .brand-mark { width: 60px; height: 48px; }
}
@media (max-height: 540px) and (orientation: landscape) {
  #header #nav { padding-block: 18px; }
  #header #nav > a { min-height: 46px; font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  #header *, .nav-backdrop, .vista-footer * {
    scroll-behavior: auto !important; transition: none !important; animation: none !important;
  }
}
.reduce-motion #header *,
.reduce-motion .nav-backdrop,
.reduce-motion .vista-footer * { transition: none !important; animation: none !important; }
