/* ═══════════════════════════════════════════════════════════════
   DANES FOOD TOUR — Mobile-First Stylesheet
   Brand: #ffbd4a · #faeedd · #dcbbb3 · #e0c4a5 · #ffffff
   Font: Gasoek One (display only, always uppercase contexts)
═══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Gasoek One';
  src: url('/fonts/GasoekOne-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --gold:       #ffbd4a;
  --gold-dim:   #e6a832;
  --gold-soft:  rgba(255,189,74,0.15);
  --cream:      #faeedd;
  --cream-dark: #f0e0c4;
  --rose:       #dcbbb3;
  --sand:       #e0c4a5;
  --sand-dark:  #c8a882;
  --ink:        #1c120a;
  --ink-mid:    #4a3222;
  --ink-light:  #7a5e48;
  --ink-faint:  #a88b76;
  --white:      #ffffff;

  --font-display: 'Gasoek One', 'Georgia', serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --header-h:  48px;
  --sheet-min: 68px;
  --shadow-sm: 0 2px 8px rgba(28,18,10,0.10);
  --shadow-md: 0 6px 24px rgba(28,18,10,0.14);
  --shadow-lg: 0 12px 48px rgba(28,18,10,0.22);
}

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

html {
  height: 100%;
  height: -webkit-fill-available;
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  height: 100%;
  height: -webkit-fill-available;
  overflow: hidden;
}

/* Gasoek One — enforce uppercase everywhere it's used */
.login-title,
.handle-label,
.stop-label,
.popup-name,
.logout-btn,
.user-badge,
.sheet-footer {
  text-transform: uppercase;
}

.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════════
   LOGIN
═══════════════════════════════════════════════════════════════ */
.login-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.login-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 25% 75%, rgba(220,187,179,0.30) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 80% 15%, rgba(255,189,74,0.14) 0%, transparent 55%),
    var(--ink);
}

.login-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.45;
  pointer-events: none;
}

.login-card {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px 32px 40px;
  max-width: 380px;
  width: calc(100% - 32px);
  animation: card-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-title {
  font-family: var(--font-display);
  font-size: clamp(58px, 16vw, 80px);
  font-weight: 400;
  line-height: 0.92;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.login-rule {
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 36px;
}

.pin-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}

.pin-digit {
  width: 44px;
  height: 54px;
  background: rgba(250,238,221,0.07);
  border: 1.5px solid rgba(224,196,165,0.22);
  border-radius: 10px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 22px;
  text-align: center;
  outline: none;
  caret-color: var(--gold);
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
}

.pin-digit:focus { border-color: var(--gold); background: rgba(250,238,221,0.10); }
.pin-digit:disabled { opacity: 0.5; }



.login-error {
  margin-top: 14px;
  font-size: 12px;
  color: var(--rose);
  letter-spacing: 0.05em;
  min-height: 18px;
}

/* ═══════════════════════════════════════════════════════════════
   APP SHELL
═══════════════════════════════════════════════════════════════ */
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  height: -webkit-fill-available;
  overflow: hidden;
}

/* ── Header ─────────────────────────────────────────────────── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 16px;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--ink);
  flex-shrink: 0;
  z-index: 600;
}

/* Tab nav replaces header title */
.tab-nav {
  display: flex;
  gap: 4px;
}

.tab-btn {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(250,238,221,0.35);
  background: none;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.18s, background 0.18s;
  position: relative;
}

.tab-btn.active {
  color: var(--gold);
  background: rgba(255,189,74,0.10);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-badge {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255,189,74,0.15);
  color: var(--gold);
  border: 1px solid rgba(255,189,74,0.28);
}

.user-badge.spectator {
  background: rgba(220,187,179,0.15);
  color: var(--rose);
  border-color: rgba(220,187,179,0.28);
}

.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: rgba(250,238,221,0.45);
  background: none;
  border: 1px solid rgba(224,196,165,0.18);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: color 0.18s, border-color 0.18s;
  -webkit-tap-highlight-color: transparent;
}

.logout-btn:active { color: var(--cream); border-color: rgba(224,196,165,0.5); }

/* ── App content ────────────────────────────────────────────── */
.app-content {
  flex: 1;
  min-height: 0;
  position: relative;
}

/* ── Map — absolute fill within .app-content ────────────────── */
/* Leaflet needs a container with known pixel dimensions.
   Absolute fill + invalidateSize() is the most reliable mobile pattern.
   No JS height calculation needed — the browser layout engine owns this. */
#map {
  position: absolute;
  inset: 0;
  background: #e8e0d4;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   LEAFLET OVERRIDES
═══════════════════════════════════════════════════════════════ */
.leaflet-container {
  font-family: var(--font-body);
  background: #e8e0d4;
}

/* Warm the tile layer to match brand palette — sepia shifts cool Positron
   grays toward cream/sand without adding color noise */
.leaflet-tile-pane {
  filter: sepia(28%) saturate(0.82) brightness(1.01) contrast(0.97);
}

/* Zoom controls — sit above the bottom sheet */
.leaflet-control-zoom {
  border: none !important;
  box-shadow: var(--shadow-md) !important;
  margin-right: 12px !important;
  margin-bottom: calc(var(--sheet-min) + 14px) !important;
}

.leaflet-control-zoom a {
  background: var(--ink) !important;
  color: var(--cream) !important;
  border: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  font-size: 18px !important;
}

.leaflet-control-zoom a:last-child { border-bottom: none !important; }
.leaflet-control-zoom a:hover { background: var(--ink-mid) !important; color: var(--gold) !important; }

/* Attribution */
.leaflet-control-attribution {
  background: rgba(28,18,10,0.55) !important;
  color: rgba(250,238,221,0.40) !important;
  font-size: 8px !important;
  backdrop-filter: blur(4px);
  margin-bottom: calc(var(--sheet-min) + 4px) !important;
}

.leaflet-control-attribution a { color: rgba(250,238,221,0.55) !important; }

/* ── Popup ──────────────────────────────────────────────────── */
.leaflet-popup-content-wrapper {
  background: var(--cream) !important;
  border-radius: 14px !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1.5px solid var(--cream-dark) !important;
  padding: 0 !important;
  overflow: hidden;
}

.leaflet-popup-tip { background: var(--cream) !important; box-shadow: none !important; }
.leaflet-popup-content { margin: 0 !important; }

.leaflet-popup-close-button {
  color: var(--ink-light) !important;
  font-size: 20px !important;
  top: 10px !important;
  right: 12px !important;
  width: 28px !important;
  height: 28px !important;
  line-height: 28px !important;
  text-align: center !important;
  padding: 0 !important;
}

.popup-inner {
  padding: 18px 20px 18px;
  min-width: 230px;
}

.popup-cat-tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.popup-name {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  line-height: 1.05;
  margin-bottom: 5px;
  padding-right: 28px;
}

.popup-address {
  font-size: 12px;
  color: var(--ink-light);
  margin-bottom: 3px;
}

.popup-note {
  font-size: 12px;
  color: var(--ink-faint);
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.4;
}

.popup-directions {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--ink);
  color: var(--gold) !important;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  min-height: 48px;
  line-height: 1.2;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
  margin-top: 8px;
}

.popup-directions:active { background: var(--ink-mid); }

.north-dumpling-note {
  padding: 7px 10px;
  background: rgba(255,189,74,0.08);
  border-left: 2px solid var(--gold);
  border-radius: 0 4px 4px 0;
  font-size: 10px;
  color: var(--ink-faint);
  line-height: 1.5;
  margin-top: 8px;
  margin-bottom: 12px;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   ITINERARY BOTTOM SHEET
═══════════════════════════════════════════════════════════════ */
.itinerary-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--cream);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -3px 28px rgba(28,18,10,0.18);
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - var(--header-h) - 8px);
  /* collapsed: only show handle */
  transform: translateY(calc(100% - var(--sheet-min)));
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.itinerary-sheet.open {
  transform: translateY(0);
}

/* ── Handle ─────────────────────────────────────────────────── */
.sheet-handle {
  flex-shrink: 0;
  padding: 10px 20px 12px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  min-height: var(--sheet-min);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.handle-pip {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--sand-dark);
  margin: 0 auto 10px;
}

.handle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.handle-label {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.06em;
}

.handle-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.handle-progress {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold);
}

.close-btn {
  background: var(--ink);
  border: 1px solid rgba(255,189,74,0.25);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, border-color 0.15s;
}
.close-btn:active { background: var(--ink-mid); border-color: var(--gold); }

.sheet-close-btn {
  display: none;
  margin-top: 3px;
}
.sheet-close-btn:active { background: var(--ink-mid); border-color: var(--gold); }
.itinerary-sheet.open .sheet-close-btn { display: flex; align-items: center; justify-content: center; }

/* ── Body ───────────────────────────────────────────────────── */
.sheet-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--sand) transparent;
  padding-bottom: 32px;
}

.sheet-body::-webkit-scrollbar       { width: 3px; }
.sheet-body::-webkit-scrollbar-track { background: transparent; }
.sheet-body::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 2px; }

.sheet-intro {
  padding: 4px 20px 16px;
  border-bottom: 1px solid var(--cream-dark);
  margin-bottom: 4px;
}



.sheet-status {
  margin-top: 5px;
  font-size: 12px;
  color: var(--gold);
  min-height: 16px;
}

.sheet-footer {
  padding: 18px 20px 6px;
  border-top: 1px solid var(--cream-dark);
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sheet-done-btn {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink);
  background: var(--gold);
  border: none;
  border-radius: 8px;
  padding: 10px 36px;
  cursor: pointer;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s;
}
.sheet-done-btn:active { opacity: 0.75; }

/* ═══════════════════════════════════════════════════════════════
   TOUR STOPS
═══════════════════════════════════════════════════════════════ */
.tour-stops {
  padding: 8px 16px 0;
}

.stop-section {
  padding: 16px 0 4px;
}

/* ── SoHo popup ─────────────────────────────────────────────── */
.soho-popup-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
/* ── Shopping intermission ──────────────────────────────────── */
.shopping-intermission {
  margin: 8px 0;
  padding: 14px 12px;
  border-radius: 10px;
  border: 1.5px dashed var(--gold);
  background: rgba(255,189,74,0.06);
  cursor: pointer;
  active: opacity 0.75;
}
.shopping-intermission:active { opacity: 0.75; }
.intermission-inner {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.intermission-label {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.intermission-sub {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--ink);
  opacity: 0.55;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stop-header {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 0 4px;
  margin-bottom: 10px;
}

.stop-pin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.28);
}

.stop-label {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  flex: 1;
  line-height: 1;
}

.stop-check {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.3s;
  flex-shrink: 0;
}

.stop-check.visible { opacity: 1; }

/* ── Option cards ───────────────────────────────────────────── */
.stop-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.option-card {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  background: transparent;
  transition: background 0.14s, border-color 0.14s;
  -webkit-tap-highlight-color: transparent;
}

.option-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  cursor: pointer;
  width: 100%;
}

.option-card-row:active { opacity: 0.75; }

.option-card-detail {
  display: none;
  padding: 8px 4px 4px 19px;
}

.option-card.expanded .option-card-detail { display: block; }

.option-detail-note {
  font-size: 12px;
  color: var(--ink-faint);
  font-style: italic;
  line-height: 1.45;
  margin-bottom: 9px;
}

.option-detail-directions {
  display: block;
  padding: 11px 14px;
  background: var(--ink);
  color: var(--gold) !important;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none !important;
  margin-bottom: 2px;
  -webkit-tap-highlight-color: transparent;
}

.option-card.selected {
  background: var(--gold-soft);
  border-color: rgba(255,189,74,0.40);
}

.option-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sand);
  flex-shrink: 0;
  transition: background 0.18s, transform 0.18s;
}

.option-card.selected .option-dot { background: var(--gold); transform: scale(1.35); }

.option-info { flex: 1; min-width: 0; }

.option-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.option-address {
  font-size: 11px;
  color: var(--ink-faint);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ── Sidebar note for North Dumpling ────────────────────────── */
.nd-note {
  font-size: 10px;
  color: var(--ink-faint);
  font-style: italic;
  margin-top: 3px;
  white-space: normal;
  line-height: 1.4;
}

/* ── Option SELECT button (admin only) ──────────────────────── */
.option-select-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  background: transparent;
  border: 1.5px solid rgba(255,189,74,0.35);
  border-radius: 6px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  min-height: 34px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.option-select-btn:active { background: var(--gold-soft); }

.option-select-btn.is-selected {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-dim);
}

/* ═══════════════════════════════════════════════════════════════
   MEMORY VIEW
═══════════════════════════════════════════════════════════════ */
.memory-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  overflow: hidden;
}

/* (memory-admin-bar and memory-download-all-btn removed — feature not in use) */

/* Feed */
.memory-feed {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: 80px;
}

.mem-loading, .mem-empty {
  text-align: center;
  color: var(--ink-faint);
  font-size: 13px;
  padding: 48px 20px;
  font-style: italic;
}

/* Flat 3-column photo grid */
.memories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: calc((100vw - 8px) / 3);
  gap: 2px;
  padding: 2px;
}

.memories-grid-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}

/* (mem-card-header/name/time, mem-photo-grid, mem-photo, mem-note,
   mem-card-actions, mem-dl-btn, mem-delete-btn removed — feature not in use) */

/* Add memory bar */
.memory-add-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--cream) 70%, transparent);
  pointer-events: none;
}

.memory-view { position: relative; }

.memory-add-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--ink);
  color: var(--gold);
  border: none;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  cursor: pointer;
  pointer-events: all;
  box-shadow: var(--shadow-md);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}

.memory-add-btn:active { background: var(--ink-mid); }

/* ── Memory form panel (slides up from bottom) ──────────────── */
.memory-form-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  background: var(--cream);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -6px 40px rgba(28,18,10,0.22);
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.16,1,0.3,1);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.memory-form-panel.open { transform: translateY(0); }

.memory-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--cream-dark);
}

.memory-form-title {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 0.06em;
}


.mem-form-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mem-submit-btn {
  padding: 15px;
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  cursor: pointer;
  min-height: 52px;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.mem-submit-btn:active   { background: var(--gold-dim); }
.mem-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.mem-error {
  font-size: 12px;
  color: #a88b76;
  min-height: 16px;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════════
   PHOTO BOOTH MODAL
═══════════════════════════════════════════════════════════════ */
.photobooth-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(28,18,10,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

.photobooth-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-height: 100%;
  max-width: 400px;
  width: 100%;
}

.photobooth-previews {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-height: 55vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.photobooth-preview {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  display: block;
}

/* (photobooth-save-hint and photobooth-note removed — feature not in use) */

.photobooth-btn {
  width: 100%;
  padding: 14px;
  border: 1.5px solid rgba(224,196,165,0.30);
  border-radius: 10px;
  background: transparent;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, border-color 0.15s;
}

.photobooth-btn:active { background: rgba(250,238,221,0.10); }

.photobooth-btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.photobooth-btn-primary:active { background: var(--gold-dim); border-color: var(--gold-dim); }

.photobooth-x {
  position: absolute;
  top: 12px;
  right: 12px;
}
.photobooth-inner { position: relative; }

/* ── Lightbox ──────────────────────────────────────────────── */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: zoom-out;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

.lightbox-img {
  max-width: 95vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  pointer-events: auto;
}

.lightbox-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: auto;
}

.lightbox-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.40);
  letter-spacing: 0.04em;
}

.lightbox-delete-btn {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.lightbox-delete-btn {
  color: #fff;
  background: #b04030;
}

/* ── Photo booth input (hidden, triggered by button) ──────── */
#mem-booth-input { display: none; }

/* (mem-booth-desc removed — feature not in use) */

/* ═══════════════════════════════════════════════════════════════
   DESKTOP OVERRIDE (768px+)
═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  :root { --header-h: 52px; }

  .app-content {
    flex: 1;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: row;
  }

  #map {
    position: relative;
    inset: auto;
    flex: 1;
    min-height: 0;
    height: 100%;
    width: auto;
  }

  .itinerary-sheet {
    position: static;
    transform: none !important;
    transition: none;
    width: 340px;
    min-height: 0;
    flex-shrink: 0;
    border-radius: 0;
    box-shadow: 3px 0 16px rgba(28,18,10,0.10);
    max-height: 100%;
    order: -1;
    padding-bottom: 0;
  }

  .sheet-handle { display: none; }
  .sheet-body   { padding-bottom: 40px; }

  .leaflet-control-zoom        { margin-bottom: 20px !important; }
  .leaflet-control-attribution { margin-bottom: 0 !important; }
}
