/* ============================================================
   THINGS TO DO IN BURLINGTON — Design System
   Palette: Lake Champlain at dusk
   Fonts: Lora (display) + DM Sans (body/UI)
============================================================ */

/* --- Custom Properties --- */
:root {
  /* Colors */
  --bg:           #FBF8F2;
  --bg-raised:    #FFFFFF;
  --bg-subtle:    #F3EFE8;
  --ink:          #13243B;
  --ink-2:        #3D5166;
  --ink-3:        #6C7A8C;
  --ink-4:        #9AAABB;
  --coral:        #F2683C;
  --coral-light:  #FEF0EB;
  --teal:         #2E7D8A;
  --teal-light:   #EAF5F7;
  --line:         #DDD8CF;
  --line-soft:    #EBE7DF;
  --shadow-sm:    0 1px 3px rgba(19,36,59,0.07);
  --shadow-md:    0 4px 12px rgba(19,36,59,0.10);
  --shadow-lg:    0 12px 40px rgba(19,36,59,0.14);

  /* Group colors (top accent stripe on cards) */
  --group-food:       #D97A3A;
  --group-outdoors:   #2E8A5F;
  --group-culture:    #4263A8;
  --group-events:     #C94F6D;
  --group-play:       #7B5EA7;
  --group-shopping:   #5C7A6A;

  /* Typography */
  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.8125rem;
  --text-base: 0.9375rem;
  --text-md:   1.0625rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  1.875rem;
  --text-3xl:  2.5rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Layout */
  --header-h:       60px;
  --filter-w:       264px;
  --detail-w:       440px;
  --max-content:    1320px;
  --card-min:       280px;

  /* Radius */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-full: 999px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 150ms;
  --duration-base: 220ms;
  --duration-slow: 360ms;
}

/* --- Dark Mode --- */
[data-theme="dark"] {
  --bg:           #0D1B2A;
  --bg-raised:    #142233;
  --bg-subtle:    #1A2E42;
  --ink:          #EAE4DA;
  --ink-2:        #B8CAD6;
  --ink-3:        #7A96AA;
  --ink-4:        #4A6070;
  --coral:        #F47850;
  --coral-light:  #2A1810;
  --teal:         #4AABB8;
  --teal-light:   #0F2830;
  --line:         #243B52;
  --line-soft:    #1C3048;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.25);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.35);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.50);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  transition: background var(--duration-base) var(--ease), color var(--duration-base) var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

a {
  color: var(--teal);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
button:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

input, select {
  font-family: var(--font-body);
}

img {
  max-width: 100%;
  display: block;
}

/* --- Site Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg-raised);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: background var(--duration-base) var(--ease),
              border-color var(--duration-base) var(--ease);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--space-5);
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }

.logo-btv {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--coral);
  letter-spacing: 0.04em;
  line-height: 1;
}

.logo-sep {
  width: 1px;
  height: 18px;
  background: var(--line);
  display: block;
}

.logo-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}

.logo-title {
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 400px) {
  .logo-title { display: none; }
  .logo-sep { display: none; }
}

/* Mode Toggle */
.mode-nav {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
  margin: 0 auto;
}

.mode-btn {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--ink-3);
  padding: 9px 26px;
  border-radius: var(--radius-full);
  transition: background var(--duration-fast) var(--ease),
              color var(--duration-fast) var(--ease);
  white-space: nowrap;
  line-height: 1;
}

.mode-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg-raised);
}

[data-theme="dark"] .mode-btn[aria-pressed="true"] {
  background: var(--coral);
  color: #fff;
}

.mode-btn:hover:not([aria-pressed="true"]) {
  color: var(--ink);
  background: var(--line-soft);
}

/* Dark Mode Toggle */
.dark-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--ink-3);
  transition: background var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease);
  flex-shrink: 0;
}
.dark-toggle:hover {
  background: var(--bg-subtle);
  color: var(--ink);
}

.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* ============================================================
   EVENTS STRIP
============================================================ */
.events-strip {
  background: var(--teal-light);
  border-bottom: 1px solid var(--line);
  padding: var(--space-3) 0;
}

.events-strip-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--space-5);
  overflow-x: auto;
  scrollbar-width: none;
}
.events-strip-inner::-webkit-scrollbar { display: none; }

.events-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  flex-shrink: 0;
}

.events-scroll {
  display: flex;
  gap: var(--space-3);
  flex: 1;
}

.event-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  white-space: nowrap;
  flex-shrink: 0;
}

.event-date {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
}

.event-note {
  font-size: var(--text-xs);
  color: var(--ink-3);
}

.event-link {
  font-size: var(--text-xs);
  color: var(--teal);
  margin-left: var(--space-2);
}

/* ============================================================
   LIST LAYOUT
============================================================ */
.list-layout {
  display: flex;
  max-width: var(--max-content);
  margin: 0 auto;
  min-height: calc(100vh - var(--header-h));
}

/* --- Filter Panel --- */
.filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.5);
  z-index: 50;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease);
}

.filter-overlay.open {
  display: block;
  opacity: 1;
}

.filter-panel {
  width: var(--filter-w);
  flex-shrink: 0;
  background: var(--bg-raised);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow: hidden;
  transition: background var(--duration-base) var(--ease),
              border-color var(--duration-base) var(--ease);
}

.filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}

.filter-panel-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--ink);
}

.filter-close-btn {
  display: none;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--ink-3);
  transition: background var(--duration-fast);
}
.filter-close-btn:hover { background: var(--bg-subtle); }

.filter-sections {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-3) 0;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.filter-section {
  border-bottom: 1px solid var(--line-soft);
}

.filter-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-2);
  text-align: left;
  letter-spacing: 0.01em;
  transition: background var(--duration-fast);
}

.filter-section-toggle:hover { background: var(--bg-subtle); }

.filter-section-toggle .chevron {
  color: var(--ink-4);
  transition: transform var(--duration-fast) var(--ease);
  flex-shrink: 0;
}
.filter-section-toggle[aria-expanded="false"] .chevron {
  transform: rotate(-90deg);
}

.filter-section-body {
  padding: var(--space-2) var(--space-4) var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.filter-section-body[hidden] { display: none; }

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--ink-2);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
  user-select: none;
  line-height: 1.4;
}

.filter-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0; height: 0;
}

.filter-chip:hover {
  background: var(--line-soft);
  color: var(--ink);
}

.filter-chip.active {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}

.filter-panel-footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--line-soft);
  flex-shrink: 0;
}

.btn-clear-all {
  width: 100%;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-3);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: transparent;
  transition: background var(--duration-fast), color var(--duration-fast);
  text-align: center;
}
.btn-clear-all:hover {
  background: var(--bg-subtle);
  color: var(--ink);
}

/* Filter active count badge on toggle button */
.active-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--coral);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  line-height: 1;
}

/* Mobile: Filter panel as overlay */
@media (max-width: 1023px) {
  .filter-panel {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform var(--duration-slow) var(--ease);
    /* No right border off-canvas: when translated -100% it would otherwise
       sit at the left screen edge as a full-height 1px line. */
    border-right: none;
    width: min(var(--filter-w), 85vw);
    box-shadow: var(--shadow-lg);
  }

  .filter-panel.open {
    transform: translateX(0);
  }

  .filter-close-btn {
    display: flex;
  }
}

/* ============================================================
   LIST MAIN
============================================================ */
.list-main {
  flex: 1;
  min-width: 0;
  padding: var(--space-5) var(--space-6) var(--space-12);
}

/* --- Toolbar --- */
.toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.search-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--ink-4);
  pointer-events: none;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  height: 42px;
  padding: 0 36px 0 40px;
  font-size: var(--text-sm);
  color: var(--ink);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  -webkit-appearance: none;
}

.search-input::placeholder { color: var(--ink-4); }

.search-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-light);
}

.search-clear {
  position: absolute;
  right: 10px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--ink-4);
  transition: background var(--duration-fast), color var(--duration-fast);
}
.search-clear:hover { background: var(--bg-subtle); color: var(--ink); }

.toolbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 var(--space-5);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  background: var(--coral);
  border: 1px solid var(--coral);
  border-radius: var(--radius-full);
  transition: filter var(--duration-fast), transform var(--duration-fast);
  white-space: nowrap;
}
.filter-toggle-btn:hover { filter: brightness(1.06); }
.filter-toggle-btn.active { background: var(--ink); border-color: var(--ink); }
.filter-toggle-btn .active-filter-count {
  background: #fff;
  color: var(--coral);
  border-radius: var(--radius-full);
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

/* Filter button (with its attention arrows) is always visible. On mobile it
   opens the filter drawer; on desktop it collapses/expands the sidebar. */
.attn-filter { display: inline-flex; position: relative; }

@media (min-width: 1024px) {
  .list-layout.filters-collapsed .filter-panel { display: none; }
}

.sort-select {
  height: 42px;
  padding: 0 var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-2);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236C7A8C' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  transition: border-color var(--duration-fast);
}
.sort-select:focus {
  outline: none;
  border-color: var(--teal);
}

/* Quick Filters */
.quick-filters {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  cursor: pointer;
  user-select: none;
  transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
  background: var(--bg-raised);
}
.quick-chip:hover { background: var(--bg-subtle); color: var(--ink); }
.quick-chip:has(input:checked) {
  background: var(--coral-light);
  color: var(--coral);
  border-color: var(--coral);
}

.quick-chip input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.surprise-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--bg-raised);
  background: var(--ink);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  transition: background var(--duration-fast), transform var(--duration-fast);
  letter-spacing: 0.01em;
  margin-left: auto;
}

.surprise-btn:hover {
  background: var(--coral);
  transform: scale(1.02);
}

[data-theme="dark"] .surprise-btn {
  background: var(--coral);
  color: #fff;
}
[data-theme="dark"] .surprise-btn:hover {
  background: var(--ink-2);
}

/* Result Count */
.result-count {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: var(--space-5);
  min-height: 1.5em;
  letter-spacing: 0.01em;
}
.result-hint {
  margin-left: var(--space-4);
  font: inherit;
  font-weight: 500;
  color: var(--teal);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.result-hint:hover { color: var(--coral); }
@media (max-width: 480px) {
  .result-hint { margin-left: var(--space-3); }
}

/* ============================================================
   CARDS GRID
============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr));
  gap: var(--space-5);
  align-items: start;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow var(--duration-base) var(--ease),
              border-color var(--duration-base) var(--ease),
              transform var(--duration-fast) var(--ease);
  overflow: hidden;
  position: relative;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--line-soft);
  transform: translateY(-2px);
}

.card:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

/* Group color stripe */
.card-stripe {
  height: 3px;
  flex-shrink: 0;
}
.card[data-group="Food & Drink"] .card-stripe    { background: var(--group-food); }
.card[data-group="Outdoors"] .card-stripe        { background: var(--group-outdoors); }
.card[data-group="Culture"] .card-stripe         { background: var(--group-culture); }
.card[data-group="Live & Events"] .card-stripe   { background: var(--group-events); }
.card[data-group="Do & Play"] .card-stripe       { background: var(--group-play); }
.card[data-group="Shopping"] .card-stripe        { background: var(--group-shopping); }

.card-body {
  padding: var(--space-4) var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.card-meta-top {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.cost-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.cost-badge.free { background: var(--teal-light); color: var(--teal); }
.cost-badge.tier-1 { background: #EEF7EE; color: #3A7A3A; }
.cost-badge.tier-2 { background: #FEF5E7; color: #A0660A; }
.cost-badge.tier-3 { background: var(--coral-light); color: var(--coral); }

[data-theme="dark"] .cost-badge.tier-1 { background: #1A3A1A; color: #6EC96E; }
[data-theme="dark"] .cost-badge.tier-2 { background: #2A1E08; color: #D4A030; }

.card-neighborhood {
  font-size: var(--text-xs);
  color: var(--ink-3);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.card-blurb {
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-vibes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: var(--space-2);
}

.vibe-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  padding: 2px 8px;
  white-space: nowrap;
}

.card-footer {
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-shrink: 0;
}

.card-category-label {
  font-size: var(--text-xs);
  color: var(--ink-4);
}

.card-guide-link {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--teal);
  white-space: nowrap;
  flex-shrink: 0;
}
.card-guide-link:hover { color: var(--coral); text-decoration: none; }

/* Empty & Loading states */
.empty-state {
  padding: var(--space-16) var(--space-8);
  text-align: center;
  color: var(--ink-3);
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
  opacity: 0.3;
}

.empty-heading {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--ink-2);
  margin-bottom: var(--space-2);
}

.empty-sub {
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: transparent;
  transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}
.btn-outline:hover { background: var(--bg-subtle); color: var(--ink); border-color: var(--ink-3); }

.loading-state {
  padding: var(--space-12) var(--space-8);
  text-align: center;
  color: var(--ink-3);
  font-size: var(--text-sm);
}

/* ============================================================
   DETAIL DRAWER
============================================================ */
.detail-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.5);
  z-index: 200;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease);
}

.detail-overlay.open {
  display: block;
  opacity: 1;
}

.detail-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: var(--detail-w);
  max-width: 100vw;
  background: var(--bg-raised);
  z-index: 210;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.detail-drawer:not([hidden]) {
  transform: translateX(0);
}

/* Hidden resets transform handled via class, but we use hidden attr for display */
.detail-drawer[hidden] { display: flex; visibility: hidden; }

.detail-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.detail-drawer-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}

.detail-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--ink-3);
  transition: background var(--duration-fast), color var(--duration-fast);
}
.detail-close-btn:hover { background: var(--bg-subtle); color: var(--ink); }

.detail-content {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

/* Detail content styles */
.detail-group-stripe {
  height: 4px;
}

.detail-main {
  padding: var(--space-6) var(--space-6);
}

.detail-cost-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.detail-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

.detail-neighborhood {
  font-size: var(--text-sm);
  color: var(--ink-3);
  margin-bottom: var(--space-5);
}

.detail-blurb {
  font-size: var(--text-base);
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.detail-section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
  margin-top: var(--space-6);
}

.detail-why-special {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-base);
  color: var(--ink-2);
  line-height: 1.65;
  border-left: 3px solid var(--coral);
  padding-left: var(--space-4);
  margin-bottom: var(--space-5);
}

.detail-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-5);
}

.detail-tag {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--ink-3);
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  border: 1px solid var(--line);
}

.detail-info-block {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.detail-info-row {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.detail-info-icon {
  color: var(--ink-3);
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-info-text {
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.5;
}

.detail-map {
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-5);
  border: 1px solid var(--line);
}

.detail-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding-bottom: var(--space-8);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  background: var(--teal);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--duration-fast), transform var(--duration-fast);
}
.btn-primary:hover { background: var(--ink); text-decoration: none; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--coral);
  background: var(--coral-light);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--duration-fast);
}
.btn-secondary:hover { background: var(--coral); color: #fff; text-decoration: none; }

/* Mobile: Detail drawer as bottom sheet */
@media (max-width: 640px) {
  .detail-drawer {
    right: 0;
    left: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    height: 90vh;
    transform: translateY(100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .detail-drawer:not([hidden]) {
    transform: translateY(0);
  }
  .detail-drawer[hidden] {
    transform: translateY(100%);
  }
}

/* ============================================================
   GUIDES MODE
============================================================ */
.guides-view {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-16);
}

/* Guide Index */
.guides-header {
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--line);
}

.guides-header h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: var(--space-3);
}

.guides-header p {
  font-size: var(--text-md);
  color: var(--ink-3);
  max-width: 520px;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-12);
}

.guide-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--duration-base) var(--ease),
              transform var(--duration-fast) var(--ease);
}
.guide-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.guide-card-cover {
  height: 120px;
  display: flex;
  align-items: flex-end;
  padding: var(--space-4);
  position: relative;
  overflow: hidden;
}

.guide-card-cover-roundup { background: linear-gradient(135deg, #2E7D8A 0%, #1A4F5A 100%); }
.guide-card-cover-free    { background: linear-gradient(135deg, #2E8A5F 0%, #1A5040 100%); }
.guide-card-cover-food    { background: linear-gradient(135deg, #D97A3A 0%, #8A3A1A 100%); }
.guide-card-cover-outdoor { background: linear-gradient(135deg, #3A7A6A 0%, #1A4A3A 100%); }
.guide-card-cover-night   { background: linear-gradient(135deg, #4263A8 0%, #1A2A5A 100%); }
.guide-card-cover-family  { background: linear-gradient(135deg, #7B5EA7 0%, #3A2A60 100%); }
.guide-card-cover-date    { background: linear-gradient(135deg, #C94F6D 0%, #6A1A30 100%); }
.guide-card-cover-place   { background: linear-gradient(135deg, #13243B 0%, #2E7D8A 100%); }

.guide-card-type-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-full);
  padding: 3px 8px;
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
}

.guide-card-body {
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.guide-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: var(--space-2);
}

.guide-card-desc {
  font-size: var(--text-sm);
  color: var(--ink-3);
  line-height: 1.55;
  margin-bottom: var(--space-3);
}

.guide-card-cta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--teal);
}
.guide-card:hover .guide-card-cta { color: var(--coral); }

/* Individual Guide Page */
.guide-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-3);
  margin-bottom: var(--space-8);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--bg-raised);
  transition: background var(--duration-fast), color var(--duration-fast);
}
.guide-back-btn:hover { background: var(--bg-subtle); color: var(--ink); text-decoration: none; }

.guide-page-header {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--line);
}

.guide-page-type {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coral);
  margin-bottom: var(--space-3);
}

.guide-page-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-4);
}

.guide-page-intro {
  font-size: var(--text-md);
  color: var(--ink-2);
  line-height: 1.75;
  max-width: 680px;
}

.guide-auto-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--ink-3);
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  margin-top: var(--space-4);
}

/* Roundup list */
.roundup-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.roundup-item {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-5);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: box-shadow var(--duration-base) var(--ease), border-color var(--duration-fast);
}
.roundup-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--ink-4);
}

.roundup-item-accent {
  width: 4px;
  border-radius: 2px;
  flex-shrink: 0;
}
.roundup-item[data-group="Food & Drink"] .roundup-item-accent    { background: var(--group-food); }
.roundup-item[data-group="Outdoors"] .roundup-item-accent        { background: var(--group-outdoors); }
.roundup-item[data-group="Culture"] .roundup-item-accent         { background: var(--group-culture); }
.roundup-item[data-group="Live & Events"] .roundup-item-accent   { background: var(--group-events); }
.roundup-item[data-group="Do & Play"] .roundup-item-accent       { background: var(--group-play); }
.roundup-item[data-group="Shopping"] .roundup-item-accent        { background: var(--group-shopping); }

.roundup-item-body { flex: 1; min-width: 0; }

.roundup-item-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
  flex-wrap: wrap;
}

.roundup-item-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-1);
}

.roundup-item-blurb {
  font-size: var(--text-sm);
  color: var(--ink-3);
  line-height: 1.6;
}

.roundup-item-guide-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--teal);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}

/* Itinerary */
.itinerary-list {
  display: flex;
  flex-direction: column;
  position: relative;
}

.itinerary-list::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--line);
}

.itinerary-stop {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  cursor: pointer;
}

.itinerary-stop-num {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--ink);
  color: var(--bg-raised);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

[data-theme="dark"] .itinerary-stop-num { background: var(--coral); }

.itinerary-stop-body {
  flex: 1;
  padding-top: var(--space-2);
}

.itinerary-stop-name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.itinerary-stop-blurb {
  font-size: var(--text-sm);
  color: var(--ink-3);
}

/* ============================================================
   SITE FOOTER
============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-5) var(--space-5);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--ink-4);
}

.footer-sep { opacity: 0.5; }

/* ============================================================
   MODE PANEL VISIBILITY
============================================================ */
.mode-panel[hidden] { display: none; }

/* ============================================================
   RESPONSIVE ADJUSTMENTS
============================================================ */
@media (max-width: 1023px) {
  .list-main {
    padding: var(--space-4) var(--space-4) var(--space-12);
  }
}

@media (max-width: 640px) {
  :root {
    --card-min: 240px;
    --text-3xl: 2rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .search-wrap { order: 1; flex: 1 1 100%; }
  .toolbar-right { order: 2; }

  .guides-view {
    padding: var(--space-5) var(--space-4) var(--space-10);
  }

  .guides-grid {
    grid-template-columns: 1fr;
  }

  .detail-main {
    padding: var(--space-4) var(--space-4);
  }

  .roundup-item {
    flex-direction: column;
    gap: var(--space-3);
  }

  .roundup-item-accent {
    width: 100%;
    height: 3px;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   LEAFLET MAP OVERRIDES
============================================================ */
.leaflet-container {
  font-family: var(--font-body);
  background: var(--bg-subtle);
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-family: var(--font-body);
}

.leaflet-popup-content {
  font-size: var(--text-sm);
  color: var(--ink);
  margin: 10px 14px;
}

/* ============================================================
   WEATHER INDICATOR (header)
============================================================ */
.weather-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-md);
  color: var(--ink);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--teal-light);
  white-space: nowrap;
  cursor: default;
}

.weather-icon { font-size: 1.15em; line-height: 1; }
.weather-temp { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.1em; }
.weather-label { color: var(--teal); font-weight: 600; font-size: var(--text-sm); }

@media (max-width: 640px) {
  .weather-indicator { padding: 6px 12px; gap: 6px; }
  .weather-label { display: none; }
}

/* --- Ambient weather layer (rain / snow / sun glow) --- */
#weather-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40; /* above content, below header (100) and drawers (200+) */
}

/* ============================================================
   NEWSLETTER TEASER BAR
============================================================ */
.newsletter-bar {
  display: block;
  background: var(--teal-light);
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  transition: filter var(--duration-fast) var(--ease);
}
.newsletter-bar:hover { filter: brightness(0.98); text-decoration: none; }

.newsletter-bar-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: var(--space-4) var(--space-5);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "head cta"
    "preview cta";
  align-items: center;
  column-gap: var(--space-5);
  row-gap: 3px;
}

.newsletter-head {
  grid-area: head;
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.newsletter-label {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.newsletter-issue {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60ch;
}

.newsletter-preview {
  grid-area: preview;
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 96ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.newsletter-cta {
  grid-area: cta;
  color: var(--teal);
  font-weight: 700;
  font-size: var(--text-md);
  text-decoration: none;
  white-space: nowrap;
}
.newsletter-bar:hover .newsletter-cta { text-decoration: underline; }

@media (max-width: 560px) {
  .newsletter-bar-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "preview" "cta";
    row-gap: var(--space-2);
  }
  .newsletter-cta { justify-self: start; }
}

/* ============================================================
   TOP 100 BANNER
============================================================ */
/* Quick actions row: Free only · Top 100 (big, center) · Surprise me */
.quick-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.top100-banner {
  flex: 1 1 360px;
  display: flex;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-4) var(--space-5);
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: transform var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease);
}

[data-theme="dark"] .top100-banner {
  background: var(--bg-raised);
  color: var(--ink);
  border: 1px solid var(--line);
}

.top100-banner:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.top100-banner:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.top100-kicker {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
  font-weight: 600;
  white-space: nowrap;
}

.top100-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
}

.top100-arrow {
  margin-left: auto;
  font-size: var(--text-lg);
  color: var(--coral);
  transition: transform var(--duration-base) var(--ease);
}

.top100-banner:hover .top100-arrow { transform: translateX(4px); }

@media (max-width: 640px) {
  .top100-banner { flex-wrap: wrap; gap: var(--space-1) var(--space-3); }
  .top100-title { font-size: var(--text-md); }
}

/* Brief fade when jumping List → Top 100 */
.mode-transition .mode-panel { opacity: 0; transition: opacity 180ms var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .top100-banner, .top100-arrow, .mode-transition .mode-panel { transition: none; }
}

/* ============================================================
   RANKED LIST (Top 100 guide)
============================================================ */
.ranked-item { position: relative; }

.ranked-num {
  flex: 0 0 auto;
  align-self: flex-start;
  min-width: 2.4rem;
  padding: var(--space-4) 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.ranked-item:nth-child(-n+10) .ranked-num { color: var(--coral); }

/* ============================================================
   COMMUNITY SECTION (photos, reddit, FAQ, sponsors)
============================================================ */
.community-section {
  max-width: var(--max-content);
  margin: var(--space-12) auto var(--space-8);
  padding: 0 var(--space-5);
  display: grid;
  gap: var(--space-10);
}

.community-block-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  border-top: 1px solid var(--line);
  padding-top: var(--space-6);
}

.community-block-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--ink);
}

.community-block-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  white-space: nowrap;
}

.community-block-link:hover { text-decoration: underline; }

.community-empty-note {
  font-size: var(--text-sm);
  color: var(--ink-3);
  font-style: italic;
}

/* --- Photo strip --- */
.photo-strip {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scroll-snap-type: x proximity;
}

.photo-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
}

.photo-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.photo-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
}

.photo-caption { color: var(--ink-2); }
.photo-credit  { color: var(--ink-3); }

/* --- Reddit module --- */
.reddit-list {
  display: grid;
  gap: var(--space-2);
}

.reddit-post {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-raised);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color var(--duration-fast) var(--ease);
}

.reddit-post:hover { border-color: var(--teal); }

.reddit-score {
  flex: 0 0 auto;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--coral);
  font-variant-numeric: tabular-nums;
}

.reddit-title {
  font-size: var(--text-sm);
  color: var(--ink);
  line-height: 1.4;
}

/* --- FAQ --- */
.faq-list { display: grid; gap: var(--space-2); max-width: 760px; }

.faq-item {
  background: var(--bg-raised);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 0 var(--space-4);
}

.faq-item summary {
  cursor: pointer;
  padding: var(--space-3) 0;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--ink);
  list-style-position: inside;
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.faq-answer {
  padding: 0 0 var(--space-4);
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.7;
}

.faq-reddit-link {
  display: inline-block;
  margin-top: var(--space-2);
  margin-right: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}

.faq-reddit-link:hover { text-decoration: underline; }

/* --- Sponsors --- */
.sponsor-label {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  margin-bottom: var(--space-2);
}

.sponsor-footer {
  border-top: 1px solid var(--line);
  padding-top: var(--space-6);
}

.sponsor-row {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  align-items: center;
}

.sponsor-item { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.sponsor-item img { max-height: 48px; width: auto; }

.card-sponsor {
  border-style: dashed;
  cursor: default;
}

/* --- Card footer links --- */
.card-footer-links {
  display: inline-flex;
  gap: var(--space-3);
  align-items: baseline;
}

.card-website-link {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  white-space: nowrap;
}

.card-website-link:hover { text-decoration: underline; }

/* --- Footer attribution --- */
.footer-attribution a { color: inherit; }

/* ============================================================
   RANKED EXPERIENCES (Top 100 rebuilt as things-to-do)
============================================================ */
.ranked-exp-list {
  display: grid;
  max-width: 760px;
}

.ranked-exp {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--line-soft);
}

.ranked-exp:last-child { border-bottom: none; }

.ranked-exp .ranked-num {
  flex: 0 0 3.2rem;
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink-4);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ranked-exp:nth-child(-n+10) .ranked-num { color: var(--coral); }

.ranked-exp-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: var(--space-3);
}

.ranked-exp-text {
  font-size: var(--text-base);
  color: var(--ink-2);
  line-height: 1.75;
  max-width: 62ch;
}

.ranked-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.ranked-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 6px 12px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  transition: border-color var(--duration-fast) var(--ease),
              transform var(--duration-fast) var(--ease);
}

.ranked-chip:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.ranked-chip:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.ranked-chip-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}

.ranked-chip-meta {
  font-size: var(--text-xs);
  color: var(--ink-3);
}

@media (max-width: 640px) {
  .ranked-exp { gap: var(--space-4); padding: var(--space-6) 0; }
  .ranked-exp .ranked-num { flex-basis: 2.2rem; font-size: var(--text-xl); }
}

@media (prefers-reduced-motion: reduce) {
  .ranked-chip { transition: none; }
}

/* ============================================================
   DAYLIGHT ARC (sunrise → sunset countdown)
============================================================ */
.sun-arc {
  background: linear-gradient(180deg, var(--bg-raised), var(--bg-subtle));
  border-bottom: 1px solid var(--line-soft);
}

.sun-arc-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-5) var(--space-3);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "rise graphic set"
    "count count count";
  align-items: center;
  gap: var(--space-2) var(--space-4);
}

.sun-arc-graphic { grid-area: graphic; min-width: 0; }

.sun-arc-svg {
  width: 100%;
  height: auto;
  max-height: 104px;
  display: block;
  overflow: visible;
}

.sun-horizon {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.sun-arc-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.6;
}

.sun-arc-elapsed {
  fill: none;
  stroke: url(#sunArcGrad);
  stroke-width: 3.5;
  stroke-linecap: round;
}

.sun-marker-core {
  fill: #FDBE5E;
  stroke: #F2683C;
  stroke-width: 1.5;
}

.sun-arc.is-night .sun-marker-core {
  fill: var(--ink-4);
  stroke: var(--ink-3);
}
.sun-arc.is-night .sun-marker-glow { opacity: 0; }

.sun-end {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.sun-end-rise { grid-area: rise; text-align: left; }
.sun-end-set  { grid-area: set;  text-align: right; }

.sun-end-time {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.sun-end-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.sun-countdown {
  grid-area: count;
  text-align: center;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-2);
}

.sun-count-num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--coral);
  font-variant-numeric: tabular-nums;
}
.sun-arc.is-night .sun-count-num { color: var(--teal); }

.sun-count-label {
  font-size: var(--text-sm);
  color: var(--ink-2);
}

@media (max-width: 560px) {
  .sun-arc-inner { padding: var(--space-3) var(--space-4); gap: var(--space-1) var(--space-3); }
  .sun-end-time { font-size: var(--text-base); }
}

/* Top 100 banner subhead */
.top100-sub {
  font-size: var(--text-sm);
  color: rgba(251, 248, 242, 0.72);
  margin-left: var(--space-2);
}
[data-theme="dark"] .top100-sub { color: var(--ink-3); }

@media (max-width: 640px) {
  .top100-sub { display: none; }
}

/* ============================================================
   ITINERARY — experience format (time · title · body · chips)
============================================================ */
.itin-list {
  max-width: 760px;
  position: relative;
}

.itin-exp {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-8);
  position: relative;
}

/* Connecting spine down the left rail */
.itin-exp::before {
  content: "";
  position: absolute;
  left: 37px;
  top: 26px;
  bottom: -6px;
  width: 2px;
  background: var(--line);
}
.itin-exp:last-child::before { display: none; }

.itin-rail {
  position: relative;
  text-align: right;
  padding-top: 2px;
}

.itin-time {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.itin-dot {
  position: absolute;
  right: -8px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--coral);
}

.itin-exp-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: var(--space-2);
}

.itin-exp-text {
  font-size: var(--text-base);
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 60ch;
}

@media (max-width: 560px) {
  .itin-exp { grid-template-columns: 58px 1fr; gap: var(--space-3); }
  .itin-exp::before { left: 28px; }
  .itin-dot { right: -7px; }
}

/* ============================================================
   GUIDES CAROUSEL (List view)
============================================================ */
.guides-rail-wrap { margin-bottom: var(--space-6); }

.guides-rail-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.guides-rail-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.guides-rail-arrow { color: var(--coral); font-weight: 700; }

.guides-rail {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.rail-card {
  flex: 0 0 224px;
  height: 122px;
  scroll-snap-align: start;
  position: relative;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-3);
  color: #fff;
  transition: transform var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}

.rail-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 28%, rgba(0,0,0,0.58) 100%);
  z-index: 0;
}

.rail-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.rail-card:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

.rail-card-type,
.rail-card-title { position: relative; z-index: 1; }

.rail-card-type {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
  margin-bottom: 3px;
}

.rail-card-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.2;
}

/* ============================================================
   WEATHER MENU (header popover)
============================================================ */
.weather-wrap { position: relative; }

.weather-indicator { cursor: pointer; }
.weather-indicator:hover { filter: brightness(0.98); }

.weather-caret { font-size: 0.65em; color: var(--ink-3); margin-left: 1px; }

.weather-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: flex;
  flex-direction: column;
  min-width: 232px;
  z-index: 120;
}
.weather-menu[hidden] { display: none; }

.weather-menu-item {
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.weather-menu-item:hover { background: var(--bg-subtle); text-decoration: none; }


}

/* Events This Week reuses the Upcoming strip design, with a coral label */
.week-strip { background: var(--coral-light); }
.week-strip .events-label { color: var(--coral); }

/* ============================================================
   EVENTS THIS WEEK — whole card is a link
============================================================ */
.week-event-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
}
.week-event-card:hover {
  border-color: var(--coral);
  transform: translateY(-1px);
  text-decoration: none;
}
.week-event-card .event-arrow {
  font-size: var(--text-xs);
  color: var(--coral);
  margin-left: var(--space-1);
}

/* ============================================================
   TOP 100 as the first guides-rail card (emphasized)
============================================================ */
.rail-card-top100 {
  flex-basis: 256px;
  /* Lake Champlain sunset behind a strong navy wash — text sits directly on
     the card, so keep the photo subtle and the bottom dark for legibility. */
  background:
    linear-gradient(180deg, rgba(19,36,59,0.60) 0%, rgba(19,36,59,0.90) 100%),
    url('../assets/img/top100-bg.jpg') center 42% / cover no-repeat,
    var(--ink);
}
[data-theme="dark"] .rail-card-top100 {
  background: var(--bg-raised);
}
.rail-card-top100::after { display: none; }
.rail-card-top100 .rail-card-type { color: var(--coral); opacity: 1; font-weight: 600; }
.rail-card-top100 .rail-card-title { color: var(--bg); }
[data-theme="dark"] .rail-card-top100 .rail-card-title { color: var(--ink); }

/* ============================================================
   ATTENTION ARROWS (4 inward-pointing arrows around an element)
   Used on the mobile Filter button and the Top 100 rail card.
============================================================ */
.attn-arrow {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 3;
}
.attn-top {
  top: -9px; left: 50%; margin-left: -5px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--coral);
  animation: attnTop 1.4s ease-in-out infinite;
}
.attn-bottom {
  bottom: -9px; left: 50%; margin-left: -5px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 7px solid var(--coral);
  animation: attnBottom 1.4s ease-in-out infinite;
}
.attn-left {
  left: -9px; top: 50%; margin-top: -5px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--coral);
  animation: attnLeft 1.4s ease-in-out infinite;
}
.attn-right {
  right: -9px; top: 50%; margin-top: -5px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 7px solid var(--coral);
  animation: attnRight 1.4s ease-in-out infinite;
}
@keyframes attnTop    { 0%,100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes attnBottom { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes attnLeft   { 0%,100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
@keyframes attnRight  { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-3px); } }

@media (prefers-reduced-motion: reduce) {
  .attn-arrow { animation: none !important; }
}

/* Room in the rail so the Top 100 card's outside arrows aren't clipped */
.guides-rail { padding: 11px 6px 12px 11px; }
.rail-card-top100 { position: relative; overflow: visible; }

/* ============================================================
   LIST INTRO (what this list is)
============================================================ */
.list-intro { margin-bottom: var(--space-5); }

.list-intro-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.list-intro-sub {
  font-size: var(--text-md);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 62ch;
}
.list-intro-sub strong { color: var(--coral); font-weight: 700; }

.intro-link {
  font: inherit;
  color: var(--teal);
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  border-bottom: 2px solid var(--teal);
  line-height: 1.1;
}
.intro-link:hover { color: var(--ink); border-color: var(--ink); }

@media (max-width: 560px) {
  .list-intro-title { font-size: var(--text-xl); }
  .list-intro-sub { font-size: var(--text-base); }
}

/* ============================================================
   HEADER WEATHER (now top-left) + CONNECT BUTTONS
============================================================ */
/* Menu opens below-left now that the pill lives on the left edge */
.weather-menu { left: 0; right: auto; }

/* Slightly slimmer pill so the left cluster stays compact */
.weather-indicator { padding: 6px 12px; }

/* Toolbar wraps so sort + connect buttons flow on mobile */
.toolbar { flex-wrap: wrap; }
.toolbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* Equal-width, equal-height trio — symmetric at every screen size */
.connect-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  max-width: 640px;
  margin-bottom: var(--space-4);
}

.connect-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 42px;
  padding: 5px 8px;
  border-radius: var(--radius-md);
  color: #fff;
  text-decoration: none;
  text-align: center;
  line-height: 1.1;
  transition: filter var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
}
.connect-btn:hover { filter: brightness(1.08); transform: translateY(-1px); text-decoration: none; color: #fff; }

.connect-about    { background: #4263A8; }  /* lake-navy blue */
.connect-meetup   { background: #F65858; }  /* Meetup red */
.connect-telegram { background: #229ED9; }  /* Telegram blue */

.connect-btn-main {
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
}

.connect-btn-note {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .connect-row { gap: var(--space-2); }
  .connect-btn-main { font-size: var(--text-xs); }
  .connect-btn-note { font-size: 9px; }
}

/* ============================================================
   SUPPORT LINE (Donate · Merch · Submit a photo) — styled like the
   "Swipe for the best guides" label line.
============================================================ */
.support-line {
  display: flex;
  align-items: baseline;
  gap: var(--space-3) var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.support-line-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.support-line-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}
.support-line-links a {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  white-space: nowrap;
}
.support-line-links a:hover { color: var(--coral); text-decoration: underline; }

/* ============================================================
   TOP 100 GUIDE CARD COVER — waterfront photo (text sits below,
   so the photo can read more prominently here)
============================================================ */
.guide-card-cover.guide-cover-top100 {
  background:
    linear-gradient(180deg, rgba(19,36,59,0.10) 0%, rgba(19,36,59,0.42) 100%),
    url('../assets/img/top100-bg.jpg') center 42% / cover no-repeat,
    var(--ink);
}
