/* Where to Stay Tahoe: the "Tahoe Blue" look. Loads after the shared engine's styles.css.
   The whole site sits on one fixed Emerald Bay photograph with white panels on top, so it stays light even when
   the visitor's device is in dark mode (dark panels on a bright lake photo don't read well).
   Merged on 2026-11-01 from the 7 overlay files in "Tahoe Web" (tahoe-*.css); this file replaces all of them.
   body.page-home = the homepage, body.page-inner = every other page (hotel, town, advertise, privacy, thanks). */

:root, :root[data-theme="dark"] {
  color-scheme: light;
  --bg: #f4f8fc; --surface: #fff; --text: #10304d; --muted: #4d6579; --line: #d5e3ef;
  --brand: #17649a; --brand-dark: #103f70; --brand-ink: #fff; --brand-soft: #eaf3fa;
  --pine: #17649a; --gold: #e8ad43; --cta: #ffad15; --cta-dark: #e79508; --focus: #42a9c6;
  --hero-a: #103f70; --hero-b: #17649a;
  --promo-a: #fff8e9; --promo-b: #ffedc4; --promo-line: #e8ad43; --promo-ink: #463317; --promo-muted: #725b37;
  --panel: rgba(255, 255, 255, .96);
  --shadow: 0 8px 24px rgba(9, 45, 80, .12);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: light;
    --bg: #f4f8fc; --surface: #fff; --text: #10304d; --muted: #4d6579; --line: #d5e3ef;
    --brand: #17649a; --brand-ink: #fff; --brand-soft: #eaf3fa; --pine: #17649a; --gold: #e8ad43;
    --hero-a: #103f70; --hero-b: #17649a;
    --promo-a: #fff8e9; --promo-b: #ffedc4; --promo-line: #e8ad43; --promo-ink: #463317; --promo-muted: #725b37;
    --shadow: 0 8px 24px rgba(9, 45, 80, .12);
  }
}

/* ---------------------------------------------------------------- the photo */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--hero-a); isolation: isolate; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--hero-a) url("emerald-bay-1600.jpg") center 43% / cover no-repeat;
  background-image: image-set(url("emerald-bay-1600.webp") type("image/webp"), url("emerald-bay-1600.jpg") type("image/jpeg"));
}
@media (max-width: 900px) {
  body::before {
    background-image: url("emerald-bay-900.jpg");
    background-image: image-set(url("emerald-bay-900.webp") type("image/webp"), url("emerald-bay-900.jpg") type("image/jpeg"));
  }
}

/* ---------------------------------------------------------------- links, focus, buttons */
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
select, input, textarea { accent-color: var(--brand); }
.btn, .spot-cta { background: var(--brand); border-color: var(--brand); color: #fff; border-radius: 9px; transition: background-color .15s; }
.btn:hover, .spot-empty:hover .spot-cta { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; filter: none; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
.town-sponsor .btn-ghost { background: var(--brand); color: #fff; }

/* ---------------------------------------------------------------- header */
.site-header { background: transparent; border: 0; position: relative; }
.header-inner { height: 65px; }
.logo { background: var(--panel); padding: 7px 13px; border-radius: 30px; color: var(--brand-dark); box-shadow: 0 3px 12px rgba(0, 45, 75, .2); }
.main-nav > a:not(.btn) { color: #fff; font-weight: 700; text-shadow: 0 1px 5px rgba(0, 25, 55, .7); }
.main-nav > a:not(.btn):hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.main-nav a[aria-current="page"]:not(.btn) { color: #fff; box-shadow: inset 0 -2px 0 var(--gold); }
.main-nav .btn { background: var(--cta); border-color: var(--cta); color: #fff; border-radius: 12px; padding: 10px 19px; box-shadow: 0 4px 12px rgba(7, 63, 106, .33); }
.main-nav .btn:hover { background: var(--cta-dark); border-color: var(--cta-dark); }
@media (max-width: 560px) {
  .header-inner { height: 58px; gap: .5rem; }
  .logo { font-size: .98rem; padding: 6px 11px 6px 7px; white-space: nowrap; }
  .logo img { width: 24px; height: 24px; }
  .main-nav { gap: .7rem; }
  .main-nav .btn { padding: 7px 11px; font-size: .82rem; white-space: nowrap; border-radius: 10px; }
}
@media (max-width: 360px) { .logo { font-size: .9rem; } }

/* ---------------------------------------------------------------- homepage */
@media (min-width: 1200px) { .page-home .wrap { max-width: 1250px; } }
.quicklinks { background: var(--panel); border-color: #e7f4ff; border-radius: 15px; box-shadow: 0 8px 24px rgba(0, 61, 89, .4); margin-top: 10px; margin-bottom: 18px; }
.quicklinks a { color: var(--brand-dark); border-color: #bbd3e7; }
.quicklinks small { color: #274e6b; }
.hero { background: transparent; text-align: center; padding: 0 0 13px; color: #fff; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 4vw, 3.55rem); text-shadow: 0 3px 8px rgba(0, 48, 71, .8); margin: 0; }
.hero .lead { color: #fff; font-weight: 700; text-shadow: 0 2px 5px #003047; margin: auto; }
.hero-search { justify-content: center; align-items: center; margin-top: 14px; }
.hero-search input { flex: 0 1 570px; width: min(570px, 100%); border: 2px solid #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0, 59, 97, .3); }
.state-toggle { background: var(--brand-dark); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 4px 12px rgba(0, 59, 97, .3); }
.state-toggle button { color: #fff; font-weight: 700; white-space: nowrap; }
.state-toggle button.on { background: #fff; color: var(--brand-dark); border-radius: 9px; }
.spotlight { margin-top: 14px; }
.spotlight .eyebrow { color: #fff; text-shadow: 0 2px 4px #003b59; font-weight: 800; margin: 0 0 4px; }
.spot-empty { border: 2px solid var(--gold); background: linear-gradient(120deg, var(--promo-a), var(--promo-b)); box-shadow: 0 6px 20px rgba(0, 59, 89, .3); }
.spot-icon { background: var(--gold); }
.directory { margin-top: 10px; }
.guides-strip h2, .guides-strip .spot-head a { color: #fff; text-shadow: 0 2px 6px rgba(0, 48, 71, .85); }
.guides-strip h2 { font-size: 1.5rem; }
.guides-strip .spot-head a { font-weight: 700; }
@media (min-width: 900px) { .guides-strip .guide-grid-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.results-bar { padding: .45rem .5rem .45rem .9rem; border-radius: 10px; }
.filters, .side-box, .card, .results-bar, .map-wrap, .contact, .site-footer { background: var(--panel); box-shadow: 0 8px 24px rgba(0, 59, 89, .2); }
.side-box, .filters, .card, .plan, .town-tile, .claim-form, .town-sponsor, .trip-box, .results-bar, .map-wrap, .contact { border-color: var(--line); }
.side-box.ad-open, .card.ad-empty { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.ad-open-icon { background: var(--brand-dark); color: #fff; }
.ad-open-price { color: var(--brand); }
.sponsor-label { color: var(--muted); border-color: var(--line); background: var(--bg); }
.map { border: 4px solid #fff; border-radius: 14px; box-shadow: 0 8px 22px rgba(0, 59, 89, .33); }
.plan-hl { border: 2px solid var(--gold); }
@media (max-width: 800px) {
  .hero-search { padding: 0 12px; }
  .hero h1 { font-size: 2.1rem; }
}

/* ---------------------------------------------------------------- every other page: one white panel */
.page-inner main > .wrap {
  background: rgba(255, 255, 255, .94); border: 1px solid rgba(255, 255, 255, .95); border-radius: 18px;
  box-shadow: 0 14px 44px rgba(9, 35, 63, .14); padding: 32px 34px 34px; margin-top: 4px;
}
@media (min-width: 1050px) { .page-inner main > .wrap { max-width: 1060px; } }
@media (max-width: 1049px) { .page-inner main > .wrap { padding: 22px; margin-left: 12px; margin-right: 12px; } }
@media (max-width: 560px) { .page-inner main > .wrap { padding: 20px 16px; border-radius: 12px; margin-left: 8px; margin-right: 8px; } }
.page-inner main > .wrap > h1 { color: #103554; font-size: clamp(2rem, 3vw, 2.65rem); letter-spacing: -.035em; margin: .1rem 0 .4rem; }
.page-inner main > .wrap > .lead { margin: 0 0 1.15rem; color: #365d7c; }
.page-inner .card { background: #fff; border-radius: 15px; box-shadow: 0 3px 14px rgba(14, 50, 83, .07); }
.page-inner .plan { border-radius: 16px; box-shadow: 0 8px 22px rgba(13, 56, 92, .1); }

/* town list */
.town-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin-top: 26px; }
.town-tile {
  display: flex; flex-direction: column; gap: 9px; min-height: 125px; padding: 20px;
  background: #fff; border: 1px solid #dbe4ed; border-radius: 12px; box-shadow: 0 3px 12px rgba(14, 50, 83, .055);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.town-tile strong { color: #17324d; font-size: 1rem; line-height: 1.2; }
.town-tile span { font-size: .8rem; color: #526c81; }
.town-tile em { margin-top: auto; color: var(--brand); font-weight: 800; }
.town-tile em::after { content: "  \2192"; }
.town-tile:hover { border-color: var(--brand); box-shadow: 0 8px 18px rgba(14, 50, 83, .12); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .town-tile:hover { transform: none; } }
@media (max-width: 1049px) { .town-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .town-grid { grid-template-columns: 1fr; gap: 16px; } .town-tile { min-height: 110px; } }
.town-sponsor { background: #f8fafc; border: 1px solid #dbe4ed; border-radius: 14px; padding: 16px 18px; margin: 18px 0 22px; }

/* side banners beside the white panel (wide screens only; the engine shows them as a strip otherwise) */
@media (min-width: 1720px) {
  .page-inner .rail { width: 160px; }
  .page-inner .rail-left { right: calc(100% + 54px); }
  .page-inner .rail-right { left: calc(100% + 54px); }
  .page-inner .rail .side-box { top: 84px; min-height: 0; padding: 18px 13px; border-radius: 13px; background: #fff; box-shadow: 0 6px 24px rgba(9, 35, 63, .1); }
  .page-inner .rail .ad-open-icon { width: 40px; height: 40px; }
  .page-inner .rail .side-text { gap: 8px; }
  .page-inner .rail .side-text strong { font-size: .96rem; }
  .page-inner .rail .side-text > span:not([class]) { font-size: .78rem; line-height: 1.5; }
  .page-inner .town-body { min-height: 0; }
}

/* hotel page: one tidy row of action buttons */
.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 22px 0 20px; }
.detail-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
@media (max-width: 520px) { .detail-actions .btn { width: 100%; } }

/* footer */
.site-footer { border: 0; margin-top: 3rem; }

/* Back-to-top: on wide screens, sit under the right-hand sponsor column instead of the far corner */
@media (min-width: 1720px) { .page-inner .to-top { right: calc(50vw - 666px); bottom: 28px; } }
