/* Last Minute Desk: what every page shares. Built on DVC Companion's tokens.css (loaded first),
   recolored green by redefining the shared tokens, so every shared component (dropdowns, buttons,
   the resort sheet) follows. Page-specific styles stay in each page. */
:root {
  --color-primary: #0d6766;
  --color-primary-hover: #0a5352;
  --color-primary-active: #083f3e;
  --color-primary-tint-bg: #e1f0ee;
  --color-secondary: #083f3e;
  --ss-rule: #a8650f;
  --ss-rule-tint: #fbefdc;
  --ss-hatch: #e4e8e7;
  --seg1: #0d6766; --seg2: #6d8f2a; --seg3: #8a4fa3; --seg4: #b5651d;
  --save: #1e7b45; --save-tint: #e5f4ea;
}
/* tokens.css's dropdown hard-codes three purples; green here. */
.custom-select-trigger:hover { border-color: #8cc3bc; }
.custom-select-option:hover { background: #eef6f4; }
.custom-select-option.selected { background: var(--color-primary-tint-bg); }
.custom-select-option.active { background: #eef6f4; }

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }   /* "hidden" always wins over a component's own display */
dialog:modal { margin: auto; }   /* the reset above removes the browser's own centering of pop-up dialogs */
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--color-bg-page); color: var(--color-text); min-height: 100vh; display: flex; flex-direction: column; }
main, .page-main { flex: 1 0 auto; }
a { color: var(--color-primary); }

/* ---- Top bar (DVC Companion's, with this site's links) ---- */
.site-nav { background: white; border-bottom: 1px solid #e0e0e0; padding: 10px 24px; display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; position: sticky; top: 0; z-index: 100; }
.site-nav-brand { font-weight: 800; font-size: 1.02rem; color: var(--color-primary); text-decoration: none; letter-spacing: .2px; display: inline-flex; align-items: center; gap: 8px; }
.site-nav-brand img { width: 22px; height: 22px; }
.beta { font-size: .62rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; background: var(--color-primary-tint-bg); color: var(--color-primary-active); border-radius: var(--radius-pill); padding: 2px 8px; }
.site-nav-links { display: flex; gap: 16px; margin-left: auto; align-items: center; }
.site-nav-links a { font-size: .86rem; font-weight: 600; color: #555; text-decoration: none; }
.site-nav-links a:hover, .site-nav-links a[aria-current="page"] { color: var(--color-primary); }
.site-nav-links .btn-primary { color: #fff; padding: 7px 14px; font-size: .84rem; text-decoration: none; }

.header { background: linear-gradient(135deg, var(--color-secondary), var(--color-primary)); color: white; padding: 16px 24px; text-align: center; }
.header h1 { font-size: 1.3rem; font-weight: 600; margin-bottom: 2px; }
.header .subtitle { font-size: .8rem; opacity: .8; }

/* ---- Footer (filled by site.js) ---- */
.site-footer { margin-top: 32px; border-top: 1px solid #e3e7e6; background: white; padding: 18px 24px 26px; font-size: .78rem; color: #777; }
.site-footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; }
.site-footer b { color: var(--color-primary); }
.site-footer a { color: #666; }
.site-footer .legal { flex-basis: 100%; color: #999; line-height: 1.5; }

/* Generic content pages (privacy, terms, 404) */
.doc { width: 100%; box-sizing: border-box; max-width: 760px; margin: 0 auto; padding: 28px 24px 8px; line-height: 1.6; }
.doc h1 { font-size: 1.5rem; margin-bottom: 6px; }
.doc h2 { font-size: 1.05rem; margin: 22px 0 6px; }
.doc p, .doc li { font-size: .95rem; color: #333; }
.doc ul { padding-left: 20px; }
.doc .updated { color: #888; font-size: .82rem; }

@media (max-width: 700px) {
  .site-nav { padding: 10px 16px; gap: 8px 12px; }
  .site-nav-links { gap: 12px; }
  .site-nav-links .nav-hide-sm { display: none; }
  .header { padding: 10px 20px; }
  .header h1 { font-size: 1.05rem; }
  .header .subtitle { font-size: .7rem; }
  .site-footer { padding: 16px 16px 24px; }
  .site-footer-inner { padding: 0; }
  .doc { padding: 22px 16px 8px; }
}

/* ---- Sign-in (lmd-auth.js) ---- */
.site-nav-links .nav-show-sm { display: none; }
@media (max-width: 700px) { .site-nav-links .nav-show-sm { display: inline; } }
.nav-account { display: inline-flex; align-items: center; gap: 12px; }
.site-nav-links .nav-signin { min-height: 36px; padding: 5px 14px; font-size: .84rem; }
.nav-email { font-size: .82rem; color: #555; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .84rem; font-weight: 700; color: var(--color-primary); cursor: pointer; }
.nav-link-btn:focus-visible, .lmd-x:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }
dialog.lmd-signin { border: 0; border-radius: 14px; padding: 24px; width: min(400px, calc(100% - 24px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); color: var(--color-text); }
dialog.lmd-signin::backdrop { background: rgba(10, 30, 30, .45); }
.lmd-signin h2 { font-size: 1.15rem; margin: 0 28px 6px 0; }
.lmd-sub { font-size: .86rem; color: #5f6b69; line-height: 1.45; margin-bottom: 16px; }
.lmd-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: #666; cursor: pointer; border-radius: 8px; }
.lmd-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 44px; border: 1px solid #dadce0; border-radius: 8px; background: white; font: inherit; font-size: .92rem; font-weight: 600; color: #3c4043; cursor: pointer; }
.lmd-google:hover { background: #f8f9fa; }
.lmd-google-slot { min-height: 44px; }
.lmd-gsi { display: flex; justify-content: center; }
.lmd-or { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: #888; font-size: .8rem; }
.lmd-or::before, .lmd-or::after { content: ""; flex: 1; height: 1px; background: #e3e7e6; }
.lmd-signin form { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.lmd-signin label { font-size: .82rem; font-weight: 600; }
.lmd-signin input { font: inherit; font-size: 16px; min-height: 44px; border: 1px solid var(--color-border); border-radius: 10px; padding: 8px 12px; }
.lmd-signin form .btn-primary { min-height: 44px; margin-top: 4px; }
.lmd-code-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.nav-link-btn:disabled { color: #8a9694; cursor: default; }
.lmd-ok { color: var(--save); font-weight: 600; font-size: .86rem; margin-top: 8px; }
.lmd-legal { font-size: .76rem; color: #6b7775; margin-top: 12px; line-height: 1.45; }
.lmd-err { color: var(--color-danger); font-weight: 600; font-size: .86rem; margin-top: 8px; }
.nav-email { text-decoration: none; }
.nav-email:hover { color: var(--color-primary); text-decoration: underline; }

/* ---- The rounded search bar (search page and client trips): a segment per part of the trip ---- */
.searchbar { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr) auto; align-items: center; background: white; border-radius: 999px; box-shadow: 0 6px 24px rgba(8, 40, 40, .14), 0 1px 3px rgba(8, 40, 40, .08); padding: 6px; }
.sbar-seg { display: flex; flex-direction: row; align-items: center; gap: 12px; min-width: 0; min-height: 0; text-align: left; background: none; border: 0; border-radius: 999px; padding: 12px 18px; font: inherit; color: inherit; cursor: pointer; position: relative; }
.sbar-seg:hover { background: #f2f6f5; }
.sbar-seg + .sbar-seg::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: #e3e8e7; }
.sbar-seg:hover { background: #f2f6f5; }
.sbar-seg:hover::before, .sbar-seg:hover + .sbar-seg::before, .sbar-seg[aria-expanded="true"]::before, .sbar-seg[aria-expanded="true"] + .sbar-seg::before { opacity: 0; }
.sbar-seg[aria-expanded="true"] { background: white; box-shadow: 0 2px 10px rgba(8, 40, 40, .16); }
.sbar-seg:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.sbar-seg svg { flex-shrink: 0; width: 22px; height: 22px; fill: none; stroke: var(--color-primary); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.seg-text { display: flex; flex-direction: column; min-width: 0; }
.seg-text small { font-size: .7rem; font-weight: 700; letter-spacing: .3px; color: #6b7775; text-transform: uppercase; }
.seg-val { font-size: .92rem; font-weight: 600; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.go-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; min-height: 50px; padding: 0 22px 0 18px; margin-left: 6px; font-size: .95rem; }
.go-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.go-sub { font-size: .7rem; font-weight: 600; opacity: .88; white-space: nowrap; }
.go-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (max-width: 860px) {
  .searchbar { grid-template-columns: 1fr; border-radius: 18px; padding: 6px; }
  .sbar-seg { border-radius: 12px; padding: 10px 12px; }
  .sbar-seg + .sbar-seg::before { left: 12px; right: 12px; top: 0; bottom: auto; width: auto; height: 1px; }
  .go-btn { margin: 6px 0 0; justify-content: center; border-radius: 12px; }
  .go-text { align-items: center; }
}
