#screen-profile .invite-management { width: 100%; padding: 12px 0; font-size: 13px; line-height: 1.5; }
#screen-profile .invite-management summary { cursor: pointer; font-weight: 600; }
#screen-profile .invite-management p { margin: 10px 0; }
#screen-profile .invite-management label { display: block; margin: 12px 0; }
#screen-profile .invite-management input { display: block; max-width: 100%; margin-top: 6px; padding: 8px; font: inherit; }
#screen-profile .invite-management button { margin: 4px 6px 4px 0; border: 1px solid currentColor; border-radius: 16px; background: transparent; color: inherit; padding: 8px 12px; font: inherit; cursor: pointer; }
#screen-review [hidden], #mf-review-form [hidden] { display: none !important; }
.review-tier-link { display: block; background: none; border: 0; color: var(--mid); font: inherit; padding: 12px 0; cursor: pointer; }
.review-tier-link.wrthit-tried-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; }
.wrthit-tried-icon:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.quick-rating-dialog { background: var(--cream); color: var(--dark); border: 1px solid var(--tan); border-radius: 16px; max-width: 90vw; padding: 24px; }
.rf-stars button.rf-star { background: none; border: 0; font-family: inherit; cursor: pointer; padding: 2px; }
/* ══════════════════════════════════════════
   WRTHY APP — styles.css
   Palette: Deep brown · Warm tan · Cream · White
   Nav: TOP bar with transparent logo
══════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --tan:        #C9B99A;
  --dark:       #3B2F1E;
  --mid:        #7A6248;
  --light:      #F5EFE6;
  --cream:      #EDE4D6;
  --white:      #FDFAF6;
  --accent:     #5C4A32;
  --gold:       #C9B99A;

  /* Worthiness tier palette — brand-only assignments.
     Solid = text/accent color, -bg = 15% surface (Worthy uses cream). */
  --tier-certified:    #2E3B12;  --tier-certified-bg: rgba(46, 59, 18, 0.15);
  --tier-highly:       #011F37;  --tier-highly-bg:    rgba(1, 31, 55, 0.15);
  --tier-worthy:       #42301F;  --tier-worthy-bg:    #EDE4D6;
  --tier-try:          #74481A;  --tier-try-bg:       rgba(116, 72, 26, 0.15);
  --tier-unworthy:     #502002;  --tier-unworthy-bg:  rgba(80, 32, 2, 0.15);

  /* Legacy accent slots remapped to brand tier colors (Certified / Highly /
     Worthy / Worth-a-Try / Unworthy) so all downstream var() usages stay
     on-brand. */
  --teal:       #2E3B12;
  --teal-bg:    rgba(46, 59, 18, 0.15);
  --teal-dark:  #2E3B12;
  --purple:     #011F37;
  --purple-bg:  rgba(1, 31, 55, 0.15);
  --purple-dark:#011F37;
  --blue:       #42301F;
  --blue-bg:    rgba(66, 48, 31, 0.15);
  --blue-dark:  #42301F;
  --amber:      #74481A;
  --amber-bg:   rgba(116, 72, 26, 0.15);
  --amber-dark: #74481A;
  --coral:      #502002;
  --coral-bg:   rgba(80, 32, 2, 0.15);
  --coral-dark: #502002;
  --red:        #E24B4A;
  --red-bg:     #FCEBEB;

  /* Earthy category & status palette — warm tones that sit with the base
     palette (clay, olive, ochre, espresso, brick) instead of the bright
     teal/purple/blue accents. */
  --clay:       #A8542F;  --clay-bg:    #F4E6DD;
  --olive:      #6B6A2E;  --olive-bg:   #ECEAD6;
  --ochre:      #9A7415;  --ochre-bg:   #F6EDD6;
  --espresso:   #2B2118;  --espresso-bg:#E9E3D9;
  --brick:      #8A2E22;  --brick-bg:   #F2E1DD;

  --status-height: 44px;
  --nav-height:    92px;
  --bottomnav-height: 64px;
  --radius-sm:  10px;
  --radius-md:  14px;
  --radius-lg:  18px;
  --radius-xl:  24px;
  --radius-pill:50px;

  --font-serif: 'Cormorant Garamond', serif;
  --shadow-fab: 0 8px 22px rgba(59, 47, 30, 0.32);
  --shadow-fab-hover: 0 10px 26px rgba(59, 47, 30, 0.38);
  --shadow-switch-thumb: 0 1px 3px rgba(58, 47, 30, 0.3);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #1a1410;
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input  { font-family: inherit; }
a      { text-decoration: none; color: inherit; }

/* ── APP SHELL ── */
body {
  display: flex;
  flex-direction: column;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  height: 100vh;
  background: var(--white);
}

/* ── STATUS BAR ── */
.status-bar {
  height: var(--status-height);
  background: #F2EAE0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  z-index: 100;
}
.status-time  { color: var(--dark); font-size: 13px; font-weight: 500; }
.status-icons { display: flex; gap: 8px; align-items: center; color: var(--dark); }
.status-icons svg { display: block; }

/* ── TOP NAV BAR ── */
.nav-bar {
  height: var(--nav-height);
  background: #F2EAE0;
  display: flex;
  align-items: center;
  padding: 0 10px;
  flex-shrink: 0;
  border-bottom: 0.5px solid rgba(58, 47, 30, 0.1);
  z-index: 90;
  gap: 8px;
  overflow: hidden;
}

/* Explore uses the review action; other pages retain their invitation action. */
.nav-bar .nav-explore-review { display: none; }
body:has(#screen-explore.active) .nav-explore-review { display: flex; }
body:has(#screen-explore.active) .nav-invite-friends { display: none; }

.nav-logo {
  display: flex;
  align-items: center;
  margin-right: auto;
  flex-shrink: 0;
  min-width: 0;
}
.nav-logo img {
  height: auto;
  max-height: 34px;
  width: 104px;
  object-fit: contain;
  display: block;
}

.nav-icons-group { display: flex; flex-direction: column; align-items: stretch; gap: 5px; flex-shrink: 0; min-width: 0; }
.nav-icon-row { display: flex; justify-content: space-between; gap: 5px; }
.nav-icon-row .nav-action-btn { flex: 1; }

/* ── TOP-RIGHT ACTION STACK (menu · bell · write) ──
   Bare icons (no pill background) tinted with the same dark tone the pill
   used to have; hover shifts the icon tint instead of a fill. */
.nav-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--dark);
  border: none;
  border-radius: var(--radius-pill);
  width: 34px;
  height: 28px;
  cursor: pointer;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.nav-action-btn:hover { color: var(--accent); }
.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--brick);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border: 1.5px solid #F2EAE0;
  box-sizing: border-box;
}

/* ── BOTTOM NAV BAR ── */
.bottom-nav {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--bottomnav-height);
  background: #F2EAE0;
  border-top: 0.5px solid rgba(58, 47, 30, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
  z-index: 95;
}
.nav-write-review {
  width: 100%;
  justify-content: center;
  padding: 6px 14px;
  font-size: 11px;
  white-space: nowrap;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.nav-item:active { background: rgba(58, 47, 30, 0.08); }
.nav-icon  { color: rgba(58, 47, 30, 0.32); transition: color 0.15s; display: flex; }
.nav-icon svg { width: 21px; height: 21px; display: block; }
.nav-icon svg[hidden] { display: none; }
.nav-profile-photo {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  object-fit: cover;
  display: none;
}
.has-profile-photo .nav-profile-photo { display: block; }
.nav-item.active .nav-profile-photo {
  outline: 1.5px solid var(--dark);
  outline-offset: 2px;
}
.nav-label { font-size: 9.5px; color: rgba(58, 47, 30, 0.32); letter-spacing: 0.03em; transition: color 0.15s; }
.nav-item.active .nav-icon  { color: var(--dark); }
.nav-item.active .nav-label { color: var(--dark); font-weight: 500; }

/* Center "+" quick-add action (raised FAB in the bottom nav) */
.nav-plus {
  width: 48px; height: 48px; flex-shrink: 0;
  margin-top: -18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--white);
  border: 3px solid #F2EAE0; border-radius: 50%;
  cursor: pointer; padding: 0;
  box-shadow: 0 4px 12px rgba(58, 47, 30, 0.28);
  transition: background 0.15s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.nav-plus svg { width: 22px; height: 22px; display: block; }
.nav-plus:hover { background: var(--dark); }
.nav-plus:active { transform: scale(0.94); background: var(--dark); }

/* "+" quick-add action sheet */
.plus-sheet-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px; font-weight: 600; color: var(--dark);
}
.plus-option {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  padding: 14px 12px; margin-top: 8px;
  background: var(--light); border: 0.5px solid rgba(58, 47, 30, 0.1);
  border-radius: var(--radius-md); cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.plus-option:hover { background: var(--cream); }
.plus-option:active { background: var(--cream); }
.plus-option-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--white); border-radius: 50%;
}
.plus-option-text { min-width: 0; }
.plus-option-name { font-size: 15px; font-weight: 600; color: var(--dark); }
.plus-option-sub { font-size: 12px; color: var(--mid); margin-top: 2px; }
.plus-venue-results { margin-top: 10px; padding-bottom: 8px; }
.plus-venue-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left;
  padding: 11px 12px; margin-top: 6px;
  background: var(--white); border: 0.5px solid rgba(58, 47, 30, 0.1);
  border-radius: var(--radius-sm); cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.plus-venue-row:hover { background: var(--light); }
.plus-venue-text { min-width: 0; flex: 1; }
.plus-venue-name { font-size: 14px; font-weight: 600; color: var(--dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plus-venue-loc { font-size: 11px; color: var(--mid); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.4px; }
.plus-venue-state {
  flex-shrink: 0; font-size: 11px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
  background: var(--accent); color: var(--white);
}
.plus-venue-state.saved { background: var(--cream); color: var(--mid); }
.plus-venue-state { border: none; font-family: inherit; cursor: pointer; }
.plus-venue-row-saved { cursor: default; background: var(--light); }
.plus-venue-view {
  flex-shrink: 0; font-size: 11px; font-weight: 600;
  padding: 5px 14px; border-radius: 999px;
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent); cursor: pointer;
  font-family: inherit;
}
.plus-results-empty {
  text-align: center; color: var(--mid);
  font-size: 13px; line-height: 1.5;
  padding: 20px 16px 10px;
}
.plus-add-new-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px;
  background: var(--accent); color: var(--white);
  border: none; border-radius: var(--radius-md);
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; margin-bottom: 8px;
}
.plus-add-new-btn:active { background: var(--dark); }
.plus-add-sub { font-size: 13px; color: var(--mid); margin-bottom: 12px; }
.plus-add-label {
  display: block; font-size: 11px; font-weight: 600; color: var(--mid);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin: 12px 0 5px;
}
.plus-add-select { appearance: none; -webkit-appearance: none; }
.plus-add-error { font-size: 12.5px; color: #A0442C; margin-top: 10px; }
.plus-add-actions { display: flex; gap: 10px; margin: 16px 0 8px; }
.plus-add-back {
  flex: 0 0 auto; padding: 12px 18px;
  background: var(--light); color: var(--dark);
  border: 0.5px solid rgba(58, 47, 30, 0.15); border-radius: var(--radius-md);
  font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.plus-add-save {
  flex: 1; padding: 12px;
  background: var(--accent); color: var(--white);
  border: none; border-radius: var(--radius-md);
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.plus-add-save:active { background: var(--dark); }

/* ── SCREENS ── */
.screen {
  display: none;
  flex-direction: column;
  overflow: hidden;
  position: absolute;
  top: calc(var(--status-height) + var(--nav-height));
  left: 0; right: 0; bottom: var(--bottomnav-height);
}
.screen.active { display: flex; }

.screen-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.screen-scroll::-webkit-scrollbar { display: none; }

/* ── PAGE HEADER (dark, for non-home screens) ── */
.page-header {
  background: var(--dark);
  padding: 12px 20px 14px;
  flex-shrink: 0;
}
.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
}
.page-sub { font-size: 11px; color: rgba(201, 185, 154, 0.5); margin-top: 2px; }

/* ── SECTION HEADINGS ── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--dark);
}
.section-head-titles { display: flex; flex-direction: column; }
#explore-section-title { width: 100%; text-align: center; white-space: pre-line; line-height: 1.35; }
.section-sub { font-size: 11px; color: var(--mid); margin-top: 2px; letter-spacing: 0.05em; }
.section-link  { font-size: 12px; color: var(--mid); cursor: pointer; display: flex; align-items: center; gap: 3px; }
.section-pad   { padding: 14px 20px; }
.spacer-sm     { height: 14px; }
.bottom-spacer { height: 24px; }
.divider       { height: 0.5px; background: rgba(58, 47, 30, 0.08); margin: 8px 20px; }

/* ── CAROUSEL ── */
.carousel {
  height: 230px;
  position: relative;
  overflow: hidden;
  background: var(--dark);
  flex-shrink: 0;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}

.slide-food       { background-image: url('/photos/food.png'); }
.slide-travel     { background-image: url('/photos/travel.jpg'); }
.slide-lodging    { background-image: url('/photos/lodging.jpg'); }
.slide-recreation { background-image: url('/photos/recreation.jpg'); }

.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 12, 4, 0.88) 0%, rgba(20, 12, 4, 0.25) 55%, rgba(20, 12, 4, 0.05) 100%);
}
.slide-content { position: relative; padding: 16px 20px; z-index: 1; width: 100%; }
.slide-pill {
  display: inline-block;
  background: var(--tan);
  color: var(--dark);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 7px;
}
.slide-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.25;
}
.slide-sub { font-size: 11px; color: rgba(237, 228, 214, 0.75); margin-top: 4px; }

.carousel-dots {
  position: absolute;
  bottom: 12px; right: 18px;
  display: flex; gap: 5px; z-index: 2;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}
.dot.active { width: 18px; background: var(--tan); }

/* ── SPOTLIGHT BANNER ── */
.spotlight-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark);
  position: relative;
  cursor: pointer;
}
.spotlight-photo {
  position: absolute; inset: 0;
  background-image: url('/photos/jnane-tamsna.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.spotlight-emoji { position: absolute; right: 14px; top: 12px; font-size: 46px; opacity: 0.2; pointer-events: none; }
.spotlight-inner { padding: 18px 16px; position: relative; z-index: 1; }
.spotlight-kicker { font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tan); margin-bottom: 5px; }
.spotlight-name { font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 500; color: var(--white); }
.spotlight-desc { font-size: 12px; color: rgba(237, 228, 214, 0.65); margin-top: 5px; line-height: 1.55; }
.spotlight-cta { display: inline-flex; align-items: center; background: var(--tan); color: var(--dark); font-size: 11px; font-weight: 500; padding: 6px 14px; border-radius: var(--radius-pill); margin-top: 12px; }
.sl-a a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(92, 74, 50, 0.4); }
.sl-follow-btn { display: inline-flex; align-items: center; gap: 7px; background: var(--accent); color: #FFFFFF; border: none; font-size: 13px; font-weight: 600; padding: 11px 20px; border-radius: var(--radius-pill); cursor: pointer; margin-bottom: 22px; transition: opacity 0.15s; }
.sl-follow-btn:hover { opacity: 0.9; }
.sl-follow-btn svg { width: 15px; height: 15px; }
.spotlight-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.spotlight-tag { font-size: 10px; color: rgba(201, 185, 154, 0.45); }

/* ── HOME: dark background matching the WRTHY Spotlight ── */
#screen-home { background: var(--dark); }
#screen-home .section-title { color: var(--white); }
#screen-home .section-sub  { color: rgba(237, 228, 214, 0.6); }
#screen-home .section-link { color: var(--tan); }
/* Home search results sit directly on the dark background */
#home-search-results .sr-name { color: var(--white); }
#home-search-results .sr-group-title { color: var(--tan); }
#home-search-results .sr-meta { color: rgba(237, 228, 214, 0.55); }
#home-search-results .sr-empty { color: rgba(237, 228, 214, 0.55); }
#home-search-results .sr-row:active { background: rgba(255, 255, 255, 0.08); }
/* Items on the dark home page read cleaner without their hairline edges */
#screen-home .wrthy-card,
#screen-home .nearby-card,
#screen-home .feed-card,
#screen-home .home-search .search-bar,
#screen-explore .home-search .search-bar { border: none; }

.wspotlight-section { padding: 22px 0; }
.wspotlight-section.city-spotlight { padding: 16px 16px 6px; }
.wspotlight {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--dark);
  cursor: pointer;
  box-shadow: 0 14px 32px -8px rgba(0, 0, 0, 0.6);
  border-top: 1px solid rgba(201, 185, 154, 0.14);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}
.wspotlight-photo {
  flex: 0 0 38%;
  background-size: cover;
  background-position: top center;
}
.wspotlight-inner { padding: 18px 16px; flex: 1; min-width: 0; }

/* ── WRTHY SPOTLIGHT — FEATURE ── */
#screen-spotlight { background: var(--white); }
.sl-header { background: var(--white); }
.sl-hero {
  position: relative;
  height: 360px;
  background: var(--dark);
  overflow: hidden;
}
.sl-hero-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: top center;
}
.sl-hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(59,47,30,0) 30%, rgba(40,31,18,0.55) 62%, rgba(28,21,12,0.96) 100%);
}
.sl-hero-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 22px 22px;
  z-index: 1;
}
.sl-kicker {
  font-size: 10px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--tan); margin-bottom: 8px;
}
.sl-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px; font-weight: 600; line-height: 1.02;
  color: var(--white);
}
.sl-role {
  font-size: 12.5px; color: rgba(237, 228, 214, 0.78);
  margin-top: 7px;
}
.sl-badge {
  display: inline-flex; align-items: center;
  margin-top: 12px;
  background: rgba(201, 185, 154, 0.16);
  border: 1px solid rgba(201, 185, 154, 0.45);
  color: var(--tan);
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--radius-pill);
}
.sl-content { padding: 24px 22px 8px; }
.venue-content .sl-content { padding: 4px 0 8px; }
.sl-intro {
  font-size: 14.5px; line-height: 1.72;
  color: var(--accent);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--cream);
}
.sl-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--cream);
}
.sl-section:last-child { border-bottom: none; }
.sl-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 500;
  color: var(--dark); margin-bottom: 8px;
}
.sl-section-body {
  font-size: 14.5px; line-height: 1.72;
  color: var(--accent);
}

/* ── Jnane Tamsna property feature ── */
.jt-badge {
  display: inline-block; margin-top: 14px;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  border: 0.5px solid var(--tan); color: var(--tan);
  padding: 5px 13px; border-radius: 20px;
}
.jt-scores {
  background: var(--dark);
  display: flex; justify-content: center; gap: 30px; flex-wrap: wrap;
  padding: 20px 16px;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.35);
}
.jt-score { text-align: center; }
.jt-score-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px; font-weight: 500; color: var(--cream);
  line-height: 1; display: block;
}
.jt-score-lbl {
  font-size: 9.5px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--tan); margin-top: 5px; display: block;
}
.jt-content { padding: 24px 22px 8px; }
.jt-opening {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18.5px; font-weight: 400; line-height: 1.62;
  color: var(--mid);
  padding-bottom: 26px; margin-bottom: 4px;
  border-bottom: 0.5px solid var(--cream);
}
.jt-opening em { font-style: italic; color: var(--dark); }
.jt-section {
  padding: 24px 0;
  border-bottom: 0.5px solid var(--cream);
}
.jt-section:last-of-type { border-bottom: none; }
.jt-label {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mid); display: block; margin-bottom: 12px;
}
.jt-body {
  font-size: 14.5px; line-height: 1.82; color: var(--accent);
  margin-bottom: 14px;
}
.jt-body:last-child { margin-bottom: 0; }
.jt-body em {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  color: var(--dark); font-size: 15.5px;
}
.jt-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 500; line-height: 1.5;
  color: var(--dark);
  border-left: 3px solid var(--tan);
  padding-left: 16px; margin: 20px 0;
}
.jt-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 22px; padding-top: 22px;
  border-top: 0.5px solid var(--cream);
}
.jt-chip {
  font-size: 11px; color: var(--mid);
  border: 0.5px solid var(--border, rgba(59, 47, 30, 0.15));
  border-radius: 20px; padding: 4px 13px;
  background: rgba(59, 47, 30, 0.04);
}
.jt-footer {
  margin-top: 28px; padding-top: 22px;
  border-top: 0.5px solid var(--cream);
  font-size: 12px; color: var(--mid); line-height: 1.6;
}
.sl-cat {
  font-size: 10px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mid); margin-bottom: 12px;
}
.sl-q {
  font-family: 'Cormorant Garamond', serif;
  font-size: 23px; font-weight: 500; font-style: italic;
  line-height: 1.32; color: var(--dark);
  margin-bottom: 14px;
}
.sl-a {
  font-size: 14.5px; line-height: 1.78;
  color: var(--accent);
}
.sl-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px;
}
.sl-tag {
  font-size: 11px; font-weight: 500;
  color: var(--mid);
  background: var(--light);
  border: 1px solid var(--cream);
  padding: 5px 12px; border-radius: var(--radius-pill);
}

/* ── VENUE DETAIL (Are they Wrthy?) ── */
#screen-venue { background: var(--white); }
.venue-actions {
  display: flex; align-items: stretch; gap: 6px;
  padding: 16px 16px 4px;
}
.venue-act {
  flex: 1; flex-direction: column; gap: 5px;
  justify-content: center; text-align: center;
  padding: 11px 4px; border-radius: var(--radius-md);
  background: var(--light); border: 0.5px solid rgba(58, 47, 30, 0.08);
  text-decoration: none; color: var(--accent); font-size: 11.5px;
}
.venue-act:active { background: rgba(58, 47, 30, 0.08); }
/* Save, Book & Share stand free of the card background (like the header icons). */
.venue-act.venue-save, .venue-act.venue-share, .venue-act.venue-book {
  background: transparent;
  border-color: transparent;
}
.venue-act.venue-save:active, .venue-act.venue-share:active, .venue-act.venue-book:active {
  background: rgba(58, 47, 30, 0.06);
  color: var(--gold);
}
.venue-save.saved { color: var(--gold); }
.venue-save.saved svg { fill: currentColor; }

/* Icon-only venue actions: square profile-style tiles, with leaderboard motion. */
.venue-actions {
  gap: 0; padding: 0;
  background: linear-gradient(var(--white), var(--light));
  border-bottom: 0.5px solid rgba(58, 47, 30, 0.12);
  box-shadow: 0 1px 3px rgba(58, 47, 30, 0.07);
}
.venue-actions .venue-act {
  flex: 1 1 0; min-width: 0; height: 60px;
  padding: 0; border-radius: 0; border: none;
  border-right: 0.5px solid rgba(58, 47, 30, 0.1);
  background: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.15s ease, opacity 0.15s ease;
}
.venue-actions .venue-act:last-child { border-right: none; }
.venue-actions .venue-act svg { width: 19px; height: 19px; }
.venue-actions .rfc-act-text { display: none; }
.venue-actions .venue-act:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) {
  .venue-actions .venue-act:hover {
    transform: translateY(-3px);
    background: var(--light);
    box-shadow: 0 10px 24px rgba(58, 47, 30, 0.14);
  }
}
.venue-actions .venue-act:active { transform: scale(0.97); opacity: 0.88; background: var(--cream); }
@media (prefers-reduced-motion: reduce) {
  .venue-actions .venue-act { transition: none; }
  .venue-actions .venue-act:hover, .venue-actions .venue-act:active { transform: none; }
}

.venue-content { padding: 18px 22px 8px; }
.venue-block { padding: 18px 0; border-bottom: 1px solid var(--cream); }
.venue-block:last-child { border-bottom: none; }
.venue-block-title {
  font-size: 10px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mid); margin-bottom: 14px;
}
.venue-rating { display: flex; align-items: center; gap: 14px; }
.venue-score-circle {
  width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  /* Score digits fill ~70% of the circle's height. */
  font-family: 'Cormorant Garamond', serif; font-size: 40px; font-weight: 600;
  line-height: 1; letter-spacing: -0.02em;
  background: var(--light); color: var(--mid);
  border: 1px solid var(--cream);
}
.venue-rating-empty .venue-score-circle { color: rgba(122, 98, 72, 0.5); }
.venue-rating-label {
  font-family: 'Cormorant Garamond', serif; font-size: 19px;
  font-weight: 500; color: var(--dark);
}
.venue-rating-sub { font-size: 12.5px; color: var(--mid); margin-top: 3px; }
/* Primary "Write a review" CTA on the venue (Are they WRTHY?) page — replaces
   the floating Write-with-AI button here; AI is offered on the review form. */
.venue-write-review {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 16px;
  padding: 13px 18px;
  border: none; border-radius: var(--radius-pill);
  background: var(--dark); color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 600; letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(59, 47, 30, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.venue-write-review:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(59, 47, 30, 0.28); }
.venue-write-review:active { transform: translateY(0); }
.venue-write-review svg { display: block; flex-shrink: 0; }

.venue-photo-grid {
  display: flex; gap: 8px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.venue-photo-grid::-webkit-scrollbar { display: none; }
.venue-photo {
  flex: 0 0 auto;
  width: 132px; height: 132px;
  border-radius: var(--radius-md);
  background-size: cover; background-position: center;
  background-color: var(--light);
  cursor: zoom-in;
}
.venue-photos-empty {
  font-size: 13px; line-height: 1.6; color: var(--mid);
  background: var(--light); border: 1px dashed rgba(58, 47, 30, 0.18);
  border-radius: var(--radius-md); padding: 22px 18px; text-align: center;
}

/* ── EDIT PROFILE MODAL ── */
.ep-backdrop {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(20, 12, 4, 0.55);
  display: none; align-items: center; justify-content: center;
  padding: 22px;
}
.ep-backdrop.show { display: flex; }
.ep-card {
  width: 100%; max-width: 380px;
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 20px 18px 18px;
  box-shadow: 0 18px 50px rgba(20, 12, 4, 0.35);
  max-height: 90vh; overflow-y: auto;
}
.ep-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ep-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500; color: var(--dark); }

/* ── Map view modal ── */
.map-backdrop {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(20, 12, 4, 0.55);
  display: none; align-items: center; justify-content: center;
  padding: 22px;
}
.map-backdrop.show { display: flex; }
.map-card {
  width: 100%; max-width: 420px;
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 18px 16px 14px;
  box-shadow: 0 18px 50px rgba(20, 12, 4, 0.35);
  max-height: 90vh; overflow-y: auto;
}
.map-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.map-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500; color: var(--dark); }
.map-body { position: relative; }
.map-status { font-size: 12px; color: var(--mid); margin-bottom: 8px; }
.map-frame {
  width: 100%; height: 260px; border: 0;
  border-radius: var(--radius-md);
  background: var(--cream);
  display: block;
}
.map-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.map-list-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.map-list-name { font-size: 13px; font-weight: 500; color: var(--dark); }
.map-list-cat { font-size: 11px; color: var(--mid); margin-top: 1px; }
.map-list-dist { font-size: 12px; font-weight: 500; color: var(--tan); white-space: nowrap; }
.map-list-row { cursor: pointer; padding: 4px 0; }
.map-popup-link { color: var(--tan); font-weight: 600; font-size: 12px; text-decoration: none; }
#map-canvas { z-index: 0; }
#map-canvas .leaflet-container { border-radius: var(--radius-md); }
#places-canvas { z-index: 0; }
#places-canvas .leaflet-container { border-radius: var(--radius-md); }
.places-dir-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--white);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.15s;
}
.places-dir-btn:hover { background: var(--dark); }
.places-dir-btn svg { flex-shrink: 0; }

/* "See all on the map" — floating pill button (matches the Write-with-AI FAB),
   pinned toward the bottom of a city's venue list so it stays reachable. */
.city-map-fab {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  z-index: 115;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--dark);
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(59, 47, 30, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.city-map-fab:hover { transform: translateX(-50%) translateY(-1px); box-shadow: 0 10px 26px rgba(59, 47, 30, 0.38); }
.city-map-fab:active { transform: translateX(-50%) translateY(0); }
.city-map-fab-ic { display: inline-flex; color: var(--tan); }
.city-map-fab-ic svg { display: block; }
.city-map-fab-text { line-height: 1; }
/* Let the last venue scroll clear of the floating button. */
.sr-city-list { padding-bottom: 96px; }
.ep-close { background: none; border: none; font-size: 26px; line-height: 1; color: var(--tan); cursor: pointer; padding: 0 4px; }
.ep-photo-row { display: flex; align-items: center; gap: 14px; margin: 4px 0 6px; }
.ep-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: rgba(140, 120, 90, 0.18); color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 500;
  overflow: hidden;
}
.ep-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-photo-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ep-photo-btn {
  background: rgba(140, 120, 90, 0.14); color: var(--dark);
  border: none; border-radius: var(--radius-pill);
  padding: 8px 16px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.ep-photo-remove {
  background: none; border: none; color: var(--tan);
  font-size: 12px; cursor: pointer; padding: 2px 4px; font-family: inherit;
}
.ep-photo-remove[hidden] { display: none; }
.ep-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tan); margin: 12px 0 5px; }
.ep-input {
  width: 100%; box-sizing: border-box;
  border: 1px solid rgba(140, 120, 90, 0.3);
  border-radius: var(--radius-md, 10px);
  background: var(--white);
  padding: 11px 12px; font-size: 14px; color: var(--dark);
  font-family: inherit;
}
.ep-input:focus { outline: none; border-color: var(--tan); }
.ep-textarea { resize: vertical; min-height: 64px; }
.ep-actions { display: flex; gap: 10px; margin-top: 20px; }
.ep-btn { flex: 1; padding: 12px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; cursor: pointer; border: none; }
.ep-btn-secondary { background: rgba(140, 120, 90, 0.14); color: var(--dark); }
.ep-btn-primary { background: var(--dark); color: var(--white); }
.ep-btn-primary:disabled { opacity: 0.55; cursor: default; }

/* ── WORTHY BADGES ── */
.worthy-badge { display: inline-block; font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: var(--radius-pill); }
.badge-sm     { font-size: 10px; padding: 2px 8px; }
.badge-certified { background: var(--tier-certified-bg); color: var(--tier-certified); }
.badge-highly    { background: var(--tier-highly-bg);    color: var(--tier-highly); }
.badge-worthy    { background: var(--tier-worthy-bg);    color: var(--tier-worthy); }
.badge-try       { background: var(--tier-try-bg);       color: var(--tier-try); }
.badge-unworthy  { background: var(--tier-unworthy-bg);  color: var(--tier-unworthy); }

.score-certified { color: var(--tier-certified); font-size: 11px; font-weight: 500; }
.score-highly    { color: var(--tier-highly); font-size: 11px; font-weight: 500; }
.score-worthy    { color: var(--tier-worthy); font-size: 11px; font-weight: 500; }
.score-try       { color: var(--tier-try); font-size: 11px; font-weight: 500; }
.score-unworthy  { color: var(--tier-unworthy); font-size: 11px; font-weight: 500; }
/* The venue-page score circle keeps its large digits even when a band class
   (which sets 11px for list rows) is also applied. */
.venue-score-circle.score-certified,
.venue-score-circle.score-highly,
.venue-score-circle.score-worthy,
.venue-score-circle.score-try,
.venue-score-circle.score-unworthy { font-size: 40px; font-weight: 600; }

/* ── AVATARS ── */
.avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; flex-shrink: 0; }
.avatar-teal   { background: var(--teal-bg);   color: var(--teal-dark); }
.avatar-purple { background: var(--purple-bg); color: var(--purple-dark); }
.avatar-blue   { background: var(--blue-bg);   color: var(--blue-dark); }
.avatar-coral  { background: var(--coral-bg);  color: var(--coral-dark); }
.avatar-amber  { background: var(--amber-bg);  color: var(--amber-dark); }
.avatar-tan    { background: var(--tan);        color: var(--dark); }
.avatar-mid    { background: #A09080;           color: var(--dark); }
.avatar-gold   { background: var(--tan); border: 2px solid var(--gold); color: var(--dark); }

/* ── FEED CARDS ── */
.friend-feed { padding: 0 20px; display: flex; flex-direction: column; gap: 12px; }
.feed-card { background: var(--white); border: 0.5px solid rgba(58, 47, 30, 0.1); border-radius: var(--radius-lg); overflow: hidden; }
.feed-header  { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; }
.feed-user    { font-size: 13px; font-weight: 500; color: var(--dark); }
.feed-time    { font-size: 11px; color: var(--mid); }
.feed-venue-img { height: 120px; position: relative; display: flex; align-items: flex-end; background-size: cover; background-position: center; }
.feed-img-food    { background-image: url('/photos/brunch.jpg'); }
.feed-img-lodging { background-image: url('/photos/lodging.jpg'); }
.feed-img-travel  { background-image: url('/photos/travel.jpg'); }
.feed-img-rec     { background-image: url('/photos/recreation.jpg'); }
.feed-venue-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 12, 4, 0.82) 0%, rgba(20, 12, 4, 0.1) 60%); }
.feed-venue-info { position: relative; padding: 0 14px 10px; z-index: 1; }
.feed-venue-name { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 500; color: var(--white); }
.feed-venue-loc  { font-size: 11px; color: rgba(237, 228, 214, 0.75); }
.feed-footer  { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; }
.feed-actions { display: flex; gap: 6px; }
.feed-action-btn { cursor: pointer; color: var(--mid); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; transition: background 0.15s, color 0.15s; }
.feed-action-btn:hover { background: var(--light); color: var(--dark); }

/* ── PROFILE AVATAR UPLOAD ── */
.profile-avatar-wrap {
  position: relative;
  cursor: pointer;
  display: inline-block;
}
.profile-avatar-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}
.profile-avatar-wrap:hover .profile-avatar-overlay,
.profile-avatar-wrap:active .profile-avatar-overlay { opacity: 1; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ── AVATAR PHOTO VARIANT ── */
.avatar.avatar-photo { padding: 0; overflow: hidden; }
.avatar.avatar-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ── FEED CARD VENUE + FOOTER ── */
.rfc-venue-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.rfc-venue {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mid);
  min-width: 0;
}
.rfc-venue-row .rfc-loc {
  flex-shrink: 0;
}
.rfc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

/* ── REVIEW CARD PHOTO ── */
.rfc-photo {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 10px 0 6px;
  max-height: 200px;
}
.rfc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── BADGE EXTRA TIERS ── */
.badge-try { background: var(--tier-try-bg); color: var(--tier-try); }
.badge-not { background: var(--tier-unworthy-bg); color: var(--tier-unworthy); }

/* ── PROFILE EMPTY STATE ── */
.profile-empty {
  padding: 40px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--mid);
  line-height: 1.7;
}
.profile-empty-link {
  color: var(--accent);
  cursor: pointer;
  font-weight: 500;
}

/* ── PROFILE REVIEW SCORE CHIP ── */
.review-score-chip {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-left: 6px;
}

/* ── REVIEW THUMB WITH PHOTO ── */
.review-thumb.review-thumb-photo {
  overflow: hidden;
  flex-shrink: 0;
}
.review-thumb.review-thumb-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ── PHOTO UPLOAD GRID (review form) ── */
.rf-label-soft {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 10px;
  color: rgba(122, 98, 72, 0.55);
  margin-left: 4px;
}
.rf-photo-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.rf-photo-grid::-webkit-scrollbar { display: none; }
.rf-photo-slot {
  position: relative;
  flex: 0 0 auto;
  width: 96px; height: 96px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream);
  touch-action: none;
  cursor: grab;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
}
.rf-photo-slot img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
.rf-photo-dragging {
  opacity: 1;
  transform: scale(1.08);
  cursor: grabbing;
  box-shadow: 0 8px 22px rgba(58, 47, 30, 0.4);
  z-index: 3;
}
.rf-photo-drag {
  position: absolute;
  bottom: 4px; left: 4px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 5px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 1px;
  pointer-events: none;
}
.rf-photo-remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  line-height: 1;
  padding: 0;
}
.rf-photo-add-btn {
  flex: 0 0 auto;
  width: 96px; height: 96px;
  border-radius: var(--radius-md);
  border: 1.5px dashed rgba(58, 47, 30, 0.2);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  color: var(--mid);
  font-size: 11px;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.rf-photo-add-btn:hover { border-color: var(--mid); background: var(--light); }
.rf-photo-add-btn svg { opacity: 0.5; }

/* ── MULTI-PHOTO on feed cards ── */
.rfc-photos-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 10px 0 6px;
  padding-bottom: 2px;
}
.rfc-photos-grid::-webkit-scrollbar { display: none; }
.rfc-photo-cell {
  position: relative;
  flex: 0 0 auto;
  width: 132px; height: 132px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.rfc-photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rfc-photo-more {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 600;
}

/* ── WRITE REVIEW BUTTON ── */
.write-review-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--dark);
  color: var(--cream);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.write-review-btn:hover { background: var(--accent); }

/* ── REVIEW FEED CARDS ── */
.review-feed {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}
.rfc {
  background: var(--white);
  border: 0.5px solid rgba(58, 47, 30, 0.1);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}
.rfc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}
.rfc-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}
.rfc-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rfc-name { font-size: 13px; font-weight: 500; color: var(--dark); }
.rfc-date { font-size: 11px; color: var(--mid); margin-top: 1px; }
.rfc-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}
.rfc-tag-food    { color: #FFFFFF; background: #2E3B12; }
.rfc-tag-travel  { color: #FFFFFF; background: #011F37; }
.rfc-tag-lodging { color: #FFFFFF; background: #502002; }
.rfc-tag-rec     { color: #FFFFFF; background: #74481A; }

.rfc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}
.rfc-rating { display: flex; align-items: center; gap: 6px; }
.rfc-rating .review-score-chip { margin-left: 0; }
.rfc-text {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.55;
  margin-bottom: 10px;
}
.rfc-more {
  color: #5d4b3a;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.rfc-more:hover {
  text-decoration: underline;
}
.rfc-loc {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--mid);
}
.rfc-loc svg { flex-shrink: 0; }
.rfc-loc-btn {
  border: 0.5px solid rgba(58, 47, 30, 0.16);
  background: var(--cream);
  border-radius: 999px;
  padding: 3px 9px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.rfc-loc-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.rfc-loc-btn:hover svg { color: var(--white); }

/* ── NEARBY SCROLL ── */
.wrthy-strip { display: flex; gap: 12px; padding: 4px 20px 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wrthy-strip::-webkit-scrollbar { display: none; }
.wrthy-card { min-width: 172px; width: 172px; border-radius: var(--radius-md); overflow: hidden; background: var(--cream); flex-shrink: 0; cursor: pointer; text-decoration: none; border: 0.5px solid rgba(58, 47, 30, 0.08); transition: transform .18s ease, box-shadow .18s ease; }
.wrthy-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(58, 47, 30, 0.18); }
.wrthy-card:active { transform: translateY(-1px); }
.wrthy-card-img { height: 152px; background-size: cover; background-position: center; transition: transform .25s ease; }
.wrthy-card:hover .wrthy-card-img { transform: scale(1.06); }
.wrthy-card-body { padding: 9px 11px 11px; }
.wrthy-card-name { font-size: 13px; font-weight: 600; color: var(--dark); line-height: 1.25; }
.wrthy-card-loc { font-size: 11px; color: var(--mid); margin-top: 2px; }

.nearby-scroll { display: flex; gap: 12px; padding: 4px 20px 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nearby-scroll::-webkit-scrollbar { display: none; }
/* Suggested rail: size each card to its own content so shorter cards don't get
   stretched (which left blank space under the city on single-line names). */
#suggested-scroll { align-items: flex-start; }
.nearby-card { min-width: 108px; width: 108px; border-radius: var(--radius-md); overflow: hidden; background: var(--cream); flex-shrink: 0; cursor: pointer; border: 0.5px solid rgba(58, 47, 30, 0.08); transition: transform .18s ease, box-shadow .18s ease; }
.nearby-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(58, 47, 30, 0.18); }
.nearby-card:active { transform: translateY(-1px); }
.nearby-img { height: 72px; background-size: cover; background-position: center; transition: transform .25s ease; }
.nearby-card:hover .nearby-img { transform: scale(1.08); }
.nearby-img-food    { background-image: url('/photos/food.jpg'); }
.nearby-img-lodging { background-image: url('/photos/lodging.jpg'); }
.nearby-img-travel  { background-image: url('/photos/travel.jpg'); }
.nearby-img-rec     { background-image: url('/photos/recreation.jpg'); }
.nearby-body  { padding: 8px 10px; }
.nearby-name  { font-size: 12px; font-weight: 500; color: var(--dark); }
.nearby-cat   { font-size: 10px; color: var(--mid); margin-top: 1px; }
.nearby-score { font-size: 10px; font-weight: 500; margin-top: 4px; }
.nearby-more { background: var(--light); border: 1px dashed var(--tan); }
.nearby-more-inner { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 16px 10px; text-align: center; }
.nearby-more-icon { color: var(--accent); display: flex; }
.nearby-more-label { font-size: 12px; font-weight: 600; color: var(--dark); }
.nearby-more-sub { font-size: 10px; color: var(--mid); }

/* ── LISTS ── */
.new-list-btn {
  margin: 0 20px 14px;
  padding: 13px;
  border: 1.5px dashed var(--tan);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer;
  color: var(--mid); font-size: 13px;
  transition: background 0.15s;
}
.new-list-btn:hover { background: var(--light); }

.lists-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 20px; }
.list-card { border-radius: var(--radius-md); overflow: hidden; border: 0.5px solid rgba(58, 47, 30, 0.1); cursor: pointer; background: var(--white); transition: transform 0.15s; }
.list-card:active { transform: scale(0.97); }
.list-cover { height: 88px; background-size: cover; background-position: center; }
.list-cover-food      { background-image: url('/photos/brunch.jpg'); }
.list-cover-lodging   { background-image: url('/photos/lodging.jpg'); }
.list-cover-drinks    { background-image: url('/photos/drinks.jpg'); }
.list-cover-travel    { background-image: url('/photos/travel.jpg'); }
.list-cover-rec       { background-image: url('/photos/recreation.jpg'); }
.list-cover-night     { background-image: url('/photos/night.jpg'); }
.list-cover-atlanta   { background-image: url('/photos/atlanta.jpg'); }
.list-cover-nyc       { background-image: url('/photos/nyc.jpg'); }
.list-cover-la        { background-image: url('/photos/la.jpg'); }
.list-cover-chicago   { background-image: url('/photos/chicago.jpg'); }
.list-cover-nola      { background-image: url('/photos/nola.jpg'); }

.list-body  { padding: 9px 11px; }
.list-name  { font-size: 13px; font-weight: 500; color: var(--dark); }
.list-count { font-size: 11px; color: var(--mid); margin-top: 2px; }

.saved-list { padding: 0 20px 8px; display: flex; flex-direction: column; gap: 10px; }
.saved-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md); border: 0.5px solid rgba(58, 47, 30, 0.1); background: var(--white); cursor: pointer; }
.saved-thumb { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.saved-thumb-teal   { background: var(--teal-bg); }
.saved-thumb-purple { background: var(--purple-bg); }
.saved-name { font-size: 13px; font-weight: 500; color: var(--dark); }
.saved-meta { font-size: 11px; color: var(--mid); margin-top: 2px; }

/* ── EXPLORE ── */
.search-bar { margin: 14px 20px 10px; background: var(--cream); border: 0.5px solid rgba(58, 47, 30, 0.12); border-radius: var(--radius-md); display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.search-icon  { color: var(--mid); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.search-input { border: none; background: none; outline: none; font-size: 14px; color: var(--dark); width: 100%; }
.search-input::placeholder { color: var(--mid); }

.filter-pills { display: flex; gap: 8px; padding: 0 20px 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.filter-pills::-webkit-scrollbar { display: none; }
.pill { padding: 6px 14px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 500; border: 0.5px solid rgba(58, 47, 30, 0.18); color: var(--mid); white-space: nowrap; cursor: pointer; background: var(--white); transition: all 0.15s; flex-shrink: 0; }
.pill.active { background: var(--dark); color: var(--cream); border-color: var(--dark); }

.explore-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 20px; margin-bottom: 16px; }
.explore-card { border-radius: var(--radius-md); overflow: hidden; border: 0.5px solid rgba(58, 47, 30, 0.1); cursor: pointer; background: var(--white); }
.explore-img { height: 100px; position: relative; display: flex; align-items: flex-end; background-size: cover; background-position: center; }
.explore-img-food    { background-image: url('/photos/food.jpg'); }
.explore-img-lodging { background-image: url('/photos/lodging.jpg'); }
.explore-img-drinks  { background-image: url('/photos/drinks.jpg'); }
.explore-img-rec     { background-image: url('/photos/rooftop.jpg'); }
.explore-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 12, 4, 0.78) 0%, transparent 55%); }
.explore-info { position: relative; padding: 0 10px 8px; z-index: 1; }
.explore-name { font-size: 13px; font-weight: 500; color: var(--white); }
.explore-loc  { font-size: 10px; color: rgba(237, 228, 214, 0.75); }
.explore-footer { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; }
.explore-score { font-size: 11px; font-weight: 500; }
.explore-site { font-size: 11px; font-weight: 600; color: var(--accent); text-decoration-color: rgba(92, 74, 50, 0.4); }
.explore-site:hover { text-decoration-color: currentColor; }
/* Freestanding icons, matching the home-feed review card actions (.rfc-act):
   no border, no fill — they just change color on press / saved state. */
.explore-book { display: inline-flex; align-items: center; justify-content: center; color: rgba(58, 47, 30, 0.62); background: none; padding: 5px 7px; border-radius: 8px; cursor: pointer; border: none; transition: color 0.15s; }
.explore-book:hover { color: var(--dark); }
.explore-book:active { color: var(--gold); }
.explore-acts { display: flex; align-items: center; gap: 6px; }
.explore-act { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border-radius: 8px; border: none; background: none; color: rgba(58, 47, 30, 0.62); cursor: pointer; transition: color 0.15s; }
.explore-act:hover { color: var(--dark); }
.explore-act:active { color: var(--gold); }
.explore-act svg { width: 15px; height: 15px; }
.explore-act.venue-save.saved { color: var(--gold); }
.explore-act.venue-save.saved svg { fill: currentColor; }

.city-list { display: flex; flex-direction: column; gap: 8px; padding: 0 20px 16px; }
.city-chip { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 0.5px solid rgba(58, 47, 30, 0.14); background: var(--white); cursor: pointer; transition: background 0.15s, box-shadow 0.15s; }
.city-chip:hover { background: var(--cream); box-shadow: 0 1px 4px rgba(58, 47, 30, 0.08); }
.city-chip-name { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--dark); }
.city-chip-name svg { color: var(--tan); }
.city-chip-count { font-size: 12px; font-weight: 500; color: var(--mid); background: var(--cream); padding: 3px 10px; border-radius: 10px; }
.city-empty { padding: 24px 20px; text-align: center; font-size: 13px; color: var(--mid); }

.booking-section { padding: 0 20px 16px; }
.booking-title { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 500; color: var(--dark); margin-bottom: 10px; }
.booking-links { display: flex; gap: 8px; flex-wrap: wrap; }
.booking-link { padding: 10px 14px; height: 44px; border-radius: var(--radius-sm); border: 0.5px solid rgba(58, 47, 30, 0.18); cursor: pointer; display: flex; align-items: center; justify-content: center; background: var(--white); transition: background 0.15s, box-shadow 0.15s; }
.booking-link:hover { background: var(--cream); box-shadow: 0 1px 4px rgba(58, 47, 30, 0.1); }
.booking-logo { height: 18px; width: auto; max-width: 110px; object-fit: contain; display: block; }
.booking-logo-tall { height: 30px; }

/* ── PROFILE ── */
.profile-hero {
  background: var(--dark);
  padding: 16px 20px 0;
  flex-shrink: 0;
}
.profile-top-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--tan); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 500; color: var(--dark); border: 3px solid rgba(201, 185, 154, 0.3); }
.profile-edit-btn { background: rgba(201, 185, 154, 0.12); border: 0.5px solid rgba(201, 185, 154, 0.4); color: var(--tan); font-size: 12px; padding: 7px 14px; border-radius: var(--radius-pill); cursor: pointer; }
.profile-top-actions { display: flex; align-items: center; gap: 8px; }
.profile-invite-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--tan); border: 0.5px solid var(--tan); color: var(--dark); font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: var(--radius-pill); cursor: pointer; font-family: inherit; }
.profile-email-invite-btn { background: transparent; border: 0.5px solid rgba(201,185,154,.55); color: var(--tan); font: 600 12px inherit; padding: 7px 12px; border-radius: var(--radius-pill); cursor: pointer; }
.profile-invite-btn:active { opacity: 0.85; }
.profile-invite-btn svg { flex-shrink: 0; }
.app-toast { position: fixed; left: 50%; bottom: 90px; background: var(--dark); color: var(--white); font-size: 13px; font-weight: 500; padding: 11px 18px; border-radius: var(--radius-pill); box-shadow: 0 8px 24px rgba(0,0,0,0.28); opacity: 0; pointer-events: none; transition: opacity 0.22s ease, transform 0.22s ease; z-index: 1000; max-width: 86%; text-align: center; transform: translate(-50%, 12px); }
.app-toast.show { opacity: 1; transform: translate(-50%, 0); }

.copy-fallback { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(59,47,30,0.45); }
.copy-fallback-card { width: 100%; max-width: 320px; background: var(--cream); border-radius: var(--radius-lg); padding: 20px; box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.copy-fallback-title { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 12px; text-align: center; }
.copy-fallback-input { width: 100%; box-sizing: border-box; font-size: 13px; color: var(--dark); background: #fff; border: 1px solid var(--tan); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.copy-fallback-actions { display: flex; gap: 10px; }
.copy-fallback-actions button { flex: 1; font-size: 13px; font-weight: 600; padding: 10px 0; border-radius: var(--radius-pill); border: none; cursor: pointer; }
.copy-fallback-copy { background: var(--dark); color: var(--white); }
.copy-fallback-close { background: var(--tan); color: var(--dark); }
.email-invite-overlay { position: fixed; inset: 0; z-index: 1100; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(59,47,30,.58); }
.email-invite-overlay.show { display: flex; }
.email-invite-card { position: relative; width: 100%; max-width: 360px; box-sizing: border-box; background: var(--cream); border-radius: var(--radius-lg); padding: 26px 22px 22px; box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.email-invite-close { position: absolute; top: 10px; right: 13px; border: 0; background: transparent; color: var(--dark); font-size: 25px; cursor: pointer; }
.email-invite-kicker { color: var(--mid); font-size: 10px; font-weight: 700; letter-spacing: 1.8px; }
.email-invite-card h2 { margin: 8px 0; color: var(--dark); font: 500 25px/1.1 'Cormorant Garamond', serif; }
.email-invite-card p { margin: 0 0 18px; color: var(--mid); font-size: 13px; line-height: 1.5; }
.email-invite-card label { display: block; margin-bottom: 7px; color: var(--dark); font-size: 12px; font-weight: 600; }
.email-invite-card textarea { width: 100%; box-sizing: border-box; resize: vertical; border: 1px solid rgba(58,47,30,.25); border-radius: 10px; background: #fff; color: var(--dark); font: 14px/1.45 inherit; padding: 11px 12px; }
.email-invite-card textarea:focus { outline: 2px solid var(--tan); border-color: transparent; }
.email-invite-error { min-height: 18px; margin: 7px 0; color: #9f3f32; font-size: 12px; line-height: 1.35; }
.email-invite-send { width: 100%; border: 0; border-radius: var(--radius-pill); background: var(--dark); color: var(--white); padding: 12px; font: 700 13px inherit; cursor: pointer; }
.email-invite-send:disabled { opacity: .55; cursor: wait; }
@media (max-width: 390px) { .profile-top-actions { flex-direction: column; align-items: stretch; gap: 5px; } }
.profile-name   { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500; color: var(--white); }
.profile-handle { font-size: 12px; color: rgba(201, 185, 154, 0.5); margin-top: 2px; }
.profile-bio    { font-size: 12px; color: rgba(237, 228, 214, 0.7); margin-top: 8px; line-height: 1.55; }
.invite-joined  { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.invite-joined-avatars { display: flex; }
.invite-joined-avatar {
  width: 24px; height: 24px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid #0c3b32; margin-left: -7px; background: #1a5446;
}
.invite-joined-avatar:first-child { margin-left: 0; }
.invite-joined-initials {
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: #ede4d6; letter-spacing: .02em;
}
.invite-joined-label { font-size: 11px; color: rgba(237, 228, 214, 0.78); font-weight: 500; }
.profile-stats  { display: flex; border-top: 0.5px solid rgba(201, 185, 154, 0.12); margin-top: 16px; }
.stat { flex: 1; padding: 12px 0; text-align: center; border-right: 0.5px solid rgba(201, 185, 154, 0.12); }
.stat:last-child { border-right: none; }
.stat-num   { font-size: 18px; font-weight: 500; color: var(--tan); }
.stat-label { font-size: 10px; color: rgba(201, 185, 154, 0.4); margin-top: 1px; letter-spacing: 0.05em; }

/* Profile section launchers: WRTH a Try / My City Guides / WRTHY Moments.
   Echoes the stats row above (slim, centered, hairline-divided) but with a
   soft gradient + shadow and a chevron so they read as tappable. */
.profile-tabs {
  display: flex;
  background: linear-gradient(var(--white), var(--light));
  border-bottom: 0.5px solid rgba(58, 47, 30, 0.12);
  box-shadow: 0 1px 3px rgba(58, 47, 30, 0.07);
  flex-shrink: 0;
}
.ptab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 60px;
  box-sizing: border-box;
  padding: 0 4px;
  border-right: 0.5px solid rgba(58, 47, 30, 0.1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.15s ease, opacity 0.15s ease;
}
.ptab:last-child { border-right: none; }
@media (hover: hover) and (pointer: fine) {
  .ptab:hover {
    transform: translateY(-3px);
    background: var(--light);
    box-shadow: 0 10px 24px rgba(58, 47, 30, 0.14);
  }
}
.ptab:active { transform: scale(0.97); opacity: 0.88; background: var(--cream); }
@media (prefers-reduced-motion: reduce) {
  .ptab { transition: none; }
  .ptab:hover, .ptab:active { transform: none; }
}
.ptab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ptab-label { font-size: 11.5px; font-weight: 600; color: var(--dark); text-align: center; line-height: 1.2; }
.ptab-chev { color: var(--mid); flex-shrink: 0; }
.ptab.active { background: var(--cream); }

.profile-section-title {
  padding: 16px 20px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.01em;
}

.profile-tab-content { display: none; }
.profile-tab-content.active { display: block; }

.review-list { padding: 12px 20px; display: flex; flex-direction: column; gap: 0; }
.review-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 0.5px solid rgba(58, 47, 30, 0.08); }
.review-item:last-child { border-bottom: none; }
.review-thumb { width: 54px; height: 54px; border-radius: var(--radius-sm); flex-shrink: 0; background-size: cover; background-position: center; }
.review-thumb-teal   { background-image: url('/photos/food.jpg'); }
.review-thumb-purple { background-image: url('/photos/lodging.jpg'); }
.review-thumb-coral  { background-image: url('/photos/rooftop.jpg'); }
.review-body  { flex: 1; }
.review-venue { font-size: 13px; font-weight: 500; color: var(--dark); }
.review-cat   { font-size: 11px; color: var(--mid); margin-top: 1px; }
.review-badge-wrap { margin-top: 5px; }
.review-text  { font-size: 12px; color: var(--mid); margin-top: 5px; line-height: 1.5; }
.review-actions { display: flex; gap: 8px; margin-top: 9px; }
.review-action-btn {
  border: 1px solid #e3ded7;
  background: transparent;
  color: var(--teal-dark);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity .15s ease;
}
.review-action-btn:active { opacity: .7; }
.review-action-delete { color: #b23b2e; border-color: #ecc8c2; }

/* ── PROFILE BADGE ICONS (in hero, near bio) ── */
.profile-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.pbadge {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #111111;
  color: #FFFFFF;
  flex-shrink: 0;
}
.pbadge svg { width: 19px; height: 19px; }
.pbadge-locked { opacity: 0.32; }

/* ── FOLLOWING GRID ── */
.follow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 8px;
  padding: 6px 16px 8px;
}
.follow-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; cursor: pointer; text-align: center;
  transition: opacity 0.15s ease;
}
.follow-card:active { opacity: 0.6; }
.follow-card-avatar {
  width: 74px; height: 74px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 500;
}
.follow-card-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.follow-card-name {
  font-size: 12px; font-weight: 600; color: var(--dark); line-height: 1.25;
}
.follow-empty {
  grid-column: 1 / -1; text-align: center;
  color: var(--mid); font-size: 13px; padding: 36px 20px;
}

/* ── HOME SEARCH ── */
.home-search {
  flex-shrink: 0; padding: 12px 16px 8px;
  background: var(--cream); border-bottom: 0.5px solid rgba(58, 47, 30, 0.08);
}
.home-search .search-bar { margin: 0; }
.search-clear {
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--mid); padding: 0; flex-shrink: 0;
}

.search-results { padding: 8px 16px 16px; }
.sr-group-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--mid);
  padding: 14px 4px 6px;
}
.sr-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: var(--radius-md);
  cursor: pointer; transition: background 0.12s ease;
}
.sr-row:active { background: var(--white); }
.sr-icon {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--dark);
}
.sr-icon-venue { background: var(--gold); color: #FFFFFF; }
.sr-icon-city  { background: var(--dark); color: #FFFFFF; }
.sr-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--white);
}
.sr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sr-thumb {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
  overflow: hidden; background: var(--cream);
}
.sr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sr-body { flex: 1; min-width: 0; }
.sr-name { font-size: 14px; font-weight: 600; color: var(--dark); }
.sr-meta { font-size: 12px; color: var(--mid); margin-top: 2px; }
.sr-empty { text-align: center; color: var(--mid); font-size: 13px; padding: 40px 20px; }

/* ── FEED CARD ACTION BAR ── */
.rfc-actions {
  display: flex; align-items: center; gap: 1px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid rgba(58, 47, 30, 0.1);
}
.rfc-act {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 5px; background: none; border: none;
  border-radius: var(--radius-md); cursor: pointer;
  font-family: inherit; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  color: rgba(58, 47, 30, 0.62); transition: color 0.15s ease, background 0.15s ease;
}
.rfc-act:active { background: rgba(58, 47, 30, 0.06); }
.rfc-act svg { flex-shrink: 0; width: 15px; height: 15px; }
.rfc-act-count, .rfc-act-text { line-height: 1; }
.rfc-review-act { margin-left: auto; padding-right: 4px; }
.rfc-like.liked { color: #c0392b; }
.rfc-like.liked svg { fill: currentColor; }
.rfc-share-btn { color: #6F4C2F; }
.rfc-save { color: #6F4C2F; }
.rfc-save.saved { color: #6F4C2F; }
.rfc-save.saved svg { fill: currentColor; }

/* ── FEED CARD COMMENTS ── */
.rfc-comments { display: none; margin-top: 12px; }
.rfc-comments.open { display: block; }
.rfc-comment-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.rfc-comment {
  background: rgba(58, 47, 30, 0.04); border-radius: var(--radius-md);
  padding: 8px 11px; font-size: 13px; line-height: 1.45;
}
.rfc-comment-author { font-weight: 700; color: var(--dark); margin-right: 5px; }
.rfc-comment-text { color: rgba(58, 47, 30, 0.85); }
.rfc-comment-date { font-size: 11px; color: rgba(58, 47, 30, 0.45); margin-top: 3px; }
.rfc-comment-empty { font-size: 12.5px; color: rgba(58, 47, 30, 0.5); padding: 4px 2px; }
.rfc-comment-form { display: flex; gap: 8px; }
.rfc-comment-input {
  flex: 1; min-width: 0; padding: 9px 12px;
  background: var(--white); border: 1px solid rgba(58, 47, 30, 0.16);
  border-radius: var(--radius-pill); font-family: inherit; font-size: 13px; color: var(--dark);
}
.rfc-comment-input:focus { outline: none; border-color: rgba(184, 148, 31, 0.5); }
.rfc-comment-post {
  flex-shrink: 0; padding: 9px 16px; background: var(--dark); color: var(--white);
  border: none; border-radius: var(--radius-pill); cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600;
}
.rfc-comment-post:active { opacity: 0.85; }

/* ── "WRTH IT" SAVED LIST (profile tab) ── */
.wrthit-list { padding: 12px 16px; }
.wrthit-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: var(--radius-md);
  background: var(--white); border: 0.5px solid rgba(58, 47, 30, 0.1);
}
.wrthit-card + .wrthit-card { margin-top: 10px; }
.wrthit-thumb {
  width: 64px; height: 64px; border-radius: var(--radius-sm);
  overflow: hidden; flex-shrink: 0; background: var(--cream);
}
.wrthit-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wrthit-body { flex: 1; min-width: 0; }
.wrthit-venue { font-size: 14px; font-weight: 600; color: var(--dark); }
.wrthit-meta { font-size: 11px; color: var(--mid); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.4px; }
.wrthit-from { font-size: 12px; color: var(--mid); margin-top: 4px; }
.wrthit-remove {
  flex-shrink: 0; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--mid); border-radius: 50%;
}
.wrthit-remove:active { background: var(--cream); }

/* ── WRTHY GUIDE (curated, grouped by city) ── */
.guide-list { padding: 4px 0 12px; }
.guide-share-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 20px 4px;
}
.guide-share-summary {
  font-size: 11px; color: var(--mid);
  text-transform: uppercase; letter-spacing: 0.4px;
}
.guide-card-actions { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.guide-mini-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; border-radius: 8px;
  background: none; color: rgba(58, 47, 30, 0.62);
  border: none; cursor: pointer; transition: color 0.15s;
}
.guide-mini-btn svg { width: 15px; height: 15px; }
.guide-mini-btn:hover { color: var(--dark); }
.guide-mini-btn:active { color: var(--gold); }
.guide-mini-btn.saved { color: var(--gold); }
.guide-mini-btn.saved svg { fill: currentColor; }
.guide-city-group { margin-top: 8px; }
.guide-city-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px 4px;
}
.guide-city-name {
  font-size: 16px; font-weight: 700; color: var(--dark);
  letter-spacing: -0.2px;
}
.guide-city-right { display: flex; align-items: center; gap: 10px; }
.guide-city-count {
  font-size: 11px; color: var(--mid);
  text-transform: uppercase; letter-spacing: 0.4px;
}
.guide-city-share {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--accent); color: var(--white);
  border: none; cursor: pointer;
  font-size: 11px; font-weight: 600; font-family: inherit;
  transition: background 0.15s;
}
.guide-city-share:hover { background: var(--dark); }
.guide-city-share:active { opacity: 0.9; }
.guide-city-share svg { flex-shrink: 0; }
.rfc-act.rfc-guide.in-guide { color: var(--gold); }

/* ── CITY-GUIDE NOTES (guide-level + per-venue) ── */
.guide-note-block { padding: 2px 20px 6px; }
.venue-note-block { margin-top: 6px; }
.guide-note-text {
  font-size: 13px; line-height: 1.5; color: var(--dark);
  white-space: pre-wrap; margin: 0;
}
.venue-note-text {
  font-size: 12px; line-height: 1.45; color: var(--mid);
  white-space: pre-wrap; margin: 0;
}
.guide-note-edit-btn {
  margin-top: 4px; padding: 0;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 11px; font-weight: 600;
  color: var(--accent); letter-spacing: 0.2px;
}
.guide-note-edit-btn:hover { color: var(--dark); }
.guide-note-add, .venue-note-add {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-weight: 600; color: var(--accent);
  padding: 0; letter-spacing: 0.2px;
}
.guide-note-add { font-size: 13px; }
.venue-note-add { font-size: 12px; }
.guide-note-add:hover, .venue-note-add:hover { color: var(--dark); }
.note-editor { margin-top: 4px; }
.note-input {
  width: 100%; box-sizing: border-box;
  padding: 8px 10px; border-radius: var(--radius-sm);
  border: 0.5px solid rgba(58, 47, 30, 0.25);
  background: var(--white); color: var(--dark);
  font-family: inherit; font-size: 13px; line-height: 1.45;
  resize: vertical;
}
.note-input:focus { outline: none; border-color: var(--accent); }
.note-editor-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 6px;
}
.note-counter {
  font-size: 11px; color: var(--mid);
  text-transform: uppercase; letter-spacing: 0.4px;
}
.note-editor-btns { display: flex; align-items: center; gap: 6px; }
.note-btn {
  padding: 5px 12px; border-radius: 999px;
  background: none; border: 0.5px solid rgba(58, 47, 30, 0.25);
  color: var(--dark); cursor: pointer;
  font-family: inherit; font-size: 11px; font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.note-btn:hover { background: var(--cream); }
.note-btn-primary {
  background: var(--accent); border-color: var(--accent); color: var(--white);
}
.note-btn-primary:hover { background: var(--dark); }
.note-btn-danger { color: var(--accent); border-color: rgba(58, 47, 30, 0.25); }
.note-btn-danger:hover { background: var(--cream); color: var(--dark); }

/* ── VENUE IN-APP LINKS ── */
.venue-link {
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: rgba(58, 47, 30, 0.28);
}
.venue-link:active { text-decoration-color: currentColor; }

/* Tappable venue names inside spotlight tags / banners. */
.sl-tag-link {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.spotlight-name-link { cursor: pointer; }

/* ── VENUE COMMUNITY REVIEWS ── */
.venue-community-reviews {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.rfc-dims {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 10px 0 2px;
  padding: 10px 12px;
  background: var(--light);
  border-radius: var(--radius-md);
}
.rfc-dim {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rfc-dim-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--mid);
}
.rfc-dim-stars { line-height: 1; }
.rfc-dim-star {
  font-size: 12px;
  color: var(--cream);
}
.rfc-dim-star.filled { color: var(--gold); }

/* ── LEADERBOARD ── */
.lb-header { background: var(--dark); padding: 12px 20px 0; flex-shrink: 0; }
.lb-title { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 500; color: var(--white); padding-bottom: 14px; }
.lb-podium { background: var(--dark); padding: 4px 20px 24px; display: flex; align-items: flex-end; justify-content: center; gap: 10px; flex-shrink: 0; }
.podium-item { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.podium-first { margin-bottom: -4px; }
.podium-crown { display: flex; align-items: center; justify-content: center; }
.podium-avatar { border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; color: var(--dark); width: 48px; height: 48px; }
.podium-avatar.avatar-photo { padding: 0; overflow: hidden; }
.podium-avatar.avatar-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.podium-first .podium-avatar { width: 58px; height: 58px; font-size: 16px; }
.podium-name  { font-size: 11px; color: var(--cream); font-weight: 500; text-align: center; }
.podium-count { font-size: 10px; color: rgba(201, 185, 154, 0.5); }
.podium-bar-wrap { display: flex; justify-content: center; margin-top: 3px; }
.podium-bar { background: rgba(201, 185, 154, 0.15); border-radius: 4px 4px 0 0; width: 58px; display: flex; align-items: center; justify-content: center; }
.podium-bar-gold { background: rgba(184, 148, 31, 0.2); }
.podium-rank      { font-size: 18px; font-weight: 500; color: var(--tan); }
.rank-gold        { color: var(--gold); }

.lb-list { padding: 6px 20px; display: flex; flex-direction: column; gap: 8px; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-md); border: 0.5px solid rgba(58, 47, 30, 0.1); background: var(--white); }
.lb-row-gold { background: rgba(184, 148, 31, 0.05); border-color: rgba(184, 148, 31, 0.18); }
.lb-row-you  { border: 1.5px solid rgba(58, 47, 30, 0.25); }
.lb-rank      { font-size: 14px; font-weight: 500; color: var(--tan); min-width: 24px; text-align: center; }
.lb-rank-you  { color: var(--dark); }
.lb-avatar    { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; flex-shrink: 0; }
.lb-avatar.avatar-photo { padding: 0; overflow: hidden; }
.lb-avatar.avatar-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.lb-name      { font-size: 13px; font-weight: 500; color: var(--dark); }
.lb-reviews   { font-size: 11px; color: var(--mid); }
.lb-you-tag   { font-size: 10px; color: var(--tan); }
.lb-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 500; padding: 3px 9px; border-radius: var(--radius-pill); white-space: nowrap; }
.lb-badge svg { width: 11px; height: 11px; flex-shrink: 0; }
.badge-amber     { background: var(--amber-bg);  color: var(--amber-dark); }
.badge-teal-sm   { background: var(--teal-bg);   color: var(--teal-dark); }
.badge-purple-sm { background: var(--purple-bg); color: var(--purple-dark); }
.badge-coral-sm  { background: var(--coral-bg);  color: var(--coral-dark); }
.badge-blue-sm   { background: var(--blue-bg);   color: var(--blue-dark); }
.badge-rising    { background: var(--cream);      color: var(--accent); }
.badge-connector { background: var(--tier-certified-bg); color: var(--tier-certified); }

/* Leaderboard tier pills — warm WRTHY brand palette (no pastels) */
#screen-leaderboard .lb-badge.badge-purple-sm { background: #191919;       color: #FFFFFF; }
#screen-leaderboard .lb-badge.badge-blue-sm   { background: #42301F;       color: #F3E9DA; }
#screen-leaderboard .lb-badge.badge-amber     { background: #6F4C2F;       color: #F3E9DA; }
#screen-leaderboard .lb-badge.badge-coral-sm  { background: var(--accent); color: #F3E9DA; }
#screen-leaderboard .lb-badge.badge-teal-sm   { background: var(--gold);   color: #2B2118; }
#screen-leaderboard .lb-badge.badge-rising    { background: var(--tan);    color: #2B2118; }
#screen-leaderboard .lb-badge.badge-connector { background: var(--cream);  color: var(--accent); }

/* ── BADGE GUIDE (top of leaderboard) ── */

/* ── REVIEW FORM SCREEN ── */
.rf-header {
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  flex-shrink: 0;
}
.rf-back-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(201, 185, 154, 0.1);
  color: var(--tan);
  cursor: pointer;
  border: none;
  transition: background 0.15s;
}
.rf-back-btn:hover { background: rgba(201, 185, 154, 0.2); }
.rf-header-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
}

.rf-section { padding: 14px 20px 0; }
.rf-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 7px;
}
.rf-input {
  width: 100%;
  background: var(--cream);
  border: 0.5px solid rgba(58, 47, 30, 0.15);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--dark);
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}
.rf-input:focus { border-color: var(--mid); }
.rf-input::placeholder { color: rgba(122, 98, 72, 0.5); }
.rf-textarea {
  width: 100%;
  background: var(--cream);
  border: 0.5px solid rgba(58, 47, 30, 0.15);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--dark);
  outline: none;
  font-family: inherit;
  resize: none;
  line-height: 1.6;
  transition: border-color 0.15s;
}
.rf-textarea:focus { border-color: var(--mid); }
.rf-textarea::placeholder { color: rgba(122, 98, 72, 0.5); }

.rf-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.rf-pill {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  border: 0.5px solid rgba(58, 47, 30, 0.18);
  color: var(--mid);
  cursor: pointer;
  background: var(--white);
  transition: all 0.15s;
}
.rf-pill.active { background: var(--dark); color: var(--cream); border-color: var(--dark); }

.rf-divider { height: 0.5px; background: rgba(58, 47, 30, 0.08); margin: 18px 20px 0; }

/* Dimension sections */
.rf-dim-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}
.rf-dim-teal   { background: var(--tier-certified-bg); }
.rf-dim-purple { background: var(--tier-highly-bg); }
.rf-dim-amber  { background: var(--tier-worthy-bg); }
.rf-dim-icon {
  font-size: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.6);
  flex-shrink: 0;
}
.rf-dim-teal .rf-dim-icon   { color: var(--tier-certified); }
.rf-dim-purple .rf-dim-icon { color: var(--tier-highly); }
.rf-dim-amber .rf-dim-icon  { color: var(--tier-worthy); }
.rf-dim-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
}
.rf-dim-teal .rf-dim-name   { color: var(--tier-certified); }
.rf-dim-purple .rf-dim-name { color: var(--tier-highly); }
.rf-dim-amber .rf-dim-name  { color: var(--tier-worthy); }
.rf-dim-weight {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 1px;
}
.rf-dim-teal .rf-dim-weight   { color: rgba(46, 59, 18, 0.6); }
.rf-dim-purple .rf-dim-weight { color: rgba(1, 31, 55, 0.6); }
.rf-dim-amber .rf-dim-weight  { color: rgba(66, 48, 31, 0.6); }

.rf-dim-desc {
  font-size: 12px;
  color: var(--mid);
  line-height: 1.55;
  margin-bottom: 12px;
}

.rf-questions { display: flex; flex-direction: column; gap: 0; }
.rf-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 0.5px solid rgba(58, 47, 30, 0.07);
}
.rf-q:last-child { border-bottom: none; }
.rf-q-text { font-size: 13px; color: var(--dark); line-height: 1.5; flex: 1; }
.rf-stars {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
  cursor: pointer;
}
.rf-star {
  font-size: 22px;
  color: rgba(58, 47, 30, 0.15);
  transition: color 0.1s, transform 0.1s;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}
.rf-star.filled, .rf-star.hover { color: var(--gold); transform: scale(1.1); }
.rf-rate-row { display: flex; justify-content: center; padding: 6px 0 4px; }
.rf-stars-lg { gap: 10px; }
.rf-stars-lg .rf-star { font-size: 34px; }

/* Submit */
.rf-submit-btn {
  width: 100%;
  background: var(--dark);
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.15s;
}
.rf-submit-btn:hover { background: var(--accent); }

/* Save to City Guide toggle */
.rf-guide-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1.5px solid var(--cream);
  border-radius: var(--radius-md);
  background: var(--light);
  cursor: pointer;
}
.rf-guide-toggle-text { display: flex; flex-direction: column; gap: 3px; }
.rf-guide-toggle-title { font-size: 15px; font-weight: 600; color: var(--dark); }
.rf-guide-toggle-sub { font-size: 13px; color: var(--mid); line-height: 1.35; }
.rf-switch { position: relative; flex-shrink: 0; width: 46px; height: 28px; }
.rf-switch input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.rf-switch-track {
  position: absolute; inset: 0; border-radius: var(--radius-pill);
  background: var(--cream); transition: background 0.2s; pointer-events: none;
}
.rf-switch-thumb {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--white);
  box-shadow: var(--shadow-switch-thumb);
  transition: transform 0.2s; pointer-events: none;
}
.rf-switch input:checked ~ .rf-switch-track { background: var(--accent); }
.rf-switch input:checked ~ .rf-switch-thumb { transform: translateX(18px); }

/* Add to a Moment */
.rf-moment-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.rf-moment-btn {
  flex-shrink: 0;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--cream);
  background: var(--light);
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.rf-moment-btn:hover { background: var(--cream); }
.rf-moment-btn.has-selection { border-color: var(--accent); color: var(--accent); }
.rf-moment-selected {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rf-moment-option.selected { background: var(--light); }
.rf-moment-empty-actions { display: flex; justify-content: center; padding: 4px 16px 20px; }
.rf-moment-empty-close {
  padding: 11px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--cream);
  background: var(--light);
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.rf-moment-empty-close:hover { background: var(--cream); }

/* Toast */
.rf-toast {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: var(--tan);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
  z-index: 200;
}
.rf-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── TYPOGRAPHY ── */
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }

@media (max-width: 380px) {
  .nav-item { padding: 6px 7px; }
}

/* ══════════════════════════════════════════
   AUTH OVERLAY (Clerk sign-in / sign-up)
══════════════════════════════════════════ */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(160deg, var(--light) 0%, var(--cream) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: 48px 22px 40px;
}
.auth-overlay.auth-hidden { display: none; }
#auth-expired-notice {
  width: 100%;
  max-width: 360px;
  margin: 0 auto 18px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fbeeea;
  border: 1px solid #e7c3b8;
  color: #8a3b25;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
.auth-hero {
  text-align: center;
  max-width: 420px;
  margin-bottom: 22px;
}
.auth-logo {
  width: 180px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 14px;
  display: block;
}
.auth-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  line-height: 1.4;
  color: var(--dark);
  margin: 0;
}
.auth-tabs {
  display: flex;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--cream);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 18px;
}
.auth-tab {
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mid);
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.auth-tab.active {
  background: #5d4b3a;
  color: var(--white);
}
.auth-clerk-mount {
  width: 100%;
  max-width: 400px;
  display: flex;
  justify-content: center;
}
.auth-invite-gate {
  width: 100%;
  max-width: 360px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--cream);
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(59, 47, 30, .08);
}
.auth-invite-gate[hidden] { display: none; }
.auth-invite-welcome {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px;
  border-radius: 13px;
  background: var(--light);
  border: 1px solid var(--cream);
}
.auth-invite-welcome[hidden] { display: none; }
.auth-invite-welcome strong,
.auth-invite-welcome span {
  display: block;
}
.auth-invite-welcome strong {
  color: var(--dark);
  font: 600 15px 'DM Sans', sans-serif;
}
.auth-invite-welcome span {
  margin-top: 2px;
  color: var(--mid);
  font-size: 12.5px;
}
.auth-invite-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--tan);
  color: var(--dark);
  font: 600 14px 'DM Sans', sans-serif;
}
.auth-invite-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.auth-invite-gate h2 {
  margin: 0 0 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 27px;
  color: var(--dark);
}
.auth-invite-gate p {
  margin: 0 0 18px;
  color: var(--mid);
  font-size: 13px;
  line-height: 1.5;
}
.auth-invite-gate label {
  display: block;
  margin-bottom: 6px;
  color: var(--dark);
  font-size: 12px;
  font-weight: 600;
}
.auth-invite-gate input {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--cream);
  border-radius: 10px;
  background: var(--light);
  color: var(--dark);
  font: 500 14px 'DM Sans', sans-serif;
  text-transform: uppercase;
}
.auth-invite-gate input:focus {
  outline: 2px solid var(--tan);
  border-color: var(--tan);
}
.auth-invite-error {
  margin-top: 10px;
  color: #8a3b25;
  font-size: 12.5px;
  line-height: 1.4;
}
.auth-invite-submit,
.auth-invite-back {
  width: 100%;
  margin-top: 14px;
  padding: 11px 16px;
  border-radius: 999px;
  font: 600 13px 'DM Sans', sans-serif;
  cursor: pointer;
}
.auth-invite-submit {
  border: 1px solid var(--dark);
  background: var(--dark);
  color: var(--white);
}
.auth-invite-submit:disabled { opacity: .55; cursor: wait; }
.auth-invite-back {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--mid);
}
.onboard-signout {
  display: block;
  margin: 10px auto 0;
  padding: 7px 14px;
  border: 0;
  background: transparent;
  color: var(--mid);
  font: 500 12.5px 'DM Sans', sans-serif;
  cursor: pointer;
}

/* Profile sign-out button */
.profile-signout-btn {
  border: 1px solid var(--cream);
  background: var(--white);
  color: var(--mid);
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.profile-signout-btn:active { background: var(--cream); }

/* Follow toggle button (discover + member profile) */
.follow-toggle-btn {
  border: 1px solid var(--tan);
  background: var(--tan);
  color: var(--dark);
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.follow-toggle-btn.following {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}
.follow-toggle-btn.pending {
  background: var(--cream);
  color: var(--mid);
  border-color: var(--tan);
}
.follow-toggle-btn:active { opacity: .85; }
.follow-card-tap { display: flex; flex-direction: column; align-items: center; }
.rv-badge-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* ══ ONBOARDING OVERLAY ══ */
.onboard-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: linear-gradient(160deg, var(--light) 0%, var(--cream) 100%);
  display: none;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: 40px 22px 36px;
}
.onboard-overlay.show { display: flex; }
.onboard-card {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px 22px 24px;
  box-shadow: 0 18px 50px rgba(20, 12, 4, 0.18);
}
.onboard-logo { width: 130px; height: 110px; object-fit: contain; display: block; margin: 0 auto 14px; }
.onboard-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 500; color: var(--dark);
  text-align: center; margin: 0 0 4px;
}
.onboard-sub {
  font-size: 13px; color: var(--mid); text-align: center;
  margin: 0 0 14px;
}
.onboard-row { display: flex; gap: 12px; }
.onboard-row .onboard-field { flex: 1; min-width: 0; }
.onboard-req { color: var(--tier-unworthy); margin-left: 2px; }
.onboard-opt { color: var(--mid); font-weight: 400; text-transform: none; letter-spacing: 0; }
.onboard-error {
  margin-top: 14px; padding: 10px 12px;
  border-radius: var(--radius-md, 10px);
  background: #fbeeea; border: 1px solid #e7c3b8;
  color: #8a3b25; font-size: 12.5px; line-height: 1.4;
}
.onboard-error[hidden] { display: none; }
.onboard-submit {
  width: 100%; margin-top: 20px;
  padding: 13px; border: none; border-radius: var(--radius-pill);
  background: var(--dark); color: var(--white);
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.onboard-submit:disabled { opacity: 0.55; cursor: default; }

.privacy-choice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.privacy-choice {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px 16px;
  border: 1.5px solid #C9B99A;
  border-radius: 16px;
  background: #EDE4D6;
  color: #3B2F1E;
  font-family: 'DM Sans', sans-serif;
  text-align: left;
  cursor: pointer;
}
.privacy-choice[aria-checked="true"] {
  border-color: #3B2F1E;
  background: #C9B99A;
}
.privacy-choice-mark {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  box-sizing: border-box;
  border: 2px solid #42301F;
  border-radius: 50%;
  background: #EDE4D6;
  margin-top: 2px;
}
.privacy-choice[aria-checked="true"] .privacy-choice-mark {
  border: 5px solid #3B2F1E;
}
.privacy-choice-copy { display: flex; flex-direction: column; gap: 5px; }
.privacy-choice-copy strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  line-height: 1;
}
.privacy-choice-copy span {
  color: #42301F;
  font-size: 12.5px;
  line-height: 1.45;
}
.privacy-choice-note {
  margin: 15px 0 0;
  color: #42301F;
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  text-align: center;
}
.menu-privacy-wrap { padding: 0 20px 20px; }
.menu-privacy-wrap .privacy-choice-list { margin-top: 14px; }
.menu-privacy-wrap .privacy-choice { border-radius: 13px; padding: 14px; }
.menu-privacy-save {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #C9B99A;
  border-radius: 999px;
  background: #EDE4D6;
  color: #3B2F1E;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
}
.menu-privacy-save:disabled { background: #C9B99A; color: #42301F; }

/* ══ ONBOARDING TUTORIAL (6-page walkthrough) ══ */
.tut-overlay {
  position: fixed; inset: 0; z-index: 10003;
  background: linear-gradient(160deg, var(--light) 0%, var(--cream) 100%);
  display: none; align-items: center; justify-content: center;
  padding: 28px 18px;
}
.tut-overlay.show { display: flex; }
.tut-card {
  width: 100%; max-width: 420px;
  height: 100%; max-height: 720px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(20, 12, 4, 0.18);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.tut-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 10px; flex-shrink: 0;
}
.tut-dots { display: flex; gap: 6px; }
.tut-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(58, 47, 30, 0.16); transition: width 0.2s, background 0.2s; }
.tut-dot.active { width: 20px; border-radius: var(--radius-pill); background: var(--gold); }
.tut-skip {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 500; color: var(--mid);
  padding: 4px 2px;
}
.tut-skip:active { opacity: 0.6; }

.tut-body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 6px 22px 18px;
}
.tut-body::-webkit-scrollbar { display: none; }
.tut-body--center { display: flex; flex-direction: column; justify-content: center; }
.tut-hero-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(184, 148, 31, 0.14); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 8px 0 14px;
}
.tut-hero-icon svg { width: 26px; height: 26px; }
.tut-hero-logo { margin: 10px 0 16px; }
.tut-hero-logo img { width: 132px; height: auto; display: block; }
.tut-welcome-copy { font-size: 15px; color: var(--dark); line-height: 1.65; margin: 6px 0 0; }
.tut-scale { display: flex; flex-direction: column; gap: 9px; margin: 6px 0 16px; }
.tut-scale-row { display: flex; align-items: center; gap: 10px; }
.tut-scale-name { flex: 1; font-size: 12.5px; font-weight: 700; color: var(--dark); letter-spacing: 0.02em; }
.tut-scale-range { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--mid); white-space: nowrap; }
.tut-cta-pill { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 9px 15px; border-radius: var(--radius-pill); background: rgba(184, 148, 31, 0.14); color: var(--accent); font-size: 12.5px; font-weight: 700; }
.tut-cta-pill svg { width: 15px; height: 15px; }

/* ── Tutorial illustrative mockups ── */
.tut-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.tut-photos > div { height: 96px; border-radius: 14px; background-size: cover; background-position: center; }

.tut-mock-form { background: #fff; border: 0.5px solid rgba(58, 47, 30, 0.10); border-radius: 16px; padding: 11px; display: flex; flex-direction: column; gap: 8px; margin-top: 16px; box-shadow: 0 6px 20px rgba(58, 47, 30, 0.06); }
.tmf-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border-radius: 11px; }
.tmf-teal { background: rgba(184, 148, 31, 0.18); }
.tmf-purple { background: rgba(122, 98, 72, 0.18); }
.tmf-amber { background: var(--cream); }
.tmf-dim { font-size: 11.5px; font-weight: 700; }
.tmf-teal .tmf-dim { color: #7A611A; }
.tmf-purple .tmf-dim { color: var(--accent); }
.tmf-amber .tmf-dim { color: var(--dark); }
.tmf-stars { font-size: 13px; letter-spacing: 1px; color: var(--gold); }
.tmf-stars .off { color: rgba(58, 47, 30, 0.18); }

.tut-mock-feed { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.tmc { background: #fff; border: 0.5px solid rgba(58, 47, 30, 0.10); border-radius: 16px; padding: 12px; box-shadow: 0 6px 20px rgba(58, 47, 30, 0.05); }
.tmc-top { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.tmc-av { width: 32px; height: 32px; border-radius: 50%; background-size: cover; background-position: center; flex-shrink: 0; }
.tmc-id { flex: 1; min-width: 0; }
.tmc-name { font-size: 12.5px; font-weight: 700; color: var(--dark); }
.tmc-sub { font-size: 11px; color: var(--mid); }
.tmc-badge { font-size: 9.5px; font-weight: 800; letter-spacing: 0.04em; color: #fff; background: #191919; border-radius: var(--radius-pill); padding: 4px 8px; white-space: nowrap; }
.tmc-text { font-size: 12px; color: var(--accent); line-height: 1.5; }

.tut-mock-rail-label, .tut-mock-list-label { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid); margin: 18px 0 9px; }
.tut-mock-rail { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -ms-overflow-style: none; margin: 0 -4px; padding-left: 4px; padding-right: 4px; }
.tut-mock-rail::-webkit-scrollbar { display: none; }
.tmr-card { min-width: 130px; width: 130px; background: var(--cream); border-radius: 14px; overflow: hidden; flex-shrink: 0; }
.tmr-img { height: 94px; background-size: cover; background-position: center; }
.tmr-body { padding: 8px 10px 10px; }
.tmr-name { font-size: 12px; font-weight: 700; color: var(--dark); }
.tmr-loc { font-size: 10.5px; color: var(--mid); margin-top: 1px; }

.tut-mock-list { display: flex; flex-direction: column; gap: 8px; }
.tml-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 0.5px solid rgba(58, 47, 30, 0.10); border-radius: 13px; padding: 8px 10px; box-shadow: 0 4px 14px rgba(58, 47, 30, 0.04); }
.tml-thumb { width: 40px; height: 40px; border-radius: 9px; background-size: cover; background-position: center; flex-shrink: 0; }
.tml-id { flex: 1; min-width: 0; }
.tml-name { font-size: 12.5px; font-weight: 700; color: var(--dark); }
.tml-loc { font-size: 10.5px; color: var(--mid); margin-top: 1px; }
.tml-score { font-size: 11px; font-weight: 800; color: var(--accent); background: rgba(184, 148, 31, 0.16); border-radius: var(--radius-pill); padding: 4px 9px; white-space: nowrap; }

.tut-mock-spot { position: relative; height: 156px; border-radius: 16px; overflow: hidden; margin-top: 16px; background-size: cover; background-position: center; background-color: var(--dark); }
.tut-mock-spot .tms-grad { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(59, 47, 30, 0) 35%, rgba(28, 21, 12, 0.94) 100%); }
.tms-body { position: absolute; left: 14px; right: 14px; bottom: 12px; }
.tms-kicker { font-size: 9.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #C9B99A; }
.tms-name { font-family: 'Cormorant Garamond', serif; font-size: 25px; font-weight: 600; color: #FDFAF6; line-height: 1.08; margin-top: 2px; }
.tms-role { font-size: 10.5px; color: rgba(253, 250, 246, 0.82); margin-top: 3px; }

.tut-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 27px; font-weight: 500; color: var(--dark);
  line-height: 1.15; margin: 0 0 5px;
}
.tut-sub { font-size: 13.5px; color: var(--mid); line-height: 1.5; margin: 0 0 18px; }

.tut-section-title {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin: 20px 0 10px;
}
.tut-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.tut-pillar {
  display: flex; align-items: center; gap: 9px;
  background: var(--cream); border-radius: 12px; padding: 11px 12px;
}
.tut-pillar svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.tut-pillar span { font-size: 12.5px; font-weight: 600; color: var(--dark); }

.tut-feature { display: flex; gap: 12px; margin-bottom: 13px; }
.tut-feature:last-child { margin-bottom: 0; }
.tut-fi {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: rgba(184, 148, 31, 0.13); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.tut-fi svg { width: 17px; height: 17px; }
.tut-ft { flex: 1; min-width: 0; }
.tut-ft-name { font-size: 13.5px; font-weight: 600; color: var(--dark); margin-bottom: 2px; }
.tut-ft-desc { font-size: 12.5px; color: var(--mid); line-height: 1.45; }

.tut-dim {
  background: var(--cream); border-radius: 12px; padding: 13px 14px; margin-bottom: 10px;
}
.tut-dim-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.tut-dim-name { font-size: 14px; font-weight: 600; color: var(--dark); }
.tut-dim-wt { font-size: 11px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.tut-dim-desc { font-size: 12px; color: var(--mid); line-height: 1.45; margin-bottom: 8px; }
.tut-dim-qs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.tut-dim-qs li { position: relative; padding-left: 16px; font-size: 11.5px; color: var(--accent); line-height: 1.35; }
.tut-dim-qs li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-size: 10px; top: 1px; }

.tut-tiers { display: flex; flex-direction: column; gap: 7px; }
.tut-tier { display: flex; align-items: center; gap: 10px; }
.tut-tier-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.tut-tier-body { flex: 1; min-width: 0; }
.tut-tier-name { font-size: 12.5px; font-weight: 700; color: var(--dark); letter-spacing: 0.02em; }
.tut-tier-name span { font-weight: 500; color: var(--mid); letter-spacing: 0; }
.tut-tier-desc { font-size: 11.5px; color: var(--mid); line-height: 1.35; }

.tut-steps { list-style: none; margin: 0; padding: 0; counter-reset: tut-step; display: flex; flex-direction: column; gap: 11px; }
.tut-steps li { display: flex; gap: 11px; align-items: flex-start; }
.tut-steps li::before {
  counter-increment: tut-step; content: counter(tut-step);
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--dark); color: var(--white);
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.tut-step-txt { flex: 1; min-width: 0; font-size: 12.5px; color: var(--accent); line-height: 1.45; padding-top: 2px; }
.tut-chiprow { display: flex; flex-wrap: wrap; gap: 7px; }
.tut-chip { font-size: 11.5px; font-weight: 600; color: var(--dark); background: var(--cream); border-radius: var(--radius-pill); padding: 6px 12px; }

.tut-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px 16px; flex-shrink: 0;
  border-top: 0.5px solid rgba(58, 47, 30, 0.1);
}
.tut-back {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--mid);
  padding: 11px 6px;
}
.tut-back:disabled { opacity: 0; pointer-events: none; }
.tut-next {
  flex: 1; padding: 13px; border: none; border-radius: var(--radius-pill);
  background: var(--dark); color: var(--white);
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.tut-next:active { opacity: 0.88; }

/* ── Onboarding spotlight walkthrough ── */
.tut-body--spotlight { padding: 0; overflow: hidden; }
.twm {
  position: relative; width: 100%; height: 100%;
  border-radius: 14px; overflow: hidden;
  background: var(--light);
}
.twm-screen { position: absolute; inset: 0; display: flex; flex-direction: column; }
.twm-topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; background: #F2EAE0;
  border-bottom: 0.5px solid rgba(58, 47, 30, 0.1);
}
.twm-logo {
  margin-right: auto; flex-shrink: 0;
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: 22px; letter-spacing: 0.18em; color: var(--dark);
}
.twm-logo img { display: block; width: 104px; height: auto; }
.twm-group { display: flex; align-items: center; }
.twm-nav {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr);
  align-items: center; min-height: 58px; padding: 5px 10px 7px;
  background: #EDE4D6; border-top: 0.5px solid #C9B99A;
}
.twm-navitem {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 8px; border-radius: 10px;
}
.twm-navitem svg { width: 19px; height: 19px; color: #C9B99A; }
.twm-navitem span { font-size: 9px; color: #C9B99A; letter-spacing: 0.03em; }
.twm-navitem.active svg, .twm-navitem.active span { color: #3B2F1E; }
.twm-nav-plus {
  place-self: center; display: grid; place-items: center;
  width: 42px; height: 42px; margin-top: -18px;
  border: 3px solid #EDE4D6; border-radius: 50%;
  background: #3B2F1E; color: #EDE4D6;
  box-shadow: 0 4px 12px #C9B99A;
}
.twm-nav-plus svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round;
}
.twm-write {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--dark); color: var(--cream);
  font-family: inherit; font-size: 10.5px; font-weight: 500;
  padding: 6px 12px; border-radius: var(--radius-pill); border: none;
}
.twm-write svg { width: 12px; height: 12px; }
.twm-content { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.twm-sk-card {
  background: var(--white); border-radius: 14px; padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 6px 18px rgba(58, 47, 30, 0.05);
}
.twm-sk-row { display: flex; align-items: center; gap: 10px; }
.twm-sk-col { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.twm-sk-av { width: 34px; height: 34px; border-radius: 50%; background: var(--cream); flex-shrink: 0; }
.twm-sk-line { height: 9px; border-radius: 6px; background: var(--cream); }
.twm-sk-thumb { height: 84px; border-radius: 12px; background: var(--cream); }

.twm-hole {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  border-radius: 12px; pointer-events: none; z-index: 2;
  box-shadow: 0 0 0 9999px rgba(24, 16, 6, 0.74),
              0 0 0 2px var(--gold),
              0 0 22px 5px rgba(184, 148, 31, 0.55);
  transition: left 0.45s cubic-bezier(0.4, 0, 0.2, 1), top 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.45s cubic-bezier(0.4, 0, 0.2, 1), height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.twm-pulse {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  border-radius: 12px; pointer-events: none; z-index: 3;
  transition: left 0.45s cubic-bezier(0.4, 0, 0.2, 1), top 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.45s cubic-bezier(0.4, 0, 0.2, 1), height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  animation: twmPulse 1.8s ease-out infinite;
}
@keyframes twmPulse {
  0%   { box-shadow: 0 0 0 0 rgba(184, 148, 31, 0.55); }
  70%  { box-shadow: 0 0 0 13px rgba(184, 148, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 148, 31, 0); }
}
.twm-tip {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px);
  background: var(--white); color: var(--dark);
  border-radius: 14px; padding: 12px 15px; z-index: 4;
  box-shadow: 0 12px 34px rgba(20, 12, 4, 0.28);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  transition: top 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.twm-tip::-webkit-scrollbar { display: none; }
.twm-tip-label {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: 18px; color: var(--dark); margin-bottom: 3px;
}
.twm-tip-desc { font-size: 12.5px; line-height: 1.45; color: var(--mid); }
.twm-tip-media:not(:empty) { margin-bottom: 10px; }
.twm-photos { display: flex; flex-wrap: wrap; gap: 7px; }
.twm-ph { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; }
.twm-ph-img {
  display: block; width: 62px; height: 46px; border-radius: 9px;
  background-size: cover; background-position: center; background-color: var(--cream);
}
.twm-ph--av .twm-ph-img { width: 46px; height: 46px; border-radius: 50%; }
.twm-ph-cap { font-size: 9.5px; font-weight: 600; color: var(--mid); letter-spacing: 0.01em; }
.twm-tip-extra:not(:empty) { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.twm-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.twm-pill {
  font-size: 10px; font-weight: 700; color: var(--dark); background: var(--cream);
  border-radius: var(--radius-pill); padding: 4px 9px; letter-spacing: 0.02em;
}
.twm-tiers { display: flex; flex-wrap: wrap; gap: 5px; }
.twm-tier {
  font-size: 8.5px; font-weight: 700; color: #fff;
  border-radius: var(--radius-pill); padding: 3px 8px; letter-spacing: 0.04em;
}
.twm-hint { font-size: 11px; line-height: 1.4; color: var(--mid); }
.twm-hint b { color: var(--dark); font-weight: 700; }

/* ══ ONBOARDING / EDIT-PROFILE CITY GRID ══ */
.onboard-cities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* "Choose cities" prompt button in Browse-by-City empty state */
.city-pick-btn {
  margin-top: 10px;
  padding: 9px 16px;
  border: none;
  border-radius: 999px;
  background: var(--accent, #1f6feb);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.city-pick-btn:active { opacity: 0.85; }

/* ══ REVIEW PHOTO LIGHTBOX ══ */
.rfc-photo-cell { cursor: zoom-in; }
.photo-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: var(--dark);
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: none;
}
.photo-lightbox.show { display: flex; }
.plb-img {
  max-width: 94vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.plb-close,
.plb-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.plb-close {
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  font-size: 20px;
  line-height: 1;
}
.plb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  font-size: 30px;
  line-height: 1;
  padding-bottom: 4px;
}
.plb-prev { left: 14px; }
.plb-next { right: 14px; }
.plb-close:active,
.plb-nav:active { background: rgba(255, 255, 255, 0.28); }
.plb-nav[hidden] { display: none; }
.plb-counter {
  position: absolute;
  top: 18px;
  left: 18px;
  color: var(--dark);
  font-size: 13px;
  font-weight: 600;
  background: var(--white);
  padding: 5px 12px;
  border-radius: 999px;
}
.plb-counter[hidden] { display: none; }
.plb-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  align-items: center;
}
.plb-dots[hidden] { display: none; }
.plb-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--white);
  opacity: 0.4;
  transition: opacity 0.15s, transform 0.15s;
}
.plb-dot.active {
  opacity: 1;
  transform: scale(1.25);
}

/* ── MOMENTS (travel journals) ──────────────── */
.moments-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 14px; }
.moments-grid { padding: 12px 16px 0; display: flex; flex-direction: column; gap: 14px; }
.moment-card-foot { margin-top: 10px; }
.moment-vis {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.2px;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); color: var(--tan);
}
.moment-vis svg { width: 13px; height: 13px; }
.moment-vis-everyone { background: rgba(31, 122, 90, 0.28); color: #8fe3c2; }
.moment-vis-shared { background: rgba(184, 148, 31, 0.3); color: #eccd6e; }
.moment-vis-private { background: rgba(255, 255, 255, 0.12); color: var(--tan); }

/* Moment form: visibility selector + share-with-members picker */
.mf-vis-hint { font-size: 12px; color: var(--mid); margin-top: 8px; line-height: 1.4; }
.mf-share-picker { margin-top: 14px; }
.mf-share-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mf-share-empty { font-size: 12px; color: var(--mid); padding: 4px 0; }
.mf-share-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px 5px 5px; border-radius: 999px;
  border: 1px solid rgba(58, 47, 30, 0.16); background: var(--white);
  font-size: 13px; font-weight: 500; color: var(--dark); cursor: pointer;
}
.mf-share-chip.selected { border-color: var(--accent, #c0392b); background: rgba(192, 57, 43, 0.08); color: var(--accent, #c0392b); }
.mf-share-av {
  width: 24px; height: 24px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  background: var(--cream);
}
.mf-share-av img { width: 100%; height: 100%; object-fit: cover; }
.mf-share-av-fallback { font-size: 10px; font-weight: 700; color: var(--mid); }
.mf-share-nm { white-space: nowrap; }
.moment-card {
  display: flex; align-items: stretch;
  background: var(--dark); border-radius: var(--radius-md);
  border-top: 1px solid rgba(201, 185, 154, 0.14);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  overflow: hidden; cursor: pointer;
  box-shadow: 0 14px 32px -8px rgba(0, 0, 0, 0.6);
}
.moment-card:active { transform: scale(0.992); }
.moment-cover { flex: 0 0 38%; min-height: 150px; background-size: cover; background-position: top center; background-color: var(--cream); }
.moment-card-body { padding: 16px 16px; flex: 1; min-width: 0; }
.moment-dest { font-size: 19px; font-weight: 600; color: #fff; }
.moment-dates { font-size: 11px; color: rgba(201, 185, 154, 0.85); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.4px; }
.moment-excerpt { font-size: 13px; line-height: 1.5; color: var(--tan); margin-top: 8px; }
.moment-pillars { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.moment-stat { font-size: 11px; color: rgba(201, 185, 154, 0.7); margin-top: 10px; text-transform: uppercase; letter-spacing: 0.4px; }

/* moment detail */
.moment-hero { background: var(--dark); padding: 22px 20px 20px; color: var(--cream); }
.moment-hero-kicker { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--tan); }
.moment-hero-dest { font-size: 26px; font-weight: 600; color: #fff; margin-top: 6px; }
.moment-hero-sub { font-size: 13px; color: var(--tan); margin-top: 2px; }
.moment-hero-dates { font-size: 12px; color: rgba(201, 185, 154, 0.85); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.moment-hero-pillars { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.moment-detail-body { padding: 18px 20px 8px; }
.moment-journal p { font-size: 15px; line-height: 1.7; color: var(--dark); margin: 0 0 14px; }
.moment-section-label {
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--mid); font-weight: 600; margin: 18px 0 10px;
}
.moment-photos {
  display: flex; gap: 8px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.moment-photos::-webkit-scrollbar { display: none; }
.moment-map { border-radius: var(--radius-md); overflow: hidden; position: relative; min-height: 260px; }
.moment-map-canvas, .moment-map-frame {
  width: 100%; height: 260px; border: 0;
  border-radius: var(--radius-md);
  background: var(--cream); display: block;
}
.moment-map-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream);
  border-radius: var(--radius-md);
  font-size: 13px; color: var(--ink-soft, #777);
  letter-spacing: 0.02em;
}
.moment-photo { flex: 0 0 auto; width: 132px; height: 132px; background-size: cover; background-position: center; background-color: var(--cream); border-radius: var(--radius-md); cursor: zoom-in; }
.moment-venue-card {
  display: flex; gap: 12px; padding: 12px;
  background: var(--white); border-radius: var(--radius-md);
  border: 0.5px solid rgba(58, 47, 30, 0.12); cursor: pointer;
}
.moment-venue-card:active { background: var(--cream); }
.mv-photo { width: 78px; height: 78px; flex-shrink: 0; border-radius: var(--radius-sm); background-size: cover; background-position: center; background-color: var(--cream); }
.mv-body { flex: 1; min-width: 0; }
.mv-name { font-size: 15px; font-weight: 600; color: var(--dark); }
.mv-meta { font-size: 11px; color: var(--mid); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.4px; }
.mv-badge { display: inline-block; margin-top: 7px; }
.mv-scores { display: flex; gap: 16px; margin-top: 10px; }
.mv-score { display: flex; flex-direction: column; }
.mv-score-num { font-size: 16px; font-weight: 600; color: var(--dark); }
.mv-score-lbl { font-size: 9.5px; color: var(--mid); text-transform: uppercase; letter-spacing: 0.4px; margin-top: 1px; }
.moment-quote {
  margin: 22px 0; padding: 0 0 0 16px;
  border-left: 3px solid var(--tan);
  font-size: 17px; line-height: 1.5; font-style: italic;
  color: var(--dark); font-weight: 500;
}
.moment-convert-btn {
  width: 100%; margin: 8px 0 4px; padding: 14px;
  background: var(--dark); color: var(--cream);
  border: none; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; letter-spacing: 0.3px; cursor: pointer;
}
.moment-convert-btn:active { background: #2c2416; }

.moment-edit-btn {
  width: 100%; margin: 8px 0 4px; padding: 14px;
  background: var(--white); color: var(--dark);
  border: 1px solid var(--mid); border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; letter-spacing: 0.3px; cursor: pointer;
}
.moment-edit-btn:active { background: var(--cream); }

/* Public WRTHY Moment comments */
.moment-comments {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #C9B99A;
  color: #3B2F1E;
  font-family: 'DM Sans', sans-serif;
}
.moment-comments-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.moment-comments-head h2 {
  margin: 0;
  color: #3B2F1E;
  font-family: 'Cormorant Garamond', serif;
  font-size: 25px;
  font-weight: 600;
}
.moment-comments-head span { color: #42301F; font-size: 11px; }
.moment-comment-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 18px;
}
.moment-comment-form textarea {
  flex: 1;
  min-height: 48px;
  max-height: 120px;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid #C9B99A;
  border-radius: 14px;
  background: #EDE4D6;
  color: #3B2F1E;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 12px;
  outline: none;
}
.moment-comment-form textarea:focus { border-color: #42301F; }
.moment-comment-form textarea::placeholder { color: #42301F; }
.moment-comment-form button {
  min-width: 58px;
  height: 40px;
  border: 0;
  border-radius: 20px;
  background: #42301F;
  color: #EDE4D6;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
}
.moment-comment-form button:disabled { background: #C9B99A; }
.moment-comments-list { display: flex; flex-direction: column; }
.moment-comments-empty {
  padding: 12px 0 4px;
  color: #42301F;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
}
.moment-comment-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 30px 13px 0;
  border-bottom: 1px solid #C9B99A;
  font-family: 'DM Sans', sans-serif;
}
.moment-comment-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: #C9B99A;
  color: #3B2F1E;
  font-size: 10px;
  font-weight: 700;
}
.moment-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.moment-comment-main { min-width: 0; flex: 1; }
.moment-comment-top { display: flex; align-items: baseline; gap: 7px; }
.moment-comment-top strong { color: #3B2F1E; font-size: 12px; }
.moment-comment-top time { color: #42301F; font-size: 10px; }
.moment-comment-main p {
  margin: 4px 0 0;
  color: #42301F;
  font-size: 12.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.moment-comment-more {
  position: absolute;
  top: 9px;
  right: 0;
  border: 0;
  background: transparent;
  color: #42301F;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
}
.moment-comment-menu {
  position: absolute;
  top: 30px;
  right: 0;
  z-index: 3;
  min-width: 92px;
  overflow: hidden;
  border: 1px solid #C9B99A;
  border-radius: 10px;
  background: #EDE4D6;
}
.moment-comment-menu button {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #C9B99A;
  background: #EDE4D6;
  color: #3B2F1E;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  text-align: left;
  padding: 9px 11px;
}
.moment-comment-menu button:last-child { border-bottom: 0; }
.moment-comment-menu button:disabled { color: #C9B99A; }

/* ── ADD MOMENT (button + form) ─────────────── */
.moment-add-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px; margin-bottom: 4px;
  background: var(--dark); color: var(--cream);
  border: none; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; letter-spacing: 0.3px; cursor: pointer;
}
.moment-add-btn:active { background: #2c2416; }
.moment-ai-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px; margin-top: 10px;
  background: var(--cream); color: var(--dark);
  border: 1px solid var(--tan); border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; letter-spacing: 0.3px; cursor: pointer;
}
.moment-ai-btn:hover { background: var(--white); }
.moment-ai-btn:active { background: var(--tan); }
.moment-ai-spark { color: var(--gold); font-size: 16px; line-height: 1; }
.mf-score-row { display: flex; gap: 10px; }
.mf-score-field { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mf-score-field > span {
  font-size: 10px; color: var(--mid);
  text-transform: uppercase; letter-spacing: 0.4px;
}
.mf-score-field .rf-input { text-align: center; }
.mf-date-row { display: flex; gap: 10px; }
.mf-date-field { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mf-date-field > span {
  font-size: 10px; color: var(--mid);
  text-transform: uppercase; letter-spacing: 0.4px;
}

/* Moment form: review sub-form + added-reviews list */
.mf-add-review-btn { margin-top: 4px; }
.mf-review-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.mf-review-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border: 1px solid var(--tan);
  border-radius: var(--radius-sm); background: var(--white);
}
.mf-review-thumb {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: var(--radius-sm); background-size: cover; background-position: center;
  background-color: var(--cream);
}
.mf-review-thumb-empty { background-color: var(--cream); }
.mf-review-meta { flex: 1; min-width: 0; }
.mf-review-name { font-weight: 600; color: var(--dark); font-size: 14px; }
.mf-review-loc { font-size: 12px; color: var(--mid); }
.mf-review-site { font-size: 12px; color: var(--gold); word-break: break-all; }
.mf-review-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; }
.mf-review-share {
  flex: 0 0 auto; border: none; background: transparent;
  color: var(--gold); cursor: pointer; padding: 4px 6px;
  display: inline-flex; align-items: center; justify-content: center;
}
.mf-review-share:hover { color: var(--dark); }
.mf-review-remove {
  flex: 0 0 auto; border: none; background: transparent;
  color: var(--mid); font-size: 16px; cursor: pointer; padding: 4px 6px;
}
.mf-review-form {
  margin-top: 10px; padding: 12px;
  border: 1px solid var(--tan); border-radius: var(--radius-sm);
  background: var(--cream); display: flex; flex-direction: column; gap: 10px;
}
.mf-rv-photo-grid { margin: 0; }
.mf-rv-stars { display: flex; gap: 10px; flex-shrink: 0; cursor: pointer; justify-content: center; }
.mf-rv-star {
  font-size: 30px; color: rgba(58, 47, 30, 0.15);
  transition: color 0.1s, transform 0.1s; line-height: 1;
  cursor: pointer; user-select: none;
}
.mf-rv-star.filled, .mf-rv-star.hover { color: var(--gold); transform: scale(1.1); }
.mf-review-form-actions { display: flex; gap: 10px; justify-content: flex-end; }
.mf-rv-cancel, .mf-rv-save {
  border-radius: var(--radius-pill); padding: 9px 18px;
  font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid var(--tan);
}
.mf-rv-cancel { background: var(--white); color: var(--mid); }
.mf-rv-save { background: var(--dark); color: var(--white); border-color: var(--dark); }

/* Moment detail: simple reviews list */
.moment-rv-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.moment-rv-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border: 1px solid var(--tan);
  border-radius: var(--radius-md); background: var(--white); cursor: pointer;
}
.moment-rv-thumb {
  width: 56px; height: 56px; flex: 0 0 56px;
  border-radius: var(--radius-sm); background-size: cover; background-position: center;
  background-color: var(--cream);
}
.moment-rv-thumb-empty { background-color: var(--cream); }
.moment-rv-meta { flex: 1; min-width: 0; }
.moment-rv-name { font-weight: 600; color: var(--dark); font-size: 15px; }
.moment-rv-loc { font-size: 13px; color: var(--mid); }
.moment-rv-link { font-size: 13px; color: var(--gold); text-decoration: none; word-break: break-all; }
.moment-rv-link:hover { text-decoration: underline; }

/* ── STAT POP-OUT SHEET ── */
.stat-sheet-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(20, 12, 4, 0.5);
  display: none; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity 0.2s ease;
}
.stat-sheet-overlay.show { display: flex; opacity: 1; }
.stat-sheet {
  width: 100%; max-width: 640px;
  max-height: 78vh;
  background: var(--white);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 30px rgba(20, 12, 4, 0.25);
  display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
.stat-sheet-overlay.show .stat-sheet { transform: translateY(0); }
.stat-sheet-grip {
  width: 38px; height: 4px; border-radius: 2px;
  background: var(--cream); margin: 10px auto 2px;
}
.stat-sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 18px 12px; border-bottom: 1px solid var(--cream);
}
.stat-sheet-title { font-size: 17px; font-weight: 700; color: var(--dark); }
.stat-sheet-close {
  background: none; border: none; color: var(--mid); cursor: pointer;
  padding: 4px; display: flex; border-radius: 50%;
}
.stat-sheet-close:hover { background: var(--light); color: var(--dark); }
.stat-sheet-body { overflow-y: auto; padding: 6px 12px 18px; }
.stat-sheet-empty { text-align: center; color: var(--mid); padding: 36px 16px; font-size: 14px; }
.sheet-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 8px; border-radius: 12px; cursor: pointer;
  transition: background 0.15s ease;
}
.sheet-row:hover { background: var(--light); }
.sheet-row-avatar {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--dark); font-size: 15px;
}
.sheet-row-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sheet-row-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--light); color: var(--accent);
}
.sheet-row-text { min-width: 0; flex: 1; }
.sheet-row-name { font-size: 15px; font-weight: 600; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-row-sub { font-size: 13px; color: var(--mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-row-remove {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--cream);
  color: var(--dim);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 11px;
  cursor: pointer;
}
.sheet-row-remove:disabled { opacity: .5; cursor: default; }
.sheet-pill {
  flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--accent);
  background: var(--light); border-radius: 999px; padding: 4px 10px;
}

/* ── LOCATION PERMISSION PROMPT ── */
.geo-prompt-overlay {
  position: fixed; inset: 0; z-index: 10002;
  background: rgba(20, 12, 4, 0.55);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.geo-prompt-overlay.show { display: flex; }
.geo-prompt-card {
  width: 100%; max-width: 360px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 24px 22px;
  box-shadow: 0 18px 50px rgba(20, 12, 4, 0.28);
  text-align: center;
}
.geo-prompt-icon {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  background: var(--light); color: var(--accent);
}
.geo-prompt-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 25px; font-weight: 500; color: var(--dark);
  margin: 0 0 8px;
}
.geo-prompt-sub {
  font-size: 13.5px; color: var(--mid); line-height: 1.5;
  margin: 0 0 22px;
}
.geo-prompt-allow {
  width: 100%; padding: 13px; border: none; border-radius: var(--radius-pill);
  background: var(--dark); color: var(--white);
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.geo-prompt-skip {
  width: 100%; margin-top: 10px; padding: 11px; border: none; background: none;
  color: var(--mid); font-family: inherit; font-size: 13.5px; cursor: pointer;
}
.geo-prompt-skip:hover { color: var(--dark); }

/* ══════════════════════════════════════════
   AI REVIEW ASSISTANT — floating button + modal
   ══════════════════════════════════════════ */
/* These elements set an explicit display value below, which would otherwise
   override the [hidden] attribute (author styles beat the UA [hidden] rule).
   Keep [hidden] authoritative so the modal/FAB actually stay hidden. */
.ai-fab[hidden],
.ai-modal[hidden],
.ai-loading[hidden],
.ai-output[hidden],
.ai-error[hidden] { display: none; }

/* Static button at the top of the review composer (no longer floating). */
.rf-ai-section { display: flex; justify-content: flex-end; }
.ai-fab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--dark);
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(59, 47, 30, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ai-fab:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(59, 47, 30, 0.28); }
.ai-fab:active { transform: translateY(0); }
.ai-fab-spark { color: var(--tan); font-size: 14px; }
.ai-fab-text { line-height: 1; }

/* Trip planning occupies the former Explore search row below the heading. */
.explore-trip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 20px 10px;
}

/* Prompt shown when the member already typed review text and the AI draft
   would collide with it. */
.ai-conflict[hidden] { display: none; }
.ai-conflict {
  margin-top: 14px;
  padding: 14px;
  border: 0.5px solid rgba(58, 47, 30, 0.18);
  border-radius: 12px;
  background: var(--cream);
}
.ai-conflict-msg {
  font-size: 13.5px;
  color: var(--dark);
  line-height: 1.45;
  margin-bottom: 12px;
}
.ai-conflict-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-conflict-btn {
  flex: 1;
  min-width: 90px;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  border: 0.5px solid rgba(58, 47, 30, 0.25);
  background: var(--white);
  color: var(--dark);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.ai-conflict-btn:hover { background: var(--light); }
.ai-conflict-primary { background: var(--dark); border-color: var(--dark); color: var(--white); }
.ai-conflict-primary:hover { background: var(--accent); }
.ai-conflict-ghost { background: transparent; }

.ai-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.ai-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 33, 24, 0.55);
  backdrop-filter: blur(2px);
}
.ai-modal-sheet {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 100%;
  max-height: 100%;
  background: var(--white);
  box-shadow: 0 0 40px rgba(43, 33, 24, 0.3);
  display: flex;
  flex-direction: column;
  animation: ai-sheet-up 0.22s ease;
}
@keyframes ai-sheet-up { from { transform: translateY(24px); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } }
.ai-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--cream);
  color: var(--dark);
  cursor: pointer;
}
.ai-modal-scroll { overflow-y: auto; padding: 26px 22px 30px; }
.ai-modal-head { margin-bottom: 18px; padding-right: 40px; }
.ai-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.1;
}
.ai-modal-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--mid);
  margin-top: 6px;
  line-height: 1.4;
}
.ai-input {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 14px 15px;
  border: 1.5px solid var(--cream);
  border-radius: var(--radius-md);
  background: var(--light);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--dark);
  line-height: 1.5;
}
.ai-input:focus { outline: none; border-color: var(--tan); background: var(--white); }
.ai-input::placeholder { color: #A89B82; }
.ai-polish-btn {
  width: 100%;
  margin-top: 14px;
  padding: 14px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--dark);
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.ai-polish-btn:hover { opacity: 0.92; }
.ai-polish-btn:disabled { opacity: 0.5; cursor: default; }
.ai-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--mid);
}
.ai-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--cream);
  border-top-color: var(--mid);
  border-radius: 50%;
  animation: ai-spin 0.8s linear infinite;
}
@keyframes ai-spin { to { transform: rotate(360deg); } }
.ai-error {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--red-bg);
  color: var(--red);
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  line-height: 1.4;
}
.ai-output { margin-top: 22px; }
.ai-output-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--mid);
}
.ai-output-title {
  width: 100%;
  margin: 8px 0 18px;
  padding: 12px 14px;
  border: 1.5px solid var(--cream);
  border-radius: var(--radius-md);
  background: var(--light);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  box-sizing: border-box;
}
.ai-output-title:focus {
  outline: none;
  border-color: var(--mid);
}
.ai-output-text {
  margin-top: 8px;
  padding: 16px;
  border: 1.5px solid var(--cream);
  border-radius: var(--radius-md);
  background: var(--light);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--dark);
  line-height: 1.6;
  white-space: pre-wrap;
}
.ai-use-btn {
  width: 100%;
  margin-top: 24px;
  padding: 15px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--gold);
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.ai-use-btn:hover { opacity: 0.92; }

/* ══════════════════════════════════════════
   SLIDE-IN SIDE PANELS (menu + notifications)
══════════════════════════════════════════ */
.panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 33, 24, 0.55);
  z-index: 140;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.panel-backdrop.open { opacity: 1; }

.side-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 88%);
  background: var(--dark);
  color: var(--cream);
  z-index: 150;
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: -12px 0 32px rgba(43, 33, 24, 0.35);
}
.side-panel.open { transform: translateX(0); }

.side-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 18px 14px;
  border-bottom: 0.5px solid rgba(242, 234, 224, 0.14);
  flex-shrink: 0;
}
.side-panel-logo { height: 40px; width: 150px; object-fit: contain; display: block; opacity: 0.92; }
.side-panel-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--cream);
}
.side-panel-head-actions { display: flex; align-items: center; gap: 10px; }
.side-panel-close {
  background: none;
  border: none;
  color: var(--cream);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.side-panel-close:hover { opacity: 1; }

.side-panel-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 0 22px;
}

/* ── Menu sections & items ── */
.menu-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 234, 224, 0.5);
  padding: 20px 20px 8px;
}
.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  color: var(--cream);
  font-family: inherit;
  font-size: 14.5px;
  text-align: left;
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 0.5px solid rgba(242, 234, 224, 0.08);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}
.menu-item:active { background: rgba(242, 234, 224, 0.06); }
.menu-item-chevron { color: rgba(242, 234, 224, 0.4); font-size: 18px; line-height: 1; }
.menu-signout-wrap {
  margin-top: 26px;
  border-top: 0.5px solid rgba(242, 234, 224, 0.18);
  padding-top: 6px;
}
.menu-item.menu-signout { color: #E08A7B; border-bottom: none; }

/* ── Menu placeholder subviews ── */
.menu-sub-back {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: rgba(242, 234, 224, 0.7);
  font-family: inherit;
  font-size: 13px;
  padding: 16px 20px 4px;
  cursor: pointer;
}
.menu-sub-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--cream);
  padding: 14px 20px 6px;
}
.menu-sub-msg {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(242, 234, 224, 0.65);
  padding: 0 20px;
}

.private-profile-note {
  margin: 18px 20px 28px;
  padding: 22px 18px;
  border: 1px solid var(--tan);
  border-radius: var(--radius-lg);
  background: var(--light);
  color: var(--dark);
  text-align: center;
}
.private-profile-note strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  margin-bottom: 6px;
}
.private-profile-note span { font-size: 12.5px; line-height: 1.5; color: var(--mid); }
.follow-request-list { padding: 8px 20px 20px; }
.follow-request-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(242, 234, 224, 0.14);
}
.follow-request-avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--tan);
  color: var(--dark);
  font-size: 11px;
  font-weight: 700;
}
.follow-request-avatar img { width: 100%; height: 100%; object-fit: cover; }
.follow-request-copy { display: flex; flex-direction: column; min-width: 0; }
.follow-request-copy strong { color: var(--cream); font-size: 13px; }
.follow-request-copy span { color: rgba(242, 234, 224, 0.62); font-size: 11px; margin-top: 2px; }
.follow-request-actions {
  grid-column: 2;
  display: flex;
  gap: 7px;
}
.follow-request-actions button {
  border: 1px solid var(--tan);
  border-radius: 999px;
  background: var(--tan);
  color: var(--dark);
  padding: 6px 11px;
  font: 600 11px 'DM Sans', sans-serif;
}
.follow-request-actions button.decline { background: transparent; color: var(--cream); }

/* ── Notification rows ── */
.notif-markall {
  background: none;
  border: 0.5px solid rgba(242, 234, 224, 0.35);
  color: var(--cream);
  font-family: inherit;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.notif-markall:active { background: rgba(242, 234, 224, 0.1); }
.notif-swipe {
  position: relative;
  overflow: hidden;
  border-bottom: 0.5px solid rgba(237, 228, 214, 0.08);
}
.notif-delete-action {
  position: absolute;
  inset: 0 0 0 auto;
  width: 78px;
  border: 0;
  background: #42301F;
  color: #EDE4D6;
  font: 600 12px 'DM Sans', sans-serif;
  cursor: pointer;
}
.notif-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 18px;
  cursor: pointer;
  border-bottom: 0;
  background: #3B2F1E;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
  transition: background 0.15s, transform 0.2s ease;
}
.notif-swipe.open .notif-row { transform: translateX(-78px); }
.notif-swipe:focus-within .notif-row { transform: translateX(-78px); }
.notif-swipe.deleting { pointer-events: none; opacity: 0.5; }
.notif-swipe.deleting .notif-row { transform: translateX(-100%); }
.notif-swipe-hint { padding: 10px 18px; color: var(--cream); opacity: 0.7; font-size: 12px; }
.notif-row:active { background: rgba(242, 234, 224, 0.06); }
.notif-row.unread { background: rgba(242, 234, 224, 0.07); }
.notif-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(242, 234, 224, 0.16);
  color: var(--cream);
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.notif-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.notif-text {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--cream);
}
.notif-time {
  flex-shrink: 0;
  font-size: 11px;
  color: rgba(242, 234, 224, 0.45);
  padding-top: 2px;
  white-space: nowrap;
}
.notif-empty {
  padding: 40px 24px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(242, 234, 224, 0.55);
}

/* ══════════════════════════════════════════
   MESSAGES OVERLAY (inbox + conversation)
══════════════════════════════════════════ */
.messages-overlay {
  position: absolute;
  inset: 0;
  background: var(--cream);
  z-index: 130;
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.messages-overlay.open { transform: translateX(0); }

.msg-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.msg-view[hidden] { display: none; }

.msg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 0.5px solid rgba(58, 47, 30, 0.1);
  background: #F2EAE0;
  flex-shrink: 0;
}
.msg-back {
  background: none;
  border: none;
  color: var(--dark);
  cursor: pointer;
  padding: 4px;
  display: flex;
  -webkit-tap-highlight-color: transparent;
}
.msg-head-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
}
.msg-share-banner {
  background: var(--espresso-bg);
  color: var(--espresso);
  font-size: 12.5px;
  font-weight: 500;
  padding: 10px 16px;
  border-bottom: 0.5px solid rgba(58, 47, 30, 0.1);
}

.msg-search-wrap { padding: 12px 16px 4px; position: relative; flex-shrink: 0; }
.msg-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 0.5px solid rgba(58, 47, 30, 0.18);
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--dark);
  outline: none;
  box-sizing: border-box;
}
.msg-search-input:focus { border-color: var(--dark); }
.msg-search-results {
  position: absolute;
  left: 16px; right: 16px;
  top: calc(100% - 2px);
  background: #FFFFFF;
  border: 0.5px solid rgba(58, 47, 30, 0.14);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px rgba(43, 33, 24, 0.14);
  max-height: 260px;
  overflow-y: auto;
  z-index: 5;
}

.msg-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 0.5px solid rgba(58, 47, 30, 0.07);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}
.msg-row:active { background: rgba(58, 47, 30, 0.05); }
.msg-row-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--espresso-bg);
  color: var(--espresso);
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.msg-row-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msg-row-main { flex: 1; min-width: 0; }
.msg-row-top { display: flex; align-items: baseline; gap: 6px; }
.msg-row-name { font-size: 14px; font-weight: 600; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-row-handle { font-size: 11.5px; color: rgba(58, 47, 30, 0.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-row-preview {
  font-size: 12.5px;
  color: rgba(58, 47, 30, 0.55);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}
.msg-row-preview.unread-preview { color: var(--dark); font-weight: 500; }
.msg-row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.msg-row-time { font-size: 10.5px; color: rgba(58, 47, 30, 0.4); white-space: nowrap; }
.msg-unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brick); }

.msg-inbox-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 20px; }
.msg-inbox-empty {
  padding: 44px 28px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(58, 47, 30, 0.5);
}

/* conversation view */
.msg-partner { display: flex; align-items: center; gap: 10px; min-width: 0; }
.msg-partner .msg-row-avatar { width: 36px; height: 36px; font-size: 12.5px; }
.msg-partner-name { font-size: 15px; font-weight: 600; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-partner-handle { font-size: 11px; color: rgba(58, 47, 30, 0.45); }

.msg-thread {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.msg-bubble-wrap { display: flex; flex-direction: column; max-width: 78%; }
.msg-bubble-wrap.sent { align-self: flex-end; align-items: flex-end; }
.msg-bubble-wrap.received { align-self: flex-start; align-items: flex-start; }
.msg-swipe-shell {
  position: relative;
  align-self: flex-start;
  max-width: 78%;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.msg-swipe-shell .msg-bubble-wrap { max-width: none; }
.msg-swipe-content {
  position: relative;
  z-index: 1;
  background: #EDE4D6;
  transition: transform 0.2s ease;
  touch-action: pan-y;
}
.msg-delete-action {
  position: absolute;
  inset: 0 0 0 auto;
  width: 78px;
  border: 0;
  background: #42301F;
  color: #EDE4D6;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.msg-delete-action:active { background: #3B2F1E; }
.msg-bubble {
  padding: 9px 13px;
  border-radius: var(--radius-lg);
  font-size: 13.5px;
  line-height: 1.45;
  word-break: break-word;
}
.msg-bubble-wrap.sent .msg-bubble {
  background: var(--dark);
  color: var(--cream);
  border-bottom-right-radius: 6px;
}
.msg-bubble-wrap.received .msg-bubble {
  background: #FFFFFF;
  color: var(--dark);
  border: 0.5px solid rgba(58, 47, 30, 0.1);
  border-bottom-left-radius: 6px;
}
.msg-bubble-meta {
  font-size: 10px;
  color: rgba(58, 47, 30, 0.4);
  margin-top: 3px;
  padding: 0 4px;
}
.msg-thread-empty {
  margin: auto;
  padding: 30px 28px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(58, 47, 30, 0.5);
}

/* shared item preview card inside a bubble */
.msg-share-card {
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 6px;
  min-width: 170px;
  cursor: pointer;
}
.msg-bubble-wrap.sent .msg-share-card { background: rgba(242, 234, 224, 0.14); border: 0.5px solid rgba(242, 234, 224, 0.25); }
.msg-bubble-wrap.received .msg-share-card { background: var(--espresso-bg); border: 0.5px solid rgba(58, 47, 30, 0.08); }
.msg-share-venue { font-size: 13.5px; font-weight: 600; }
.msg-share-sub { font-size: 11px; opacity: 0.75; margin-top: 2px; }
.msg-share-tier { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 6px; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--gold-bg, #F6EDD6); color: var(--ochre); }

.msg-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 0.5px solid rgba(58, 47, 30, 0.1);
  background: #F2EAE0;
  flex-shrink: 0;
}
.msg-composer-input {
  flex: 1;
  padding: 10px 14px;
  border: 0.5px solid rgba(58, 47, 30, 0.18);
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--dark);
  outline: none;
  min-width: 0;
}
.msg-composer-input:focus { border-color: var(--dark); }
.msg-send-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--dark);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.msg-send-btn:hover { background: var(--accent); }

/* tappable toast variant */
.app-toast.toast-tap { cursor: pointer; pointer-events: auto; }
/* top-anchored toast (new-message notifications) */
.app-toast.toast-top { bottom: auto; top: calc(var(--status-height) + 12px); transform: translate(-50%, -12px); }
.app-toast.toast-top.show { transform: translate(-50%, 0); }

/* ══════════ COMMUNITY SCREEN ══════════ */
.lb-subtitle { font-size: 12px; color: var(--tan); letter-spacing: 0.04em; padding-bottom: 12px; margin-top: -10px; }
.cm-head { margin-top: 6px; }

/* Pop-out section cards on the Community page */
.cm-section {
  background: var(--white);
  border-radius: 18px;
  margin: 14px 14px 0;
  padding: 0 0 8px;
  box-shadow: 0 2px 12px rgba(59, 47, 30, 0.09);
  border: 0.5px solid rgba(58, 47, 30, 0.06);
  overflow: hidden;
}
.cm-section .cm-head { margin-top: 0; }
.cm-section .section-head { padding: 14px 16px 8px; }
.cm-section .cm-suggested,
.cm-section .lb-list,
.cm-section .cm-pioneers { padding-left: 12px; padding-right: 12px; }
.cm-section .cm-city-scroll { padding-left: 12px; padding-right: 12px; }
.cm-section .cm-sug-card { background: var(--dark); box-shadow: none; }
.cm-section .cm-empty { margin: 0 12px 8px; background: var(--cream); }
.cm-empty { background: var(--white); border-radius: var(--radius, 14px); padding: 16px 18px; margin: 0 20px 8px; font-size: 13px; color: var(--mid); }

/* 1 · Suggested for you */
.cm-suggested { padding: 4px 20px 16px; display: flex; flex-direction: row; gap: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cm-suggested::-webkit-scrollbar { display: none; }
.cm-sug-card { position: relative; background: var(--dark); border-radius: var(--radius-md); overflow: hidden; flex: 0 0 140px; height: 184px; min-width: 0; }
.cm-sug-tap { position: absolute; inset: 0; display: block; min-width: 0; width: 100%; }
.cm-sug-tap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--espresso), color-mix(in srgb, var(--espresso) 75%, transparent) 38%, transparent 85%); pointer-events: none; }
.cm-sug-card .cm-sug-info { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 46px; }
.cm-sug-card .follow-toggle-btn { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 10px; width: calc(100% - 20px); margin: 0; padding: 5px 10px; font-size: 11px; background: var(--white); color: var(--dark); border-color: var(--white); }
.cm-sug-card .follow-toggle-btn.following { background: var(--dark); color: var(--white); border-color: var(--tan); }
.cm-sug-avatar { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 40px; font-weight: 600; overflow: hidden; background: var(--accent); color: var(--tan); }
.cm-sug-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.cm-sug-info { min-width: 0; }
.cm-sug-name { font-family: var(--font-serif); font-size: 18px; line-height: 1.1; font-weight: 700; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-sug-reason { font-size: 10px; color: var(--white); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-sug-meta { font-size: 9px; color: var(--white); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 3px; }

/* 2 · Member spotlight city cards */
.cm-city-scroll { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 4px 16px 8px; }
.cm-city-scroll > .cm-empty { grid-column: 1 / -1; }
.cm-city-card { position: relative; min-width: 0; height: 200px; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; background: var(--dark); }
.cm-city-photo { position: absolute; inset: 0; background-size: cover; background-position: center 25%; }
.cm-city-card-plain .cm-city-photo { background: linear-gradient(135deg, var(--accent), var(--dark)); }
.cm-city-grad { position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--espresso) 82%, transparent) 0%, color-mix(in srgb, var(--espresso) 20%, transparent) 50%, transparent 100%); pointer-events: none; }
.cm-city-inner { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; color: var(--white); }
.cm-city-name { font-family: var(--font-serif); font-size: 22px; font-weight: 700; line-height: 1.1; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.cm-city-count { font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.9; margin-top: 4px; }
.cm-city-top { font-size: 13px; font-weight: 500; color: var(--white); margin-top: 5px; line-height: 1.25; }

/* City members overlay */
.cm-city-overlay { position: fixed; inset: 0; background: var(--light); z-index: 950; display: none; flex-direction: column; }
.cm-city-overlay.open { display: flex; }
.cm-city-panel { display: flex; flex-direction: column; height: 100%; max-width: 430px; margin: 0 auto; width: 100%; }
.cm-city-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--dark); flex-shrink: 0; }
.cm-city-panel-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--white); }
.cm-city-panel-head .rf-back-btn { color: var(--white); }
.cm-city-panel-list { flex: 1; overflow-y: auto; padding: 12px 16px 40px; display: flex; flex-direction: column; gap: 8px; }
.cm-city-row { background: var(--white); border-radius: 14px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; }

/* 4 · Your progress */
.cm-bar-wrap { height: 6px; background: var(--cream); border-radius: 3px; margin-top: 5px; overflow: hidden; }
.cm-bar { height: 100%; background: var(--gold); border-radius: 3px; transition: width 0.4s ease; }
.cm-bar-label { font-size: 11px; color: var(--mid); margin-top: 3px; }

/* 5 · Just joined */
.cm-welcome-btn { flex-shrink: 0; border: none; background: var(--dark); color: var(--white); font-size: 12px; font-weight: 600; padding: 8px 12px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.cm-welcome-btn:active { opacity: 0.85; }

/* 6 · Pioneers */
.cm-pioneers { padding: 0 20px 6px; display: flex; flex-direction: column; gap: 8px; }
.cm-pioneers .lb-row { background: var(--white); border-radius: 14px; padding: 10px 14px; }

/* Badge celebration overlay */
.cm-celebrate { position: fixed; inset: 0; background: rgba(24,17,8,0.72); z-index: 1200; display: none; align-items: center; justify-content: center; padding: 28px; }
.cm-celebrate.open { display: flex; }
.cm-celebrate-card { background: var(--white); border-radius: 22px; padding: 30px 26px 24px; max-width: 320px; width: 100%; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,0.35); animation: cm-pop 0.35s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes cm-pop { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cm-celebrate-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--cream); color: var(--gold); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; box-shadow: 0 0 0 8px rgba(184,148,31,0.12); }
.cm-celebrate-kicker { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.cm-celebrate-name { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; color: var(--dark); margin-top: 4px; }
.cm-celebrate-desc { font-size: 13px; color: var(--mid); margin-top: 8px; line-height: 1.45; }
.cm-celebrate-share { margin-top: 18px; width: 100%; border: none; background: var(--dark); color: var(--white); font-size: 14px; font-weight: 600; padding: 13px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.cm-celebrate-close { margin-top: 10px; width: 100%; border: none; background: none; color: var(--mid); font-size: 13px; font-weight: 600; padding: 8px; cursor: pointer; font-family: inherit; }

/* ══════════ WRTHY TRIP PLANNER ══════════ */
.trip-fab[hidden],
#trip-modal[hidden] { display: none; }

/* Static button in the Explore search row. Same shape/typography as the
   "Write with AI" button — a dark pill with white text. */
.trip-fab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(59, 47, 30, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.trip-fab:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(59, 47, 30, 0.28); }
.trip-fab:active { transform: translateY(0); }
.trip-fab-spark { color: var(--gold); font-size: 14px; }
.trip-fab-text { line-height: 1; }

/* Phase 1 form */
.trip-field-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid); margin: 16px 0 8px; }
.trip-city-input {
  width: 100%;
  border: 1.5px solid var(--cream);
  border-radius: 12px;
  background: var(--light);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--dark);
  font-family: inherit;
}
.trip-city-input:focus { outline: none; border-color: var(--tan); }
.trip-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.trip-pill {
  border: 1.5px solid var(--cream);
  background: var(--light);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.trip-pill.active { background: var(--dark); border-color: var(--dark); color: var(--white); }

/* Phase 2 itinerary */
.trip-intro { font-size: 14px; color: var(--mid); line-height: 1.5; margin-bottom: 14px; }
.trip-day { border: 1.5px solid var(--cream); border-radius: 14px; margin-bottom: 10px; background: var(--white); overflow: hidden; }
.trip-day-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; list-style: none; }
.trip-day-head::-webkit-details-marker { display: none; }
.trip-day-num { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); flex-shrink: 0; }
.trip-day-title { font-family: var(--font-serif); font-size: 17px; font-weight: 600; color: var(--dark); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip-day-chev { color: var(--mid); font-size: 13px; transition: transform 0.15s ease; margin-left: auto; }
.trip-day[open] .trip-day-chev { transform: rotate(180deg); }
.trip-day-slots { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.trip-slot { display: flex; gap: 12px; }
.trip-slot-time { flex-shrink: 0; width: 70px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mid); padding-top: 2px; }
.trip-slot-body { flex: 1; min-width: 0; border-left: 2px solid var(--cream); padding-left: 12px; }
.trip-slot-venue { font-size: 14px; font-weight: 600; color: var(--dark); }
.trip-slot-meta { font-size: 11.5px; color: var(--mid); margin-top: 1px; }
.trip-slot-desc { font-size: 13px; color: var(--accent); line-height: 1.45; margin-top: 4px; }
.trip-slot-note { font-size: 12.5px; color: var(--gold); line-height: 1.45; margin-top: 4px; font-weight: 500; }
.trip-new-btn {
  width: 100%;
  margin-top: 6px;
  border: 1.5px solid var(--tan);
  background: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: inherit;
}
#trip-error .ai-polish-btn { margin-top: 12px; }
.trip-tip {
  margin: 4px 0 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--light);
  border: 1.5px solid var(--cream);
  font-size: 13px;
  color: var(--accent);
  line-height: 1.5;
}
.trip-tip-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}

/* Save-to-Wrth-a-Try inside the Trip Planner */
.trip-save-btn {
  width: 100%;
  margin: 2px 0 10px;
  border: none;
  background: var(--dark);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 13px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: inherit;
}
.trip-save-btn:disabled { opacity: 0.6; cursor: default; }
.trip-save-btn[hidden] { display: none; }
.trip-save-done {
  margin: 2px 0 10px;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: var(--light);
  border: 1.5px solid var(--tan);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.5;
  text-align: center;
}
.trip-save-done[hidden] { display: none; }
.trip-save-link {
  display: block;
  margin: 6px auto 0;
  border: none;
  background: none;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  padding: 2px 4px;
}

/* ── Trip Planner: Share sheet + Start over ── */
.trip-share-btn {
  width: 100%;
  margin: 0 0 10px;
  border: 1.5px solid var(--dark);
  background: none;
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: inherit;
}
.trip-share-btn:hover { background: var(--light); }

.trip-share-sheet {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-end;
}
.trip-share-sheet[hidden] { display: none; }
.trip-share-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 33, 24, 0.35);
}
.trip-share-panel {
  position: relative;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 18px 18px 22px;
  box-shadow: 0 -8px 30px rgba(43, 33, 24, 0.18);
  animation: trip-share-up 0.24s ease;
}
@keyframes trip-share-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.trip-share-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
}
.trip-share-tip {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--light);
  border: 1.5px solid var(--cream);
  font-size: 12.5px;
  color: var(--accent);
  line-height: 1.45;
}
.trip-share-tip[hidden] { display: none; }
.trip-share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: none;
  background: none;
  padding: 12px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: var(--dark);
  border-bottom: 1px solid var(--cream);
}
.trip-share-row:last-of-type { border-bottom: none; }
.trip-share-row:hover { background: var(--light); }
.trip-share-row .sheet-row-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trip-share-row .sheet-row-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}
.trip-share-close {
  width: 100%;
  margin-top: 12px;
  border: 1.5px solid var(--tan);
  background: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  padding: 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: inherit;
}
.trip-share-close:hover { background: var(--light); }

.trip-startover-confirm {
  margin-top: 6px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--light);
  border: 1.5px solid var(--cream);
  text-align: center;
}
.trip-startover-confirm[hidden] { display: none; }
.trip-startover-text {
  font-size: 13.5px;
  color: var(--dark);
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.4;
}
.trip-startover-actions {
  display: flex;
  gap: 8px;
}
.trip-confirm-yes,
.trip-confirm-no {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: inherit;
}
.trip-confirm-yes {
  border: none;
  background: var(--dark);
  color: var(--white);
}
.trip-confirm-no {
  border: 1.5px solid var(--tan);
  background: none;
  color: var(--accent);
}

/* ── City autocomplete picker ─────────────────────── */
.city-picker-host { position: relative; }
.city-dd {
  position: absolute;
  z-index: 400;
  background: var(--card, #fff);
  border: 1px solid var(--border, #e5ddd3);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  max-height: 264px;
  overflow-y: auto;
}
.city-dd-item {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border, #eee6db);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.city-dd-item:last-child { border-bottom: 0; }
.city-dd-item.active,
.city-dd-item:hover { background: var(--cream, #f6efe6); }
.city-dd-city { font-weight: 600; font-size: 14px; color: var(--ink, #241d16); }
.city-dd-country { font-size: 12px; color: var(--muted, #8a7d6d); white-space: nowrap; }
.city-dd-empty { padding: 11px 14px; font-size: 13px; color: var(--muted, #8a7d6d); }

/* ── WRTH a Try: Itineraries subsection ── */
.wrthit-subhead { padding-top: 16px; }
.itin-list { padding: 4px 20px 8px; }
.itin-row {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; margin-bottom: 8px;
  background: var(--white); border: 1.5px solid var(--cream);
  border-radius: 14px; cursor: pointer;
}
.itin-row:active { background: var(--light); }
.itin-row-body { flex: 1; min-width: 0; }
.itin-row-city {
  font-family: var(--font-serif); font-size: 16px; font-weight: 600;
  color: var(--dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.itin-row-meta { font-size: 12px; color: var(--mid); margin-top: 2px; }
.itin-row-chev { color: var(--mid); font-size: 20px; line-height: 1; flex-shrink: 0; }
.itin-empty { padding-top: 10px; padding-bottom: 18px; }
.itin-empty-btn {
  display: inline-block; margin-top: 10px;
  padding: 8px 16px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--accent); color: var(--white);
  font-size: 13px; font-weight: 600; font-family: inherit;
}
.itin-empty-btn:active { background: var(--dark); }

/* ── Itinerary detail screen ── */
.itin-detail { padding: 16px 20px 8px; }
.itin-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.itin-detail-heading .itin-detail-city { min-width: 0; overflow-wrap: anywhere; }
.itin-share-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; flex-shrink: 0; border: 0; background: transparent; color: var(--dark); cursor: pointer; }
.itin-share-btn:active { background: var(--cream); }
.itin-share-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.itin-detail-city {
  font-family: var(--font-serif); font-size: 22px; font-weight: 700;
  color: var(--dark);
}
.itin-detail-meta { font-size: 12px; color: var(--mid); margin: 4px 0 14px; }
.itin-delete-btn {
  display: block; width: 100%; margin-top: 18px;
  padding: 12px 16px; border-radius: 14px; cursor: pointer;
  background: transparent; border: 1.5px solid var(--red);
  color: var(--red); font-size: 14px; font-weight: 600; font-family: inherit;
}
.itin-delete-btn:active { background: var(--red); color: var(--white); }

/* Venue-website logo fallback thumbnails render contained, not cropped. */
.wrthit-thumb-logo { display: flex; align-items: center; justify-content: center; }
.wrthit-thumb-logo img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; }

/* ══════════════════════════════════════════
   WRTHY MOTION — hover lift + tap feedback
   All interaction motion lives in this one block so it's easy to adjust.
   (Note: .wrthy-card is already the home venue-strip card component, so
   motion is applied via this grouped selector list instead of a new class.)
   ══════════════════════════════════════════ */

/* Clickable cards, rows & list items */
.wrthy-card, .nearby-card, .list-card, .saved-item, .explore-card, .city-chip,
.follow-card, .wrthit-card, .moment-card, .moment-venue-card,
.moment-rv-item, .msg-row, .notif-row, .menu-item, .sheet-row, .sr-row,
.map-list-row, .lb-row, .itin-row, .tmf-row, .tml-row, .tmr-card,
.cm-city-card, .cm-city-row, .cm-sug-card, .wspotlight, .spotlight-banner {
  will-change: transform;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.15s ease;
}

/* Hover lift — pointer devices only */
@media (hover: hover) and (pointer: fine) {
  .wrthy-card:hover, .nearby-card:hover, .list-card:hover, .saved-item:hover,
  .explore-card:hover, .city-chip:hover, .follow-card:hover,
  .wrthit-card:hover, .moment-card:hover, .moment-venue-card:hover,
  .moment-rv-item:hover, .msg-row:hover, .notif-row:hover, .menu-item:hover,
  .sheet-row:hover, .sr-row:hover, .map-list-row:hover, .lb-row:hover,
  .itin-row:hover, .tmf-row:hover, .tml-row:hover,
  .tmr-card:hover, .cm-city-card:hover, .cm-city-row:hover, .cm-sug-card:hover,
  .wspotlight:hover, .spotlight-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(58, 47, 30, 0.14);
  }
}

/* Tap feedback — press confirmation on touch & click */
.wrthy-card:active, .nearby-card:active, .list-card:active, .saved-item:active,
.explore-card:active, .city-chip:active, .follow-card:active,
.wrthit-card:active, .moment-card:active, .moment-venue-card:active,
.moment-rv-item:active, .msg-row:active, .notif-row:active, .menu-item:active,
.sheet-row:active, .sr-row:active, .map-list-row:active, .lb-row:active,
.itin-row:active, .tmf-row:active, .tml-row:active,
.tmr-card:active, .cm-city-card:active, .cm-city-row:active, .cm-sug-card:active,
.wspotlight:active, .spotlight-banner:active {
  transform: scale(0.97);
  opacity: 0.88;
  transition-duration: 0.15s;
}

/* Buttons — tap scale only, no hover lift. Class-level rules (e.g. .ai-fab)
   keep their own transforms via higher specificity. */
button:active,
a.venue-act:active,
a.rfc-act:active {
  transform: scale(0.97);
}
button { transition: transform 0.15s ease; }

/* Bottom nav — gentle scale up to confirm selection */
.nav-item:active { transform: scale(1.08); transition: transform 0.15s ease; }

/* ── Privacy & Terms (legal docs) ─────────────── */
.legal-tabs {
  display: flex;
  gap: 8px;
  margin: 10px 0 14px;
}
.legal-tab {
  flex: 1;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border, rgba(0,0,0,0.12));
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.legal-tab.active {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}
.legal-doc {
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: break-word;
}
.legal-doc h1 { font-size: 17px; margin: 4px 0 10px; }
.legal-doc h2 { font-size: 14.5px; margin: 18px 0 8px; }
.legal-doc h3 { font-size: 13.5px; margin: 14px 0 6px; }
.legal-doc p { margin: 0 0 10px; }
.legal-doc ul { margin: 0 0 10px; padding-left: 20px; }
.legal-doc li { margin: 0 0 4px; }
.legal-doc blockquote {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-left: 3px solid var(--dark);
  background: rgba(59, 47, 30, 0.06);
  border-radius: 0 8px 8px 0;
}
.legal-doc hr {
  border: none;
  border-top: 1px solid var(--border, rgba(0,0,0,0.12));
  margin: 14px 0;
}

/* Standalone legal overlay (reachable from onboarding, above its card) */
.legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 18px;
}
.legal-overlay.show { display: flex; }
.legal-card {
  background: var(--card-bg, #fff);
  color: inherit;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.3);
}
.legal-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.legal-card-title { font-size: 16px; font-weight: 700; }
.legal-close {
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  padding: 2px 6px;
}
.legal-doc-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}

/* Onboarding agreement checkbox */
.onboard-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 4px;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}
.onboard-agree input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--dark);
}
.onboard-agree a {
  color: var(--dark);
  font-weight: 600;
  text-decoration: underline;
}

/* "Adding to: …" labels row beneath the Moment/Guide buttons */
.rf-moment-labels:not(:has(.rf-moment-selected:not([hidden]))) { display: none; }

/* "Add to a Guide" before a valid city is picked — visible but muted */
.rf-moment-btn.needs-city { opacity: 0.55; }

/* ── WRTH a Try: saved venue city folders ── */
.wrthit-folder-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 4px 16px 8px; }
#city-list.city-list { gap: 12px; }
.wrthit-folder { position: relative; display: flex; align-items: stretch; width: 100%; min-width: 0; min-height: 104px; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; background: var(--dark); color: var(--cream); border: 1px solid color-mix(in srgb, var(--tan) 25%, transparent); text-align: left; -webkit-tap-highlight-color: transparent; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.wrthit-folder:hover { transform: translateY(-3px); box-shadow: 0 8px 20px color-mix(in srgb, var(--dark) 18%, transparent); }
.wrthit-folder:active { transform: scale(.985); filter: brightness(.92); }
.wrthit-folder:focus-visible { outline: 2px solid var(--tan); outline-offset: 2px; }
.wrthit-folder-photo { position: relative; flex: 0 0 96px; min-height: 104px; overflow: hidden; background: var(--accent); background-size: cover; background-position: center; }
.wrthit-city-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .25s ease; }
.wrthit-folder:hover .wrthit-city-image { transform: scale(1.06); }
.wrthit-folder-initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 42px; font-weight: 600; color: var(--tan); }
.wrthit-folder-grad { display: none; }
.wrthit-folder-inner { flex: 1; min-width: 0; padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; background: var(--dark); }
.wrthit-folder-name { font: 500 23px/1.05 var(--font-serif); color: var(--cream); overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.wrthit-folder-region { font: 400 12px/1.3 'DM Sans', sans-serif; color: var(--tan); margin-top: 4px; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.wrthit-folder-count { font: 400 11px/1.3 'DM Sans', sans-serif; color: var(--tan); margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .wrthit-folder, .wrthit-city-image { transition: none; } }
.wrthit-city-header { display: flex; align-items: center; gap: 10px; padding-left: 10px; }
.wrthit-city-back { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--white); border-radius: 50%; flex-shrink: 0; }
.wrthit-city-back:active { background: color-mix(in srgb, var(--white) 12%, transparent); }
.wrthit-city-list { padding-top: 12px; }
.wrthit-category + .wrthit-category { margin-top: 22px; }
.wrthit-category-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--tan); font-family: var(--font-serif); font-size: 22px; font-weight: 600; color: var(--dark); }
.wrthit-category-count { font-family: inherit; font-size: 16px; color: var(--mid); }

/* Explore pillar tabs: "Are they WRTHY?" as a wrapping tile grid (no horizontal scroll). */
.wrthy-strip.explore-pick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; overflow: visible; padding: 4px 20px 16px; }
.explore-pick-grid .wrthy-card { width: auto; min-width: 0; }
@media (min-width: 700px) { .wrthy-strip.explore-pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.explore-pick-grid .wrthy-card:focus-visible { outline: 2px solid var(--tan); outline-offset: 2px; }

/* ── PROFILE compact header + tile launchers (scoped) ── */
#screen-profile .profile-hero { padding: 14px 16px 12px; }
#screen-profile .profile-top-row { align-items: center; gap: 12px; margin-bottom: 8px; }
#screen-profile .profile-top-row .profile-avatar-wrap { flex-shrink: 0; }
#screen-profile .profile-avatar { width: 64px; height: 64px; font-size: 22px; }
#screen-profile .profile-top-actions { flex: 1; min-width: 0; justify-content: flex-end; }
#screen-profile .profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; border-top: none; margin-top: 0; width: 100%; max-width: 260px; }
#screen-profile .stat { padding: 7px 2px; min-height: 44px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; border-right: none; border-radius: 10px; background: color-mix(in srgb, var(--tan) 9%, transparent); transition: background 0.15s ease, transform 0.15s ease; -webkit-tap-highlight-color: transparent; }
#screen-profile .stat:active { transform: scale(0.96); background: color-mix(in srgb, var(--tan) 18%, transparent); }
#screen-profile .stat-num { font-size: 15px; line-height: 1.1; }
#screen-profile .stat-label { font-size: 10px; letter-spacing: 0.03em; color: var(--tan); white-space: nowrap; }
#screen-profile .profile-name { font-size: 21px; line-height: 1.15; }
#screen-profile .profile-handle { margin-top: 1px; }
#screen-profile .profile-bio { margin-top: 4px; line-height: 1.45; }
#screen-profile .profile-badges { margin-top: 8px; }
#screen-profile .profile-invite-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
#screen-profile .profile-invite-row .invite-joined { margin-top: 0; flex: 1; min-width: 0; }
#screen-profile .profile-invite-row .invite-joined-label { line-height: 1.3; }
#screen-profile .profile-invite-btn { margin-left: auto; flex-shrink: 0; max-width: 112px; font-size: 11px; line-height: 1.2; padding: 6px 11px; min-height: 44px; gap: 5px; text-align: left; }
#screen-profile .profile-tabs { gap: 8px; padding: 12px 12px 4px; background: transparent; border-bottom: none; box-shadow: none; }
#screen-profile .ptab { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 4px; height: auto; min-height: 60px; padding: 9px 4px 8px; border-right: none; border-radius: 14px; background: linear-gradient(160deg, var(--tan), color-mix(in srgb, var(--tan) 70%, var(--cream))); border: 0.5px solid color-mix(in srgb, var(--accent) 25%, transparent); box-shadow: 0 3px 10px color-mix(in srgb, var(--dark) 14%, transparent); }
#screen-profile .ptab-icon { color: var(--accent); flex-shrink: 0; }
#screen-profile .ptab-label { font-size: 11px; white-space: nowrap; letter-spacing: -0.01em; }
#screen-profile .ptab-chev { display: none; }
@media (hover: hover) and (pointer: fine) {
  #screen-profile .ptab:hover { transform: translateY(-3px); background: linear-gradient(160deg, var(--tan), var(--cream)); box-shadow: 0 10px 22px color-mix(in srgb, var(--dark) 20%, transparent); }
}
#screen-profile .ptab:active { transform: scale(0.95); opacity: 1; background: color-mix(in srgb, var(--tan) 80%, var(--mid)); box-shadow: 0 1px 3px color-mix(in srgb, var(--dark) 18%, transparent); }
@media (max-width: 400px) {
  #screen-profile .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 170px; }
  #screen-profile .stat { min-height: 44px; padding: 5px 2px; align-items: center; justify-content: center; gap: 2px; }
}
@media (max-width: 350px) {
  #screen-profile .profile-hero { padding-left: 12px; padding-right: 12px; }
  #screen-profile .profile-avatar { width: 56px; height: 56px; }
  #screen-profile .profile-invite-row .invite-joined { flex-direction: column; align-items: flex-start; gap: 3px; }
  #screen-profile .profile-tabs { gap: 6px; padding-left: 8px; padding-right: 8px; }
  #screen-profile .ptab-label { font-size: 10px; letter-spacing: -0.02em; }
}
@media (prefers-reduced-motion: reduce) {
  #screen-profile .ptab:hover, #screen-profile .ptab:active, #screen-profile .stat:active { transform: none; }
}
