  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --teal:  #0B5563;
    --teal2: #0d7a8a;
    --jade:  #1A8A6E;
    --gold:  #C8901A;
    --ember: #C4522A;
    --cream: #F7F2EB;
    --muted: #6a7a7a;
  }
  html { scroll-behavior: smooth; }
  body { background: var(--cream); color: #1a2a2a; font-family: 'DM Sans', sans-serif; font-weight: 300; }

  /* ── HAMBURGER BUTTON ── */
  .hamburger-btn {
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px; padding: 10px; cursor: pointer;
    display: flex; flex-direction: column; gap: 5px; flex-shrink: 0;
    transition: background 0.2s;
  }
  .hamburger-btn:hover { background: rgba(255,255,255,0.25); }
  .hamburger-btn span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; }

  /* ── HEADER INSTALL BUTTON ── */
  .header-install-btn {
    display: flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: 20px; color: #fff; font-family: 'DM Sans', sans-serif;
    font-size: 12px; font-weight: 700; padding: 6px 12px; cursor: pointer;
    white-space: nowrap; transition: background 0.15s; flex-shrink: 0;
  }
  .header-install-btn:hover { background: rgba(255,255,255,0.28); }
  .header-install-btn span { display: none; }
  @media (min-width: 380px) { .header-install-btn span { display: inline; } }

  /* ── DROPDOWN OVERLAY ── */
  .dropdown-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45);
    z-index: 999; backdrop-filter: blur(2px);
  }
  .dropdown-overlay.open { display: block; }

  /* ── DROPDOWN PANEL ── */
  .dropdown-panel {
    position: fixed; top: 0; right: -340px; width: 320px; max-width: 90vw;
    height: 100%; background: #fff; z-index: 1000;
    box-shadow: -8px 0 40px rgba(0,0,0,0.18);
    transition: right 0.3s ease; overflow-y: auto;
    display: flex; flex-direction: column;
  }
  .dropdown-panel.open { right: 0; }
  .dropdown-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 20px 16px; border-bottom: 1px solid #f0eeea;
    background: linear-gradient(135deg, var(--teal), var(--jade));
  }
  .dropdown-title { color: #fff; font-weight: 700; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; }
  .dropdown-close {
    background: rgba(255,255,255,0.2); border: none; color: #fff;
    width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
    font-size: 14px; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
  }
  .dropdown-close:hover { background: rgba(255,255,255,0.35); }
  .dropdown-nav { padding: 12px 0; border-bottom: 1px solid #f0eeea; }
  .dropdown-nav-btn {
    width: 100%; background: none; border: none; text-align: left;
    padding: 14px 22px; font-family: 'DM Sans', sans-serif; font-size: 15px;
    font-weight: 500; color: #2a3a3a; cursor: pointer;
    display: flex; align-items: center; gap: 12px;
    transition: background 0.15s, color 0.15s;
  }
  .dropdown-nav-btn:hover { background: #f0f7f7; color: var(--teal); }
  .dropdown-nav-btn span { font-size: 20px; }

  /* ── DROPDOWN ABOUT ── */
  .dropdown-about { padding: 24px 22px; flex: 1; }
  .dropdown-about-title {
    font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700;
    color: var(--teal); margin-bottom: 16px; line-height: 1.2;
  }
  .dropdown-about p {
    font-size: 13.5px; color: #4a5a5a; line-height: 1.75; margin-bottom: 14px;
  }
  .dropdown-about strong { color: #1a2a2a; }
  .dropdown-made-with {
    margin-top: 24px; font-size: 12px; color: #9aacac;
    text-align: center; letter-spacing: 0.05em;
  }
  .dropdown-contact {
    margin-top: 16px; font-size: 12.5px; color: #6a7a7a;
    line-height: 1.7; text-align: center; padding: 14px 4px;
    border-top: 1px solid #f0eeea;
  }
  .dropdown-contact a { color: var(--teal); font-weight: 600; text-decoration: none; }
  .dropdown-contact a:hover { text-decoration: underline; }
  .main-nav { background: #fff; border-bottom: 2px solid rgba(11,85,99,0.1); }
  .main-nav-inner { max-width: 1080px; margin: 0 auto; padding: 0 28px; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
  .main-nav-inner::-webkit-scrollbar { display: none; }
  .main-nav-btn {
    background: none; border: none; border-bottom: 3px solid transparent;
    color: #6a7a7a; font-family: 'DM Sans', sans-serif;
    font-size: 13px; font-weight: 600; padding: 16px 24px;
    cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: 8px;
    transition: color 0.2s, border-color 0.2s; margin-bottom: -2px;
  }
  .main-nav-btn:hover { color: var(--teal); }
  .main-nav-btn.active { color: var(--teal); border-bottom-color: var(--teal); }
  .main-nav-btn .nav-icon { font-size: 16px; }

  /* ── SECTIONS ── */
  .app-section { display: none; }
  .app-section.active { display: block; }

  /* ── HEADER ── */
  .header {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal2) 55%, var(--jade) 100%);
    color: #fff; position: relative; overflow: hidden;
  }
  .header-blob {
    position: absolute; top: -80px; right: -80px;
    width: 320px; height: 320px; border-radius: 50%;
    background: rgba(200,144,26,0.12); pointer-events: none;
  }
  .header-blob2 {
    position: absolute; bottom: -60px; left: 20%;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255,255,255,0.04); pointer-events: none;
  }
  .header-inner {
    max-width: 1080px; margin: 0 auto;
    padding: 48px 28px 62px; position: relative;
  }
  .eyebrow {
    font-size: 10px; font-weight: 600; letter-spacing: 0.3em;
    text-transform: uppercase; color: rgba(255,255,255,0.45);
    margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
  }
  .eyebrow::before { content:''; width:22px; height:1px; background:var(--gold); }
  h1 { font-family: 'Fraunces', serif; font-size: clamp(42px,7vw,80px); font-weight: 900; line-height: 0.92; letter-spacing: -0.02em; }
  h1 em { font-style: italic; color: var(--gold); }
  .header-sub { margin-top: 16px; font-size: 13.5px; color: rgba(255,255,255,0.55); line-height: 1.7; max-width: 400px; }
  .last-updated {
    margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
    border-radius: 4px; padding: 7px 13px; font-size: 12px; color: rgba(255,255,255,0.7);
  }
  .dot { width: 7px; height: 7px; border-radius: 50%; background: #4fc58f; animation: pulse 2.5s infinite; }
  .header-wave { display: block; width: 100%; height: 44px; }

  /* ── Weekend Highlights row ── */
  .highlights-section { background: #F7F2EB; padding: 0 0 24px; border-bottom: 1px solid rgba(0,0,0,0.07); }
  .highlights-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 14px; }
  .highlights-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
  .highlights-see-all { font-size: 11px; color: var(--muted); background: none; border: none; cursor: pointer; padding: 0; font-family: inherit; }
  .highlights-track {
    display: flex; gap: 12px; overflow-x: auto;
    padding: 0 20px 8px; scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .highlights-track::-webkit-scrollbar { display: none; }
  .highlight-card {
    flex-shrink: 0; width: 160px; border-radius: 8px; background: #fff;
    overflow: hidden; border: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); cursor: pointer;
    scroll-snap-align: start; transition: transform 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
  }
  .highlight-card:active { transform: scale(0.97); }
  @media (hover: hover) {
    .highlight-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(11,85,99,0.1); }
  }
  .highlight-card-img { aspect-ratio: 16/9; overflow: hidden; background: #e8e4dc; }
  .highlight-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 0.3s ease; }
  .highlight-card-img img.loaded { opacity: 1; }
  .highlight-card-body { padding: 10px 11px 12px; }
  .highlight-card-title {
    font-family: 'Fraunces', serif; font-size: 13px; font-weight: 700;
    color: var(--teal); line-height: 1.25; margin-bottom: 5px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .highlight-card-meta { display: flex; flex-direction: column; gap: 2px; }
  .highlight-card-meta span { font-size: 10.5px; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  @media (min-width: 640px) {
    .highlights-header { padding: 16px 28px 14px; }
    .highlights-track { padding: 0 28px 8px; }
    .highlight-card { width: 200px; }
  }
  /* Card flash — triggered when scrolling to a picked event */
  @keyframes card-flash {
    0%, 30% { box-shadow: 0 0 0 3px rgba(200,144,26,0.8), 0 12px 36px rgba(11,85,99,0.12); }
    100%     { box-shadow: none; }
  }
  .card-flash { animation: card-flash 1.5s ease-out forwards; }

  /* ── WEEKEND TABS ── */
  .tabs-bar { background: #0A4750; border-bottom: 1px solid rgba(255,255,255,0.07); position: sticky; top: 0; z-index: 100; }
  .tabs-inner { max-width: 1080px; margin: 0 auto; padding: 0 28px; display: flex; overflow-x: auto; scrollbar-width: none; }
  .tabs-inner::-webkit-scrollbar { display: none; }
  .tab-btn {
    background: none; border: none; border-bottom: 3px solid transparent;
    color: rgba(255,255,255,0.4); font-family: 'DM Sans', sans-serif;
    font-size: 11.5px; font-weight: 600; letter-spacing: 0.07em;
    text-transform: uppercase; padding: 15px 20px; cursor: pointer;
    white-space: nowrap; flex-shrink: 0; transition: color 0.2s, border-color 0.2s;
  }
  .tab-btn:hover { color: rgba(255,255,255,0.75); }
  .tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
  /* Past tab buttons (inside the collapsible group) */
  .tab-btn[data-past-weekend] { color: rgba(255,255,255,0.35); font-style: italic; }
  .tab-btn[data-past-weekend]:hover { color: rgba(255,255,255,0.55); }
  .tab-btn[data-past-weekend].active { color: rgba(255,198,44,0.6); border-bottom-color: rgba(255,198,44,0.4); }
  .tab-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #4fc58f; display: inline-block; margin-right: 7px; vertical-align: middle; animation: pulse 2.5s infinite; }
  .tab-count {
    display: inline-block; background: rgba(255,255,255,0.12); border-radius: 8px;
    padding: 1px 6px; font-size: 9px; font-weight: 700; margin-left: 5px;
    vertical-align: middle; line-height: 1.6; letter-spacing: 0; text-transform: none;
  }
  .tab-btn.active .tab-count { background: rgba(255,198,44,0.2); color: var(--gold); }

  /* ── WEEKEND NAV BAR ── */
  .weekend-nav-bar {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1080px; margin: 0 auto; padding: 3px 20px 8px;
  }
  .wnav-btn {
    background: none; border: none; color: rgba(255,255,255,0.5);
    font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600;
    letter-spacing: 0.03em; padding: 5px 12px; border-radius: 6px;
    cursor: pointer; transition: color 0.15s, background 0.15s;
  }
  .wnav-btn:hover:not(:disabled) { color: #fff; background: rgba(255,255,255,0.1); }
  .wnav-btn:disabled { opacity: 0.2; cursor: default; pointer-events: none; }
  .wnav-pos { color: rgba(255,255,255,0.25); font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500; }

  /* ── REGION FILTERS ── */
  .filter-bar { background: #fff; border-bottom: 1px solid rgba(0,0,0,0.07); }
  .filter-inner { max-width: 1080px; margin: 0 auto; padding: 12px 28px; display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .filter-inner::-webkit-scrollbar { display: none; }
  .filter-label { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #aaa; margin-right: 4px; flex-shrink: 0; }
  .filter-btn {
    background: none; border: 1.5px solid rgba(11,85,99,0.2); color: var(--teal);
    font-family: 'DM Sans', sans-serif; font-size: 11.5px; font-weight: 600;
    padding: 6px 14px; border-radius: 20px; cursor: pointer; white-space: nowrap;
    transition: all 0.2s; display: flex; align-items: center; gap: 6px;
  }
  .filter-btn:hover { border-color: var(--teal); background: rgba(11,85,99,0.05); }
  .filter-btn.active { background: var(--teal); color: #fff; border-color: var(--teal); }
  .filter-btn .region-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

  /* ── MAIN ── */
  main { max-width: 1080px; margin: 0 auto; padding: 36px 28px 80px; }
  .weekend-panel { display: none; }
  .weekend-panel.active              { display: block; animation: wkdFade 0.3s ease; }
  .weekend-panel.active.slide-right  { animation: wkdSlideRight 0.28s ease; }
  .weekend-panel.active.slide-left   { animation: wkdSlideLeft  0.28s ease; }

  /* ── BANNER ── */
  .banner {
    background: linear-gradient(135deg, var(--teal), var(--jade));
    color: #fff; border-radius: 4px; padding: 20px 24px;
    margin-bottom: 30px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  }
  .banner-icon { font-size: 28px; flex-shrink: 0; }
  .banner-text h3 { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 700; margin-bottom: 3px; }
  .banner-text p { font-size: 13px; opacity: 0.75; line-height: 1.5; }
  .banner-sponsored {
    background: linear-gradient(135deg, #1a1028, #2d1b4e, #4a2040);
    color: #fff; border-radius: 4px; padding: 14px 18px;
    margin-bottom: 30px; display: flex; align-items: center; gap: 14px;
    flex-wrap: wrap; position: relative; border: 1px solid rgba(200,144,26,0.3);
  }
  .banner-sponsored-badge {
    position: absolute; top: 10px; right: 12px;
    font-size: 8px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--gold); background: rgba(200,144,26,0.15); padding: 2px 7px;
    border-radius: 20px; border: 1px solid rgba(200,144,26,0.35);
  }
  .banner-sponsored-logo {
    height: 32px; width: auto; object-fit: contain;
    flex-shrink: 0; opacity: 0.92;
  }
  .banner-sponsored-logo-fallback {
    width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
    background: rgba(200,144,26,0.2); border: 1px solid rgba(200,144,26,0.4);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
  }
  .banner-sponsored-text h3 { font-family: 'Fraunces', serif; font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 2px; }
  .banner-sponsored-text p { font-size: 11.5px; color: rgba(255,255,255,0.65); line-height: 1.5; margin-bottom: 8px; }
  .banner-sponsored-link {
    display: inline-block; background: var(--gold); color: #fff;
    font-size: 10px; font-weight: 700; padding: 5px 12px; border-radius: 20px;
    text-decoration: none; letter-spacing: 0.04em; transition: background 0.2s;
  }
  .banner-sponsored-link:hover { background: #a87010; }

  /* ── DAY SECTION ── */
  .day-label {
    font-size: 10px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase;
    margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
  }
  .day-label .pip { width: 3px; height: 14px; border-radius: 2px; flex-shrink: 0; }
  .day-label .line { flex: 1; height: 1px; }
  .day-fri { color: #A06010; }
  .day-fri .pip { background: var(--gold); }
  .day-fri .line { background: linear-gradient(90deg, rgba(200,144,26,0.2), transparent); }
  .day-sat { color: var(--teal); }
  .day-sat .pip { background: var(--gold); }
  .day-sat .line { background: linear-gradient(90deg, rgba(11,85,99,0.2), transparent); }
  .day-sun { color: var(--jade); }
  .day-sun .pip { background: var(--jade); }
  .day-sun .line { background: linear-gradient(90deg, rgba(26,138,110,0.2), transparent); }
  .day-mon { color: var(--teal2); }
  .day-mon .pip { background: var(--teal2); }
  .day-mon .line { background: linear-gradient(90deg, rgba(13,122,138,0.2), transparent); }

  /* ── DAY SELECTOR ── */
  .day-selector {
    display: flex; gap: 6px; padding: 0 0 24px; justify-content: center; flex-wrap: wrap;
  }
  .day-pill {
    display: flex; flex-direction: column; align-items: center;
    padding: 8px 16px; border-radius: 10px;
    border: 1.5px solid #d0d5c8; background: transparent;
    cursor: pointer; transition: border-color 0.18s, background 0.18s;
    min-width: 56px; flex-shrink: 0;
  }
  .day-pill-name {
    font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.07em; color: #6b7280; line-height: 1;
  }
  .day-pill-date {
    font-size: 1.1rem; font-weight: 700; color: #1a1a2e; line-height: 1.2;
  }
  .day-pill-count {
    font-size: 0.58rem; font-weight: 600; color: #9ca3af; margin-top: 1px; line-height: 1;
  }
  .day-pill.active {
    background: var(--teal); border-color: var(--teal);
  }
  .day-pill.active .day-pill-name,
  .day-pill.active .day-pill-date,
  .day-pill.active .day-pill-count { color: #fff; }
  .day-pill.active .day-pill-count { color: rgba(255,255,255,0.65); }
  @media (hover: hover) {
    .day-pill:not(.active):hover { border-color: var(--teal); background: rgba(11,85,99,0.07); }
  }
  @media (max-width: 767px) {
    .day-selector { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 16px 20px; justify-content: flex-start; }
    .day-pill { padding: 7px 13px; min-width: 50px; }
  }

  /* ── EVENTS GRID ── */
  .events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; margin-bottom: 36px; }
  /* Collapse genuinely empty grids (no children) — generated panels start empty */
  .events-grid:empty { display: none; margin: 0; }
  /* Hide the day label above an empty grid so no orphaned heading remains */
  .day-label:has(+ .events-grid:empty) { display: none; margin: 0; }

  /* ── EVENT CARD ── */
  .card {
    background: #fff; border-radius: 4px; overflow: hidden;
    border: 1px solid rgba(0,0,0,0.07); display: flex; flex-direction: column;
    opacity: 0; transform: translateY(12px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out, box-shadow 0.25s ease;
  }
  .card.revealed { opacity: 1; transform: translateY(0); }

  /* ── TIER 1: Featured card ── */
  .card.card-featured {
    background: #fffbf2;
    border: 1px solid rgba(200,144,26,0.2);
    border-left: 4px solid var(--gold);
    box-shadow: 0 4px 20px rgba(200,144,26,0.08);
  }
  .card.card-featured .card-title { font-size: 20px; }
  .card.card-featured .card-body  { padding: 18px 20px 14px; }
  .card.card-featured .badge-hot  { font-size: 10px; padding: 4px 12px; }

  /* ── TIER 3: Compact card ── */
  .card.card-compact {
    background: #f5f4f0;
    border-color: rgba(0,0,0,0.05);
    cursor: pointer;
    position: relative;
  }
  /* Chevron — collapses/expands */
  .card.card-compact::after {
    content: '›';
    position: absolute;
    right: 14px;
    font-size: 22px;
    font-weight: 300;
    color: var(--muted);
    transition: transform 0.2s;
    pointer-events: none;
    line-height: 1;
  }
  .card.card-compact:not(.open)::after { top: 50%; transform: translateY(-50%); }
  .card.card-compact.open::after       { top: 14px; transform: rotate(90deg); }
  /* Collapsed: hide everything except the summary row */
  .card.card-compact:not(.open) .card-img-wrap,
  .card.card-compact:not(.open) .card-img-placeholder,
  .card.card-compact:not(.open) .card-meta,
  .card.card-compact:not(.open) .card-desc,
  .card.card-compact:not(.open) .card-footer { display: none; }
  .card.card-compact:not(.open) .card-body  { padding: 10px 44px 10px 16px; }
  .card.card-compact:not(.open) .card-top   { margin-bottom: 0; }
  .card.card-compact:not(.open) .card-title { font-size: 14px; color: #4a5a5a; }
  .card.card-compact:not(.open) .card-cat   { margin-bottom: 2px; font-size: 9px; }
  .card.card-compact:not(.open):hover       { transform: none; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
  /* Expanded: restore normal padding */
  .card.card-compact.open .card-body { padding: 16px 40px 12px 18px; }

  /* ── Events section day timeline ── */
  #section-events .weekend-panel > .events-grid {
    border-left: 2px solid rgba(11,85,99,0.10);
    margin-left: 18px;
    padding-left: 16px;
  }
  #section-events .weekend-panel > .day-label { padding-left: 12px; }
  #section-events .weekend-panel > .day-label .pip {
    width: 10px; height: 10px; border-radius: 50%;
  }

  .card-strip { height: 4px; flex-shrink: 0; }

  /* ── Card hero image ── */
  .card-img-wrap {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #e5e7eb;
    flex-shrink: 0;
    position: relative;
  }
  /* Failed image: keep the sized box, show a subtle camera icon */
  .card-img-wrap.img-failed { background: linear-gradient(135deg, #f0ece4, #e8e4dc); }
  .card-img-wrap.img-failed::after {
    content: '📷';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px; opacity: 0.2; pointer-events: none;
  }
  .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.35s ease;
  }
  .card-img.loaded { opacity: 1; }
  .card:hover .card-img { transform: scale(1.04); }
  .card:not([data-img]) .card-img-wrap,
  .card[data-img=""] .card-img-wrap { display: none; }
  .venue-card:hover .card-img { transform: scale(1.04); }
  .venue-card:not([data-img]) .card-img-wrap,
  .venue-card[data-img=""] .card-img-wrap { display: none; }

  /* ── Card placeholder (no real image — animated icon) ── */
  .card-img-placeholder {
    aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
    font-size: 64px; line-height: 1; flex-shrink: 0;
    background: linear-gradient(135deg, #f0ece4, #e8e4dc);
  }
  .card-img-placeholder span { display: inline-block; animation: icon-float 3s ease-in-out infinite; }
  @keyframes icon-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-9px) rotate(6deg); }
  }
  /* Gradient backgrounds matched to strip colour per event type */
  .card-strip.strip-festival + .card-img-placeholder { background: linear-gradient(135deg, #f8edcc, #fef6e2); }
  .card-strip.strip-outdoor  + .card-img-placeholder { background: linear-gradient(135deg, #d8f0e8, #eaf8f2); }
  .card-strip.strip-culture  + .card-img-placeholder { background: linear-gradient(135deg, #e4dcf4, #ede8f8); }
  .card-strip.strip-sport    + .card-img-placeholder { background: linear-gradient(135deg, #d4eaf6, #e6f3fb); }
  .card-strip.strip-music    + .card-img-placeholder { background: linear-gradient(135deg, #f2d8d8, #f8e8e8); }
  .card-strip.strip-whanau   + .card-img-placeholder { background: linear-gradient(135deg, #f6d8ec, #fce8f4); }
  .card-strip.strip-market   + .card-img-placeholder { background: linear-gradient(135deg, #d0e8ec, #e4f4f6); }
  .card-body { padding: 16px 18px 12px; flex: 1; }
  .card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
  .card-cat { font-size: 9.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 5px; }
  .card-title { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 700; color: var(--teal); line-height: 1.25; }
  .card-badges { display: flex; flex-wrap: wrap; gap: 4px; flex-shrink: 0; justify-content: flex-end; }
  .badge { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
  .badge-free     { background: #e1f5e9; color: #1a6b3a; }
  .badge-ticketed { background: #fff3e0; color: #7a4400; }
  .badge-family   { background: #e8f0fb; color: #2550a0; }
  .badge-hot      { background: #ffe8e3; color: #b02a0a; }
  .badge-sponsored { background: #fff3d0; color: #8a5c00; }
  .card-meta { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
  .meta-row { display: flex; gap: 7px; font-size: 12.5px; color: #4a5a5a; line-height: 1.4; }
  .meta-icon { opacity: 0.5; flex-shrink: 0; }

  /* ── PLATFORM RATING REFERRAL ── */
  .venue-rating { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
  .platform-badge { font-size: 11px; font-weight: 600; color: #5a6a6a; background: #f0eeea; border-radius: 10px; padding: 2px 8px; white-space: nowrap; }
  .rating-link { font-size: 11px; color: var(--teal); text-decoration: none; font-weight: 600; white-space: nowrap; }
  .rating-link:hover { color: var(--jade); text-decoration: underline; }
  .card-desc { font-size: 12px; color: var(--muted); line-height: 1.65; border-top: 1px solid #f0eeea; padding-top: 10px; }
  .card-footer { padding: 8px 18px 10px; border-top: 1px solid #f5f3ef; display: flex; justify-content: space-between; align-items: center; }
  .card-link { font-size: 10.5px; font-weight: 500; color: #8a9a9a; text-decoration: none; letter-spacing: 0.03em; transition: color 0.15s; display: flex; flex-direction: column; gap: 1px; }
  .card-link:hover { color: var(--teal); }
  .card-link-domain { font-size: 9px; font-weight: 400; color: #bbb; letter-spacing: 0.02em; transition: color 0.15s; }
  .card-link:hover .card-link-domain { color: #8a9a9a; }

  /* Strip colours per category */
  .strip-festival { background: linear-gradient(90deg, #C8901A, #e0ad40); }
  .strip-outdoor  { background: linear-gradient(90deg, #1A8A6E, #2dc49a); }
  .strip-culture  { background: linear-gradient(90deg, #5B4A8A, #8b70d4); }
  .strip-sport    { background: linear-gradient(90deg, #2478A8, #44a8e0); }
  .strip-food     { background: linear-gradient(90deg, #C4522A, #e87a55); }
  .strip-market   { background: linear-gradient(90deg, #0B5563, #148090); }
  .strip-whanau   { background: linear-gradient(90deg, #C4348A, #e870b8); }
  .strip-music    { background: linear-gradient(90deg, #8A1A1A, #c44040); }
  .strip-other    { background: linear-gradient(90deg, #888,    #bbb);    }

  .card.hidden, .venue-card.hidden, .card.dedup-hidden { display: none; }

  /* ── EMPTY STATE ── */
  .empty { text-align: center; padding: 48px 20px; color: #bbb; }
  .empty-icon { font-size: 36px; margin-bottom: 12px; }
  .empty p { font-size: 14px; }

  /* ── VENUE & WALK CARDS ── */
  .section-intro { max-width: 1080px; margin: 0 auto; padding: 36px 28px 0; }
  .section-intro h2 { font-family: 'Fraunces', serif; font-size: 32px; font-weight: 700; color: var(--teal); margin-bottom: 8px; }
  .section-intro p { font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 560px; }

  .venue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

  .venue-card {
    background: #fff; border-radius: 4px; overflow: hidden;
    border: 1px solid rgba(0,0,0,0.07); display: flex; flex-direction: column;
    opacity: 0; transform: translateY(12px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out, box-shadow 0.25s ease;
  }
  .venue-card.revealed { opacity: 1; transform: translateY(0); }
  .venue-card-strip {
    height: 6px; flex-shrink: 0;
  }
  .venue-card-body { padding: 18px 20px 14px; flex: 1; display: flex; flex-direction: column; }
  .venue-tag { font-size: 9.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 6px; }
  .venue-name { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 700; color: var(--teal); line-height: 1.25; margin-bottom: 10px; }
  .venue-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
  .venue-pill { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; background: #f0f5f5; color: var(--teal); }
  .venue-pill.highlight { background: #e1f5e9; color: #1a6b3a; }
  .venue-desc { font-size: 12px; color: var(--muted); line-height: 1.65; border-top: 1px solid #f0eeea; padding-top: 10px; }
  .venue-footer { padding: 9px 20px 11px; border-top: 1px solid #f5f3ef; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
  .venue-location { font-size: 11px; color: #9aacac; text-decoration: none; }
  .venue-location:hover { color: var(--teal); }
  .venue-links { display: flex; gap: 12px; }
  .venue-link { font-size: 11px; font-weight: 600; color: var(--teal); text-decoration: none; }
  .venue-link:hover { color: var(--jade); }
  .venue-link.maps { color: var(--ember); }
  .venue-link.maps:hover { color: #a03010; }

  /* walk card extras */
  .walk-duration { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--jade); background: #eaf7f3; padding: 4px 10px; border-radius: 20px; margin-bottom: 10px; }

  /* ── WALK DURATION FILTER ── */
  .duration-filter { padding: 10px 28px 0; max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .duration-label { font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
  .duration-btn {
    background: none; border: 1.5px solid rgba(0,0,0,0.12); border-radius: 20px;
    padding: 6px 14px; font-family: 'DM Sans', sans-serif; font-size: 12px;
    font-weight: 600; color: var(--muted); cursor: pointer;
    transition: all 0.15s; white-space: nowrap;
  }
  .duration-btn:hover { border-color: var(--jade); color: var(--jade); }
  .duration-btn.active { background: var(--jade); border-color: var(--jade); color: #fff; }
  .duration-btn .region-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; display: inline-block; }

  /* ── FOOTER ── */
  footer { background: var(--teal); color: rgba(255,255,255,0.38); text-align: center; padding: 20px 28px; font-size: 12px; line-height: 1.9; }
  footer a { color: rgba(255,255,255,0.55); text-decoration: none; }
  footer a:hover { color: var(--gold); }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp        { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }
  @keyframes wkdFade       { from { opacity:0; } to { opacity:1; } }
  @keyframes wkdSlideRight { from { opacity:0; transform:translateX(22px); } to { opacity:1; transform:translateX(0); } }
  @keyframes wkdSlideLeft  { from { opacity:0; transform:translateX(-22px); } to { opacity:1; transform:translateX(0); } }
  @keyframes pulse  { 0%,100%{opacity:1} 50%{opacity:.3} }

  @media (max-width: 600px) {
    .header-inner { padding: 36px 20px 50px; }
    main { padding: 20px 16px 64px; }
    .tabs-inner { padding: 0 16px; }
    .events-grid { margin-bottom: 20px; }
    .day-label { margin-bottom: 12px; }
  }

  /* ── AUTH BUTTON (header) ── */
  .header-auth-area { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
  .auth-btn {
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px; padding: 8px 14px; cursor: pointer;
    font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600;
    color: #fff; display: flex; align-items: center; gap: 7px;
    transition: background 0.2s; white-space: nowrap;
  }
  .auth-btn:hover { background: rgba(255,255,255,0.25); }
  .auth-avatar {
    width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4);
    cursor: pointer; transition: border-color 0.2s; object-fit: cover;
  }
  .auth-avatar:hover { border-color: var(--gold); }
  .auth-avatar-placeholder {
    width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #fff; cursor: pointer; transition: border-color 0.2s;
  }
  .auth-avatar-placeholder:hover { border-color: var(--gold); }

  /* ── LOGIN MODAL ── */
  .login-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(10,30,35,0.65); backdrop-filter: blur(6px);
    z-index: 2000; align-items: center; justify-content: center;
  }
  .login-overlay.open { display: flex; }
  .login-modal {
    background: #fff; border-radius: 8px; width: 380px; max-width: 92vw;
    box-shadow: 0 24px 80px rgba(0,0,0,0.3); overflow: hidden;
    animation: modalSlideUp 0.35s ease;
  }
  @keyframes modalSlideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
  .login-modal-header {
    background: linear-gradient(135deg, var(--teal), var(--jade));
    padding: 28px 28px 24px; color: #fff; position: relative;
  }
  .login-modal-header h2 {
    font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700;
    line-height: 1.2; margin-bottom: 6px;
  }
  .login-modal-header p { font-size: 13px; opacity: 0.65; line-height: 1.5; }
  .login-modal-close {
    position: absolute; top: 16px; right: 16px;
    background: rgba(255,255,255,0.2); border: none; color: #fff;
    width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
    font-size: 13px; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
  }
  .login-modal-close:hover { background: rgba(255,255,255,0.35); }
  .login-modal-body { padding: 24px 28px 28px; }
  .login-provider-btn {
    width: 100%; border: 1.5px solid #e0ddd7; border-radius: 6px;
    background: #fff; padding: 13px 16px; cursor: pointer;
    font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
    color: #2a3a3a; display: flex; align-items: center; gap: 12px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    margin-bottom: 12px;
  }
  .login-provider-btn:hover { border-color: var(--teal); box-shadow: 0 2px 12px rgba(11,85,99,0.1); background: #fafbfb; }
  .login-provider-btn:last-child { margin-bottom: 0; }
  .login-provider-icon { width: 22px; height: 22px; flex-shrink: 0; }
  .login-divider {
    text-align: center; font-size: 11px; color: #bbb;
    margin: 16px 0; position: relative; letter-spacing: 0.08em;
  }
  .login-divider::before, .login-divider::after {
    content: ''; position: absolute; top: 50%; height: 1px; width: calc(50% - 24px); background: #e8e5df;
  }
  .login-divider::before { left: 0; }
  .login-divider::after { right: 0; }
  .login-footer-note { font-size: 11px; color: #aaa; line-height: 1.6; text-align: center; margin-top: 18px; }
  .login-guest-btn { color: #888 !important; border-color: rgba(0,0,0,0.08) !important; }
  .login-guest-btn:hover { border-color: rgba(0,0,0,0.2) !important; color: #555 !important; }


  /* ── USER DROPDOWN (logged in) ── */
  .user-dropdown {
    position: absolute; top: 100%; right: 0; margin-top: 8px;
    background: #fff; border-radius: 6px; box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    min-width: 200px; z-index: 500; overflow: hidden;
    display: none; animation: fadeUp 0.2s ease;
  }
  .user-dropdown.open { display: block; }
  .user-dropdown-header { padding: 14px 16px; border-bottom: 1px solid #f0eeea; }
  .user-dropdown-name { font-size: 13px; font-weight: 600; color: #1a2a2a; }
  .user-dropdown-email { font-size: 11px; color: #9aacac; margin-top: 2px; }
  .user-dropdown-btn {
    width: 100%; background: none; border: none; text-align: left;
    padding: 12px 16px; font-family: 'DM Sans', sans-serif; font-size: 13px;
    font-weight: 500; color: #4a5a5a; cursor: pointer;
    display: flex; align-items: center; gap: 10px;
    transition: background 0.15s;
  }
  .user-dropdown-btn:hover { background: #f5f7f7; color: var(--teal); }
  .user-dropdown-btn.danger { color: var(--ember); }
  .user-dropdown-btn.danger:hover { background: #fff5f3; }

  /* ── ADD TO PLAN BUTTON (on cards) — primary action ── */
  .add-to-plan-btn {
    background: var(--teal); color: #fff; border: none;
    border-radius: 6px; padding: 7px 14px; cursor: pointer;
    font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 700;
    letter-spacing: 0.03em;
    display: inline-flex; align-items: center; gap: 5px;
    transition: background 0.15s, transform 0.1s; white-space: nowrap;
  }
  .add-to-plan-btn:hover { background: var(--teal2); }
  .add-to-plan-btn:active { transform: scale(0.97); }
  .add-to-plan-btn.added {
    background: #d0edd8; border: none; color: #1a6b3a; pointer-events: none;
  }
  .add-to-plan-btn.added::before { content: '✓ '; }

  /* ── PLANNER SECTION ── */
  .planner-empty {
    text-align: center; padding: 60px 20px; color: #bbb;
  }
  .planner-empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.7; }
  .planner-empty p { font-size: 14px; line-height: 1.7; max-width: 380px; margin: 0 auto; color: #8a9a9a; }
  .planner-empty-actions {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px;
  }
  .planner-empty .planner-cta-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--teal); color: #fff;
    border: none; border-radius: 8px; padding: 11px 20px; cursor: pointer;
    font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
    transition: background 0.15s;
  }
  .planner-empty .planner-cta-btn:hover { background: var(--teal2); }

  .planner-login-prompt {
    text-align: center; padding: 60px 20px;
  }
  .planner-login-prompt-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.7; }
  .planner-login-prompt h3 {
    font-family: 'Fraunces', serif; font-size: 24px; font-weight: 700;
    color: var(--teal); margin-bottom: 10px;
  }
  .planner-login-prompt p { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 400px; margin: 0 auto 20px; }
  .planner-login-btn {
    display: inline-block; background: linear-gradient(135deg, var(--teal), var(--jade));
    color: #fff; border: none; border-radius: 4px; padding: 12px 28px; cursor: pointer;
    font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
    transition: opacity 0.2s; box-shadow: 0 4px 16px rgba(11,85,99,0.25);
  }
  .planner-login-btn:hover { opacity: 0.9; }

  /* ── PLAN TIMELINE ── */
  .plan-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
  }
  .plan-toolbar h3 {
    font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700; color: var(--teal);
  }
  .plan-toolbar-actions { display: flex; gap: 8px; }
  .plan-clear-btn {
    background: none; border: 1.5px solid rgba(196,82,42,0.3); border-radius: 4px;
    padding: 6px 14px; cursor: pointer; font-family: 'DM Sans', sans-serif;
    font-size: 11px; font-weight: 600; color: var(--ember);
    transition: all 0.2s;
  }
  .plan-clear-btn:hover { background: var(--ember); color: #fff; border-color: var(--ember); }
  .plan-share-btn {
    background: var(--teal); border: none; border-radius: 4px;
    padding: 6px 14px; cursor: pointer; font-family: 'DM Sans', sans-serif;
    font-size: 11px; font-weight: 600; color: #fff;
    display: inline-flex; align-items: center; gap: 6px;
    transition: background 0.2s;
  }
  .plan-share-btn:hover { background: var(--teal2); }
  /* ── Calendar export button + dropdown ── */
  .plan-export-wrap { position: relative; }
  .plan-export-btn {
    background: none; border: 1.5px solid var(--teal); border-radius: 4px;
    padding: 6px 14px; cursor: pointer; font-family: 'DM Sans', sans-serif;
    font-size: 11px; font-weight: 600; color: var(--teal);
    display: inline-flex; align-items: center; gap: 5px;
    transition: all 0.2s;
  }
  .plan-export-btn:hover { background: var(--teal); color: #fff; }
  .cal-export-dropdown {
    display: none; position: absolute; top: calc(100% + 6px); right: 0;
    background: #fff; border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 200; min-width: 215px; padding: 5px;
  }
  .cal-export-dropdown.open { display: block; }
  .cal-export-item {
    display: block; width: 100%; text-align: left;
    background: none; border: none; border-radius: 6px;
    padding: 9px 13px; cursor: pointer;
    font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
    color: var(--ink); transition: background 0.15s;
  }
  .cal-export-item:hover { background: var(--cream); }
  .plan-day-section { margin-bottom: 28px; }
  .plan-day-title {
    font-size: 10px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--teal); margin-bottom: 14px; display: flex; align-items: center; gap: 12px;
  }
  .plan-day-title .pip { width: 3px; height: 14px; border-radius: 2px; background: var(--gold); flex-shrink: 0; }
  .plan-day-title .line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(11,85,99,0.2), transparent); }
  .plan-items { display: flex; flex-direction: column; gap: 10px; }
  .plan-item {
    background: #fff; border-radius: 4px; border: 1px solid rgba(0,0,0,0.07);
    padding: 14px 16px; display: flex; align-items: flex-start; gap: 14px;
    transition: box-shadow 0.2s; cursor: grab; position: relative;
  }
  .plan-item:hover { box-shadow: 0 4px 16px rgba(11,85,99,0.08); }
  .plan-item.dragging { opacity: 0.5; box-shadow: 0 8px 24px rgba(11,85,99,0.15); }
  .plan-item-grip {
    color: #ccc; font-size: 16px; flex-shrink: 0; cursor: grab;
    user-select: none; line-height: 1; padding-top: 2px;
  }
  .plan-item-content { flex: 1; min-width: 0; }
  .plan-item-title { font-family: 'Fraunces', serif; font-size: 15px; font-weight: 700; color: var(--teal); line-height: 1.25; }
  .plan-item-meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 8px; }
  .plan-item-remove {
    background: none; border: none; color: #ccc; font-size: 16px;
    cursor: pointer; padding: 2px; flex-shrink: 0; transition: color 0.15s; line-height: 1;
  }
  .plan-item-remove:hover { color: var(--ember); }
  .plan-day-select {
    background: none; border: 1px solid rgba(0,0,0,0.12); border-radius: 4px;
    padding: 2px 6px; font-family: 'DM Sans', sans-serif; font-size: 10px;
    font-weight: 600; color: var(--muted); cursor: pointer;
  }

  /* ── WEEKEND PICKER ── */
  .weekend-picker {
    margin-bottom: 24px; padding: 0 0 20px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    max-height: 220px; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.12) transparent;
  }
  .weekend-picker::-webkit-scrollbar { width: 3px; }
  .weekend-picker::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 2px; }
  .weekend-month-group { margin-bottom: 14px; }
  .weekend-month-group:last-child { margin-bottom: 0; }
  .weekend-month-label {
    font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 7px; padding: 0 1px;
  }
  .weekend-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .weekend-chip {
    background: none; border: 1.5px solid rgba(0,0,0,0.12); border-radius: 20px;
    padding: 6px 14px; font-family: 'DM Sans', sans-serif; font-size: 12px;
    font-weight: 600; color: #444; cursor: pointer; transition: all 0.15s;
    white-space: nowrap; display: inline-flex; align-items: center; gap: 5px;
  }
  .weekend-chip:hover { border-color: var(--teal); color: var(--teal); }
  .weekend-chip.active { background: var(--teal); border-color: var(--teal); color: #fff; }
  .weekend-chip-badge {
    background: var(--gold); color: #fff; font-size: 9px; font-weight: 700;
    min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .weekend-chip.active .weekend-chip-badge { background: rgba(255,255,255,0.3); }
  .plan-weekend-empty {
    text-align: center; padding: 32px 20px; color: #bbb;
    font-size: 13px; line-height: 1.7; font-style: italic;
  }

  /* ── SUGGESTED & NEARBY ── */
  .suggestions-section {
    margin-top: 32px; padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.07);
  }
  .suggestions-header { margin-bottom: 14px; }
  .suggestions-title {
    font-family: 'Fraunces', serif; font-size: 16px; font-weight: 700;
    color: var(--teal); display: block;
  }
  .suggestions-sub {
    font-size: 11.5px; color: var(--muted); margin-top: 3px; display: block;
  }
  .suggestions-list { display: flex; flex-direction: column; gap: 8px; }
  .suggestion-card {
    background: #fff; border: 1px solid rgba(0,0,0,0.07); border-radius: 4px;
    padding: 12px 16px; display: flex; align-items: center; gap: 14px;
    transition: box-shadow 0.15s;
  }
  .suggestion-card:hover { box-shadow: 0 3px 12px rgba(11,85,99,0.08); }
  .suggestion-info { flex: 1; min-width: 0; }
  .suggestion-name {
    font-size: 13.5px; font-weight: 600; color: #1a2a2a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .suggestion-meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
  .suggestion-add-btn {
    background: none; border: 1.5px solid var(--teal); border-radius: 4px;
    padding: 5px 12px; font-family: 'DM Sans', sans-serif; font-size: 11px;
    font-weight: 700; color: var(--teal); cursor: pointer; flex-shrink: 0;
    transition: all 0.15s;
  }
  .suggestion-add-btn:hover { background: var(--teal); color: #fff; }
  .suggestion-add-btn.added { background: var(--teal); color: #fff; pointer-events: none; }

  /* ── PLAN ITEM COUNT BADGE ── */
  .plan-count-badge {
    background: var(--gold); color: #fff; font-size: 9px; font-weight: 700;
    width: 16px; height: 16px; border-radius: 50%; display: none;
    align-items: center; justify-content: center; margin-left: -2px;
  }
  .plan-count-badge.visible { display: inline-flex; }

  /* ── INSTALL BANNER (Android / Chrome) ── */
  .install-banner {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px);
    width: calc(100% - 32px); max-width: 480px;
    background: #fff; border-radius: 14px; padding: 14px 16px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18); z-index: 2500;
    opacity: 0; transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
    pointer-events: none;
  }
  .install-banner.visible { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
  .install-banner-icon { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; }
  .install-banner-text { flex: 1; min-width: 0; }
  .install-banner-text strong { display: block; font-size: 13.5px; font-weight: 700; color: #1a2a2a; }
  .install-banner-text span { font-size: 11.5px; color: var(--muted); }
  .install-banner-btn {
    background: var(--teal); color: #fff; border: none; border-radius: 8px;
    padding: 8px 16px; font-family: 'DM Sans', sans-serif; font-size: 13px;
    font-weight: 700; cursor: pointer; flex-shrink: 0; transition: background 0.15s;
  }
  .install-banner-btn:hover { background: var(--teal2); }
  .install-banner-close {
    background: none; border: none; color: #ccc; font-size: 16px;
    cursor: pointer; padding: 4px; flex-shrink: 0; transition: color 0.15s; line-height: 1;
  }
  .install-banner-close:hover { color: #888; }

  /* ── IOS INSTALL MODAL ── */
  .ios-install-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 3100; display: flex; align-items: flex-end; justify-content: center;
    backdrop-filter: blur(3px);
  }
  .ios-install-modal {
    background: #fff; width: 100%; max-width: 520px;
    border-radius: 20px 20px 0 0; padding: 28px 24px 40px;
    animation: slideUpSheet 0.35s cubic-bezier(0.34,1.2,0.64,1);
  }
  @keyframes slideUpSheet {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
  .ios-install-header { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
  .ios-install-icon { width: 56px; height: 56px; border-radius: 13px; flex-shrink: 0; }
  .ios-install-title { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 700; color: var(--teal); }
  .ios-install-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
  .ios-install-steps {
    list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px;
  }
  .ios-install-steps li {
    display: flex; align-items: center; gap: 12px;
    font-size: 14px; color: #1a2a2a; line-height: 1.5;
  }
  .ios-step-num {
    background: var(--teal); color: #fff; font-size: 11px; font-weight: 700;
    width: 22px; height: 22px; border-radius: 50%; display: inline-flex;
    align-items: center; justify-content: center; flex-shrink: 0;
  }
  .ios-share-icon {
    display: inline-flex; align-items: center; justify-content: center;
    background: #007AFF; color: #fff; width: 22px; height: 22px;
    border-radius: 5px; font-size: 12px; font-weight: 700; margin: 0 2px;
  }
  .ios-install-done-btn {
    width: 100%; background: var(--teal); color: #fff; border: none;
    border-radius: 10px; padding: 14px; font-family: 'DM Sans', sans-serif;
    font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.15s;
  }
  .ios-install-done-btn:hover { background: var(--teal2); }

  /* ── TOAST ── */
  .toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
    background: #1a2a2a; color: #fff; padding: 12px 22px; border-radius: 6px;
    font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25); z-index: 3000;
    opacity: 0; transition: transform 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
  }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══ PAST WEEKENDS TOGGLE ══ */
.past-tabs-toggle {
  flex-shrink: 0; background: none; border: none;
  border-bottom: 3px solid transparent;
  color: rgba(255,255,255,0.38); padding: 14px 14px 11px;
  font-size: 11px; font-family: 'DM Sans', sans-serif; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: color 0.15s;
  letter-spacing: 0.02em;
}
.past-tabs-toggle:hover { color: rgba(255,255,255,0.6); }
.past-tabs-chevron { display: inline-block; margin-left: 3px; font-style: normal; }

/* Hidden by default; display:contents makes buttons flow as direct flex children */
.past-tabs-group        { display: none; }
.past-tabs-group.open   { display: contents; }

/* ══ PAST WEEKEND BANNER ══ */
.past-weekend-banner {
  background: #fffbea; border: 1px solid #e8d478;
  border-radius: 8px; padding: 10px 16px; margin: 16px 0 4px;
  font-size: 13px; color: #7a6010; line-height: 1.4;
}

/* ══ MUTED LINKS WHEN VIEWING PAST WEEKEND ══ */
.showing-past-weekend .card-link { opacity: 0.55; }
.showing-past-weekend .card-link:hover { opacity: 1; }

/* ══ MOBILE INFO BUTTON ══ */
.mobile-info-btn {
  display: none;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px; padding: 9px 11px; cursor: pointer; font-size: 16px;
  line-height: 1; transition: background 0.2s; align-items: center;
}
.mobile-info-btn:hover { background: rgba(255,255,255,0.25); }

/* ══ CATEGORY PILL NAV ══ */
.cat-nav {
  background: #F7F2EB;
  padding: 10px 16px 12px;
  position: relative;
}
.cat-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.cat-inner::-webkit-scrollbar { display: none; }
.cat-btn {
  flex-shrink: 0;
  height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  border: 1.5px solid #0B5563;
  background: white;
  color: #0B5563;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.cat-btn:hover:not(.active) { background: #e8f4f5; }
.cat-btn.active {
  background: #0B5563;
  color: #fff;
  border-color: #0B5563;
}
/* Right-fade to hint overflow on mobile */
.cat-nav::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40px; height: 100%;
  background: linear-gradient(to right, transparent, #F7F2EB 80%);
  pointer-events: none;
}

/* ══ PLAN HEADER BUTTON ══ */
.plan-header-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}
.plan-header-btn:hover { background: rgba(255,255,255,0.25); }
.plan-header-btn .plan-count-badge {
  position: static;
  margin: 0;
  transform: none;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  line-height: 16px;
  border-radius: 8px;
}

/* ══ RAINY DAY SECTION ══ */
.rainy-intro {
  background: linear-gradient(135deg, #1a3a5c 0%, #0B5563 100%);
  color: #fff;
  padding: 20px 28px 16px;
  margin-bottom: 4px;
}
.rainy-intro-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.rainy-intro-sub { font-size: 14px; opacity: 0.85; }

/* ══ INFO POPOVER BUTTON STYLES (shared) ══ */
.info-popover-btn {
  background: none; border: none; text-align: left; padding: 14px 18px;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500;
  color: #2a3a3a; cursor: pointer; display: flex; align-items: center; gap: 12px;
  transition: background 0.15s; white-space: nowrap;
}
.info-popover-btn:hover { background: #f0f7f7; color: var(--teal); }
.info-popover-btn span { font-size: 18px; }
.info-popover-overlay {
  display: none; position: fixed; inset: 0; z-index: 909;
}
.info-popover-overlay.open { display: block; }

/* ══ INFO POPOVER ══ */
.info-popover {
  position: fixed; top: 68px; right: 8px; z-index: 910;
  background: #fff; border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.06);
  overflow: hidden; display: none; flex-direction: column; min-width: 200px;
  animation: fadeUp 0.18s ease;
}
.info-popover.open { display: flex; }

/* ══ ACCESSIBILITY ══ */

/* Visually hidden but available to screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Skip-to-content link — visible only on keyboard focus */
.skip-link {
  position: absolute; top: -100%; left: 8px; z-index: 9999;
  background: var(--teal); color: #fff;
  padding: 10px 20px; font-weight: 700; font-size: 15px;
  text-decoration: none; border-radius: 0 0 8px 8px;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; outline: 3px solid #4fc58f; outline-offset: 2px; }

/* Global keyboard focus ring — only shown for keyboard nav, not mouse */
:focus { outline: none; }
:focus-visible { outline: 3px solid #4fc58f; outline-offset: 2px; border-radius: 3px; }

/* Tabs bar buttons get a white ring against the dark background */
.tab-btn:focus-visible,
.wnav-btn:focus-visible,
.past-tabs-toggle:focus-visible { outline-color: #fff; }

/* Filter and action buttons */
.filter-btn:focus-visible,
.duration-btn:focus-visible,
.add-to-plan-btn:focus-visible,
.card-link:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* ══ RESPONSIVE ══ */
@media (max-width: 767px) {
  .hamburger-btn      { display: none; }
  #headerInstallBtn   { display: none !important; }
}
@media (min-width: 768px) {
  #mobileInfoBtn      { display: none !important; }
  .info-popover       { display: none !important; }
}


/* ══ CARD HOVER (desktop pointer devices only) ══ */
@media (hover: hover) {
  .card.revealed:hover, .venue-card.revealed:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
}

/* ══ REDUCED MOTION ══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .card, .venue-card { opacity: 1; transform: none; }
}

/* ══ HERO WEATHER ══ */
.hero-weather {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.95);
  font-size: 0.85rem;
  margin-top: 16px;
}
.hero-weather-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.hero-weather-day-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}
.hero-weather-day-icon { font-size: 1.2rem; line-height: 1; }
.hero-weather-day-temp { font-weight: 700; font-size: 0.9rem; }
.hero-weather-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.3);
}
.hero-weather-message {
  font-size: 0.8rem;
  font-weight: 500;
  max-width: none;
  line-height: 1.3;
  opacity: 0.9;
}
@media (min-width: 768px) {
  .hero-weather {
    position: absolute;
    bottom: 40px;
    right: 40px;
    margin-top: 0;
    gap: 12px;
    font-size: 0.95rem;
  }
  .hero-weather-day-icon { font-size: 1.4rem; }
  .hero-weather-day-temp { font-size: 1rem; }
  .hero-weather-message { font-size: 0.85rem; max-width: 200px; }
}

/* ══ DESKTOP CENTERING (min-width: 768px) ══
   Constrains content to 1080px (matching header/tabs/main) while
   keeping full-width backgrounds on their outer elements.
   Mobile layout is completely unchanged below this breakpoint. */
@media (min-width: 768px) {

  /* Highlights row */
  .highlights-header {
    max-width: 1080px;
    margin: 0 auto;
    padding-left: 28px;
    padding-right: 28px;
  }
  .highlights-track {
    max-width: 1080px;
    margin: 0 auto;
  }
  /* Wider cards and grid-like layout on desktop */
  .highlight-card { width: 220px; }

  /* Category pill nav */
  .cat-nav { padding-left: 0; padding-right: 0; }
  .cat-inner { max-width: 1080px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }

  /* Venue section content — food, walks, parks, activities, markets */
  #section-food .venue-grid,
  #section-walks .venue-grid,
  #section-parks .venue-grid,
  #section-activities .venue-grid,
  #section-markets .venue-grid,
  #section-rainy .venue-grid {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 28px;
    padding-right: 28px;
    box-sizing: border-box;
  }
  #section-food .day-label,
  #section-walks .day-label,
  #section-parks .day-label,
  #section-activities .day-label,
  #section-markets .day-label {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 28px;
    padding-right: 28px;
    box-sizing: border-box;
  }
}
