/* =========================================================
   Airbnb Guest Guide — Public Stylesheet
   Aesthetic: editorial / warm-magazine / hand-curated
   Mobile-first, light theme.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,300..900,0..100,0..1&family=Manrope:wght@400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  --bg:         #FBF7F0;
  --bg-2:       #F4ECDC;
  --paper:      #FFFFFF;
  --ink:        #1F1B16;
  --ink-2:      #4A433B;
  --muted:      #837A70;
  --line:       #E6DDC9;
  --line-2:     #EFE7D6;
  --accent:     #B85432;
  --accent-2:   #9A4226;
  --accent-soft:#F4E2D6;
  --warm:       #D4A55A;
  --green:      #6E8E6F;
  --shadow-sm:  0 1px 2px rgba(31, 27, 22, 0.04);
  --shadow:     0 8px 24px -12px rgba(31, 27, 22, 0.18);
  --radius-sm:  10px;
  --radius:     16px;
  --radius-lg:  22px;
  --display:    'Fraunces', Georgia, 'Times New Roman', serif;
  --body:       'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  /* Subtle paper grain via radial dots */
  background-image:
    radial-gradient(rgba(31, 27, 22, 0.025) 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--accent-2); }

/* ---------- Typography ---------- */
.serif      { font-family: var(--display); font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 0; }
.eyebrow    {
  font-family: var(--body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 600;
}
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .5rem;
}
h1 { font-size: clamp(2.4rem, 9vw, 4.4rem); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
h3 { font-size: 1.15rem; font-family: var(--body); font-weight: 600; letter-spacing: -0.005em; }
p  { margin: 0 0 1rem; }

/* ---------- Layout ---------- */
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 18px;
}
@media (min-width: 480px)  { .wrap { padding: 0 22px; } }
@media (min-width: 768px)  { .wrap { max-width: 760px; padding: 0 32px; } }
@media (min-width: 1024px) { .wrap { max-width: 980px; } }

.section { padding: 36px 0; }
.section-tight { padding: 24px 0; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 240, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.brand {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 24, "SOFT" 50;
}
.brand .dot { color: var(--accent); }
.topbar a { color: var(--ink-2); }
.topbar a:hover { color: var(--accent); }
.back-link {
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.back-link::before {
  content: "\2190";
  font-size: 1rem;
}

/* ---------- Homepage hero ---------- */
.home-hero {
  padding: 56px 0 24px;
  text-align: left;
  position: relative;
}
.home-hero h1 {
  margin-top: .25rem;
  margin-bottom: 1rem;
}
.home-hero h1 .accent {
  color: var(--accent);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.home-hero .lede {
  max-width: 480px;
  font-size: 1.05rem;
  color: var(--ink-2);
}

/* ---------- Location chooser cards ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 24px 0 60px;
}
@media (min-width: 768px) {
  .location-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.location-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2,.9,.3,1), box-shadow .35s, border-color .25s;
  text-decoration: none;
  color: var(--ink);
}
.location-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent-soft);
}
.location-card .img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg-2), var(--accent-soft));
  background-size: cover;
  background-position: center;
  position: relative;
}
.location-card .img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(31,27,22,0.32) 100%);
}
.location-card .body {
  padding: 18px 22px 22px;
}
.location-card .num {
  font-family: var(--display);
  font-style: italic;
  color: var(--muted);
  font-size: .95rem;
  font-variation-settings: "opsz" 14, "SOFT" 100;
}
.location-card .name {
  font-family: var(--display);
  font-size: 2rem;
  margin: 4px 0 6px;
  font-variation-settings: "opsz" 80, "SOFT" 50;
}
.location-card .sub {
  color: var(--muted);
  font-size: .92rem;
}
.location-card .cta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: .9rem;
}
.location-card .cta::after {
  content: "\2192";
  transition: transform .25s ease;
}
.location-card:hover .cta::after { transform: translateX(4px); }

/* ---------- City hero ---------- */
.city-hero {
  padding: 28px 0 18px;
}
.city-hero .eyebrow { margin-bottom: 8px; }
.city-hero h1 {
  font-size: clamp(2.6rem, 11vw, 4.6rem);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--ink);
}
.city-hero .sub {
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 520px;
}

/* ---------- Welcome / info cards ---------- */
.info-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin: 18px 0 6px;
}
@media (min-width: 640px) {
  .info-row { grid-template-columns: 1fr 1fr; }
}
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.info-card .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.info-card .value {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  font-variation-settings: "opsz" 30;
  word-break: break-word;
}

.welcome {
  background: linear-gradient(180deg, var(--paper) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  margin: 22px 0;
  position: relative;
}
.welcome::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 14px;
  font-family: var(--display);
  font-size: 4rem;
  line-height: 1;
  color: var(--accent-soft);
  font-style: italic;
}
.welcome p {
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  position: relative;
  font-variation-settings: "opsz" 24, "SOFT" 60;
}

/* ---------- Filter bar ---------- */
.filterbar {
  position: sticky;
  top: 56px;
  z-index: 40;
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  margin: 18px 0 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.filter-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
  user-select: none;
  font-family: var(--body);
}
.filter-pill:hover { border-color: var(--ink-2); }
.filter-pill.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.filter-pill .ic { font-size: .9rem; }

.filter-meta {
  margin-top: 10px;
  font-size: .82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.filter-meta button {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  font-size: .82rem;
  cursor: pointer;
  font-family: var(--body);
  padding: 0;
}

/* ---------- Category section header ---------- */
.cat-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.cat-header .num {
  font-family: var(--display);
  color: var(--muted);
  font-size: .9rem;
  font-style: italic;
  margin-right: 8px;
  font-variation-settings: "opsz" 14, "SOFT" 100;
}
.cat-header .name {
  font-family: var(--display);
  font-size: 1.6rem;
  margin: 0;
  font-weight: 500;
  font-variation-settings: "opsz" 60, "SOFT" 50;
}
.cat-header .ic { font-size: 1.3rem; }
.cat-header .more {
  font-size: .85rem;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Place cards ---------- */
.places {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .places { grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (min-width: 1024px) { .places { grid-template-columns: repeat(3, 1fr); } }

.place-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
  position: relative;
}
.place-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}
.place-photo {
  aspect-ratio: 16/10;
  background: var(--bg-2);
  background-size: cover;
  background-position: center;
  position: relative;
}
.place-photo.no-img {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-2) 100%);
}
.place-photo .featured-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.place-photo .open-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  display: none;
}
.place-card[data-open-now="1"] .open-tag { display: inline-block; }

.place-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.place-name {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 4px;
  line-height: 1.2;
  font-variation-settings: "opsz" 30, "SOFT" 50;
  color: var(--ink);
}
.place-meta {
  font-size: .82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.place-meta .dot {
  width: 3px;
  height: 3px;
  background: var(--muted);
  border-radius: 50%;
  display: inline-block;
}
.place-meta .rating { color: var(--ink-2); font-weight: 600; }
.place-meta .rating::before { content: "\2605 "; color: var(--warm); }
.place-meta .price { color: var(--ink-2); font-weight: 600; }
.place-meta .drive { color: var(--ink-2); }

.host-note {
  font-family: var(--display);
  font-size: .98rem;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.45;
  border-left: 2px solid var(--accent-soft);
  padding-left: 10px;
  margin: 4px 0 12px;
  font-variation-settings: "opsz" 18, "SOFT" 100;
}

.hours-line {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.tag {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  background: var(--bg-2);
  color: var(--ink-2);
  padding: 3px 8px;
  border-radius: 4px;
}

.place-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}
.btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  font-family: var(--body);
  transition: all .15s ease;
}
.btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--muted);
}
.empty-state h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 6px;
}

/* ---------- Featured (hosts' picks) ---------- */
.featured-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 8px;
}
.featured-item {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease;
}
.featured-item:hover { border-color: var(--ink-2); transform: translateY(-1px); }
.featured-item .num {
  font-family: var(--display);
  font-style: italic;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  flex: 0 0 auto;
  min-width: 36px;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.featured-item .info { flex: 1; min-width: 0; }
.featured-item .info h4 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 2px;
  font-weight: 500;
  font-variation-settings: "opsz" 30;
}
.featured-item .info p {
  font-size: .85rem;
  color: var(--muted);
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---------- Footer ---------- */
.foot {
  padding: 48px 0 60px;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}
.foot .mark {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 4px;
  font-variation-settings: "opsz" 30, "WONK" 1;
}

/* ---------- Utility ---------- */
.spacer-sm { height: 12px; }
.spacer    { height: 24px; }
.spacer-lg { height: 48px; }
.center    { text-align: center; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .filterbar, .place-actions, .foot { display: none !important; }
  .place-card, .info-card, .welcome { box-shadow: none !important; border: 1px solid #ccc; break-inside: avoid; }
  body { background: #fff; }
}

/* Subcategory label on place cards (e.g. "Italian" under Food) */
.place-subcat {
  display: inline-block;
  font-family: var(--display, inherit);
  font-style: italic;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--accent);
  margin-bottom: 4px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================================
   MOBILE NAV — hamburger, drawer, bottom tab bar
   ============================================================ */

/* Hamburger button (top right, all screens) */
.nav-hamburger {
  position: fixed;
  top: 14px; right: 14px;
  z-index: 60;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line, #e6dfd2);
  background: var(--bg, #FBF7F0);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  padding: 0;
}
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink, #2A2622);
  border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Scrim behind drawer */
.nav-scrim {
  position: fixed; inset: 0;
  background: rgba(20, 16, 12, .42);
  z-index: 70;
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}
.nav-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Side drawer (slides from right) */
.nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(85vw, 340px);
  background: var(--bg, #FBF7F0);
  z-index: 80;
  transform: translateX(100%);
  transition: transform .26s cubic-bezier(.2,.8,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -2px 0 24px rgba(0,0,0,.12);
  overflow: hidden;
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line, #e6dfd2);
}
.nav-drawer-title {
  font-family: var(--display, serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink, #2A2622);
}
.nav-drawer-close {
  background: none; border: none;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink-2, #5b5046);
  cursor: pointer;
  padding: 4px 10px;
}
.nav-drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 24px;
  -webkit-overflow-scrolling: touch;
}
.nav-drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  text-decoration: none;
  color: var(--ink, #2A2622);
  font-size: .98rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(0,0,0,.04);
  transition: background .15s ease;
}
.nav-drawer-item:hover,
.nav-drawer-item:focus-visible {
  background: rgba(184, 84, 50, .06);
  outline: none;
}
.nav-drawer-item .nav-icon {
  font-size: 1.3rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

/* Bottom tab bar */
.nav-bottom {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  display: none;
  background: var(--bg, #FBF7F0);
  border-top: 1px solid var(--line, #e6dfd2);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 14px rgba(0,0,0,.05);
}
.nav-bottom-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 2px;
  text-decoration: none;
  color: var(--ink-2, #5b5046);
  font-size: .68rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  min-height: 50px;
}
.nav-bottom-item:hover,
.nav-bottom-item:focus-visible {
  color: var(--accent, #B85432);
  outline: none;
}
.nav-bottom-item .nav-icon {
  font-size: 1.25rem;
  line-height: 1;
}
.nav-bottom-item .nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  letter-spacing: .02em;
}

/* Show on mobile only */
@media (max-width: 720px) {
  .nav-bottom    { display: flex; }
  /* Add extra bottom padding so the bottom bar doesn't cover content */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* Disable body scroll when drawer is open */
body.nav-locked { overflow: hidden; }

/* Highlight info cards when targeted via anchor */
.info-card:target {
  animation: nav-target-flash 1.4s ease;
  scroll-margin-top: 80px;
}
@keyframes nav-target-flash {
  0%   { box-shadow: 0 0 0 0 rgba(184, 84, 50, .55); }
  40%  { box-shadow: 0 0 0 8px rgba(184, 84, 50, .15); }
  100% { box-shadow: 0 0 0 0 rgba(184, 84, 50, 0); }
}

/* ---------- Drawer: section labels + categories accordion ---------- */
.nav-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted, #837A70);
  font-weight: 700;
  padding: 18px 20px 8px;
}
.nav-section-label:first-child { padding-top: 8px; }

.nav-cat-group {
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.nav-cat-group .nav-cat-link {
  flex: 1;
  border-bottom: none;
}
.nav-cat-row {
  display: flex;
  align-items: stretch;
}
.nav-cat-toggle {
  flex: 0 0 auto;
  width: 50px;
  border: none;
  background: none;
  border-left: 1px solid rgba(0,0,0,.04);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted, #837A70);
  padding: 0;
  font-size: 1rem;
}
.nav-cat-toggle:hover { color: var(--accent, #B85432); }
.nav-cat-toggle .nav-chevron {
  display: inline-block;
  transition: transform .2s ease;
}
.nav-cat-group[data-open="true"] .nav-cat-toggle .nav-chevron {
  transform: rotate(90deg);
}

.nav-count {
  margin-left: auto;
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted, #837A70);
  background: var(--bg-2, #F4ECDC);
  padding: 2px 9px;
  border-radius: 999px;
  min-width: 24px;
  text-align: center;
}

.nav-subcat-list {
  background: rgba(0,0,0,.02);
  padding: 4px 0;
}
.nav-subcat {
  padding-left: 60px !important;
  font-size: .92rem !important;
  color: var(--ink-2, #4A433B) !important;
  border-bottom: none !important;
}
.nav-subcat:hover {
  color: var(--accent, #B85432) !important;
}
.nav-subcat:first-child {
  font-style: italic;
  color: var(--muted, #837A70) !important;
}

/* ============================================================
   GUEST GATE PAGE
   ============================================================ */
body.gate-body {
  background: var(--bg);
  background-image:
    radial-gradient(rgba(184, 84, 50, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-size: 24px 24px, 100% 100%;
  background-attachment: fixed;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}

.gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 18px;
}
.gate-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 48px -20px rgba(31, 27, 22, 0.18);
  padding: 36px 28px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.gate-mark {
  font-family: var(--display);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.02em;
  font-variation-settings: "opsz" 24, "WONK" 1;
  margin-bottom: 22px;
}
.gate-title {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.2rem, 8vw, 3rem);
  margin: 0 0 12px;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--ink);
}
.gate-lede {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 26px;
}
.gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gate-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 600;
  text-align: left;
}
.gate-form input[type="text"] {
  font-family: var(--body);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.gate-form input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 84, 50, 0.16);
}
.gate-submit {
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 14px 16px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  margin-top: 4px;
  transition: background .15s ease;
}
.gate-submit:hover { background: var(--accent); }
.gate-err {
  background: #FBE6DE;
  color: var(--accent-2);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .88rem;
  text-align: left;
  margin-bottom: 14px;
  line-height: 1.4;
}
.gate-foot {
  font-size: .82rem;
  color: var(--muted);
  margin: 22px 0 0;
}

/* ============================================================
   PERSONAL WELCOME (per-stay note)
   ============================================================ */
.welcome.welcome-personal {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--paper) 100%);
  border-color: rgba(184, 84, 50, 0.18);
}
.welcome-sig {
  margin-top: 12px;
  font-family: var(--display);
  font-style: italic;
  color: var(--accent);
  font-size: .9rem;
  text-align: right;
  font-variation-settings: "opsz" 18, "WONK" 1;
}
.lede.personal-note {
  font-family: var(--display);
  font-style: italic;
  font-variation-settings: "opsz" 24, "SOFT" 80, "WONK" 1;
  color: var(--ink);
  font-size: 1.1rem;
}

/* ============================================================
   FAVORITE STAR BUTTON ON PLACE CARDS
   ============================================================ */
.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--muted);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: transform .15s ease, color .15s ease, background .15s ease;
  padding: 0;
  font-family: inherit;
  line-height: 1;
}
.fav-btn:hover {
  color: var(--accent);
  transform: scale(1.08);
}
.fav-btn.is-fav {
  color: var(--accent);
  background: var(--paper);
}
.fav-btn .fav-star {
  display: block;
  line-height: 1;
}
.fav-btn.is-pulsing {
  animation: fav-pulse .35s ease;
}
@keyframes fav-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* If the open-tag is showing, push the fav button left a bit */
.place-card[data-open-now="1"] .fav-btn {
  right: 10px; /* was 110px -- the open-tag is no longer on the photo */
}

/* ============================================================
   THEMED MASCOT (Boogie & friends)
   ============================================================ */

/* Boogie's warm gold accent — pulled from the sky in his portrait */
.theme-boogie {
  --boogie-gold: #D4A55A;
  --boogie-gold-soft: #F4E5C7;
  --boogie-shadow: rgba(31, 27, 22, 0.18);
}

/* ---------- Avatar (with strict size enforcement) ---------- */
img.mascot-avatar {
  display: inline-block !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  background: var(--bg);
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  border: 2px solid var(--paper);
  flex-shrink: 0 !important;
  max-width: none;
}
img.mascot-avatar-sm  { width: 36px !important;  height: 36px !important;  border-width: 2px !important; }
img.mascot-avatar-md  { width: 60px !important;  height: 60px !important;  border-width: 3px !important; }
img.mascot-avatar-lg  { width: 96px !important;  height: 96px !important;  border-width: 3px !important; }
img.mascot-avatar-xl  { width: 140px !important; height: 140px !important; border-width: 4px !important; box-shadow: 0 8px 30px rgba(0,0,0,.18); }

.theme-boogie img.mascot-avatar {
  border-color: var(--boogie-gold) !important;
}

/* ---------- City header with mascot ---------- */
.mascot-header {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.mascot-header-text { flex: 1; min-width: 0; }
.eyebrow-mascot {
  color: var(--boogie-gold, var(--accent)) !important;
  font-weight: 700;
}
@media (max-width: 600px) {
  .mascot-header { gap: 14px; }
  img.mascot-avatar-lg { width: 72px !important; height: 72px !important; }
  img.mascot-avatar-xl { width: 110px !important; height: 110px !important; }
}

/* ---------- Mascot quote (gate page + welcome banner) ---------- */
.mascot-quote {
  margin: 0;
  padding: 18px 20px;
  border-left: 3px solid var(--boogie-gold, var(--accent));
  background: var(--boogie-gold-soft, var(--accent-soft));
  border-radius: 0 12px 12px 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  font-variation-settings: "opsz" 24, "SOFT" 80, "WONK" 1;
  color: var(--ink);
  line-height: 1.5;
}
.mascot-quote p { margin: 0 0 10px; }
.mascot-quote-sig {
  display: block;
  font-style: normal;
  font-family: var(--body);
  font-size: .82rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-weight: 600;
  text-align: right;
}
.welcome.welcome-mascot {
  background: transparent;
  border: none;
  padding: 0;
}

/* ---------- Speech-bubble host notes ---------- */
.mascot-speech {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0;
}
.mascot-speech .mascot-avatar {
  flex-shrink: 0;
  margin-top: 2px;
}
.mascot-speech-bubble {
  background: var(--boogie-gold-soft, var(--accent-soft));
  padding: 10px 14px;
  border-radius: 14px;
  border-top-left-radius: 4px;
  position: relative;
  font-size: .92rem;
  line-height: 1.45;
  color: var(--ink);
  font-family: var(--display);
  font-style: italic;
  font-variation-settings: "opsz" 18, "SOFT" 60, "WONK" 1;
  flex: 1;
  min-width: 0;
}
.mascot-speech-bubble::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 12px;
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid var(--boogie-gold-soft, var(--accent-soft));
}

/* ---------- Featured tag with paw ---------- */
.featured-tag.featured-tag-mascot {
  background: var(--boogie-gold);
  color: var(--ink);
  font-weight: 700;
}
.featured-tag .paw-icon {
  margin-right: 4px;
  font-size: .9em;
  opacity: .85;
}

/* ---------- Themed gate page ---------- */
.gate.gate-themed .gate-card {
  text-align: center;
}
.gate-mascot {
  display: flex;
  justify-content: center;
  margin: 0 auto 18px;
}
.gate-mark.gate-mark-mascot {
  color: var(--boogie-gold, var(--accent));
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
  font-style: normal;
  font-family: var(--body);
}
.gate-mascot-quote {
  margin: 16px 0 22px;
  text-align: left;
}
.gate.gate-themed .gate-mascot-quote .mascot-quote {
  font-size: 1rem;
}

/* ---------- Themed footer ---------- */
.foot.foot-themed .foot-signoff {
  font-family: var(--display);
  font-style: italic;
  color: var(--boogie-gold, var(--accent));
  font-size: 1rem;
  margin: 8px 0;
  font-variation-settings: "opsz" 24, "WONK" 1;
}

/* ============================================================
   PLACE CARD: featured row + inline open-now
   ============================================================ */

/* Featured row sits above the place name in the card body */
.featured-row {
  display: flex;
  margin: 0 0 6px;
}
.featured-row .featured-tag {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  line-height: 1;
}
.featured-row .featured-tag.featured-tag-mascot {
  background: var(--boogie-gold, #D4A55A);
  color: var(--ink);
}

/* Inline "Open now" indicator (lives in the meta line) */
.open-now-inline {
  display: none; /* hidden by default; .place-card[data-open-now="1"] reveals it */
  align-items: center;
  gap: 5px;
  color: #1F7A3E; /* deeper, brighter green for legibility */
  font-weight: 700;
  font-size: .82em;
  letter-spacing: .02em;
}
.open-now-inline::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2EA055;
  box-shadow: 0 0 0 3px rgba(46, 160, 85, 0.18);
  flex-shrink: 0;
}
.place-card[data-open-now="1"] .open-now-inline { display: inline-flex; }
.place-card:not([data-open-now="1"]) .open-now-dot { display: none; }

/* Hide the old corner "open-tag" if it exists somewhere */
.place-photo .open-tag { display: none !important; }

/* Reset the photo overlay -- only the fav star lives here now */
.place-photo .featured-tag { display: none; }

/* ============================================================
   PLACE DETAIL PAGE
   ============================================================ */

.detail-hero {
  height: 360px;
  background-size: cover;
  background-position: center;
  background-color: var(--ink);
  position: relative;
}
.detail-hero-overlay {
  position: absolute; inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 16px;
}
.detail-hero .fav-btn.detail-fav {
  position: static;
  width: 48px; height: 48px;
  font-size: 1.5rem;
}
@media (max-width: 600px) {
  .detail-hero { height: 240px; }
}

.detail-head {
  padding-top: 22px;
  padding-bottom: 14px;
}
.detail-cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.detail-name {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  margin: 0 0 12px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.detail-meta .rating { color: var(--accent); font-weight: 700; }
.detail-meta .rating-count { color: var(--muted); font-size: .85em; }
.detail-meta .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
}
.detail-address {
  color: var(--ink-2);
  font-size: .95rem;
  margin: 6px 0 18px;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}
.detail-actions .btn.lg { font-size: .95rem; padding: 12px 20px; }

.detail-section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.detail-h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "opsz" 36, "WONK" 1;
  margin: 0 0 18px;
  color: var(--ink);
}

/* Long note variants */
.mascot-speech-detail {
  padding: 0 4px;
}
.mascot-speech-detail .mascot-speech-bubble {
  font-size: 1.05rem;
  padding: 16px 22px;
  line-height: 1.6;
}
.detail-host-note {
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  border-radius: 0 12px 12px 0;
}
.detail-host-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.detail-host-text {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
}

/* Photo gallery */
.photo-strip {
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 22px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
@media (min-width: 768px) {
  .photo-strip { max-width: 760px; padding-left: 32px; padding-right: 32px; }
}
@media (min-width: 1024px) {
  .photo-strip { max-width: 980px; }
}
.photo-strip-item {
  flex-shrink: 0;
  width: 280px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--bg-2);
}
.photo-strip-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.photos-attr, .reviews-attr {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 12px;
}
.photos-attr a, .reviews-attr a { color: var(--accent); }

/* Reviews */
.reviews {
  display: grid;
  gap: 16px;
}
.review {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-2);
  flex-shrink: 0;
  object-fit: cover;
}
.review-avatar-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--ink-2);
  font-family: var(--display);
}
.review-name {
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
}
.review-meta {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 2px;
}
.review-star { color: var(--line); }
.review-star.on { color: #E8B339; }
.review-time { margin-left: 4px; }
.review-text {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
  font-size: .94rem;
}

/* Hours table */
.weekly-hours {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .95rem;
  color: var(--ink-2);
}
.weekly-hours li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.weekly-hours li:last-child { border-bottom: none; }

/* Map */
.detail-map {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.detail-map iframe { display: block; border: none; }

/* "More about this spot" link on cards */
.detail-link {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  text-align: center;
}
.detail-link:hover { color: var(--ink); }
.theme-boogie .detail-link { color: var(--boogie-gold); }

/* ============================================================
   ADMIN MODE: pencils + floating badge
   Only visible to logged-in admins viewing the public site.
   ============================================================ */
.admin-pencil {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  margin-left: 8px;
  vertical-align: middle;
  border-radius: 50%;
  background: rgba(184, 84, 50, 0.12);
  color: var(--accent);
  text-decoration: none;
  font-size: .75em;
  border: 1px dashed var(--accent);
  transition: all .15s ease;
  position: relative;
  top: -2px;
}
.admin-pencil:hover {
  background: var(--accent);
  color: white;
  transform: scale(1.1);
}

.admin-mode-badge {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--ink, #1F1B16);
  color: white;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  font-family: var(--body);
}
.admin-mode-badge .admin-mode-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2EA055;
  box-shadow: 0 0 0 3px rgba(46, 160, 85, 0.3);
}
.admin-mode-badge .admin-mode-label {
  letter-spacing: .04em;
}
.admin-mode-badge .admin-mode-link {
  color: white;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  font-size: .78rem;
  transition: background .15s ease;
}
.admin-mode-badge .admin-mode-link:hover {
  background: rgba(255,255,255,0.25);
}

/* On mobile, shrink to icon-only to not take up too much space */
@media (max-width: 600px) {
  .admin-mode-badge { bottom: 78px; padding: 6px 10px; font-size: .72rem; gap: 6px; }
  .admin-mode-badge .admin-mode-link { padding: 3px 8px; font-size: .72rem; }
}

/* ============================================================
   DETAIL PAGE: tighter action row on mobile
   ============================================================ */
@media (max-width: 600px) {
  .detail-actions {
    gap: 6px;
  }
  .detail-actions .btn.lg {
    flex: 1;
    min-width: 0;
    padding: 11px 10px;
    font-size: .88rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .detail-actions .btn-phone-num {
    display: none;
  }
}

/* Mobile safety: ensure text doesn't run to the edge anywhere */
@media (max-width: 600px) {
  .place-body, .detail-head, .detail-section, .city-hero {
    padding-left: 18px;
    padding-right: 18px;
  }
  /* Override for sections that are NOT also .wrap (full-bleed strips) */
  .photo-strip { padding-left: 18px; padding-right: 18px; }
  .detail-head { padding-top: 22px; padding-bottom: 14px; }
  .review { padding: 14px 16px; }
  .welcome { padding: 14px 16px; }
  .detail-host-note, .mascot-quote { padding: 14px 16px; }
  .reviews-attr, .photos-attr { padding-left: 0; padding-right: 0; }
}

/* ============================================================
   GUEST BOOK
   ============================================================ */
.gb-privacy {
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: .88rem;
  color: var(--ink-2);
  line-height: 1.45;
  margin: 0 0 22px;
}
.gb-privacy strong { color: var(--ink); }

/* Form */
.gb-form-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 0 0 24px;
  overflow: hidden;
}
.gb-form-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.gb-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.gb-form {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gb-field { display: block; }
.gb-field > span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 700;
  margin: 14px 0 6px;
}
.gb-field input[type="text"],
.gb-field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
}
.gb-field input[type="text"]:focus,
.gb-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 84, 50, 0.16);
}
.gb-field input[type="file"] {
  display: block;
  font-size: .9rem;
  color: var(--ink-2);
  padding: 8px 0;
}
.gb-actions {
  margin-top: 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* Feed */
.gb-feed {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.gb-post {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  break-inside: avoid;
}
.gb-post-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.gb-post-name {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink);
  font-variation-settings: "opsz" 36, "WONK" 1;
}
.gb-post-date {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 600;
}
.gb-post-photo {
  margin: 0 0 12px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-2);
}
.gb-post-photo img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: cover;
}
.gb-post-msg {
  color: var(--ink);
  font-size: .98rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

@media (min-width: 768px) {
  .gb-feed { grid-template-columns: repeat(2, 1fr); }
}

/* On themed pages, add a hint of mascot color */
.theme-boogie .gb-post-name { color: var(--boogie-gold); }
.place-card[hidden],
.featured-item[hidden] {
  display: none !important;
}
/* ============================================================
   PATCH 49: hide redundant top hamburger on mobile + clean gate page
   ============================================================ */
@media (max-width: 720px) {
  .nav-hamburger { display: none !important; }
}

body.gate-body .nav-hamburger,
body.gate-body .nav-scrim,
body.gate-body .nav-drawer,
body.gate-body .nav-bottom,
body.gate-body .topbar {
  display: none !important;
}
body.gate-body { padding-bottom: env(safe-area-inset-bottom) !important; }
/* PATCH 49b: force gate card to fit mobile properly */
.gate {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}
.gate-card {
  max-width: min(420px, calc(100vw - 32px)) !important;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .gate { padding: 16px 14px; }
  .gate-card {
    padding: 28px 20px 24px !important;
    border-radius: 18px !important;
  }
  .gate-title { font-size: 1.9rem !important; }
  .gate-lede  { font-size: .95rem !important; }
}
/* ============================================================
   REPORT BLOCK STYLING
   ============================================================ */
.report-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s ease;
}
.report-block[open] { border-color: var(--accent-soft); }

.report-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  outline: none;
  user-select: none;
}
.report-summary::-webkit-details-marker { display: none; }

.report-summary .report-icon {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: background .15s ease, color .15s ease;
}
.report-summary:hover .report-icon,
.report-block[open] .report-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.report-summary-text { flex: 1; min-width: 0; }
.report-summary-title {
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  line-height: 1.3;
  display: block;
}
.report-summary-sub {
  font-size: .82rem;
  color: var(--muted);
  margin: 2px 0 0;
  line-height: 1.3;
  display: block;
}
.report-summary-chev {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 1.2rem;
  transition: transform .2s ease;
}
.report-block[open] .report-summary-chev { transform: rotate(90deg); }

.report-form {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--line);
}
.report-field { display: flex; flex-direction: column; gap: 8px; }
.report-field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 700;
}
.report-field label small {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--muted);
}

.report-field select {
  width: 100%;
  font-family: var(--body);
  font-size: .95rem;
  font-weight: 500;
  padding: 12px 40px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: var(--bg);
  color: var(--ink);
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23837A70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='4 6 8 10 12 6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.report-field select:hover { border-color: var(--ink-2); }
.report-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 84, 50, 0.16);
}

.report-field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: .95rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.report-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 84, 50, 0.16);
}
.report-field textarea::placeholder { color: var(--muted); }

.report-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.report-actions .btn {
  flex: 0 0 auto;
  padding: 11px 22px;
  font-size: .9rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  transition: background .15s ease, transform .1s ease;
}
.report-actions .btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.report-actions .btn:active { transform: translateY(0); }
.report-actions .btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.report-status { font-size: .88rem; color: var(--muted); }
.report-status.success { color: #1F7A3E; font-weight: 600; }
.report-status.error   { color: var(--accent-2); font-weight: 600; }
.report-status.sending { color: var(--muted); font-style: italic; }

.report-success {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: linear-gradient(180deg, #F0F8F2 0%, var(--paper) 100%);
  border-top: 1px solid var(--line);
}
.report-success .check {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #2EA055;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
}
.report-success-text {
  flex: 1;
  font-size: .92rem;
  color: var(--ink);
  line-height: 1.4;
}
.report-success-text strong {
  display: block;
  color: #1F7A3E;
  margin-bottom: 2px;
}

@media (max-width: 600px) {
  .report-summary { padding: 14px 16px; gap: 10px; }
  .report-form { padding: 16px; }
  .report-success { padding: 16px; }
}
/* ============================================================
   HOUSE INFO PAGE
   ============================================================ */
.house-hero { padding: 32px 0 8px; }
.house-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-weight: 400;
  margin: 4px 0 8px;
}
.house-hero .house-lede {
  font-size: 1rem;
  color: var(--ink-2);
  max-width: 520px;
  margin: 0 0 8px;
}
.house-sections {
  display: grid;
  gap: 14px;
  padding-top: 12px;
  padding-bottom: 24px;
}
@media (min-width: 768px) {
  .house-sections { grid-template-columns: 1fr 1fr; gap: 18px; }
}
.house-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.house-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.house-card-icon { font-size: 1.4rem; line-height: 1; }
.house-card-title {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
  font-variation-settings: "opsz" 30, "SOFT" 50;
}
.house-card-body { padding: 18px 20px; flex: 1; }
.house-card-text {
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.wifi-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.wifi-row:last-child { margin-bottom: 0; }
.wifi-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  font-weight: 700;
}
.wifi-value-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px 8px 14px;
}
.wifi-value {
  flex: 1;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  padding: 4px 0;
  word-break: break-all;
}
.copy-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-2);
  border-radius: 999px;
  font-family: var(--body);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.copy-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.copy-btn.is-copied {
  background: #2EA055 !important;
  color: white !important;
  border-color: #2EA055 !important;
}
.copy-btn .copy-icon { font-size: .95rem; }
.theme-boogie .house-card-head { background: var(--boogie-gold-soft); }
.house-card-text { white-space: normal !important; }
.house-card-text br + br + br { display: none; }
.house-card-text br + br { line-height: 0.5; }
/* House alert box (lines starting with !!) */
.house-alert {
  background: #FFF5E6;
  border-left: 4px solid #D49A39;
  color: #5C3F12;
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  margin: 10px 0;
  font-size: .95rem;
  line-height: 1.5;
  font-weight: 500;
}
.house-alert:first-child { margin-top: 0; }
.house-alert:last-child { margin-bottom: 0; }
/* ============================================================
   GUEST REVIEWS + SUGGESTIONS
   Append to bottom of style.css
   ============================================================ */

/* Summary header */
.guest-reviews-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 16px;
  background: var(--bg-2);
  border-radius: 12px;
}
.grs-stars { display: inline-flex; gap: 2px; font-size: 1.1rem; }
.grs-star { color: var(--line); }
.grs-star.on { color: #E8B339; }
.grs-text { color: var(--ink-2); font-size: .92rem; }
.grs-text strong { color: var(--ink); font-size: 1rem; }

/* Reviews list */
.guest-reviews { display: grid; gap: 14px; margin-bottom: 22px; }
.guest-review {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.grv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.grv-name {
  font-weight: 600;
  color: var(--ink);
  font-size: .92rem;
}
.grv-stars { display: inline-flex; gap: 1px; font-size: .9rem; }
.grv-star { color: var(--line); }
.grv-star.on { color: #E8B339; }
.grv-text {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
  font-size: .94rem;
}

/* Review form (collapsible) */
.review-form-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s ease;
}
.review-form-block[open] { border-color: var(--accent-soft); }

.review-form-toggle {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  outline: none;
  user-select: none;
}
.review-form-toggle::-webkit-details-marker { display: none; }
.rfb-icon {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--warm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background .15s ease;
}
.review-form-toggle:hover .rfb-icon,
.review-form-block[open] .rfb-icon { background: #FFF1D6; }
.rfb-text { flex: 1; font-weight: 600; color: var(--ink); }
.rfb-chev {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 1.2rem;
  transition: transform .2s ease;
}
.review-form-block[open] .rfb-chev { transform: rotate(90deg); }

.review-form {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rf-stars {
  display: inline-flex;
  gap: 4px;
}
.rf-star-label {
  cursor: pointer;
  font-size: 2rem;
  color: var(--line);
  transition: color .12s ease, transform .12s ease;
}
.rf-star-label input { display: none; }
.rf-star-label:hover,
.rf-star-label:hover ~ .rf-star-label {
  transform: scale(1.05);
}
.rf-star-label input:checked ~ .rf-star,
.rf-stars:hover .rf-star-label:hover .rf-star,
.rf-stars:hover .rf-star-label:hover ~ .rf-star-label .rf-star {
  /* no-op; using direct color rules below */
}
.rf-stars .rf-star-label .rf-star { color: var(--line); }
/* Light-up logic: on hover, light up hovered + before; on check, light up checked + before */
.rf-stars:not(:hover) .rf-star-label input:checked ~ .rf-star { color: #E8B339; }
.rf-stars:not(:hover) .rf-star-label:has(input:checked) ~ .rf-star-label .rf-star { color: var(--line); }
.rf-stars:not(:hover) .rf-star-label:has(input:checked) .rf-star,
.rf-stars:not(:hover) .rf-star-label:has(input:checked) ~ * .rf-star { color: var(--line); }
.rf-stars:not(:hover) .rf-star-label:has(~ .rf-star-label input:checked) .rf-star,
.rf-stars:not(:hover) .rf-star-label input:checked ~ .rf-star { color: #E8B339; }

/* Simpler approach: just light up based on adjacent-sibling order using a different structure */
/* Since :has() support is iffy on older browsers, use a fallback with JS class-toggling via the form */
.rf-stars .rf-star-label .rf-star { color: var(--line); transition: color .1s ease; }
.rf-stars .rf-star-label.is-on .rf-star { color: #E8B339; }
.rf-stars .rf-star-label:hover .rf-star,
.rf-stars .rf-star-label:hover ~ .rf-star-label .rf-star { /* hover should NOT light up siblings AFTER; light up siblings BEFORE */ }

/* Light up via input:checked + adjacent siblings */
.rf-stars { direction: rtl; justify-content: flex-end; }
.rf-stars .rf-star-label input:checked ~ .rf-star,
.rf-stars .rf-star-label:hover .rf-star,
.rf-stars .rf-star-label:hover ~ .rf-star-label .rf-star { color: #E8B339; }
.rf-stars .rf-star-label { direction: ltr; }

.rf-field { display: flex; flex-direction: column; gap: 6px; }
.rf-field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 700;
}
.rf-field label small {
  text-transform: none; letter-spacing: 0; font-weight: 500;
}
.rf-field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: .95rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}
.rf-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 84, 50, 0.16);
}
.rf-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.rf-status { font-size: .88rem; color: var(--muted); }
.rf-status.success { color: #1F7A3E; font-weight: 600; }
.rf-status.error { color: var(--accent-2); font-weight: 600; }
.rf-status.sending { color: var(--muted); font-style: italic; }
.rf-disclose {
  font-size: .78rem;
  color: var(--muted);
  margin: 0;
}

/* SUGGEST A PLACE form */
.suggest-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s ease;
}
.suggest-block[open] { border-color: var(--accent-soft); }
.suggest-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  outline: none;
  user-select: none;
}
.suggest-summary::-webkit-details-marker { display: none; }
.sg-icon {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}
.suggest-block[open] .sg-icon,
.suggest-summary:hover .sg-icon { background: var(--accent-soft); }
.sg-text { flex: 1; min-width: 0; }
.sg-title { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.sg-sub { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }
.sg-chev {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 1.2rem;
  transition: transform .2s ease;
}
.suggest-block[open] .sg-chev { transform: rotate(90deg); }

.suggest-form {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sg-field { display: flex; flex-direction: column; gap: 6px; }
.sg-field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 700;
}
.sg-field label small {
  text-transform: none; letter-spacing: 0; font-weight: 500;
}
.sg-field input[type="text"],
.sg-field select,
.sg-field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: .95rem;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
  line-height: 1.5;
}
.sg-field select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23837A70' stroke-width='2' stroke-linecap='round'%3e%3cpolyline points='4 6 8 10 12 6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}
.sg-field input:focus,
.sg-field select:focus,
.sg-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 84, 50, 0.16);
}
.sg-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.sg-status { font-size: .88rem; color: var(--muted); }
.sg-status.success { color: #1F7A3E; font-weight: 600; }
.sg-status.error { color: var(--accent-2); font-weight: 600; }
.sg-status.sending { color: var(--muted); font-style: italic; }

.suggest-success {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: linear-gradient(180deg, #F0F8F2 0%, var(--paper) 100%);
  border-top: 1px solid var(--line);
}
.suggest-success .check {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #2EA055;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
}
.suggest-success-text { flex: 1; font-size: .92rem; color: var(--ink); line-height: 1.4; }
.suggest-success-text strong { display: block; color: #1F7A3E; margin-bottom: 2px; }
.rf-stars {
  direction: ltr !important;
  justify-content: flex-start !important;
  display: inline-flex;
  gap: 4px;
}

/* Default state: all stars grey */
.rf-stars .rf-star-label .rf-star { color: var(--line); transition: color .12s ease; }

/* Selected stars (1..N have .is-on class added by JS) */
.rf-stars .rf-star-label.is-on .rf-star { color: #E8B339; }

/* Hover preview (1..N have .is-hot class added by JS) — wins over .is-on */
.rf-stars .rf-star-label.is-hot .rf-star { color: #F0B935; }

/* Disable any leftover sibling-combinator rules from old CSS */
.rf-stars .rf-star-label input:checked ~ .rf-star,
.rf-stars .rf-star-label:hover .rf-star,
.rf-stars .rf-star-label:hover ~ .rf-star-label .rf-star {
  /* No longer used — JS handles it via .is-on / .is-hot */
}
/* ============================================================
   PATCH 54: Hero vignette + colored distance pills
   Append to bottom of style.css
   ============================================================ */

/* ---------- Hero photo vignette on place detail ---------- */
.detail-hero {
  position: relative;
  overflow: hidden;
}
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Radial vignette: lighter at center, darker at corners */
  background:
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0)   30%,
      rgba(0, 0, 0, 0.18) 70%,
      rgba(0, 0, 0, 0.55) 100%
    );
  z-index: 1;
}
.detail-hero-overlay {
  position: relative;
  z-index: 2; /* sit above the vignette */
}

/* ---------- Colored distance pills ---------- */
.drive {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.3;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* Default fallback if no tier class */
.drive { background: #F2EEE8; color: var(--ink-2); }

/* < 5 min — green (walking / very close) */
.drive.tier-near {
  background: #E5F4EA;
  color: #1F7A3E;
  border-color: rgba(46, 160, 85, 0.25);
}

/* 5-15 min — amber (reasonable drive) */
.drive.tier-mid {
  background: #FFF3DC;
  color: #8A5A0F;
  border-color: rgba(232, 179, 57, 0.30);
}

/* > 15 min — red (worth the trip) */
.drive.tier-far {
  background: #FBE8E4;
  color: #A23320;
  border-color: rgba(184, 84, 50, 0.25);
}
/* ============================================================
   PATCH 55: Weather widget + insider tip badge upgrade
   Append to bottom of style.css
   ============================================================ */

/* ---------- WEATHER WIDGET ---------- */
.weather-widget {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #FFF5E0 0%, #FFE9C7 100%);
  border: 1px solid rgba(232, 179, 57, 0.25);
  color: #5C3F12;
  margin: 0 0 18px;
  transition: opacity .3s ease;
}

.weather-widget[hidden] { display: none; }

.weather-widget .ww-icon {
  flex: 0 0 auto;
  font-size: 2.2rem;
  line-height: 1;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.weather-widget .ww-body {
  flex: 1;
  min-width: 0;
}

.weather-widget .ww-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.weather-widget .ww-temp {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 500;
  color: #4A2F0A;
  line-height: 1;
}
.weather-widget .ww-summary {
  font-size: .95rem;
  font-weight: 600;
  color: #6B4914;
}
.weather-widget .ww-range {
  font-size: .8rem;
  color: rgba(92, 63, 18, 0.65);
  margin-left: auto;
}

.weather-widget .ww-suggestion {
  font-size: .88rem;
  color: rgba(92, 63, 18, 0.85);
  line-height: 1.45;
}

/* Mood variations: change gradient based on weather */
.weather-widget[data-mood="rainy"] {
  background: linear-gradient(135deg, #D9E4F0 0%, #BCC8DA 100%);
  border-color: rgba(120, 140, 170, 0.3);
  color: #2F3D52;
}
.weather-widget[data-mood="rainy"] .ww-temp { color: #1F2A3D; }
.weather-widget[data-mood="rainy"] .ww-summary { color: #2F3D52; }
.weather-widget[data-mood="rainy"] .ww-suggestion,
.weather-widget[data-mood="rainy"] .ww-range { color: rgba(47, 61, 82, 0.75); }

.weather-widget[data-mood="stormy"] {
  background: linear-gradient(135deg, #C0C3CC 0%, #8E94A3 100%);
  border-color: rgba(80, 85, 100, 0.4);
  color: #1F2330;
}
.weather-widget[data-mood="stormy"] .ww-temp { color: #11131A; }
.weather-widget[data-mood="stormy"] .ww-summary { color: #1F2330; }
.weather-widget[data-mood="stormy"] .ww-suggestion,
.weather-widget[data-mood="stormy"] .ww-range { color: rgba(31, 35, 48, 0.78); }

.weather-widget[data-mood="snowy"] {
  background: linear-gradient(135deg, #EEF3F8 0%, #D5DEE8 100%);
  border-color: rgba(170, 185, 205, 0.4);
  color: #2C3850;
}
.weather-widget[data-mood="snowy"] .ww-temp { color: #1A2236; }
.weather-widget[data-mood="snowy"] .ww-summary { color: #2C3850; }
.weather-widget[data-mood="snowy"] .ww-suggestion,
.weather-widget[data-mood="snowy"] .ww-range { color: rgba(44, 56, 80, 0.75); }

.weather-widget[data-mood="cloudy"] {
  background: linear-gradient(135deg, #ECE9E2 0%, #D8D2C6 100%);
  border-color: rgba(170, 160, 145, 0.4);
  color: #4B3D2D;
}
.weather-widget[data-mood="cloudy"] .ww-temp { color: #2F2516; }
.weather-widget[data-mood="cloudy"] .ww-summary { color: #4B3D2D; }
.weather-widget[data-mood="cloudy"] .ww-suggestion,
.weather-widget[data-mood="cloudy"] .ww-range { color: rgba(75, 61, 45, 0.7); }

.weather-widget[data-mood="partly"] {
  background: linear-gradient(135deg, #F5ECCB 0%, #E7DBB0 100%);
  border-color: rgba(220, 195, 130, 0.35);
}

/* Compact on small screens */
@media (max-width: 540px) {
  .weather-widget { padding: 12px 14px; gap: 12px; }
  .weather-widget .ww-icon { width: 48px; height: 48px; font-size: 1.8rem; }
  .weather-widget .ww-temp { font-size: 1.4rem; }
  .weather-widget .ww-range { margin-left: 0; flex-basis: 100%; margin-top: -2px; }
}


/* ---------- INSIDER TIP BADGE UPGRADE ---------- */
/* Make existing featured-tag look like a proper "ribbon" badge */

.featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FFD86B 0%, #E8B339 100%);
  color: #5C3F12;
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  border: 1px solid rgba(184, 138, 35, 0.4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 2px 4px rgba(232, 179, 57, 0.25);
  position: relative;
  white-space: nowrap;
}

.featured-tag::before {
  content: "\2605"; /* star */
  color: #8A5A0F;
  font-size: .9rem;
  line-height: 1;
}

/* Hide existing paw if it duplicates the star — keep paw on mascot variant */
.featured-tag-mascot::before { display: none; }
.featured-tag-mascot {
  background: linear-gradient(135deg, #FFE08A 0%, #E8B339 50%, #C99425 100%);
}
.featured-tag .paw-icon { font-size: .9rem; }

.featured-row {
  margin-bottom: 6px;
}
/* ============================================================
   PATCH 56: Full weather page styles
   Append to bottom of style.css
   ============================================================ */

/* Small widget gets chevron when it's a link */
.weather-widget-link {
  text-decoration: none;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
.weather-widget-link:hover { filter: brightness(1.03); transform: translateY(-1px); }
.weather-widget-link .ww-chev {
  margin-left: 4px;
  font-size: 1.4rem;
  color: rgba(0,0,0,0.35);
  flex: 0 0 auto;
}

/* ---------- WEATHER PAGE ---------- */
.weather-hero { padding: 24px 0 4px; }
.weather-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-weight: 400;
  margin: 4px 0 8px;
}
.weather-hero .weather-lede {
  font-size: 1rem;
  color: var(--ink-2);
  margin: 0 0 8px;
}

/* Now card */
.weather-now-wrap { padding-top: 4px; padding-bottom: 6px; }
.weather-now {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #FFF5E0 0%, #FFE0A7 100%);
  border: 1px solid rgba(232, 179, 57, 0.3);
  color: #5C3F12;
}
.weather-now .wn-icon {
  flex: 0 0 auto;
  font-size: 3.6rem;
  line-height: 1;
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.55);
  border-radius: 50%;
}
.weather-now .wn-body { flex: 1; }
.weather-now .wn-temp {
  font-family: var(--display);
  font-size: 3.4rem;
  font-weight: 500;
  line-height: 1;
  color: #4A2F0A;
}
.weather-now .wn-summary {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 4px;
  color: #6B4914;
}
.weather-now .wn-meta {
  margin-top: 8px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: rgba(92, 63, 18, 0.7);
}

/* Mood variations for the big card */
.weather-now[data-mood="rainy"]   { background: linear-gradient(135deg, #D9E4F0 0%, #A2B5CE 100%); color: #2F3D52; }
.weather-now[data-mood="rainy"]   .wn-temp, .weather-now[data-mood="rainy"]   .wn-summary { color: #1F2A3D; }
.weather-now[data-mood="stormy"]  { background: linear-gradient(135deg, #C0C3CC 0%, #777C8B 100%); color: #1F2330; }
.weather-now[data-mood="stormy"]  .wn-temp, .weather-now[data-mood="stormy"]  .wn-summary { color: #11131A; }
.weather-now[data-mood="snowy"]   { background: linear-gradient(135deg, #EEF3F8 0%, #C9D5E1 100%); color: #2C3850; }
.weather-now[data-mood="snowy"]   .wn-temp, .weather-now[data-mood="snowy"]   .wn-summary { color: #1A2236; }
.weather-now[data-mood="cloudy"]  { background: linear-gradient(135deg, #ECE9E2 0%, #C9C1B0 100%); color: #4B3D2D; }
.weather-now[data-mood="cloudy"]  .wn-temp, .weather-now[data-mood="cloudy"]  .wn-summary { color: #2F2516; }

/* Section spacing on weather page */
.weather-section { padding: 16px 0 4px; }

/* Hourly horizontal scroll */
.hourly-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 24px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.hourly-scroll::-webkit-scrollbar { height: 4px; }
.hourly-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 999px; }

.hourly-card {
  flex: 0 0 auto;
  width: 72px;
  padding: 12px 8px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hourly-card.is-night {
  background: linear-gradient(180deg, #2B2F44 0%, #1F2235 100%);
  border-color: #3A3F5A;
  color: #E0E5F0;
}
.hourly-card .hc-time {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.hourly-card.is-night .hc-time { color: rgba(224, 229, 240, 0.7); }
.hourly-card .hc-icon { font-size: 1.5rem; line-height: 1; }
.hourly-card .hc-temp {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
}
.hourly-card.is-night .hc-temp { color: #FFFFFF; }
.hourly-card .hc-precip {
  font-size: .7rem;
  color: #2E73C9;
  font-weight: 600;
}
.hourly-card.is-night .hc-precip { color: #5FA0E8; }

/* 7-day list */
.daily-list {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.daily-row {
  display: grid;
  grid-template-columns: 100px 36px 1fr auto 80px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.daily-row:last-child { border-bottom: 0; }
.dr-day { display: flex; flex-direction: column; min-width: 0; }
.dr-day-label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.dr-short-date { font-size: .75rem; color: var(--muted); }
.dr-icon { font-size: 1.4rem; line-height: 1; text-align: center; }
.dr-summary { font-size: .85rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-precip { font-size: .8rem; color: #2E73C9; font-weight: 600; }
.dr-temps {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  font-family: var(--display);
  font-size: 1rem;
}
.dr-high { color: var(--ink); font-weight: 500; }
.dr-low { color: var(--muted); }

@media (max-width: 540px) {
  .daily-row {
    grid-template-columns: 70px 28px 1fr 70px;
    gap: 8px;
    padding: 10px 14px;
  }
  .dr-summary { display: none; }
  .dr-precip { font-size: .72rem; }
}

/* Sun details */
.sun-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.sun-cell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
}
.sc-icon { font-size: 1.6rem; line-height: 1; margin-bottom: 4px; }
.sc-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.sc-value { font-family: var(--display); font-size: 1.1rem; font-weight: 500; color: var(--ink); }

@media (max-width: 540px) {
  .sun-details { grid-template-columns: 1fr 1fr; }
  .sun-cell:nth-child(3) { grid-column: 1 / -1; }
}

.weather-attr {
  text-align: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: .82rem;
}
.weather-attr a { color: var(--muted); text-decoration: underline; }
/* ============================================================
   PATCH 57: Events feed
   Append to bottom of style.css
   ============================================================ */

/* ---------- Events preview (city page) ---------- */
.events-preview-section { padding: 4px 24px 18px; }
.events-preview-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0;
}
.events-preview-title {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  margin: 0;
  color: var(--ink);
}
.events-preview-all {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  letter-spacing: .04em;
}
.events-preview-all:hover { color: var(--accent); }

.events-preview-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.events-preview-scroll::-webkit-scrollbar { height: 4px; }
.events-preview-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 999px; }

.event-mini {
  flex: 0 0 auto;
  width: 240px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  transition: transform .15s ease, border-color .15s ease;
}
.event-mini:hover {
  transform: translateY(-2px);
  border-color: var(--accent-soft);
}
.em-img {
  width: 100%;
  height: 130px;
  background-size: cover;
  background-position: center;
  background-color: #E8DFD2;
}
.em-img-empty {
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; line-height: 1;
  background: linear-gradient(135deg, #F5E6D3 0%, #E8D4B7 100%);
}
.em-body { padding: 10px 12px 12px; }
.em-date {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 4px;
}
.em-name {
  font-weight: 600;
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.em-venue {
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ---------- Events page ---------- */
.events-hero { padding: 24px 0 4px; }
.events-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-weight: 400;
  margin: 4px 0 8px;
}
.events-hero .events-lede { font-size: 1rem; color: var(--ink-2); margin: 0 0 8px; }

.events-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 24px;
}
.events-day-block {}
.events-day-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.evd-day {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
}
.evd-date {
  font-size: .82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.events-day-list { display: flex; flex-direction: column; gap: 12px; }

.event-card {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, border-color .15s ease;
}
.event-card:hover {
  transform: translateY(-1px);
  border-color: var(--accent-soft);
}
.event-img {
  flex: 0 0 100px;
  width: 100px; height: 100px;
  background-size: cover;
  background-position: center;
  background-color: #E8DFD2;
  border-radius: 10px;
}
.event-img-empty {
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; line-height: 1;
  background: linear-gradient(135deg, #F5E6D3 0%, #E8D4B7 100%);
}
.event-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.event-cat {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  font-weight: 700;
}
.event-name {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--muted);
}
.event-time { font-weight: 600; color: var(--ink-2); }
.event-venue {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 200px;
}
.event-price { color: var(--ink-2); font-weight: 500; }
.event-chev {
  align-self: center;
  font-size: 1.6rem;
  color: var(--muted);
  flex: 0 0 auto;
  margin-right: 4px;
}

@media (max-width: 540px) {
  .event-img { flex-basis: 80px; width: 80px; height: 80px; }
  .event-card { gap: 10px; padding: 10px; }
  .event-venue { max-width: 140px; }
  .events-preview-section { padding-left: 16px; padding-right: 16px; }
}

.events-attr {
  text-align: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: .82rem;
}
.events-attr a { color: var(--muted); text-decoration: underline; }

/* Active filter pill (overrides anchor variant) */
.filter-pill.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
/* ============================================================
   PATCH 58: Event source badges
   Append to bottom of style.css
   ============================================================ */

.event-source-badge,
.event-free-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.2;
}

.event-source-badge {
  background: var(--bg-2);
  color: var(--muted);
  border: 1px solid var(--line);
}
.event-source-ticketmaster { background: #024CAA; color: #fff; border-color: #024CAA; }
.event-source-predicthq    { background: #F0E5FF; color: #5B2A99; border-color: #C5A5F0; }
.event-source-ics          { background: #E5F4EA; color: #1F7A3E; border-color: #B6DCC2; }
.event-source-manual       { background: #FFF3DC; color: #8A5A0F; border-color: #E8C977; }

.event-free-badge {
  background: #2EA055;
  color: #fff;
  border: 1px solid #2EA055;
}
/* ============================================================
   PATCH 58.1: Event tabs
   Append to bottom of style.css
   ============================================================ */

.events-tabs-section { padding: 0 24px 12px; }

.events-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.event-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease;
}
.event-tab:hover { color: var(--ink); }
.event-tab.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.event-tab-count {
  font-size: .78rem;
  opacity: .55;
  font-weight: 500;
}

.events-tab-note {
  margin: -4px 0 8px;
  font-size: .82rem;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 540px) {
  .events-tabs-section { padding-left: 16px; padding-right: 16px; }
  .event-tab { padding: 10px 12px; font-size: .88rem; }
	/* ============================================================
   PATCH 58.2: Genre-based gradient cards for events without images
   Append to bottom of style.css
   ============================================================ */

/* Bigger icon for the empty-image fallback */
.event-img-empty,
.em-img-empty {
  font-size: 2.8rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
}

/* Default gradient (catch-all) */
.event-img-empty { background: linear-gradient(135deg, #F5E6D3 0%, #D4B796 100%); }
.em-img-empty   { background: linear-gradient(135deg, #F5E6D3 0%, #D4B796 100%); }

/* Music — purple/violet */
.event-img-empty.cat-music,
.em-img-empty.cat-music {
  background: linear-gradient(135deg, #C9A6F0 0%, #7B3FB8 100%);
}

/* Sports — green */
.event-img-empty.cat-sports,
.em-img-empty.cat-sports {
  background: linear-gradient(135deg, #A8E6B5 0%, #2EA055 100%);
}

/* Arts / Theatre — rose/burgundy */
.event-img-empty.cat-arts,
.em-img-empty.cat-arts {
  background: linear-gradient(135deg, #F4B5C0 0%, #B8425E 100%);
}

/* Comedy — orange/coral */
.event-img-empty.cat-comedy,
.em-img-empty.cat-comedy {
  background: linear-gradient(135deg, #FFD08C 0%, #E07A2D 100%);
}

/* Film — teal */
.event-img-empty.cat-film,
.em-img-empty.cat-film {
  background: linear-gradient(135deg, #A6E0E0 0%, #2D8585 100%);
}

/* Food — warm gold */
.event-img-empty.cat-food,
.em-img-empty.cat-food {
  background: linear-gradient(135deg, #FFD86B 0%, #E68A2D 100%);
}

/* Family — sky blue */
.event-img-empty.cat-family,
.em-img-empty.cat-family {
  background: linear-gradient(135deg, #C6E3F5 0%, #5093C9 100%);
}

/* Community / Festivals — coral */
.event-img-empty.cat-community,
.em-img-empty.cat-community {
  background: linear-gradient(135deg, #FFC2A6 0%, #E06B3A 100%);
}

/* Holiday / Other — neutral warm */
.event-img-empty.cat-holiday,
.em-img-empty.cat-holiday {
  background: linear-gradient(135deg, #E8C5C5 0%, #A85A5A 100%);
}

}
/* ============================================================
   PATCH 59: Curated routes
   Append to bottom of style.css
   ============================================================ */

/* ---------- Route cards on city page ---------- */
.routes-section { padding: 4px 24px 18px; }
.routes-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px; padding: 0;
}
.routes-section-title {
  font-family: var(--display); font-size: 1.4rem; font-weight: 500;
  font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  margin: 0; color: var(--ink);
}
.routes-section-sub { font-size: .85rem; color: var(--muted); }

.routes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) {
  .routes-grid { grid-template-columns: 1fr 1fr; }
}

.route-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none; color: inherit;
  transition: transform .15s ease, border-color .15s ease;
}
.route-card:hover { transform: translateY(-1px); border-color: var(--accent-soft); }
.route-card-emoji {
  flex: 0 0 auto;
  width: 50px; height: 50px;
  background: linear-gradient(135deg, #FFE9C7 0%, #FFD08C 100%);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.7rem; line-height: 1;
}
.route-card-body { flex: 1; min-width: 0; }
.route-card-name { font-family: var(--body); font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0 0 2px; line-height: 1.25; }
.route-card-sub { font-size: .82rem; color: var(--ink-2); margin: 0 0 4px; }
.route-card-meta { font-size: .76rem; color: var(--muted); display: flex; gap: 6px; }
.route-card-chev { flex: 0 0 auto; font-size: 1.4rem; color: var(--muted); }

/* ---------- Route detail page ---------- */
.route-hero { padding: 24px 0 6px; }
.route-hero-line { display: flex; align-items: center; gap: 14px; }
.route-hero-emoji {
  width: 68px; height: 68px;
  background: linear-gradient(135deg, #FFE9C7 0%, #FFD08C 100%);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 2.3rem; line-height: 1;
  flex: 0 0 auto;
}
.route-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 7vw, 2.8rem);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  margin: 0;
}
.route-subtitle { font-size: 1rem; color: var(--ink-2); margin: 6px 0 0; font-style: italic; }
.route-description { font-size: .95rem; color: var(--ink); margin: 12px 0 0; line-height: 1.5; }
.route-meta {
  margin-top: 10px;
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: .82rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}

/* Stops list */
.route-stops { display: flex; flex-direction: column; gap: 0; padding: 12px 24px; }
.route-stop { display: flex; gap: 16px; align-items: flex-start; }
.rs-num {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  margin-top: 4px;
}
.rs-body { flex: 1; min-width: 0; }

.rs-time {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.rs-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .15s ease;
}
.rs-card:hover { border-color: var(--accent-soft); }
.rs-card-link { display: flex; align-items: stretch; text-decoration: none; color: inherit; }
.rs-card-img {
  flex: 0 0 100px;
  width: 100px; min-height: 100px;
  background-size: cover; background-position: center;
  background-color: #E8DFD2;
}
.rs-card-body { flex: 1; padding: 12px 14px; min-width: 0; position: relative; }
.rs-swap-tag {
  position: absolute;
  top: 8px; right: 10px;
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
}
.rs-cat {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted); font-weight: 700;
}
.rs-name { font-family: var(--body); font-size: 1rem; font-weight: 700; color: var(--ink); margin: 2px 0 4px; line-height: 1.3; }
.rs-host-note { font-size: .85rem; color: var(--ink-2); margin: 0 0 6px; line-height: 1.4; }
.rs-meta { display: flex; gap: 10px; font-size: .8rem; color: var(--muted); align-items: center; }

.rs-stop-note {
  margin: 8px 0 0;
  font-size: .85rem;
  color: var(--ink-2);
  font-style: italic;
  padding: 8px 12px;
  border-left: 3px solid var(--accent-soft);
  background: var(--bg-2);
  border-radius: 0 8px 8px 0;
}

.rs-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.rs-alts {
  margin-top: 12px;
  padding: 14px;
  background: var(--bg-2);
  border-radius: 12px;
  border: 1px solid var(--line);
}
.rs-alts-head { font-size: .85rem; color: var(--ink-2); margin-bottom: 10px; font-weight: 600; }
.rs-alts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 540px) {
  .rs-alts-grid { grid-template-columns: repeat(4, 1fr); }
}
.rs-alt-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform .12s ease, border-color .12s ease;
  font: inherit;
  color: inherit;
}
.rs-alt-card:hover { transform: translateY(-1px); border-color: var(--accent); }
.rs-alt-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover; background-position: center;
  background-color: #E8DFD2;
}
.rs-alt-img-empty {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #C4B596;
  background: linear-gradient(135deg, #F5E6D3 0%, #D4B796 100%);
}
.rs-alt-name {
  font-size: .8rem; font-weight: 600; color: var(--ink);
  padding: 6px 8px 0; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rs-alt-rating { padding: 2px 8px 6px; font-size: .72rem; color: var(--muted); }

.rs-alts-status { font-size: .82rem; margin-top: 8px; min-height: 1em; color: var(--muted); }
.rs-alts-status.success { color: #1F7A3E; }
.rs-alts-status.error   { color: var(--accent-2); }
.rs-alts-status.sending { font-style: italic; }

.rs-connector {
  margin-left: 18px;
  padding: 8px 0;
  font-size: 1.4rem;
  color: var(--line);
  letter-spacing: 6px;
}

.route-finish {
  padding: 18px 24px 8px;
  text-align: center;
}
.route-finish .btn { width: 100%; max-width: 320px; }

@media (max-width: 540px) {
  .route-stops { padding-left: 16px; padding-right: 16px; }
  .rs-card-img { flex-basis: 80px; width: 80px; }
  .rs-num { width: 30px; height: 30px; font-size: .85rem; }
}
/* ============================================================
   PATCH 60: Favorited-by-N-guests badge
   Append to bottom of style.css
   ============================================================ */

.fav-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  font-weight: 600;
  color: #8A5A0F;
  background: #FFF5E0;
  border: 1px solid rgba(232, 179, 57, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.3;
}
.fav-count-badge > span[aria-hidden] { color: #E8B339; font-size: .82rem; }

.fav-count-badge.sm {
  font-size: .72rem;
  padding: 1px 7px;
}
.fav-count-badge.sm > span[aria-hidden] { font-size: .76rem; }

/* On dark hero photos in detail page, soften the background */
.detail-meta .fav-count-badge {
  background: #FFF5E0;
}
/* ============================================================
   PATCH 61: Personalized guest experience
   Append to bottom of style.css
   ============================================================ */

/* ---------- Guest greeting strip (under topbar, every page) ---------- */
.guest-strip {
  background: linear-gradient(90deg, #FFF5E0 0%, #FFE9C7 100%);
  border-bottom: 1px solid rgba(232, 179, 57, 0.25);
  padding: 6px 0;
  font-size: .82rem;
}
.guest-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.guest-greet {
  font-weight: 600;
  color: #8A5A0F;
}
.guest-chip {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8A5A0F;
  background: rgba(255, 255, 255, 0.6);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Personalized welcome card on city page ---------- */
.guest-welcome-card {
  background: linear-gradient(135deg, #FFF5E0 0%, #FFE9C7 60%, #FFD08C 100%);
  border: 1px solid rgba(232, 179, 57, 0.4);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 4px 0 8px;
  box-shadow: 0 2px 12px rgba(232, 179, 57, 0.15);
}
.gwc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.gwc-greeting {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.gwc-hand {
  display: inline-block;
  font-size: 1.4rem;
  animation: gwc-wave 1.8s ease-in-out;
  transform-origin: 70% 70%;
}
@keyframes gwc-wave {
  0%, 100% { transform: rotate(0deg); }
  20%      { transform: rotate(14deg); }
  40%      { transform: rotate(-8deg); }
  60%      { transform: rotate(14deg); }
  80%      { transform: rotate(-4deg); }
}
.gwc-chip {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8A5A0F;
  background: rgba(255, 255, 255, 0.7);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.gwc-dates {
  margin-top: 10px;
  font-size: .92rem;
  color: var(--ink-2);
}
.gwc-dates strong {
  color: var(--ink);
  font-weight: 700;
}
.gwc-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(232, 179, 57, 0.4);
  font-size: .95rem;
  color: var(--ink);
  line-height: 1.5;
  font-style: italic;
}

@media (max-width: 540px) {
  .guest-welcome-card { padding: 16px 16px; }
  .gwc-greeting { font-size: 1.3rem; }
}

/* ---------- Welcome splash on /stay/<token>?welcome=1 ---------- */
.gate-splash .splash-card {
  text-align: center;
  animation: splash-in .35s ease-out;
}
@keyframes splash-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.splash-mascot { margin-bottom: 18px; }
.splash-hand {
  font-size: 3.2rem;
  display: block;
  margin: 8px 0 4px;
  animation: splash-wave 1.6s ease-in-out infinite;
  transform-origin: 70% 70%;
}
@keyframes splash-wave {
  0%, 60%, 100% { transform: rotate(0deg); }
  10%           { transform: rotate(14deg); }
  20%           { transform: rotate(-8deg); }
  30%           { transform: rotate(14deg); }
  40%           { transform: rotate(-4deg); }
  50%           { transform: rotate(8deg); }
}
.splash-title {
  font-family: var(--display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 500;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--ink);
  margin: 8px 0 6px;
}
.splash-lede {
  font-size: 1.1rem;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.splash-note {
  background: var(--bg-2);
  border-radius: 12px;
  padding: 12px 16px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
  margin: 14px 0;
  text-align: left;
}
.splash-loading {
  margin-top: 18px;
  font-size: .85rem;
  color: var(--muted);
  font-style: italic;
}
.splash-loading::after {
  content: '';
  display: inline-block;
  width: 28px;
  vertical-align: middle;
  margin-left: 8px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: splash-loading-bar 1.4s linear infinite;
  border-radius: 2px;
}
@keyframes splash-loading-bar {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
/* ============================================================
   PATCH 62: Stays admin - bulk delete + filter pills
   Append to bottom of admin.css (NOT style.css)
   ============================================================ */

.stays-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.stays-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.stays-filter-pills .filter-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  color: #555;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.stays-filter-pills .filter-pill .hint { font-weight: 400; opacity: .65; }
.stays-filter-pills .filter-pill:hover { border-color: #999; color: #222; }
.stays-filter-pills .filter-pill.active {
  background: #1F1B16;
  color: #fff;
  border-color: #1F1B16;
}
.stays-filter-pills .filter-pill.active .hint { opacity: .75; }

.bulk-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #FFF5E0;
  border: 1px solid rgba(232, 179, 57, 0.4);
  border-radius: 10px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.bulk-bar-count {
  font-weight: 700;
  color: #8A5A0F;
  font-size: .92rem;
}

.bulk-stay-check, #bulk-select-all {
  width: 18px; height: 18px;
  cursor: pointer;
}
/* ============================================================
   PATCH 68: Gate fallback (no-code path) on /enter
   Append to bottom of style.css
   ============================================================ */

.gate-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
  color: var(--muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
}
.gate-divider::before,
.gate-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--line);
}
.gate-divider span { padding: 0 6px; }

.gate-select {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  margin-top: 4px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23555' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
/* ============================================================
   PATCH 69: AI itinerary
   Append to bottom of style.css
   ============================================================ */

/* ---- City-page CTA button ---- */
.plan-cta-section { padding: 0 24px 16px; }
.plan-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #EFE5FF 0%, #C9B5F5 100%);
  border: 1px solid rgba(123, 63, 184, 0.25);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.plan-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(123, 63, 184, 0.18);
}
.plan-cta-icon {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.plan-cta-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.plan-cta-body strong {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  color: #4A2A8A;
}
.plan-cta-body span {
  font-size: .82rem;
  color: var(--ink-2);
  line-height: 1.4;
}
.plan-cta-chev { font-size: 1.5rem; color: #5B2A99; opacity: .6; }

/* ---- Plan page ---- */
.plan-hero {
  padding: 24px 24px 8px;
}
.plan-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 7vw, 2.8rem);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  margin: 4px 0 8px;
}
.plan-sub {
  font-size: 1rem;
  color: var(--ink-2);
  margin: 0 0 12px;
  max-width: 480px;
}

.plan-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.plan-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.plan-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  resize: vertical;
}
.plan-form textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.plan-chip-row { display: flex; flex-direction: column; gap: 6px; }
.plan-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.plan-chip {
  cursor: pointer;
}
.plan-chip input { position: absolute; opacity: 0; pointer-events: none; }
.plan-chip span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg);
  transition: all .15s ease;
}
.plan-chip:hover span { border-color: var(--ink-2); }
.plan-chip input:checked + span {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.plan-submit { margin-top: 4px; }
.plan-submit:disabled { opacity: .65; cursor: progress; }

/* ---- Result ---- */
.plan-result {
  margin-top: 22px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #FFF9EC 0%, #FFE9C7 100%);
  border: 1px solid rgba(232, 179, 57, 0.4);
  border-radius: 14px;
  animation: plan-fade 0.4s ease-out;
}
@keyframes plan-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.plan-result-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.plan-result-icon {
  font-size: 1.3rem;
  color: #E68A2D;
}
.plan-result-head h2 {
  flex: 1;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  margin: 0;
}
.plan-result-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
}
.plan-result-body strong { color: #4A2A8A; }
.plan-place-link {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  color: #4A2A8A;
  background: rgba(255, 255, 255, 0.7);
  padding: 1px 8px;
  border-radius: 999px;
  text-decoration: none;
  margin-left: 4px;
  vertical-align: middle;
}
.plan-place-link:hover { background: #fff; }
.plan-disclaimer {
  margin: 12px 0 0;
  font-size: .78rem;
  color: var(--muted);
  font-style: italic;
}

.plan-error {
  margin-top: 14px;
  padding: 12px 16px;
  background: #FBE5E0;
  color: #8A2410;
  border-radius: 10px;
  border: 1px solid rgba(184, 84, 50, 0.3);
  font-size: .92rem;
}

@media (max-width: 540px) {
  .plan-cta-section, .plan-hero { padding-left: 16px; padding-right: 16px; }
  .plan-cta { padding: 12px 14px; }
  .plan-cta-icon { width: 42px; height: 42px; font-size: 1.3rem; }
}
/* ============================================================
   PATCH 69: AI itinerary
   Append to bottom of style.css
   ============================================================ */

/* ---- City-page CTA button ---- */
.plan-cta-section { padding: 0 24px 16px; }
.plan-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #EFE5FF 0%, #C9B5F5 100%);
  border: 1px solid rgba(123, 63, 184, 0.25);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.plan-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(123, 63, 184, 0.18);
}
.plan-cta-icon {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.plan-cta-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.plan-cta-body strong {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  color: #4A2A8A;
}
.plan-cta-body span {
  font-size: .82rem;
  color: var(--ink-2);
  line-height: 1.4;
}
.plan-cta-chev { font-size: 1.5rem; color: #5B2A99; opacity: .6; }

/* ---- Plan page ---- */
.plan-hero {
  padding: 24px 24px 8px;
}
.plan-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 7vw, 2.8rem);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  margin: 4px 0 8px;
}
.plan-sub {
  font-size: 1rem;
  color: var(--ink-2);
  margin: 0 0 12px;
  max-width: 480px;
}

.plan-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.plan-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.plan-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  resize: vertical;
}
.plan-form textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.plan-chip-row { display: flex; flex-direction: column; gap: 6px; }
.plan-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.plan-chip {
  cursor: pointer;
}
.plan-chip input { position: absolute; opacity: 0; pointer-events: none; }
.plan-chip span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg);
  transition: all .15s ease;
}
.plan-chip:hover span { border-color: var(--ink-2); }
.plan-chip input:checked + span {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.plan-submit { margin-top: 4px; }
.plan-submit:disabled { opacity: .65; cursor: progress; }

/* ---- Result ---- */
.plan-result {
  margin-top: 22px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #FFF9EC 0%, #FFE9C7 100%);
  border: 1px solid rgba(232, 179, 57, 0.4);
  border-radius: 14px;
  animation: plan-fade 0.4s ease-out;
}
@keyframes plan-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.plan-result-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.plan-result-icon {
  font-size: 1.3rem;
  color: #E68A2D;
}
.plan-result-head h2 {
  flex: 1;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  margin: 0;
}
.plan-result-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
}
.plan-result-body strong { color: #4A2A8A; }
.plan-place-link {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  color: #4A2A8A;
  background: rgba(255, 255, 255, 0.7);
  padding: 1px 8px;
  border-radius: 999px;
  text-decoration: none;
  margin-left: 4px;
  vertical-align: middle;
}
.plan-place-link:hover { background: #fff; }
.plan-disclaimer {
  margin: 12px 0 0;
  font-size: .78rem;
  color: var(--muted);
  font-style: italic;
}

.plan-error {
  margin-top: 14px;
  padding: 12px 16px;
  background: #FBE5E0;
  color: #8A2410;
  border-radius: 10px;
  border: 1px solid rgba(184, 84, 50, 0.3);
  font-size: .92rem;
}

@media (max-width: 540px) {
  .plan-cta-section, .plan-hero { padding-left: 16px; padding-right: 16px; }
  .plan-cta { padding: 12px 14px; }
  .plan-cta-icon { width: 42px; height: 42px; font-size: 1.3rem; }
}

/* Numbered itinerary steps */
.plan-result-body h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
  font-style: italic;
  margin: 0 0 12px;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
}
.plan-result-body h2:first-child { margin-top: 0; }
.plan-result-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 14px 0 6px;
}
.plan-result-body p {
  margin: 0 0 12px;
}
.plan-step {
  display: block;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  margin-bottom: 10px !important;
  line-height: 1.55;
}
.plan-step:last-child { margin-bottom: 0 !important; }
.plan-step-num {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  font-style: italic;
  color: #4A2A8A;
  margin-right: 6px;
}
/* ============================================================
   PATCH 70: AI plan cards + history
   Append to bottom of style.css
   ============================================================ */

/* Cards section under the AI prose */
.plan-cards-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(232, 179, 57, 0.3);
}
.plan-cards-head {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 12px;
}
.plan-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-card {
  display: flex;
  align-items: stretch;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.plan-card:hover {
  transform: translateY(-1px);
  border-color: var(--accent-soft);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.plan-card-num {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  width: 40px;
  background: #4A2A8A;
  color: white;
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
}
.plan-card-img {
  flex: 0 0 88px;
  width: 88px;
  background-size: cover;
  background-position: center;
  background-color: #E8DFD2;
  align-self: stretch;
}
.plan-card-img-empty {
  background: linear-gradient(135deg, #F5E6D3 0%, #D4B796 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
}
.plan-card-body {
  flex: 1; min-width: 0;
  padding: 10px 4px 10px 0;
  display: flex; flex-direction: column; gap: 2px;
}
.plan-card-cat {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 700;
}
.plan-card-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.25;
  margin: 1px 0 2px;
}
.plan-card-note {
  font-size: .82rem;
  color: var(--ink-2);
  margin: 0 0 4px;
  line-height: 1.4;
}
.plan-card-meta {
  display: flex;
  gap: 10px;
  font-size: .78rem;
  color: var(--muted);
  margin-top: auto;
}
.plan-card-chev {
  flex: 0 0 auto;
  display: flex; align-items: center;
  padding: 0 12px 0 4px;
  font-size: 1.4rem;
  color: var(--muted);
}

/* History list */
.plan-history-section { margin-top: 32px; padding-bottom: 12px; }
.plan-history-title {
  font-family: var(--display);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  margin: 0 0 12px;
  color: var(--ink);
}
.plan-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan-history-item {
  display: flex;
  align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s ease;
}
.plan-history-item:hover { border-color: var(--accent-soft); }
.plan-history-link {
  flex: 1;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.plan-history-date {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 600;
}
.plan-history-prompt {
  font-size: .92rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plan-history-del {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  width: 38px;
  color: var(--muted);
  text-decoration: none;
  font-size: 1.3rem;
  border-left: 1px solid var(--line);
  transition: background .15s ease, color .15s ease;
}
.plan-history-del:hover {
  background: #FBE5E0;
  color: #B85432;
}

/* Viewing saved plan */
.plan-viewing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.plan-viewing-date {
  color: var(--muted);
  font-size: .85rem;
}

@media (max-width: 540px) {
  .plan-card-img { flex-basis: 70px; width: 70px; }
  .plan-card-num { width: 32px; font-size: .92rem; }
  .plan-card-chev { padding: 0 8px 0 2px; font-size: 1.2rem; }
}
/* ============================================================
   PATCH 71: Expandable plan cards (replace link cards from patch 70)
   Append to bottom of style.css - overrides patch 70 card rules
   ============================================================ */

/* Wrap holds card + panel */
.plan-card-wrap {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s ease;
}
.plan-card-wrap:hover { border-color: var(--accent-soft); }

/* Reset button styles + override link-card from patch 70 */
button.plan-card {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none !important;
}
button.plan-card:hover { background: rgba(0, 0, 0, 0.02); }
button.plan-card[aria-expanded="true"] {
  background: rgba(74, 42, 138, 0.04);
}
button.plan-card[aria-expanded="true"] .plan-card-chev {
  transform: rotate(180deg);
}
.plan-card-chev {
  transition: transform .2s ease;
  display: flex; align-items: center;
  padding: 0 12px 0 4px;
  font-size: 1rem;
  color: var(--muted);
}

/* Convert div elements inside button to spans for valid HTML */
button.plan-card .plan-card-body {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 4px 10px 0;
  flex: 1; min-width: 0;
}
button.plan-card .plan-card-cat,
button.plan-card .plan-card-name,
button.plan-card .plan-card-note,
button.plan-card .plan-card-meta {
  display: block;
}
button.plan-card .plan-card-cat {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 700;
}
button.plan-card .plan-card-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.25;
  margin: 1px 0 2px;
}
button.plan-card .plan-card-note {
  font-size: .82rem;
  color: var(--ink-2);
  margin: 0 0 4px;
  line-height: 1.4;
}
button.plan-card .plan-card-meta {
  display: flex; gap: 10px;
  font-size: .78rem;
  color: var(--muted);
  margin-top: auto;
}
button.plan-card .plan-card-num {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  width: 40px;
  background: #4A2A8A;
  color: white;
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
}
button.plan-card .plan-card-img {
  flex: 0 0 88px;
  width: 88px;
  background-size: cover;
  background-position: center;
  background-color: #E8DFD2;
  align-self: stretch;
  display: block;
}
button.plan-card .plan-card-img-empty {
  background: linear-gradient(135deg, #F5E6D3 0%, #D4B796 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Expandable panel */
.plan-card-panel {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  animation: panel-slide 0.25s ease-out;
}
@keyframes panel-slide {
  from { opacity: 0; max-height: 0; }
  to   { opacity: 1; max-height: 800px; }
}
.plan-card-photo {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}
.plan-card-panel-body {
  padding: 14px 16px;
}
.plan-card-host-note {
  font-size: .92rem;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 10px;
}
.plan-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.plan-stat {
  display: inline-flex;
  align-items: center;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--paper);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.plan-card-addr {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 10px;
  font-style: italic;
}
.plan-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 540px) {
  button.plan-card .plan-card-img { flex-basis: 70px; width: 70px; }
  button.plan-card .plan-card-num { width: 32px; font-size: .92rem; }
  .plan-card-photo { height: 160px; }
  .plan-card-panel-body { padding: 12px 14px; }
}
/* ============================================================
   PATCH 72: Same-category alternatives in expand panel
              + card body spacing fix
   Append to bottom of style.css
   ============================================================ */

/* Spacing fix: text was too close to the thumbnail */
button.plan-card .plan-card-body {
  padding-left: 14px !important;
}
@media (max-width: 540px) {
  button.plan-card .plan-card-body {
    padding-left: 12px !important;
  }
}

/* Alternatives strip inside the expand panel */
.plan-alts-strip {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.plan-alts-head {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 8px;
}
.plan-alts-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.plan-alt-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-height: 60px;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.plan-alt-card:hover {
  transform: translateY(-1px);
  border-color: var(--accent-soft);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.plan-alt-img {
  flex: 0 0 60px;
  width: 60px;
  background-size: cover;
  background-position: center;
  background-color: #E8DFD2;
  align-self: stretch;
  display: block;
}
.plan-alt-img-empty {
  background: linear-gradient(135deg, #F5E6D3 0%, #D4B796 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
}
.plan-alt-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 8px 10px;
  gap: 2px;
}
.plan-alt-name {
  font-weight: 700;
  font-size: .88rem;
  color: var(--ink);
  line-height: 1.25;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plan-alt-meta {
  display: flex;
  gap: 8px;
  font-size: .75rem;
  color: var(--muted);
}

@media (max-width: 540px) {
  .plan-alts-list { grid-template-columns: 1fr; }
  .plan-alt-img { flex-basis: 54px; width: 54px; }
}
/* ============================================================
   PATCH 73: Swap-in-place for plan alternatives
   Append to bottom of style.css
   ============================================================ */

/* "(swapped to X)" annotation in the AI prose */
.plan-swap-note {
  display: inline-block;
  font-size: .78rem;
  font-style: italic;
  color: #4A2A8A;
  background: rgba(74, 42, 138, 0.08);
  padding: 1px 8px;
  border-radius: 999px;
  margin-left: 4px;
  vertical-align: middle;
}

/* Reset button defaults for swap-card alts */
button.plan-alt-card {
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  padding: 0;
  position: relative;
  width: 100%;
}
button.plan-alt-card:focus {
  outline: 2px solid var(--accent-soft);
  outline-offset: 1px;
}

/* "Swap" hint badge on alt swap buttons */
.plan-alt-swap-hint {
  position: absolute;
  top: 6px; right: 6px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: #4A2A8A;
  color: white;
  padding: 2px 7px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity .15s ease;
  pointer-events: none;
}
button.plan-alt-card:hover .plan-alt-swap-hint,
button.plan-alt-card:focus .plan-alt-swap-hint {
  opacity: 1;
}
@media (hover: none) {
  /* On touch devices, always show the hint */
  .plan-alt-swap-hint { opacity: 0.85; }
}
/* ============================================================
   PATCH 74: Share plan via native share sheet
   Append to bottom of style.css
   ============================================================ */

.plan-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.plan-share-btn.flash-success {
  background: #2D7B4E !important;
  color: white !important;
  border-color: #2D7B4E !important;
}
















