:root {
  --wine: #6b1f2e;
  --wine-dark: #4a1520;
  --wine-light: #8e3a4a;
  --gold: #c9a24b;
  --cream: #faf6ef;
  --cream-dark: #f1e9db;
  --ink: #2b2320;
  --ink-soft: #6b5d55;
  --line: #e4d9c8;
  --card: #ffffff;
  --shadow: 0 2px 10px rgba(43, 35, 32, .08);
  --shadow-lg: 0 12px 40px rgba(43, 35, 32, .18);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}

h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; line-height: 1.15; }

a { color: var(--wine); }

button { font: inherit; cursor: pointer; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  text-decoration: none;
  color: var(--wine-dark);
  white-space: nowrap;
}
.site-header nav { display: flex; gap: 18px; flex: 1; }
.site-header nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .92rem;
  white-space: nowrap;
}
.site-header nav a:hover { color: var(--wine); }
.site-header nav a.active { color: var(--wine); font-weight: 700; }
a.tour-toggle { text-decoration: none; }

.tour-toggle {
  background: var(--wine);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: .92rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .15s;
}
.tour-toggle:hover { background: var(--wine-dark); }
.tour-count {
  background: var(--gold);
  color: var(--wine-dark);
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  padding: 0 6px;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(201, 162, 75, .25), transparent 60%),
    linear-gradient(160deg, var(--wine-dark) 0%, var(--wine) 55%, #7d2b3c 100%);
  color: #fff;
  padding: 84px 20px 92px;
  text-align: center;
}
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 14px;
}
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin: 0 0 18px; }
.hero-sub {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, .88);
  max-width: 620px;
  margin: 0 auto 30px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all .15s;
}
.btn-primary { background: var(--gold); color: var(--wine-dark); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.hero .btn-ghost { color: #fff; }
.explore .btn-ghost, .tour-panel .btn-ghost { color: var(--wine); border-color: var(--wine); }
.btn-ghost:hover { background: rgba(107, 31, 46, .06); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }

/* ---------- Presets ---------- */
.presets { max-width: 1280px; margin: 0 auto; padding: 56px 20px 8px; }
.presets h2 { font-size: 1.9rem; margin: 0 0 6px; color: var(--wine-dark); }
.section-sub { color: var(--ink-soft); margin: 0 0 22px; }
.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.preset-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.preset-card h3 { margin: 0; font-size: 1.15rem; color: var(--wine-dark); }
.preset-card p { margin: 0; font-size: .9rem; color: var(--ink-soft); flex: 1; }
.preset-card .preset-stops { font-size: .8rem; color: var(--gold); font-weight: 600; }
.preset-card button { align-self: flex-start; margin-top: 6px; }

/* ---------- Filters ---------- */
.explore { max-width: 1280px; margin: 0 auto; padding: 40px 20px 70px; }
.filters { margin-bottom: 22px; }
.filters-row { display: flex; gap: 10px; flex-wrap: wrap; }
.filters-row input[type="search"], .filters-row select {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font: inherit;
  color: var(--ink);
}
.filters-row input[type="search"] { flex: 1 1 220px; min-width: 180px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip {
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all .12s;
}
.chip:hover { border-color: var(--wine-light); color: var(--wine); }
.chip.active {
  background: var(--wine);
  border-color: var(--wine);
  color: #fff;
}
.result-count { color: var(--ink-soft); font-size: .85rem; margin: 12px 0 0; }

/* ---------- Explore layout ---------- */
.explore-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 22px;
  align-items: start;
}
.winery-list { display: grid; gap: 16px; }

.winery-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  transition: box-shadow .15s, transform .15s;
}
.winery-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.winery-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.winery-card h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--wine-dark);
  cursor: pointer;
}
.winery-card h3:hover { text-decoration: underline; }
.area-tag {
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  white-space: nowrap;
}
.winery-card .styles { margin: 6px 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.style-pill {
  background: var(--cream-dark);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--wine);
}
.winery-card .desc { margin: 0 0 12px; font-size: .92rem; color: var(--ink-soft); }
.winery-card .feat-row { display: flex; gap: 10px; flex-wrap: wrap; font-size: .8rem; color: var(--ink-soft); margin-bottom: 14px; }
.winery-card .card-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.add-btn {
  background: var(--wine);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: .86rem;
  transition: background .15s;
}
.add-btn:hover { background: var(--wine-dark); }
.add-btn.in-tour { background: var(--gold); color: var(--wine-dark); }
.link-btn {
  background: none;
  border: none;
  color: var(--wine);
  font-weight: 600;
  font-size: .86rem;
  text-decoration: underline;
  padding: 8px 4px;
}
.no-results {
  padding: 40px;
  text-align: center;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ---------- Map ---------- */
.map-wrap { position: sticky; top: 76px; }
#map {
  height: min(72vh, 640px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 1;
}
.map-note { font-size: .78rem; color: var(--ink-soft); margin: 8px 2px 0; }

.pin {
  background: var(--wine);
  border: 2.5px solid #fff;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  box-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.pin-num {
  background: var(--gold);
  color: var(--wine-dark);
  border: 2.5px solid #fff;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .82rem;
  box-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.leaflet-popup-content { font-family: "Inter", sans-serif; }
.popup-name { font-weight: 700; color: var(--wine-dark); margin-bottom: 2px; }
.popup-area { font-size: .78rem; color: var(--ink-soft); margin-bottom: 8px; }
.popup-add {
  background: var(--wine); color: #fff; border: none; border-radius: 999px;
  padding: 6px 14px; font-size: .8rem; font-weight: 600;
}

/* ---------- Tour panel ---------- */
.tour-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(420px, 100vw);
  background: var(--cream);
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 40px rgba(43, 35, 32, .18);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform .25s ease;
}
.tour-panel.open { transform: translateX(0); }
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(43, 35, 32, .35);
  z-index: 950;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.scrim.show { opacity: 1; pointer-events: auto; }

.tour-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 10px;
}
.tour-header h2 { margin: 0; font-size: 1.4rem; color: var(--wine-dark); }
.icon-btn {
  background: none; border: none; font-size: 1.1rem; color: var(--ink-soft);
  padding: 6px 10px; border-radius: 8px;
}
.icon-btn:hover { background: var(--cream-dark); color: var(--ink); }

.tour-controls {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  padding: 0 20px 14px;
  border-bottom: 1px solid var(--line);
}
.tour-controls label { font-size: .8rem; font-weight: 600; color: var(--ink-soft); display: grid; gap: 4px; }
.tour-controls input[type="time"] {
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff;
}

.tour-body { flex: 1; overflow-y: auto; padding: 14px 20px; }
.tour-empty { color: var(--ink-soft); font-size: .9rem; }

.stop {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px 12px;
  align-items: center;
}
.stop-num {
  grid-row: span 2;
  background: var(--wine);
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
}
.stop-name { font-weight: 600; font-size: .95rem; color: var(--wine-dark); }
.stop-time { grid-column: 2; font-size: .8rem; color: var(--ink-soft); }
.stop-side { grid-row: span 2; display: grid; gap: 4px; justify-items: end; }
.stop-side .mini {
  background: none; border: 1px solid var(--line); border-radius: 6px;
  width: 26px; height: 22px; font-size: .7rem; color: var(--ink-soft); line-height: 1;
}
.stop-side .mini:hover:not(:disabled) { border-color: var(--wine); color: var(--wine); }
.stop-side .mini:disabled { opacity: .35; cursor: default; }
.stop-dwell { grid-column: 2 / 4; font-size: .78rem; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.stop-dwell input {
  width: 54px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: .78rem;
}
.drive-leg {
  display: flex; align-items: center; gap: 8px;
  font-size: .78rem; color: var(--ink-soft);
  padding: 6px 0 6px 15px;
}
.drive-leg::before { content: ""; border-left: 2px dotted var(--gold); height: 18px; margin-right: 4px; }

.tour-summary {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: .86rem;
  color: var(--ink);
}
.tour-summary strong { color: var(--wine-dark); }
.tour-warn { color: #a05516; font-size: .8rem; margin-top: 4px; }

.tour-footer { padding: 0 20px 18px; display: grid; gap: 10px; }
.dd-note { font-size: .76rem; color: var(--ink-soft); margin: 8px 0 0; }
.tour-footer .btn { text-align: center; border: none; }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(43, 35, 32, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--card);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px 30px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal-card h3 { margin: 0 0 2px; font-size: 1.6rem; color: var(--wine-dark); }
.modal-card .modal-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--cream-dark); border: none; border-radius: 50%;
  width: 32px; height: 32px; font-size: .95rem; color: var(--ink-soft);
}
.modal-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .9rem; margin: 16px 0; }
.modal-card dt { font-weight: 600; color: var(--ink-soft); }
.modal-card dd { margin: 0; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--wine-dark);
  color: rgba(255,255,255,.75);
  text-align: center;
  padding: 34px 20px;
  font-size: .84rem;
}
.site-footer p { max-width: 700px; margin: 4px auto; }

/* ---------- Print ---------- */
.print-itinerary { display: none; }

@media print {
  body > *:not(.print-itinerary) { display: none !important; }
  .print-itinerary { display: block; font-size: 12pt; color: #000; }
  .print-itinerary h1 { font-size: 20pt; margin-bottom: 2pt; }
  .print-itinerary .print-sub { color: #555; margin-top: 0; }
  .print-itinerary table { width: 100%; border-collapse: collapse; margin-top: 12pt; }
  .print-itinerary th, .print-itinerary td { text-align: left; padding: 6pt 8pt; border-bottom: 1px solid #ccc; vertical-align: top; }
  .print-itinerary .print-note { margin-top: 14pt; font-size: 9pt; color: #555; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .explore-layout { grid-template-columns: 1fr; }
  .map-wrap { position: static; order: -1; }
  #map { height: 320px; }
  .header-inner { flex-wrap: wrap; row-gap: 4px; }
  .site-header nav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    gap: 14px;
  }
}

/* ---------- Sub-pages (tours / stay / eat / plan) ---------- */
.page-hero {
  background:
    radial-gradient(900px 380px at 85% -10%, rgba(201, 162, 75, .25), transparent 60%),
    linear-gradient(160deg, var(--wine-dark) 0%, var(--wine) 60%, #7d2b3c 100%);
  color: #fff;
  padding: 54px 20px 58px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0 0 10px; }
.page-hero .hero-kicker { margin-bottom: 10px; }
.page-hero .hero-sub { max-width: 640px; margin: 0 auto; color: rgba(255,255,255,.88); }

.page { max-width: 1100px; margin: 0 auto; padding: 20px 20px 70px; }

.listing-section { margin-top: 44px; }
.listing-section > h2 {
  font-size: 1.7rem;
  color: var(--wine-dark);
  margin: 0 0 6px;
}
.listing-section > .section-sub { margin-bottom: 20px; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.info-card .card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.info-card h3 { margin: 0; font-size: 1.15rem; color: var(--wine-dark); }
.info-card .desc { margin: 0; font-size: .9rem; color: var(--ink-soft); flex: 1; }
.info-card .feat-row { display: flex; gap: 10px; flex-wrap: wrap; font-size: .8rem; color: var(--ink-soft); }
.info-card .card-links { margin-top: 4px; }
.info-card .card-links a { font-size: .85rem; font-weight: 600; }

.tip-box {
  background: var(--cream-dark);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 28px;
}
.tip-box h3 { margin: 0 0 10px; color: var(--wine-dark); font-size: 1.2rem; }
.tip-box ul { margin: 0; padding-left: 20px; font-size: .92rem; color: var(--ink); }
.tip-box li { margin: 6px 0; }

.plain-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.plain-table th, .plain-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.plain-table th { background: var(--cream-dark); color: var(--wine-dark); font-weight: 700; }
.plain-table tr:last-child td { border-bottom: none; }

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq summary { font-weight: 600; color: var(--wine-dark); cursor: pointer; }
.faq p { margin: 10px 0 2px; font-size: .92rem; color: var(--ink-soft); }

.cta-strip {
  margin-top: 48px;
  background: linear-gradient(150deg, var(--wine-dark), var(--wine));
  border-radius: var(--radius);
  color: #fff;
  text-align: center;
  padding: 36px 24px;
}
.cta-strip h2 { margin: 0 0 8px; }
.cta-strip p { margin: 0 auto 20px; max-width: 520px; color: rgba(255,255,255,.85); }

/* Cross-link cards on home page */
.more-links { max-width: 1280px; margin: 0 auto; padding: 0 20px 64px; }
.more-links h2 { font-size: 1.9rem; margin: 0 0 6px; color: var(--wine-dark); }
.link-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.link-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: box-shadow .15s, transform .15s;
}
.link-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.link-card .link-emoji { font-size: 1.8rem; }
.link-card h3 { margin: 8px 0 4px; color: var(--wine-dark); font-size: 1.15rem; }
.link-card p { margin: 0; font-size: .86rem; color: var(--ink-soft); }
.link-card .go { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--wine); font-size: .86rem; }

.footer-nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.footer-nav a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--gold); }

/* ==========================================================
   Design system v2 — editorial type, photo heroes, motion
   ========================================================== */
:root {
  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --ease-out: cubic-bezier(.2, .6, .2, 1);
}

h1, h2, h3, .logo { font-family: var(--font-display); }
h1 em, h2 em { font-style: italic; }
h2 em { color: var(--wine-light); }

/* --- Fixed header: solid white, always --- */
html.js body { padding-top: 0; }
html.js .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .35s var(--ease-out);
}
html.js .site-header.scrolled {
  box-shadow: 0 4px 24px rgba(43, 35, 32, .08);
}
html.js .site-header nav a.active { box-shadow: inset 0 -2px 0 var(--gold); padding-bottom: 3px; }

/* ==========================================================
   Guides — long-form article pages
   ========================================================== */
.article-body { max-width: 72ch; margin: 0 auto; padding: 44px 20px 24px; }
.article-body h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--wine-dark);
  margin: 40px 0 12px;
}
.article-body h3 { font-size: 1.15rem; color: var(--wine-dark); margin: 26px 0 8px; }
.article-body p { color: var(--ink); font-size: 1.02rem; line-height: 1.7; margin: 0 0 16px; }
.article-body ul, .article-body ol { color: var(--ink); line-height: 1.7; margin: 0 0 16px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--wine); font-weight: 600; text-underline-offset: 3px; }
.article-lede { font-size: 1.14rem; color: var(--ink-soft); line-height: 1.65; }
.article-meta {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 14px;
}
.article-callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 24px 0;
}
.article-callout p:last-child { margin-bottom: 0; }
.article-body .plain-table { font-size: .92rem; }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px 40px;
}
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
.guide-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.guide-card h3 { margin: 0; font-size: 1.25rem; color: var(--wine-dark); }
.guide-card p { margin: 0; color: var(--ink-soft); font-size: .92rem; flex: 1; }
.guide-card .go { color: var(--gold-deep); font-weight: 700; font-size: .85rem; }

/* --- Hero film roll: real County places scrolling behind the headline --- */
.hero-roll {
  position: absolute;
  inset: -14% -8%;
  z-index: 0;
  transform: rotate(-4deg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  background: #16070b;
}
.roll-row { overflow: hidden; flex: none; }
.roll-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: rollmove 80s linear infinite;
}
.roll-reverse .roll-track { animation-direction: reverse; animation-duration: 95s; }
.roll-frame {
  flex: none;
  background: #0d0407;
  padding: 15px 5px;
  position: relative;
  border-radius: 3px;
}
.roll-frame::before, .roll-frame::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 9px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .38) 1.6px, transparent 2.2px);
  background-size: 15px 9px;
  background-position: center;
  background-repeat: repeat-x;
}
.roll-frame::before { top: 3px; }
.roll-frame::after { bottom: 3px; }
.roll-frame img {
  display: block;
  height: 128px;
  width: auto;
  border-radius: 2px;
  opacity: .88;
}
.hero--roll .hero-veil {
  background:
    radial-gradient(ellipse 62% 58% at 50% 46%, rgba(22, 7, 11, .58), transparent 72%),
    linear-gradient(180deg, rgba(24, 8, 12, .68) 0%, rgba(40, 13, 20, .58) 45%, rgba(34, 11, 17, .88) 100%);
}
.hero--roll .hero-inner { text-shadow: 0 2px 26px rgba(20, 6, 10, .9); }
@keyframes rollmove { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .roll-track { animation: none; }
}
@media (max-width: 940px) {
  .roll-frame img { height: 96px; }
  .hero-roll { gap: 14px; }
}

/* Small credit chip on photo heroes */
.hero-credit {
  position: absolute;
  right: 14px; bottom: 12px;
  z-index: 2;
  font-size: .7rem;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .85);
  background: rgba(20, 6, 10, .55);
  padding: 5px 12px;
  border-radius: 999px;
  text-decoration: none;
}
.hero-credit:hover { color: #fff; background: rgba(20, 6, 10, .8); }

/* --- Photo heroes --- */
.hero--img, .page-hero--img { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-position: center 42%;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.1);
  will-change: transform;
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(28, 9, 14, .58) 0%, rgba(46, 15, 23, .38) 45%, rgba(38, 12, 19, .82) 100%);
}
.hero--img > .hero-inner, .page-hero--img > .page-hero-inner { position: relative; z-index: 2; }

.hero--img {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 130px 20px 110px;
}
.hero--img h1 {
  font-size: clamp(2.7rem, 6.5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -.01em;
  font-weight: 600;
  margin: 0 0 20px;
}
.hero--img h1 em { color: var(--gold); }
.hero--img .hero-sub { font-size: 1.14rem; }

.page-hero--img {
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 130px 20px 70px;
}
.page-hero--img h1 { font-weight: 600; letter-spacing: -.01em; }

.scroll-cue {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, .72);
  font-size: .68rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  display: grid;
  justify-items: center;
  gap: 9px;
}
.scroll-cue::after {
  content: "";
  width: 1.5px; height: 36px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: cue 1.9s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- Hero stats --- */
.hero-stats {
  display: flex;
  gap: 46px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 46px;
}
.stat { display: grid; gap: 3px; justify-items: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

/* --- Marquee ribbon --- */
.marquee {
  background: var(--wine-dark);
  color: var(--gold);
  overflow: hidden;
  padding: 13px 0;
  border-top: 1px solid rgba(201, 162, 75, .28);
  border-bottom: 1px solid rgba(201, 162, 75, .28);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Editorial split --- */
.split {
  max-width: 1280px;
  margin: 72px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 52px;
  align-items: center;
}
.split-media {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-media img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform .9s var(--ease-out);
}
.split-media:hover img { transform: scale(1.05); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .76rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 12px;
}
.split-copy h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  line-height: 1.1;
  color: var(--wine-dark);
  margin: 0 0 16px;
}
.split-copy p { color: var(--ink-soft); font-size: 1rem; margin: 0 0 14px; }

/* --- Motion polish --- */
.btn { transition: transform .18s var(--ease-out), box-shadow .18s, filter .18s, background .18s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(201, 162, 75, .35); filter: none; }
.add-btn, .tour-toggle { transition: transform .16s var(--ease-out), background .16s, box-shadow .16s; }
.add-btn:hover { transform: translateY(-1px); }
.winery-card, .info-card, .preset-card, .link-card {
  transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out), border-color .3s;
}
.winery-card:hover, .info-card:hover, .preset-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: #d9c9ae;
}
.link-card:hover { transform: translateY(-4px); }

@media (max-width: 940px) {
  .split { grid-template-columns: 1fr; gap: 26px; margin-top: 52px; }
  .hero--img { min-height: 86vh; padding-top: 150px; }
  .hero-stats { gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .scroll-cue::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   Header CTAs — Planner + My Tour, side by side, classic cut
   ========================================================== */
.site-header nav { align-items: center; }
.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }

.header-cta .nav-planner,
.header-cta .tour-toggle {
  font-family: "Inter", system-ui, sans-serif;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background .18s var(--ease-out), color .18s var(--ease-out), border-color .18s;
  transform: none;
}
.header-cta .nav-planner {
  color: var(--wine);
  background: transparent;
  border: 1px solid rgba(107, 31, 46, .45);
}
.header-cta .nav-planner:hover,
.header-cta .nav-planner.active {
  background: var(--wine);
  border-color: var(--wine);
  color: #fff;
}
.header-cta .tour-toggle {
  background: var(--wine-dark);
  color: #fff;
  border: 1px solid var(--wine-dark);
}
.header-cta .tour-toggle:hover {
  background: var(--wine);
  border-color: var(--wine);
  transform: none;
  box-shadow: none;
}
.header-cta .tour-count {
  background: none;
  color: var(--gold-bright);
  min-width: 0;
  height: auto;
  padding: 0;
  font-size: .76rem;
  font-weight: 700;
}
.footer-nav a[href="quiz.html"] { color: var(--gold-bright); }

@media (max-width: 940px) {
  /* One tidy top row: logo left, CTAs right; nav swipes on row two */
  .logo { font-size: .8rem; letter-spacing: .09em; flex: 1; min-width: 0; }
  .logo span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-cta { margin-left: auto; gap: 8px; flex: none; }
  .header-cta .nav-planner, .header-cta .tour-toggle {
    padding: 9px 12px;
    font-size: .68rem;
    letter-spacing: .09em;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .logo { font-size: .68rem; letter-spacing: .05em; }
}

@media (max-width: 380px) {
  .header-inner { padding: 10px 12px; }
  .logo { font-size: .62rem; letter-spacing: normal; }
  .header-cta { gap: 6px; }
  .header-cta .nav-planner, .header-cta .tour-toggle {
    padding: 8px 8px;
    font-size: .6rem;
    letter-spacing: .05em;
  }
}

/* ==========================================================
   Trip settings in the planner (base + month) & print extras
   ========================================================== */
.tour-controls { flex-wrap: wrap; align-items: end; gap: 10px 12px; }
.tour-controls select {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: .86rem;
  background: #fff;
  max-width: 168px;
  color: var(--ink);
}
.tour-controls #tour-clear { margin-left: auto; }
.base-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--wine-dark);
  padding: 5px 2px;
}
.base-row .ic { color: var(--gold-deep); }
.base-row strong { font-weight: 700; }
.tour-note { color: #2e6e4e; font-size: .82rem; margin-top: 4px; font-weight: 600; }

.ext-reviews {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 18px;
  font-size: .85rem;
}
.ext-reviews .ext-label { color: var(--ink-soft); font-weight: 600; }
.ext-reviews a {
  color: var(--wine);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  background: #fff;
  transition: border-color .15s, background .15s;
}
.ext-reviews a:hover { border-color: var(--wine); background: var(--cream); }

@media print {
  .print-itinerary .print-h2 { font-size: 13pt; margin: 14pt 0 4pt; }
  .print-itinerary .print-tips { font-size: 10pt; color: #333; padding-left: 14pt; margin: 0; }
  .print-itinerary .print-tips li { margin-bottom: 3pt; }
}

/* ==========================================================
   Day-planner quiz
   ========================================================== */
.quiz-wrap { max-width: 780px; margin: 0 auto; padding: 40px 20px 80px; }
.q-progress {
  height: 5px;
  background: var(--cream-dark);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.q-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--wine), var(--gold));
  border-radius: 999px;
  transition: width .4s var(--ease-out);
}
.q-step { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 14px; }
.q-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 30px 32px 26px;
}
.q-card h2 { color: var(--wine-dark); font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 0 0 20px; outline: none; }
.q-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.q-option {
  font: inherit;
  text-align: left;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  align-items: center;
  transition: border-color .15s, background .15s, transform .15s var(--ease-out);
}
.q-option:hover { border-color: var(--wine); background: #fff; transform: translateY(-2px); }
.q-ic { grid-row: span 2; display: inline-flex; width: 38px; height: 38px; border-radius: 10px; background: rgba(107,31,46,.08); color: var(--wine); align-items: center; justify-content: center; }
.q-ic .ic { width: 20px; height: 20px; }
.q-label { font-weight: 700; color: var(--ink); }
.q-note { grid-column: 2; font-size: .82rem; color: var(--ink-soft); }
.q-back { background: none; border: none; color: var(--ink-soft); font: inherit; font-weight: 600; margin-top: 18px; cursor: pointer; padding: 6px 8px; }
.q-back:hover { color: var(--wine); }

.q-results .r-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.r-stop {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
}
.r-time { font-weight: 700; color: var(--wine-dark); font-size: .9rem; line-height: 1.25; }
.r-time small { font-weight: 500; color: var(--ink-soft); }
.r-body { display: grid; gap: 2px; }
.r-body strong a { color: var(--wine-dark); text-decoration: none; }
.r-body strong a:hover { text-decoration: underline; }
.r-why { font-size: .82rem; color: var(--ink-soft); }
.r-ic { display: inline-flex; width: 34px; height: 34px; border-radius: 9px; background: rgba(107,31,46,.08); color: var(--wine); align-items: center; justify-content: center; }
.r-ic .ic { width: 18px; height: 18px; }
.r-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.r-actions .btn { border: none; }
.r-actions .btn-ghost { border: 1.5px solid var(--wine); }

.hero-quiz-link { margin: 18px 0 0; font-size: .95rem; }
.hero-quiz-link a { color: var(--gold-bright); font-weight: 600; text-decoration-color: rgba(230,196,126,.5); text-underline-offset: 3px; }
.hero-quiz-link a:hover { color: #fff; }

@media (max-width: 600px) {
  .q-card { padding: 22px 18px; }
  .r-stop { grid-template-columns: 70px 1fr; }
  .r-ic { display: none; }
}

/* ==========================================================
   Region strip & motif divider (County craft touches)
   ========================================================== */
.motif-divider {
  height: 12px;
  margin: 64px auto 0;
  max-width: 1240px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='12' viewBox='0 0 36 12'%3E%3Ccircle cx='4' cy='6' r='1.4' fill='%23c9a24b' opacity='.55'/%3E%3Crect x='16' y='4' width='4' height='4' rx='.6' transform='rotate(45 18 6)' fill='%236b1f2e' opacity='.4'/%3E%3Ccircle cx='32' cy='6' r='1.4' fill='%23c9a24b' opacity='.55'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}

.regions { max-width: 1280px; margin: 0 auto; padding: 56px 20px 8px; }
.regions h2 { font-size: 1.9rem; margin: 0 0 6px; color: var(--wine-dark); }
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.region-card {
  text-align: left;
  font: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out), border-color .3s;
}
.region-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: #d9c9ae; }
.region-card h3 { margin: 0; font-size: 1.15rem; color: var(--wine-dark); }
.region-card p { margin: 0; font-size: .88rem; color: var(--ink-soft); font-style: italic; flex: 1; }
.region-card .region-count { font-size: .82rem; font-weight: 700; color: var(--gold-deep); }

/* ==========================================================
   Mobile layout — swipeable nav, no horizontal overflow
   ========================================================== */
html, body { overflow-x: clip; }

@media (max-width: 940px) {
  .header-inner { flex-wrap: wrap; padding: 10px 16px; }
  .site-header nav {
    order: 3;
    flex: 1 1 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 6px 2px 4px;
    margin: 0 -4px;
  }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav a { white-space: nowrap; }
  .hero--img h1 { overflow-wrap: anywhere; }
}

/* ==========================================================
   Accessibility & readability (WCAG 2.1 AA)
   - --gold is decorative only; --gold-deep is the readable gold
     for text on light backgrounds (≥4.5:1 on cream and white)
   - visible focus rings, skip link, larger hit targets
   ========================================================== */
:root {
  --gold-deep: #7d6020;      /* on #faf6ef ≈ 5.4:1, on #fff ≈ 5.9:1 */
  --gold-bright: #e6c47e;    /* small gold text on dark photo/wine backgrounds */
}

.area-tag, .eyebrow, .preset-card .preset-stops { color: var(--gold-deep); }
.hero-kicker { color: var(--gold-bright); }
.hero--img h1 em { color: var(--gold-bright); }
.stat-num { color: var(--gold-bright); }
.stat-label { color: rgba(255, 255, 255, .92); }
.scroll-cue { color: rgba(255, 255, 255, .85); }
.hero-sub { color: rgba(255, 255, 255, .95); }
.site-footer { color: rgba(255, 255, 255, .85); }
.tour-warn { color: #8f4a10; }
.marquee { color: var(--gold-bright); }

/* Focus visibility — two-tone ring readable on any background */
:focus-visible {
  outline: 2.5px solid var(--wine);
  outline-offset: 2px;
  border-radius: 4px;
}
.hero--img :focus-visible,
.page-hero--img :focus-visible,
.site-footer :focus-visible,
.tour-panel .btn-primary:focus-visible {
  outline-color: var(--gold-bright);
}

.skip-link {
  position: absolute;
  left: 12px; top: 12px;
  z-index: 2000;
  background: var(--wine-dark);
  color: #fff;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Larger, easier hit targets */
.chip { padding: 9px 16px; }
.stop-side .mini { width: 30px; height: 26px; }

/* ==========================================================
   SVG icon system — replaces emoji for a consistent brand look
   ========================================================== */
.ic {
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.16em;
  flex: none;
}
.chip .ic, .type-tab .ic { width: 1.1em; height: 1.1em; margin-right: 2px; }
.feat-row { gap: 6px 14px; }
.feat { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.feat .ic { color: var(--gold-deep); }
.type-pill { display: inline-flex; align-items: center; gap: 4px; }

.event-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--cream-dark);
  color: var(--wine);
}
.event-icon .ic { width: 20px; height: 20px; }

.link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: rgba(107, 31, 46, .08);
  color: var(--wine);
  margin-bottom: 4px;
}
.link-icon .ic { width: 24px; height: 24px; }

.stop-name { display: inline-flex; align-items: center; gap: 7px; }
.stop-name .ic { color: var(--wine); }
.drive-leg .ic { color: var(--gold-deep); }
.dd-note { color: var(--ink-soft); }
.popup-name { display: flex; align-items: center; gap: 6px; }
.popup-name .ic { color: var(--wine); }
.w-info-card dd .ic { color: var(--gold-deep); vertical-align: -0.18em; }

/* ==========================================================
   Scroll reveals — CSS owns visibility; JS only toggles classes.
   Default state is fully visible, so content can never be lost
   to a stalled animation engine or throttled background tab.
   ========================================================== */
.reveal-init { transition: opacity .65s var(--ease-out), transform .65s var(--ease-out); }
.reveal-hide { opacity: 0; transform: translateY(22px); }

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
}
html.js .hero-inner > *, html.js .page-hero-inner > * {
  animation: rise .9s var(--ease-out) backwards;
}
html.js .hero-inner > *:nth-child(2), html.js .page-hero-inner > *:nth-child(2) { animation-delay: .08s; }
html.js .hero-inner > *:nth-child(3), html.js .page-hero-inner > *:nth-child(3) { animation-delay: .16s; }
html.js .hero-inner > *:nth-child(4), html.js .page-hero-inner > *:nth-child(4) { animation-delay: .24s; }
html.js .hero-inner > *:nth-child(5), html.js .page-hero-inner > *:nth-child(5) { animation-delay: .32s; }
html.js .hero-inner > *:nth-child(6), html.js .page-hero-inner > *:nth-child(6) { animation-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-init { transition: none; }
  .reveal-hide { opacity: 1; transform: none; }
  html.js .hero-inner > *, html.js .page-hero-inner > * { animation: none; }
}

/* ==========================================================
   Producer types — tabs, pins, legend
   ========================================================== */
.pin--beer   { background: #b07d2b; }
.pin--spirit { background: #4a3728; }
.pin--cider  { background: #6f9e3f; }
.pin--food   { background: #c2612e; }

.type-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.type-tab {
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all .12s;
}
.type-tab:hover { border-color: var(--wine-light); color: var(--wine); }
.type-tab.active { background: var(--wine); border-color: var(--wine); color: #fff; }
.type-count {
  display: inline-block;
  background: rgba(107, 31, 46, .1);
  color: var(--wine);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  padding: 1px 7px;
  margin-left: 2px;
}
.type-tab.active .type-count { background: rgba(255, 255, 255, .22); color: #fff; }

.type-pill {
  display: inline-block;
  background: var(--cream-dark);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: .02em;
  text-transform: none;
}

.map-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 10px 2px 0;
  font-size: .76rem;
  color: var(--ink-soft);
}
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-legend i {
  display: inline-block;
  width: 11px; height: 11px;
  border-radius: 50%;
  border: none;
  box-shadow: none;
}
.map-legend .pin-act-swatch {
  background: #2e6e4e;
  border-radius: 3px;
  transform: rotate(45deg);
  width: 9px; height: 9px;
}
.map-legend .pin-featured-swatch {
  background: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 162, 75, .4);
}

/* ==========================================================
   v3 — winery pages, reviews, featured pins, seasonal events
   ========================================================== */

/* --- Featured badge & pins --- */
.badge-featured {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(120deg, var(--gold), #dcb75f);
  color: var(--wine-dark);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}
.pin-featured {
  background: var(--gold);
  border: 2.5px solid #fff;
  border-radius: 50%;
  width: 100%; height: 100%;
  box-shadow: 0 0 0 3px rgba(201, 162, 75, .45), 0 1px 6px rgba(0,0,0,.4);
}
.pin-act {
  background: #2e6e4e;
  border: 2px solid #fff;
  border-radius: 4px;
  transform: rotate(45deg);
  width: 100%; height: 100%;
  box-shadow: 0 1px 5px rgba(0,0,0,.4);
}

/* --- Seasonal strip (home) & events page --- */
.season { max-width: 1280px; margin: 0 auto; padding: 64px 20px 8px; }
.season h2 { font-size: 1.9rem; margin: 0 0 6px; color: var(--wine-dark); }
.event-card { position: relative; }
.event-icon { font-size: 1.7rem; line-height: 1; }
.event-when {
  display: inline-block;
  background: #eaf2ec;
  color: #2e6e4e;
  border-radius: 999px;
  padding: 3px 11px;
  font-size: .74rem;
  font-weight: 700;
}
.event-when.now { background: #2e6e4e; color: #fff; }
.event-type { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.season-link { margin-top: 18px; }

/* --- Winery detail page --- */
.w-hero { min-height: 54vh; }
.w-hero .badge-featured { margin-bottom: 14px; }
.breadcrumb {
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,.9); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--gold); }
.w-hero .styles { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.w-hero .style-pill { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(4px); }

.w-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 26px;
  align-items: start;
  margin-top: 34px;
}
.w-main { display: grid; gap: 34px; }
.w-aside { position: sticky; top: 86px; display: grid; gap: 16px; }
.w-info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}
.w-info-card h3 { margin: 0 0 12px; color: var(--wine-dark); font-size: 1.1rem; }
.w-info-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: .89rem; margin: 0; }
.w-info-card dt { font-weight: 600; color: var(--ink-soft); }
.w-info-card dd { margin: 0; }
.w-info-card .card-actions { margin-top: 16px; display: grid; gap: 8px; }
.w-info-card .card-actions .btn, .w-info-card .card-actions .add-btn { text-align: center; width: 100%; }
#w-minimap { height: 220px; border-radius: 12px; border: 1px solid var(--line); z-index: 1; }

/* --- Gallery + lightbox --- */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: 190px; gap: 10px; }
.gallery button {
  border: none; padding: 0; border-radius: 12px; overflow: hidden;
  cursor: zoom-in; background: var(--cream-dark);
}
.gallery button:first-child { grid-row: span 2; }
.gallery img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s var(--ease-out);
}
.gallery button:hover img { transform: scale(1.06); }
.gallery-note { font-size: .76rem; color: var(--ink-soft); margin: 8px 2px 0; }

.lightbox {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(20, 8, 12, .92);
  display: flex; align-items: center; justify-content: center;
  padding: 30px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 84vh; border-radius: 10px; box-shadow: 0 20px 80px rgba(0,0,0,.5); }
.lightbox .lb-btn {
  position: absolute; background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
  width: 44px; height: 44px; font-size: 1.1rem; backdrop-filter: blur(4px);
}
.lightbox .lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* --- Reviews --- */
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1rem; }
.stars .off { color: var(--line); }
.rating-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rating-big { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--wine-dark); line-height: 1; }
.rating-count { font-size: .85rem; color: var(--ink-soft); }
.review {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 12px;
}
.review-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.review-name { font-weight: 700; color: var(--wine-dark); }
.review-date { font-size: .76rem; color: var(--ink-soft); }
.review p { margin: 8px 0 0; font-size: .9rem; color: var(--ink); }
.review.mine { border-color: var(--gold); }

.review-form {
  background: var(--cream-dark);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 20px;
  display: grid;
  gap: 12px;
}
.review-form h3 { margin: 0; color: var(--wine-dark); font-size: 1.1rem; }
.review-form input[type="text"], .review-form textarea {
  padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; width: 100%;
}
.review-form textarea { min-height: 90px; resize: vertical; }
.star-input { display: flex; gap: 4px; }
.star-input button {
  background: none; border: none; font-size: 1.5rem; color: var(--line);
  padding: 2px; transition: transform .12s, color .12s;
}
.star-input button.on { color: var(--gold); }
.star-input button:hover { transform: scale(1.18); }
.review-form .btn { justify-self: start; border: none; }
.form-note { font-size: .74rem; color: var(--ink-soft); margin: 0; }

/* --- Nearby wineries --- */
.nearby-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.nearby-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.nearby-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.nearby-card h4 { margin: 0 0 3px; font-family: var(--font-display); color: var(--wine-dark); font-size: 1rem; }
.nearby-card span { font-size: .78rem; color: var(--ink-soft); }

/* --- Toast --- */
.toast {
  position: fixed;
  left: 50%; bottom: 26px;
  transform: translate(-50%, 120%);
  background: var(--wine-dark);
  color: #fff;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: .9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 1300;
  transition: transform .35s var(--ease-out);
  display: flex; gap: 14px; align-items: center;
}
.toast.show { transform: translate(-50%, 0); }
.toast a { color: var(--gold); text-decoration: none; }

/* winery card title link */
.winery-card h3 a { color: inherit; text-decoration: none; }
.winery-card h3 a:hover { text-decoration: underline; }

@media (max-width: 940px) {
  .w-layout { grid-template-columns: 1fr; }
  .w-aside { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gallery button:first-child { grid-column: span 2; grid-row: span 1; }
}

/* --- Footer credit --- */
.footer-credit { font-size: .82rem; opacity: .7; }
.footer-credit a { color: inherit; }
