:root {
  color-scheme: light;
  --surface: #ffffff;
  --text: #202124;
  --muted: #5f6368;
  --border: #dadce0;
  --primary: #1a73e8;
  --gem: #0d9488;
  --major: #e37400;
  --saved: #137333;
  --social: #6d28d9;
  --danger: #c5221f;
  --shadow: 0 2px 12px rgba(60, 64, 67, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  overflow: hidden;
  height: 100vh;
}

.map-app {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #e5ecf0;
}

/* Floating Top Bar (Sticky Frosted in Discover/Profiles, Dark Glass in Reels, Right-of-Sidebar in Map) */
.floating-topbar {
  position: absolute;
  top: 12px;
  left: 16px;
  right: 16px;
  z-index: 45;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transition: left 0.2s ease, background 0.2s ease;
}

.map-app[data-stage="discover"] .floating-topbar,
.map-app[data-stage="profiles"] .floating-topbar {
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 16px 10px;
  background: rgba(246, 247, 249, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  pointer-events: auto;
}

.map-app[data-stage="reels"] .floating-topbar {
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 16px 14px;
  background: linear-gradient(to bottom, rgba(10, 12, 16, 0.85), rgba(10, 12, 16, 0));
}

.map-app[data-stage="reels"] .search-card,
.map-app[data-stage="reels"] .chip,
.map-app[data-stage="reels"] .topbar-notif-btn,
.map-app[data-stage="reels"] .auth-user-pill {
  background: rgba(15, 23, 42, 0.56);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.map-app[data-stage="reels"] .search-card input,
.map-app[data-stage="reels"] .auth-handle,
.map-app[data-stage="reels"] .auth-link-btn {
  color: #f8fafc;
}

.map-app[data-stage="reels"] .search-card input::placeholder {
  color: rgba(226, 232, 240, 0.72);
}

.map-app[data-stage="reels"] .trip-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.map-app[data-stage="reels"] .filter-trigger.has-filter,
.map-app[data-stage="reels"] .filter-trigger[aria-expanded="true"],
.map-app[data-stage="reels"] .trip-toggle.active {
  background: #ff2442;
  border-color: #ff2442;
  color: #ffffff;
}

.map-app[data-stage="map"] .floating-topbar {
  left: 384px;
}

.map-app[data-stage="map"].sidebar-collapsed .floating-topbar {
  left: 24px;
}

.floating-topbar > * {
  pointer-events: auto;
}

.stage-mode-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 3px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(226, 232, 240, 0.9);
  gap: 2px;
  flex-shrink: 0;
}

.stage-mode-btn {
  border: none;
  background: transparent;
  color: #475569;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.stage-mode-btn:hover:not(.active) {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.05);
}

.stage-mode-btn.active {
  background: #ff2442;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 36, 66, 0.35);
}

.map-app[data-stage="map"] .stage-mode-btn[data-stage-mode="map"].active {
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.map-app[data-stage="reels"] .stage-mode-switch {
  background: rgba(24, 28, 38, 0.88);
  border-color: rgba(255, 255, 255, 0.14);
}

.map-app[data-stage="reels"] .stage-mode-btn {
  color: #cbd5e1;
}

.map-app[data-stage="reels"] .stage-mode-btn.active {
  background: #ff2442;
  color: #ffffff;
}

.search-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border-radius: 24px;
  padding: 6px 12px;
  box-shadow: var(--shadow);
  min-width: 140px;
  flex: 1 1 170px;
  max-width: 245px;
}

.brand-pin {
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #ea4335;
  flex-shrink: 0;
}

.search-card input {
  border: none;
  outline: none;
  font-size: 14px;
  flex: 1;
  min-width: 90px;
  background: transparent;
  color: var(--text);
}

.clear-search {
  border: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: var(--surface);
  color: var(--text);
  border-radius: 18px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(60, 64, 67, 0.22);
  transition: background 0.15s, color 0.15s, transform 0.1s;
}

.chip:hover {
  background: #f8f9fa;
}

.chip.small {
  padding: 7px 10px;
  font-weight: 500;
}

.chip.active {
  background: var(--primary);
  color: #ffffff;
}

.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.chip .dot.gem { background: var(--gem); }
.chip .dot.major { background: var(--major); }
.chip.active .dot { background: #ffffff; }

/* Compact Filter Popovers & Active Filter Chips */
.compact-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.popover-anchor {
  position: relative;
}

.filter-trigger.has-filter,
.filter-trigger[aria-expanded="true"] {
  background: var(--primary);
  color: #ffffff;
}

.filter-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  width: 340px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22);
  border: 1px solid #e2e8f0;
  display: grid;
  gap: 8px;
}

.popover-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.popover-close {
  border: none;
  background: #f1f3f4;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.popover-section-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 2px;
}

.filter-popover .timeline-bar,
.timeline-bar.popover-timeline,
.sidebar-collapsed .timeline-bar.popover-timeline {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  box-shadow: none;
  padding: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  max-width: none;
  border-radius: 0;
  display: grid;
  gap: 6px;
}

.filter-popover .popover-wrap-group,
.popover-wrap-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
}

.popover-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
  border-top: 1px solid #f1f3f4;
}

.popover-footer-between {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: var(--primary);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.active-filter-chip:hover {
  background: #dbeafe;
}

.active-filter-chip.exclude-chip {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

.active-filter-chip.exclude-chip:hover {
  background: #ffe4e6;
}

.exclude-filter-section {
  display: grid;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}

.exclude-pills-grid {
  gap: 5px;
}

.exclude-pill-btn {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.exclude-pill-btn:hover {
  background: #fff1f2;
  border-color: #fecdd3;
}

.exclude-pill-btn.active {
  background: #fff1f2;
  border-color: #fb7185;
  color: #be123c;
  font-weight: 700;
}

.quick-exclude-anchor {
  flex-shrink: 0;
}

.quick-exclude-btn {
  flex-shrink: 0;
}

.quick-exclude-btn.has-exclusions {
  background: #fff1f2;
  border-color: #fb7185;
  color: #be123c;
}

.filter-popover.exclude-popover {
  left: auto;
  right: 0;
  width: 330px;
}

.trip-toggle {
  border: 1px solid #cce8d4;
  background: #f4fbf6;
  color: var(--saved);
}

.trip-toggle:hover {
  background: #e6f4ea;
}

.trip-toggle.active {
  background: var(--saved);
  border-color: var(--saved);
  color: #ffffff;
}

.trip-star {
  font-size: 13px;
  line-height: 1;
}

.trip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(19, 115, 51, 0.14);
  color: var(--saved);
}

.trip-toggle.active .trip-badge {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

/* Account / Auth Bar */
.auth-bar {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-user-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.auth-avatar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  background: transparent;
  padding: 1px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
}

.auth-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #1a73e8);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.auth-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.2);
  padding: 6px;
  z-index: 65;
  display: grid;
  gap: 2px;
}

.auth-menu-header {
  padding: 8px 10px 9px;
  border-bottom: 1px solid #f1f5f9;
  display: grid;
  gap: 2px;
}

.auth-menu-header strong {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.auth-handle,
.auth-user-menu .auth-handle,
body.mobile-preview .auth-user-menu .auth-handle {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.auth-menu-city {
  font-size: 11px;
  color: #64748b;
}

.auth-menu-item {
  width: 100%;
  border: none;
  background: transparent;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
}

.auth-menu-item:hover {
  background: #f1f5f9;
}

.auth-link-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.auth-menu-item.danger,
.auth-link-btn.danger:hover,
.auth-link-btn:hover {
  color: var(--danger);
  background: #fff1f2;
}

.auth-signin-btn {
  background: #202124;
  color: #ffffff;
}

.auth-signin-btn:hover {
  background: #3c4043;
}

.dev-profile-select {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 16px;
  padding: 6px 8px;
  font-size: 11.5px;
  font-weight: 600;
  max-width: 132px;
  box-shadow: 0 1px 6px rgba(60, 64, 67, 0.2);
  cursor: pointer;
}

/* Left Drawer (Google Maps style) */
.sidebar {
  position: absolute;
  top: 14px;
  left: 14px;
  bottom: 14px;
  width: 360px;
  z-index: 30;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: visible;
  transition: transform 0.2s ease;
}

.sidebar.collapsed {
  transform: translateX(-374px);
}

.collapse-sidebar-btn {
  position: absolute;
  top: 50%;
  right: -24px;
  transform: translateY(-50%);
  width: 24px;
  height: 48px;
  border: none;
  border-radius: 0 10px 10px 0;
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 3px 0 10px rgba(60, 64, 67, 0.2);
}

.sidebar-collapsed .floating-topbar,
.sidebar-collapsed .timeline-bar,
.sidebar-collapsed .maps-setup-overlay {
  left: 24px;
}

.sidebar-header {
  padding: 14px 16px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.sidebar-header h1 {
  font-size: 1.02rem;
  font-weight: 700;
}

.sidebar-header p {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.notif-bell-btn {
  position: relative;
  border: 1px solid var(--border);
  background: #f8f9fa;
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.notif-bell-btn:hover {
  background: #eef2f6;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #d93025;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.add-pin-btn {
  border: none;
  background: var(--gem);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 18px;
  cursor: pointer;
  white-space: nowrap;
}

/* Follow Notifications Popover */
.notif-panel {
  margin: 0 12px 10px;
  border: 1px solid #e0e4e7;
  border-radius: 12px;
  background: #f8fafc;
  max-height: 220px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notif-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #e8ecf0;
  font-size: 12px;
}

.notif-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.notif-close-btn {
  width: 24px;
  height: 24px;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notif-mark-all {
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.notif-list {
  overflow-y: auto;
  display: grid;
}

.notif-item {
  border: none;
  border-bottom: 1px solid #eef1f4;
  background: transparent;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 2px;
  font-size: 12px;
  color: var(--text);
}

.notif-item:hover {
  background: #eef4ff;
}

.notif-item.unread {
  background: #eff6ff;
  font-weight: 600;
}

.notif-item small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
}

/* Drawer Navigation Tabs */
.drawer-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0 12px 10px;
  border-bottom: 1px solid #eceff1;
}

.drawer-tab {
  border: 1px solid transparent;
  background: #f1f3f4;
  color: var(--muted);
  border-radius: 10px;
  padding: 7px 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.drawer-tab:hover:not(.active) {
  background: #e8eaed;
  color: var(--text);
}

.drawer-tab.active {
  background: var(--primary);
  color: #ffffff;
}

.tab-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.quick-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 9px 12px;
  border-bottom: 1px solid #eceff1;
  flex-shrink: 0;
}

.jump-btn {
  border: 1px solid var(--border);
  background: #f8f9fa;
  color: var(--text);
  border-radius: 14px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.jump-btn.active {
  background: #e8f0fe;
  border-color: var(--primary);
  color: var(--primary);
}

.events-feed,
.social-feed-list,
.profiles-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.event-card {
  position: relative;
  border: 1px solid #eceff1;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.event-card:hover,
.event-card.selected {
  border-color: var(--primary);
  background: #f8fbff;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.14);
}

.event-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}

.card-save-btn {
  border: 1px solid #e0e4e7;
  background: #ffffff;
  color: var(--muted);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.card-save-btn:hover {
  border-color: var(--saved);
  color: var(--saved);
  background: #f4fbf6;
}

.card-save-btn.saved {
  border-color: var(--saved);
  background: #e6f4ea;
  color: var(--saved);
}

.tier-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  color: #ffffff;
}

.tier-pill.gem { background: var(--gem); }
.tier-pill.major { background: var(--major); }

.cat-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  background: #f1f3f4;
  padding: 2px 8px;
  border-radius: 999px;
}

.now-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--danger);
  background: #fce8e6;
  padding: 2px 7px;
  border-radius: 999px;
}

.soon-tag {
  font-size: 10px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 7px;
  border-radius: 999px;
}

.time-window-tag {
  font-size: 10px;
  font-weight: 600;
  color: #0369a1;
  background: #e0f2fe;
  padding: 2px 7px;
  border-radius: 999px;
}

.saved-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--saved);
  background: #e6f4ea;
  padding: 2px 7px;
  border-radius: 999px;
}

.rating-tag {
  font-size: 10px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 7px;
  border-radius: 999px;
}

.event-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-meta {
  font-size: 12px;
  color: var(--muted);
}

.card-source {
  margin-top: 6px;
  font-size: 11px;
  color: #0d9488;
  font-weight: 500;
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  display: grid;
  gap: 10px;
  justify-items: center;
  background: #fafbfc;
}

.empty-reset-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--primary);
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* Social Feed Toolbar, Composer, Post Cards & Profiles */
.feed-toolbar {
  padding: 10px 12px;
  border-bottom: 1px solid #eceff1;
  display: grid;
  gap: 8px;
  flex-shrink: 0;
}

.feed-toolbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feed-subtitle {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.new-post-btn {
  border: none;
  background: var(--social);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 14px;
  cursor: pointer;
}

.interest-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.interest-pill {
  border: 1px solid var(--border);
  background: #f8f9fa;
  color: var(--text);
  border-radius: 14px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.interest-pill.active {
  background: #ede9fe;
  border-color: var(--social);
  color: var(--social);
}

.post-composer {
  padding: 10px 12px;
  border-bottom: 1px solid #eceff1;
  background: #faf9ff;
  display: grid;
  gap: 7px;
  flex-shrink: 0;
  max-height: 55%;
  overflow-y: auto;
}

.post-composer input,
.post-composer textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  font-family: inherit;
  background: #ffffff;
}

.post-composer label {
  display: grid;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.composer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.composer-tag-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
  border-radius: 12px;
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}

.composer-tag-btn.selected {
  border-color: var(--social);
  background: #ede9fe;
  color: var(--social);
}

.composer-check {
  display: flex !important;
  align-items: center;
  gap: 6px;
  font-size: 12px !important;
  color: var(--text) !important;
}

.social-card {
  border: 1px solid #eceff1;
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
  display: grid;
  gap: 7px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.social-card.highlighted {
  border-color: var(--social);
  box-shadow: 0 2px 10px rgba(109, 40, 217, 0.16);
}

.social-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #1a73e8);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.social-author-meta {
  min-width: 0;
  flex: 1;
}

.social-author-meta strong {
  display: block;
  font-size: 12.5px;
}

.social-author-meta span {
  font-size: 11px;
  color: var(--muted);
}

.match-reason-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--social);
  background: #f3e8ff;
  padding: 3px 8px;
  border-radius: 999px;
}

.social-card h3 {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}

.social-body {
  font-size: 12.5px;
  color: #3c4043;
  line-height: 1.45;
}

.social-loc-btn {
  border: none;
  background: #f8f9fa;
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}

.social-loc-btn:hover {
  background: #e8f0fe;
}

.social-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.social-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid #f1f3f4;
}

.social-footer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rsvp-btn {
  border: 1px solid var(--primary);
  background: #ffffff;
  color: var(--primary);
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.rsvp-btn.joined {
  background: var(--saved);
  border-color: var(--saved);
  color: #ffffff;
}

.attendee-note {
  font-size: 11px;
  color: var(--muted);
}

.flag-btn {
  border: 1px solid #eceff1;
  background: #ffffff;
  color: var(--muted);
  border-radius: 14px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.flag-btn:hover {
  border-color: #f4c7c3;
  background: #fce8e6;
  color: var(--danger);
}

/* Profile Cards */
.profile-card {
  border: 1px solid #eceff1;
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
  display: grid;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.profile-card.is-me {
  background: #f8fbff;
  border-color: #d2e3fc;
}

.profile-top {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.profile-meta {
  flex: 1 1 130px;
  min-width: 0;
}

.follow-btn {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.follow-btn.following {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border);
}

.public-pill {
  font-size: 10px;
  font-weight: 700;
  color: var(--saved);
  background: #e6f4ea;
  padding: 2px 7px;
  border-radius: 999px;
}

.profile-stats {
  display: flex;
  gap: 12px;
  font-size: 11.5px;
  color: var(--muted);
}

/* Detail & Reviews inside left drawer */
.drawer-detail {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.detail-top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.share-btn {
  border: 1px solid #d2e3fc;
  background: #f8fbff;
  color: var(--primary);
  border-radius: 14px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.share-btn:hover {
  background: #e8f0fe;
}

.back-btn {
  border: none;
  background: #f1f3f4;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.detail-hero {
  background: linear-gradient(135deg, #f0fdfa 0%, #e8f0fe 100%);
  border-radius: 12px;
  padding: 14px;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.detail-badge {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  padding: 3px 9px;
  border-radius: 999px;
}

.detail-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: #ffffff;
  padding: 3px 9px;
  border-radius: 999px;
}

.detail-series {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary);
  background: #e8f0fe;
  padding: 3px 8px;
  border-radius: 999px;
}

.detail-hero h2 {
  font-size: 1.12rem;
  line-height: 1.3;
}

.detail-rating-line {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #92400e;
}

.detail-rows {
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.detail-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f3f4;
}

.detail-row strong {
  color: var(--muted);
  font-weight: 600;
}

.detail-row a {
  color: var(--primary);
  text-decoration: none;
}

.detail-row a:hover {
  text-decoration: underline;
}

.detail-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #3c4043;
}

.detail-actions,
.modal-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  flex: 1;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  border-radius: 18px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.action-btn.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.action-btn.saved {
  border-color: var(--saved);
  background: #e6f4ea;
  color: var(--saved);
}

.action-btn.danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #ffffff;
}

/* Reviews Section */
.reviews-section {
  border-top: 1px solid #eceff1;
  padding-top: 12px;
  display: grid;
  gap: 10px;
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.reviews-header h3 {
  font-size: 14px;
  font-weight: 700;
}

.review-form {
  background: #f8fafc;
  border: 1px solid #e0e4e7;
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.review-form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.star-picker {
  display: inline-flex;
  gap: 2px;
}

.star-btn {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: #cbd5e1;
  cursor: pointer;
}

.star-btn.active {
  color: #f59e0b;
}

.year-attended-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.year-attended-label input {
  width: 72px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 12px;
}

.review-form textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 12.5px;
  font-family: inherit;
  background: #ffffff;
}

.photo-upload-row {
  display: grid;
  gap: 6px;
}

.photo-upload-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--primary);
  background: #ffffff;
  color: var(--primary);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.review-photo-previews,
.review-photos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preview-thumb-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.preview-thumb-wrap img,
.review-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-remove-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.reviews-list {
  display: grid;
  gap: 8px;
}

.review-card {
  border: 1px solid #eceff1;
  border-radius: 12px;
  padding: 10px;
  background: #ffffff;
  display: grid;
  gap: 6px;
}

.review-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
}

.review-stars {
  color: #d97706;
  font-weight: 700;
}

.edition-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  background: #e8f0fe;
  padding: 2px 7px;
  border-radius: 999px;
}

.review-thumb-btn {
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 62px;
  height: 62px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #f8f9fa;
}

.review-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.helpful-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.helpful-btn.upvoted {
  border-color: var(--primary);
  background: #e8f0fe;
  color: var(--primary);
}

/* Interactive Google Map Viewport */
.map-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 60% 40%, #eef4f8 0%, #dce6ed 100%);
}

.google-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* AdvancedMarkerElement custom pin */
.adv-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  white-space: nowrap;
  max-width: 165px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adv-pin.gem { background: var(--gem); }
.adv-pin.major { background: var(--major); }
.adv-pin.post { background: var(--social); }
.adv-pin.saved { box-shadow: 0 0 0 2px var(--saved), 0 3px 10px rgba(0, 0, 0, 0.3); }
.adv-pin.selected {
  transform: scale(1.1);
  box-shadow: 0 0 0 3px var(--primary), 0 4px 14px rgba(0, 0, 0, 0.35);
}

.drop-mode-banner,
.toast-banner {
  position: absolute;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 35;
  background: #202124;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}

.toast-banner {
  top: 66px;
  bottom: auto;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.drop-mode-banner button {
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
}

/* Google Maps API Key Setup Card */
.maps-setup-overlay {
  position: absolute;
  top: 96px;
  left: 384px;
  right: 16px;
  bottom: 108px;
  z-index: 22;
  display: grid;
  place-items: center;
  padding: 16px;
  pointer-events: none;
  transition: left 0.2s ease;
}

.maps-setup-card {
  pointer-events: auto;
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 28px rgba(60, 64, 67, 0.22);
  border: 1px solid #e0e4e7;
  display: grid;
  gap: 12px;
}

.maps-setup-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.maps-setup-head h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.maps-setup-head p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

.maps-setup-head code {
  background: #f1f3f4;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11.5px;
}

.maps-setup-head .close-modal {
  margin-left: auto;
  flex-shrink: 0;
}

.maps-key-form {
  display: grid;
  gap: 10px;
}

.maps-key-form input {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-family: inherit;
}

.maps-setup-actions {
  display: flex;
  gap: 8px;
}

.maps-setup-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* Google Maps InfoWindow Content */
.gm-popup {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 240px;
  color: var(--text);
  line-height: 1.4;
}

.gm-popup-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.gm-popup-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 3px;
}

.gm-popup-meta {
  font-size: 11.5px;
  color: var(--muted);
}

/* Bottom Year / Month / Exact-Day Timeline */
.timeline-bar {
  position: absolute;
  left: 384px;
  bottom: 14px;
  z-index: 25;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 6px 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: calc(100vw - 530px);
  transition: left 0.2s ease;
}

.timeline-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.timeline-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.timeline-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  padding: 0 4px;
}

.timeline-divider {
  width: 1px;
  height: 18px;
  background: #e0e4e7;
  flex-shrink: 0;
}

.time-pill {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}

.time-pill:hover:not(.active) {
  background: #f1f3f4;
  color: var(--text);
}

.time-pill.active {
  background: var(--primary);
  color: #ffffff;
}

.time-pill.now:not(.active) {
  color: var(--danger);
  background: #fce8e6;
}

.time-pill.live-win:not(.active) {
  color: #0f766e;
  background: #f0fdfa;
}

.year-pill.active {
  background: #202124;
  color: #ffffff;
}

.month-pill {
  padding: 4px 9px;
  font-size: 11.5px;
}

.exact-date-picker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
}

.exact-date-picker.active {
  background: #e8f0fe;
  color: var(--primary);
}

.exact-date-picker input {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px 6px;
  font-size: 11px;
  font-family: inherit;
  color: var(--text);
  background: #ffffff;
}

.clear-day-btn {
  border: none;
  background: rgba(26, 115, 232, 0.14);
  color: var(--primary);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.oneday-tag {
  font-size: 10px;
  font-weight: 700;
  color: #7c3aed;
  background: #f3e8ff;
  padding: 2px 7px;
  border-radius: 999px;
}

/* Bottom-Right Controls */
.map-controls {
  position: absolute;
  right: 16px;
  bottom: 36px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.map-controls button {
  border: none;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-weight: 700;
}

#manage-maps-key,
#locate-munich {
  padding: 8px 13px;
  border-radius: 18px;
  font-size: 12px;
}

#manage-maps-key.configured {
  color: var(--saved);
}

.zoom-stack {
  display: grid;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.zoom-stack button {
  width: 36px;
  height: 36px;
  box-shadow: none;
  font-size: 18px;
}

.zoom-stack button + button {
  border-top: 1px solid #eceff1;
}

.map-scale {
  position: absolute;
  right: 16px;
  bottom: 12px;
  z-index: 20;
  font-size: 11px;
  font-weight: 600;
  color: #3c4043;
  background: rgba(255, 255, 255, 0.88);
  padding: 2px 8px;
  border-radius: 6px;
}

.hidden {
  display: none !important;
}

/* Modals & Lightbox */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.5);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.modal-compact {
  max-width: 390px;
}

.modal-profile {
  max-width: 540px;
}

.profile-modal-body {
  display: grid;
  gap: 12px;
}

.profile-modal-hero {
  background: linear-gradient(135deg, #f0fdfa 0%, #e8f0fe 100%);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 8px;
}

.profile-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-activity-section {
  display: grid;
  gap: 6px;
}

.profile-activity-section h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-activity-item {
  border: 1px solid #eceff1;
  border-radius: 10px;
  padding: 9px 10px;
  background: #ffffff;
  display: grid;
  gap: 4px;
  font-size: 12.5px;
}

.profile-activity-link {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.profile-activity-link:hover {
  text-decoration: underline;
}

.profile-actions-col {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-left: auto;
  max-width: 100%;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-modal {
  border: none;
  background: #f1f3f4;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

.modal-form {
  display: grid;
  gap: 10px;
}

.modal-error {
  background: #fce8e6;
  color: var(--danger);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.modal-form label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-modal-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.google-signin-wrap {
  display: flex;
  justify-content: center;
  padding: 6px 0;
}

.auth-or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
}

.auth-or-divider::before,
.auth-or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 12px;
  margin: 4px 0 8px;
}

.auth-tab-btn {
  border: none;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 9px;
  cursor: pointer;
}

.auth-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  display: grid;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
}

.auth-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 13.5px;
  font-family: inherit;
  color: #0f172a;
}

.auth-form input:focus {
  outline: 2px solid rgba(255, 36, 66, 0.22);
  border-color: #ff2442;
}

.auth-submit-btn {
  width: 100%;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 2px;
}

.dev-login-section {
  border-top: 1px solid #eceff1;
  padding-top: 10px;
  display: grid;
  gap: 8px;
}

.dev-login-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.dev-login-buttons {
  display: grid;
  gap: 6px;
}

.dev-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 10px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}

.dev-profile-btn:hover {
  border-color: var(--primary);
  background: #f8fbff;
}

.lightbox-card {
  position: relative;
  max-width: min(92vw, 760px);
  max-height: 90vh;
  background: #111827;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.lightbox-card img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-card p {
  color: #e5e7eb;
  font-size: 12px;
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
}

.comment-toggle-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.comment-toggle-btn:hover,
.comment-toggle-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: #f0f6ff;
}

.post-discussion-drawer {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #eceff1;
  display: grid;
  gap: 8px;
}

.discussion-note {
  font-size: 12px;
  color: var(--muted);
}

.discussion-error {
  font-size: 12px;
  color: var(--danger);
  font-weight: 600;
}

.comment-list {
  display: grid;
  gap: 6px;
}

.comment-item {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  display: grid;
  gap: 4px;
}

.comment-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.comment-author {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}

.comment-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.comment-date {
  font-size: 10px;
  color: var(--muted);
}

.comment-body {
  font-size: 12px;
  line-height: 1.4;
  color: #374151;
}

.comment-form {
  display: grid;
  gap: 6px;
}

.comment-input-row {
  display: flex;
  gap: 6px;
}

.comment-input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-family: inherit;
}

.comment-submit-btn,
.comment-signin-btn {
  border: none;
  background: var(--primary);
  color: #ffffff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.comment-signin-btn {
  background: #f1f3f4;
  color: var(--primary);
  justify-self: start;
}

.mobile-preview-btn {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.mobile-preview-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.mobile-sheet-handle {
  display: none;
  position: sticky;
  top: 0;
  z-index: 6;
  flex-shrink: 0;
  border: none;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  width: 100%;
  padding: 10px 0 6px;
  justify-content: center;
  align-items: center;
  cursor: ns-resize;
  touch-action: none;
}

.sheet-pill {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #cbd5e1;
  display: block;
}

.mobile-bottom-nav {
  display: none;
}

/* Segmented Grid vs Spotlight Switch */
.feed-mode-switch {
  display: inline-flex;
  background: #f1f3f4;
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.feed-mode-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.feed-mode-btn.active {
  background: #111827;
  color: #ffffff;
}

/* RedNote (Xiaohongshu) 2-Column Masonry Grid */
.social-feed-list.grid-mode {
  display: block;
  column-count: 2;
  column-gap: 8px;
  padding: 10px;
}

.xhs-card {
  break-inside: avoid;
  margin-bottom: 8px;
  border: 1px solid #eceff1;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  transition: transform 0.12s, box-shadow 0.15s, border-color 0.15s;
}

.xhs-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.xhs-card.highlighted {
  border-color: var(--social);
  box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.25);
}

.xhs-cover {
  position: relative;
  height: 112px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  cursor: pointer;
  overflow: hidden;
}

.xhs-cover.tall {
  height: 132px;
}

.xhs-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.xhs-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0.56) 100%);
  z-index: 2;
}

.xhs-cover-top,
.xhs-cover-bottom {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.xhs-cover-pill {
  font-size: 9.5px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 999px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xhs-cover-pill.live {
  background: #dc2626;
}

.xhs-cover-pill.oneday {
  background: #7c3aed;
}

.xhs-motif {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 28px;
  opacity: 0.28;
  z-index: 2;
  pointer-events: none;
}

/* Curated Category Backdrops */
.art-harvest { background: linear-gradient(135deg, #be123c 0%, #fb7185 55%, #fda4af 100%); }
.art-wine { background: linear-gradient(135deg, #7c2d12 0%, #c2410c 55%, #fb923c 100%); }
.art-cycling { background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #38bdf8 100%); }
.art-culture { background: linear-gradient(135deg, #b45309 0%, #d97706 55%, #fbbf24 100%); }
.art-music { background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 55%, #a855f7 100%); }

.xhs-body {
  padding: 8px;
  display: grid;
  gap: 6px;
}

.xhs-title {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}

.xhs-reason {
  font-size: 10px;
  font-weight: 600;
  color: var(--social);
  background: #f3e8ff;
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xhs-creator-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.xhs-creator-btn {
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.xhs-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #1a73e8);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.xhs-handle {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xhs-follow-chip {
  border: 1px solid var(--primary);
  background: #ffffff;
  color: var(--primary);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.xhs-follow-chip.following {
  border-color: var(--border);
  color: var(--muted);
}

.xhs-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding-top: 5px;
  border-top: 1px solid #f1f5f9;
}

.xhs-stat-btn {
  border: none;
  background: #f8fafc;
  color: var(--muted);
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}

.xhs-stat-btn.active {
  background: #e6f4ea;
  color: var(--saved);
}

.xhs-discuss-panel {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
  display: grid;
  gap: 5px;
}

/* TikTok-Style Vertical Snap Spotlight Feed */
.spotlight-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  background: #0f172a;
  outline: none;
}

.spotlight-slide {
  position: relative;
  height: 100%;
  min-height: 360px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  overflow: hidden;
}

.spotlight-slide img.spotlight-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.spotlight-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0.15) 40%, rgba(15, 23, 42, 0.88) 100%);
  z-index: 2;
}

.spotlight-top-bar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 68px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spotlight-rail {
  position: absolute;
  right: 10px;
  bottom: 18px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rail-btn {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 23, 42, 0.56);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #ffffff;
  width: 48px;
  min-height: 48px;
  border-radius: 16px;
  padding: 5px 4px;
  display: grid;
  justify-items: center;
  gap: 2px;
  font-size: 15px;
  cursor: pointer;
}

.rail-btn span.rail-lbl {
  font-size: 9.5px;
  font-weight: 700;
}

.rail-btn.active {
  background: rgba(19, 115, 51, 0.88);
  border-color: #86efac;
}

.spotlight-overlay {
  position: relative;
  z-index: 4;
  margin: 0 66px 14px 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.52);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 6px;
}

.spotlight-author-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.spotlight-author-btn {
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.spotlight-overlay h3 {
  font-size: 15.5px;
  font-weight: 750;
  line-height: 1.25;
}

.spotlight-meta {
  font-size: 11.5px;
  color: #e2e8f0;
}

.spotlight-desc {
  font-size: 12px;
  color: #f1f5f9;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-discuss-sheet {
  position: relative;
  z-index: 6;
  margin: 0 12px 12px;
  padding: 10px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  max-height: 46%;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   Photo-First Full-Viewport Stages: Discover, Reels, Map & Split Modal
   ============================================================ */
.topbar-notif-btn {
  width: 34px;
  height: 34px;
  background: var(--surface);
  box-shadow: 0 1px 6px rgba(60, 64, 67, 0.22);
}

.global-notif-panel {
  position: absolute;
  top: 62px;
  right: 16px;
  left: auto;
  width: min(360px, calc(100vw - 24px));
  height: auto;
  max-height: min(420px, 75vh);
  overflow-y: auto;
  z-index: 65;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
}

.map-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Discover Stage (RedNote / Xiaohongshu Masonry Photo Wall) */
.discover-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: #f6f7f9;
  padding: 72px 20px 88px;
}

.discover-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.discover-pill-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 26px 2px 0;
  flex: 1 1 auto;
  -webkit-mask-image: linear-gradient(to right, #000 90%, transparent 100%);
  mask-image: linear-gradient(to right, #000 90%, transparent 100%);
}

.discover-pill-rail::-webkit-scrollbar {
  display: none;
}

.discover-cat-pill {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}

.discover-cat-pill:hover {
  background: #f1f5f9;
}

.discover-cat-pill.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.discover-subbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.discover-action-pill {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.discover-action-pill.social {
  background: #ff2442;
  border-color: #ff2442;
  color: #ffffff;
}

.discover-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

.discover-masonry {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.masonry-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rn-card {
  width: 100%;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.85);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  cursor: pointer;
}

.rn-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.rn-photo-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #1e293b;
}

.rn-photo-wrap.ratio-3-4 { aspect-ratio: 3 / 4; }
.rn-photo-wrap.ratio-4-5 { aspect-ratio: 4 / 5; }
.rn-photo-wrap.ratio-1-1 { aspect-ratio: 1 / 1; }
.rn-photo-wrap.ratio-10-13 { aspect-ratio: 10 / 13; }

.rn-photo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.rn-card:hover .rn-photo {
  transform: scale(1.03);
}

.rn-photo-badges {
  position: absolute;
  top: 9px;
  left: 9px;
  right: 9px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  pointer-events: none;
}

.rn-badge {
  background: rgba(15, 23, 42, 0.68);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.rn-badge.live {
  background: #ff2442;
}

.rn-badge.oneday {
  background: rgba(124, 58, 237, 0.9);
}

.rn-badge.meetup {
  background: rgba(13, 148, 136, 0.9);
}

.rn-photo-city {
  position: absolute;
  left: 9px;
  bottom: 9px;
  z-index: 3;
  background: rgba(15, 23, 42, 0.68);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  max-width: calc(100% - 18px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rn-card-body {
  padding: 10px 11px 11px;
  display: grid;
  gap: 7px;
}

.rn-card-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rn-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.rn-author-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.rn-author-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.rn-author-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rn-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 999px;
  padding: 3px 5px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.14s, background 0.14s;
}

.rn-like-btn:hover,
.rn-like-btn.saved {
  color: #ff2442;
  background: #fff1f2;
}

/* Reels Stage (TikTok Dark-Cinema Vertical Snap Scroll) */
.reels-stage {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0a0c10;
  color: #ffffff;
  overflow: hidden;
}

.reels-feed {
  height: 100%;
  width: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  outline: none;
}

.reels-feed::-webkit-scrollbar {
  display: none;
}

.reel-slide {
  position: relative;
  height: 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 66px 16px 26px;
}

.reel-card {
  position: relative;
  width: min(430px, 100%);
  height: 100%;
  max-height: 780px;
  border-radius: 22px;
  overflow: hidden;
  background: #141821;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.reel-bg-img,
.reel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.reel-video {
  background: #0b0e14;
}

.reel-bg-img.ken-burns {
  animation: reelKenBurns 14s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes reelKenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.07); }
}

.reel-photo-track {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
  z-index: 1;
}

.reel-photo-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
}

.reel-photo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reel-story-bars {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  gap: 4px;
  pointer-events: none;
}

.reel-story-bar {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  overflow: hidden;
}

.reel-story-fill {
  width: 0%;
  height: 100%;
  background: #ffffff;
  border-radius: 999px;
}

.reel-story-bar.done .reel-story-fill {
  width: 100%;
}

.reel-story-bar.active .reel-story-fill {
  animation: reelStoryFill 3.5s linear forwards;
}

.reel-card.paused .reel-story-bar.active .reel-story-fill,
.reel-card.paused .reel-bg-img.ken-burns {
  animation-play-state: paused;
}

@keyframes reelStoryFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

.reel-photo-tap-zone {
  position: absolute;
  top: 18%;
  bottom: 24%;
  width: 24%;
  z-index: 4;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.reel-photo-tap-zone.prev { left: 0; }
.reel-photo-tap-zone.next { right: 56px; }

.reel-mute-btn {
  position: absolute;
  top: 16px;
  right: 14px;
  z-index: 11;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 23, 42, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 15px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.reel-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 9;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.68);
  color: #ffffff;
  font-size: 22px;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.reel-play-indicator.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.reel-sentinel {
  height: 2px;
  width: 100%;
  flex-shrink: 0;
}

.reel-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(6, 8, 12, 0.96) 0%,
    rgba(6, 8, 12, 0.7) 36%,
    rgba(6, 8, 12, 0.18) 65%,
    rgba(6, 8, 12, 0.48) 100%
  );
  pointer-events: none;
}

.reel-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Dedicated Full-Viewport Profiles / Me Stage */
.profiles-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: #f6f7f9;
  padding: 74px 20px 88px;
}

.profiles-stage-header {
  max-width: 1160px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profiles-stage-header h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.profiles-stage-header p {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.profiles-stage-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 12px;
}

.reel-top-pills {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 70px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reel-rail {
  position: absolute;
  right: 12px;
  bottom: 24px;
  z-index: 5;
  display: grid;
  gap: 12px;
}

.reel-rail-btn {
  display: grid;
  justify-items: center;
  gap: 2px;
  border: none;
  background: rgba(15, 23, 42, 0.56);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #ffffff;
  width: 48px;
  min-height: 48px;
  padding: 6px 4px;
  border-radius: 14px;
  font-size: 17px;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s;
}

.reel-rail-btn:hover {
  background: rgba(15, 23, 42, 0.8);
  transform: scale(1.05);
}

.reel-rail-btn.active {
  background: #ff2442;
}

.reel-rail-lbl {
  font-size: 10px;
  font-weight: 700;
}

.reel-overlay {
  position: relative;
  z-index: 4;
  padding: 16px 72px 20px 16px;
  display: grid;
  gap: 7px;
}

.reel-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.reel-author-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.reel-follow-btn {
  border: none;
  background: #ff2442;
  color: #ffffff;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.reel-follow-btn.following {
  background: rgba(255, 255, 255, 0.2);
}

.reel-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
}

.reel-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
  color: #e2e8f0;
  font-weight: 600;
}

.reel-desc {
  font-size: 12.5px;
  line-height: 1.4;
  color: #f1f5f9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reels-desktop-nav {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  display: grid;
  gap: 10px;
}

.reels-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.reels-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* Floating Show Map / Back to Discover Pill */
.floating-map-pill {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 42;
  border: none;
  background: #0f172a;
  color: #ffffff;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.34);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.floating-map-pill:hover {
  background: #1e293b;
  transform: translateX(-50%) translateY(-2px);
}

/* Sidebar Event Card Photo Thumbnails & InfoWindow Image */
.event-card-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.event-card-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
}

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

.detail-hero-photo-wrap {
  width: 100%;
  height: 165px;
  border-radius: 12px;
  overflow: hidden;
  background: #e2e8f0;
}

.detail-hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gm-popup-img {
  width: 100%;
  max-width: 220px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
  display: block;
}

/* RedNote-Style Split Event / Post Detail Modal */
.rn-modal-card {
  width: min(960px, calc(100vw - 32px));
  height: min(700px, calc(100vh - 48px));
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.36);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}

.rn-modal-media {
  position: relative;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.rn-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rn-hero-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 3;
}

.rn-photo-strip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;
  max-width: calc(100% - 24px);
  bottom: 12px;
  z-index: 4;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.rn-photo-strip::-webkit-scrollbar {
  display: none;
}

.rn-strip-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  background: transparent;
}

.rn-strip-thumb.active {
  border-color: #ffffff;
}

.rn-strip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rn-modal-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #ffffff;
}

.rn-modal-topbar {
  padding: 12px 16px;
  border-bottom: 1px solid #eceff1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rn-modal-author {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
}

.rn-modal-top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.rn-modal-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px 20px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.rn-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rn-cta-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rn-community-area {
  border-top: 1px solid #eceff1;
  padding-top: 12px;
  display: grid;
  gap: 10px;
}

/* ============================================================
   Overnight UX Sprint 2: Feed Sub-Tabs, Nearby, Carousel,
   Interest Picker, Me Hub Tabs, Heart Burst & Shimmer Skeletons
   ============================================================ */
.discover-feed-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.discover-feed-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ebedf2;
  border-radius: 999px;
  padding: 3px;
}

.feed-subtab {
  border: none;
  background: transparent;
  color: #475569;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, box-shadow 0.14s;
}

.feed-subtab.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}

.personalize-pill {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #e11d48;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}

.personalize-pill.has-interests,
.personalize-pill:hover {
  background: #ff2442;
  border-color: #ff2442;
  color: #ffffff;
}

.nearby-city-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 10px;
}

.nearby-city-bar::-webkit-scrollbar {
  display: none;
}

.nearby-city-pill {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

.nearby-city-pill.active,
.nearby-city-pill.gps.active {
  background: #0d9488;
  border-color: #0d9488;
  color: #ffffff;
}

.nearby-status-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  margin-left: 4px;
}

.rn-badge.distance {
  background: rgba(13, 148, 136, 0.92);
}

.following-suggested-strip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 12px;
  display: grid;
  gap: 10px;
}

.suggested-insiders-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.suggested-insider-card {
  flex: 0 0 220px;
  border: 1px solid #eceff1;
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.reel-heart-burst {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  color: #ff2442;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 6px 18px rgba(255, 36, 66, 0.55));
  animation: reelHeartPop 0.7s ease-out forwards;
}

@keyframes reelHeartPop {
  0% { opacity: 0.95; transform: translate(-50%, -50%) scale(0.35) rotate(-10deg); }
  45% { opacity: 1; transform: translate(-50%, -62%) scale(1.35) rotate(8deg); }
  100% { opacity: 0; transform: translate(-50%, -95%) scale(1.05) rotate(0deg); }
}

/* RedNote Multi-Photo Carousel Controls */
.rn-photo-counter {
  position: absolute;
  right: 12px;
  top: 14px;
  z-index: 5;
  background: rgba(15, 23, 42, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #ffffff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
}

.rn-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.55);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.rn-carousel-arrow.prev { left: 10px; }
.rn-carousel-arrow.next { right: 10px; }

.rn-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
}

.rn-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.rn-carousel-dot.active {
  background: #ffffff;
  transform: scale(1.25);
}

/* Me Hub Tabs inside Profiles Stage */
.me-hub-tabs {
  max-width: 1160px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.me-hub-tabs::-webkit-scrollbar {
  display: none;
}

.me-hub-tab {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

.me-hub-tab.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.me-saved-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  gap: 12px;
  padding: 10px;
  cursor: pointer;
}

.me-saved-thumb {
  width: 82px;
  height: 82px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
}

/* Interest Picker Modal */
.interest-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.interest-pick-card {
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 14px;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s;
}

.interest-pick-card.selected {
  border-color: #ff2442;
  background: #fff1f2;
  color: #e11d48;
}

/* Shimmer Skeleton Loaders */
.rn-skeleton-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eceff1;
  padding-bottom: 10px;
}

.rn-skeleton-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(90deg, #eef2f6 25%, #e2e8f0 50%, #eef2f6 75%);
  background-size: 200% 100%;
  animation: shimmerPulse 1.3s infinite linear;
}

.rn-skeleton-line {
  height: 12px;
  margin: 10px 10px 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #eef2f6 25%, #e2e8f0 50%, #eef2f6 75%);
  background-size: 200% 100%;
  animation: shimmerPulse 1.3s infinite linear;
}

.rn-skeleton-line.short {
  width: 55%;
}

@keyframes shimmerPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Desktop Mobile Preview Frame (390x844) */
body.mobile-preview {
  background: #0f172a;
  display: grid;
  place-items: center;
  padding: 12px;
}

body.mobile-preview .map-app {
  width: 390px;
  height: min(844px, calc(100vh - 24px));
  border-radius: 36px;
  border: 8px solid #1e293b;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

body.mobile-preview .stage-mode-switch {
  display: none;
}

body.mobile-preview .floating-topbar {
  left: 10px;
  right: 10px;
  top: 10px;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  overflow: visible;
}

body.mobile-preview .map-app[data-stage="map"] .floating-topbar,
body.mobile-preview .map-app[data-stage="map"].sidebar-collapsed .floating-topbar {
  left: 10px;
}

body.mobile-preview .search-card {
  order: 1;
  min-width: 0;
  max-width: none;
  flex: 1 1 0;
  padding: 6px 10px;
  gap: 6px;
}

body.mobile-preview .search-card input {
  min-width: 0;
  font-size: 13px;
}

body.mobile-preview .filter-chips {
  flex-wrap: wrap;
}

body.mobile-preview .auth-bar {
  order: 2;
  margin-left: 0;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 4px;
}

body.mobile-preview .auth-bar .chip {
  min-height: 34px;
  padding: 5px 8px;
  font-size: 11.5px;
}

body.mobile-preview .auth-handle {
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.mobile-preview .chip {
  min-height: 34px;
  white-space: nowrap;
}

body.mobile-preview .collapse-sidebar-btn,
body.mobile-preview .map-scale,
body.mobile-preview #locate-munich,
body.mobile-preview #manage-maps-key,
body.mobile-preview #saved-trip-toggle,
body.mobile-preview .dev-profile-select,
body.mobile-preview .reels-desktop-nav {
  display: none;
}

body.mobile-preview .discover-stage {
  padding: 102px 10px 76px;
}

body.mobile-preview .discover-subbar-actions {
  display: none;
}

body.mobile-preview .discover-status-bar {
  display: block;
  padding: 2px 2px 6px;
  font-size: 12px;
  color: #64748b;
}

body.mobile-preview .discover-masonry {
  gap: 10px;
}

body.mobile-preview .masonry-col {
  gap: 10px;
}

body.mobile-preview .rn-card {
  border-radius: 13px;
}

body.mobile-preview .profiles-stage {
  padding: 102px 10px 76px;
}

body.mobile-preview .profiles-stage-grid {
  grid-template-columns: 1fr;
}

body.mobile-preview .reel-slide {
  padding: 0 0 62px;
}

body.mobile-preview .reel-card {
  width: 100%;
  max-height: none;
  border-radius: 0;
}

body.mobile-preview .reel-top-pills {
  top: 102px;
}

body.mobile-preview .reel-story-bars {
  top: 90px;
}

body.mobile-preview .reel-mute-btn {
  top: 102px;
  right: 12px;
}

body.mobile-preview .reel-rail {
  bottom: 48px;
}

body.mobile-preview .reel-overlay {
  padding-bottom: 40px;
}

body.mobile-preview .feed-subtab {
  padding: 5px 11px;
  font-size: 12px;
}

body.mobile-preview .personalize-pill {
  padding: 5px 10px;
  font-size: 11.5px;
}

body.mobile-preview .rn-photo-strip {
  display: none;
}

body.mobile-preview .rn-carousel-dots {
  bottom: 12px;
}

body.mobile-preview .me-hub-tabs {
  gap: 6px;
}

body.mobile-preview .me-hub-tab {
  padding: 5px 9px;
  font-size: 11px;
}

body.mobile-preview .floating-map-pill {
  display: none;
}

body.mobile-preview .toast-banner {
  top: 146px;
  bottom: auto;
}

body.mobile-preview .rn-cta-bar .action-btn {
  white-space: nowrap;
  padding: 9px 10px;
  font-size: 12.5px;
}

body.mobile-preview .map-app[data-stage="discover"] .floating-topbar,
body.mobile-preview .map-app[data-stage="profiles"] .floating-topbar {
  padding: 10px 10px 8px;
}

body.mobile-preview .map-app[data-stage="reels"] .floating-topbar {
  padding: 10px 10px 12px;
}

body.mobile-preview .map-app[data-stage="reels"] .mobile-bottom-nav {
  background: rgba(10, 12, 16, 0.96);
  border-top-color: rgba(255, 255, 255, 0.12);
}

body.mobile-preview .map-app[data-stage="reels"] .mobile-nav-btn {
  color: #94a3b8;
}

body.mobile-preview .map-app[data-stage="reels"] .mobile-nav-btn.active {
  color: #ffffff;
}

body.mobile-preview .global-notif-panel {
  top: 98px;
  right: 10px;
  width: 350px;
  height: auto;
  max-height: 75vh;
}

body.mobile-preview .rn-modal-card {
  width: calc(100% - 16px);
  height: calc(100% - 32px);
  grid-template-columns: 1fr;
  grid-template-rows: 230px 1fr;
  border-radius: 16px;
}

body.mobile-preview .mobile-sheet-handle {
  display: flex;
}

body.mobile-preview .sidebar {
  width: 100%;
  left: 0;
  right: 0;
  top: auto;
  bottom: 62px;
  border-radius: 20px 20px 0 0;
  height: 50%;
  transition: height 0.22s ease;
}

body.mobile-preview .sidebar[data-sheet-state="peek"] {
  height: 112px;
  overflow: hidden;
}

body.mobile-preview .sidebar[data-sheet-state="half"] {
  height: 50%;
}

body.mobile-preview .sidebar[data-sheet-state="full"] {
  height: calc(100% - 122px);
}

body.mobile-preview .timeline-bar {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  max-width: none;
  padding: 0;
}

body.mobile-preview .filter-popover {
  position: fixed;
  top: 114px;
  left: 50%;
  transform: translateX(-50%);
  width: min(354px, calc(100vw - 24px));
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

body.mobile-preview .compact-filter-bar {
  order: 3;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

body.mobile-preview .compact-filter-bar::-webkit-scrollbar {
  display: none;
}

body.mobile-preview .compact-filter-bar .chip {
  padding: 6px 11px;
  font-size: 12px;
  flex-shrink: 0;
}

body.mobile-preview .active-filter-chips {
  flex-wrap: nowrap;
  flex-shrink: 0;
}

body.mobile-preview .map-controls {
  right: 10px;
  top: 100px;
  bottom: auto;
}

body.mobile-preview .maps-setup-overlay {
  left: 10px;
  right: 10px;
  top: 100px;
  bottom: 180px;
}

body.mobile-preview .mobile-bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 4px 6px env(safe-area-inset-bottom, 4px);
}

.mobile-nav-btn {
  position: relative;
  border: none;
  background: transparent;
  color: var(--muted);
  min-height: 44px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.mobile-nav-btn.active {
  color: #ff2442;
}

.mobile-nav-icon {
  font-size: 16px;
  line-height: 1;
}

.mobile-nav-post .mobile-nav-icon {
  width: 28px;
  height: 22px;
  border-radius: 8px;
  background: #ff2442;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.mobile-notif-dot {
  position: absolute;
  top: 6px;
  right: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626;
}

@media (max-width: 768px) {
  body.mobile-preview {
    padding: 0;
  }

  body.mobile-preview .map-app {
    width: 100vw;
    height: 100vh;
    border: none;
    border-radius: 0;
  }

  .mobile-preview-btn,
  .stage-mode-switch,
  .reels-desktop-nav {
    display: none;
  }

  .floating-topbar {
    left: 10px;
    right: 10px;
    top: 10px;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    overflow: visible;
  }

  .map-app[data-stage="map"] .floating-topbar,
  .map-app[data-stage="map"].sidebar-collapsed .floating-topbar {
    left: 10px;
  }

  .search-card {
    order: 1;
    min-width: 0;
    max-width: none;
    flex: 1 1 0;
    padding: 6px 10px;
    gap: 6px;
  }

  .search-card input {
    min-width: 0;
    font-size: 13px;
  }

  .filter-chips {
    flex-wrap: wrap;
  }

  .auth-bar {
    order: 2;
    margin-left: 0;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 4px;
  }

  .auth-bar .chip {
    min-height: 36px;
    padding: 5px 9px;
    font-size: 12px;
  }

  .auth-handle {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .chip {
    min-height: 36px;
    white-space: nowrap;
  }

  .collapse-sidebar-btn,
  .map-scale,
  #locate-munich,
  #manage-maps-key,
  #saved-trip-toggle,
  .dev-profile-select {
    display: none;
  }

  .map-app[data-stage="discover"] .floating-topbar,
  .map-app[data-stage="profiles"] .floating-topbar {
    padding: 10px 10px 8px;
  }

  .map-app[data-stage="reels"] .floating-topbar {
    padding: 10px 10px 12px;
  }

  .discover-stage {
    padding: 102px 10px 78px;
  }

  .discover-subbar-actions {
    display: none;
  }

  .discover-status-bar {
    display: block;
    padding: 2px 2px 6px;
    font-size: 12px;
    color: #64748b;
  }

  .discover-masonry {
    gap: 10px;
  }

  .masonry-col {
    gap: 10px;
  }

  .rn-card {
    border-radius: 13px;
  }

  .profiles-stage {
    padding: 102px 10px 78px;
  }

  .profiles-stage-grid {
    grid-template-columns: 1fr;
  }

  .reel-slide {
    padding: 0 0 64px;
  }

  .reel-card {
    width: 100%;
    max-height: none;
    border-radius: 0;
  }

  .reel-top-pills {
    top: 102px;
  }

  .reel-counter-pill {
    top: 102px;
    right: 12px;
  }

  .feed-subtab {
    padding: 5px 11px;
    font-size: 12px;
  }

  .personalize-pill {
    padding: 5px 10px;
    font-size: 11.5px;
  }

  .rn-photo-strip {
    display: none;
  }

  .rn-carousel-dots {
    bottom: 12px;
  }

  .me-hub-tabs {
    gap: 6px;
  }

  .me-hub-tab {
    padding: 5px 9px;
    font-size: 11px;
  }

  .floating-map-pill {
    display: none;
  }

  .toast-banner {
    top: 146px;
    bottom: auto;
  }

  .rn-cta-bar .action-btn {
    white-space: nowrap;
    padding: 9px 10px;
    font-size: 12.5px;
  }

  .map-app[data-stage="reels"] .mobile-bottom-nav {
    background: rgba(10, 12, 16, 0.96);
    border-top-color: rgba(255, 255, 255, 0.12);
  }

  .map-app[data-stage="reels"] .mobile-nav-btn {
    color: #94a3b8;
  }

  .map-app[data-stage="reels"] .mobile-nav-btn.active {
    color: #ffffff;
  }

  .global-notif-panel {
    top: 98px;
    right: 10px;
    left: 10px;
    width: auto;
  }

  .rn-modal-card {
    width: calc(100vw - 16px);
    height: calc(100vh - 28px);
    grid-template-columns: 1fr;
    grid-template-rows: 230px 1fr;
    border-radius: 16px;
  }

  .mobile-sheet-handle {
    display: flex;
  }

  .sidebar {
    width: 100%;
    left: 0;
    right: 0;
    top: auto;
    bottom: 64px;
    border-radius: 20px 20px 0 0;
    height: 50vh;
    transition: height 0.22s ease;
  }

  .sidebar[data-sheet-state="peek"] {
    height: 112px;
    overflow: hidden;
  }

  .sidebar[data-sheet-state="half"] {
    height: 48vh;
  }

  .sidebar[data-sheet-state="full"] {
    height: calc(100vh - 134px);
  }

  .timeline-bar {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .filter-popover,
  body.mobile-preview .filter-popover {
    position: fixed;
    top: 98px;
    left: 12px;
    right: 12px;
    transform: none;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 172px);
    overflow-y: auto;
  }

  .compact-filter-bar {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .compact-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .compact-filter-bar .chip {
    padding: 6px 11px;
    flex-shrink: 0;
  }

  .active-filter-chips {
    flex-wrap: nowrap;
    flex-shrink: 0;
  }

  .map-controls {
    top: 100px;
    bottom: auto;
    right: 10px;
  }

  .maps-setup-overlay {
    left: 10px;
    right: 10px;
    top: 100px;
    bottom: 180px;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    z-index: 50;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding: 4px 6px env(safe-area-inset-bottom, 4px);
  }
}

/* ================================================================
   Milestone 1B: Named Trip Boards (Screen 06) & Smart Search (07)
   ================================================================ */
.trip-boards-shell {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
}

.trip-boards-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.trip-boards-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.trip-new-board-btn {
  border: none;
  border-radius: 999px;
  background: #ff2442;
  color: #ffffff;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.trip-boards-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.trip-boards-pills::-webkit-scrollbar {
  display: none;
}

.trip-board-pill {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

.trip-board-pill.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.trip-board-hero {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.trip-board-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.trip-board-hero-top h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.trip-board-subtitle {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #475569;
}

.trip-board-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.trip-share-pill {
  border: none;
  border-radius: 999px;
  background: #fff1f2;
  color: #e11d48;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.trip-route-btn {
  border: none;
  border-radius: 999px;
  background: #0d9488;
  color: #ffffff;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.trip-copy-slug-btn,
.trip-delete-btn {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.trip-delete-btn {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

.itinerary-section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-top: 2px;
}

.trip-itinerary-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
}

.me-saved-card.itinerary-card {
  align-items: center;
  padding: 10px 12px;
}

.itinerary-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.itinerary-date-pill {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.itinerary-date-pill.today {
  background: #ff2442;
  color: #ffffff;
}

.itinerary-date-pill.soon {
  background: #f97316;
  color: #ffffff;
}

.itinerary-date-pill.upcoming {
  background: #0d9488;
  color: #ffffff;
}

.itinerary-status-text {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.itinerary-status-text.live {
  color: #e11d48;
}

.itinerary-status-text.soon {
  color: #ea580c;
}

.itinerary-status-text.peak {
  color: #0d9488;
}

/* Modal Board Picker */
.rn-board-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.board-pick-chip {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.board-pick-chip.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.checkbox-row,
.modal-form label.checkbox-row {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"],
.modal-form label.checkbox-row input[type="checkbox"] {
  width: auto !important;
  flex: 0 0 auto;
  margin: 0;
}

/* Smart Search Overlay (Screen 07) */
.smart-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(15, 23, 42, 0.28);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 66px 16px 24px;
}

.smart-search-panel {
  width: min(740px, 100%);
  max-height: calc(100vh - 90px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.smart-search-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.smart-search-input-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0 12px;
  height: 38px;
}

.smart-search-input-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: #0f172a;
}

.smart-search-cancel {
  border: none;
  background: transparent;
  color: #475569;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 4px;
  white-space: nowrap;
}

.smart-search-body {
  padding: 14px 16px 20px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.ss-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.ss-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ss-section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.ss-clear-btn {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.ss-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ss-tag-pill {
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
}

.ss-tag-pill.hot {
  background: #fff1f2;
  color: #be123c;
}

.ss-city-pill {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
}

.ss-city-pill.top {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.ss-event-row,
.ss-insider-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.14s ease;
}

.ss-event-row:hover,
.ss-insider-row:hover {
  background: #f1f5f9;
}

.ss-event-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
}

.ss-row-meta {
  flex: 1;
  min-width: 0;
}

.ss-row-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ss-row-sub {
  display: block;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ss-status-pill {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
}

.ss-status-pill.live {
  background: #ff2442;
  color: #ffffff;
}

.ss-status-pill.gem {
  background: #0d9488;
  color: #ffffff;
}

.ss-status-pill.major {
  background: #0f172a;
  color: #ffffff;
}

.ss-initials-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

body.mobile-preview .smart-search-overlay {
  padding: 0;
  background: #ffffff;
  z-index: 80;
}

body.mobile-preview .smart-search-panel {
  width: 100%;
  height: 100%;
  max-height: 100vh;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .trip-itinerary-list {
    grid-template-columns: 1fr;
  }

  .smart-search-overlay {
    padding: 0;
    background: #ffffff;
    z-index: 80;
  }

  .smart-search-panel {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
}

/* ================================================================
   Milestone 1B Part 2: Publishing Studio (Screen 05),
   Activity & Alerts + Who's Going + Insider Stats + Countdown (08)
   ================================================================ */
.rn-cta-bar .calendar-ics-btn {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

.global-notif-panel {
  width: min(400px, calc(100vw - 24px));
  max-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 10px;
}

.notif-filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.notif-filter-tabs::-webkit-scrollbar {
  display: none;
}

.notif-filter-pill {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.notif-filter-pill.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.notif-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
}

.notif-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  text-align: left;
  width: 100%;
}

.notif-card.unread {
  background: #fff5f6;
  border-color: #ffe4e8;
}

.notif-card-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.notif-card-msg {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #0f172a;
}

.notif-card-meta {
  font-size: 11px;
  color: #64748b;
}

.notif-cta-pill {
  flex-shrink: 0;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.notif-cta-pill.primary {
  border: none;
  background: #ff2442;
  color: #ffffff;
}

/* Dark 1-Day Only / Live Countdown Banner */
.countdown-banner {
  background: #0f172a;
  color: #ffffff;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.countdown-banner.compact {
  padding: 10px 12px;
  margin-bottom: 0;
}

.countdown-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.countdown-kicker {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.countdown-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.countdown-go-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: #ff2442;
  color: #ffffff;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

/* Who's Going Attendee Avatar Stack */
.rn-whos-going {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 12px;
  display: grid;
  gap: 8px;
}

.whos-going-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.whos-going-head strong {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
}

.whos-going-pill {
  background: #ecfdf5;
  color: #047857;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
}

.whos-going-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}

.whos-going-avatars {
  display: flex;
  align-items: center;
}

.wg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
  color: #ffffff;
  border: 2px solid #ffffff;
  margin-left: -7px;
  flex-shrink: 0;
}

.wg-avatar:first-child {
  margin-left: 0;
}

.wg-more-pill {
  margin-left: 8px;
  background: #e2e8f0;
  color: #334155;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
}

.whos-going-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.whos-going-mini .wg-avatar {
  width: 20px;
  height: 20px;
  font-size: 8.5px;
  margin-left: -5px;
}

.whos-going-mini .wg-avatar:first-child {
  margin-left: 0;
}

.whos-going-mini-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #047857;
}

/* Verified Local Insider Badge & Creator Impact Stats */
.verified-insider-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 800;
  vertical-align: middle;
  white-space: nowrap;
}

.creator-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.creator-impact-stat {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 7px 8px;
  text-align: center;
}

.creator-impact-stat strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.creator-impact-stat span {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
}

.creator-follow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.creator-follow-chip {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.creator-follow-drawer {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: grid;
  gap: 6px;
}

.creator-user-link {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 3px 0;
  text-align: left;
  cursor: pointer;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 600;
}

/* Unified Publishing Studio Modal (Screen 05) */
.studio-modal-card {
  width: min(620px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
}

#studio-modal {
  z-index: 85;
}

.studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.studio-header h2 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
}

.studio-cancel-btn {
  border: none;
  background: transparent;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.studio-publish-btn {
  border: none;
  border-radius: 999px;
  background: #ff2442;
  color: #ffffff;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.studio-form {
  flex: 1;
  min-height: 0;
  padding: 14px 16px 22px;
  overflow-y: auto;
  display: grid;
  gap: 12px;
}

.studio-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #f1f5f9;
}

.studio-mode-btn {
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  background: transparent;
  cursor: pointer;
}

.studio-mode-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.studio-photos-section {
  display: grid;
  gap: 8px;
}

.studio-photos-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
}

.studio-photos-head strong {
  color: #0f172a;
}

.studio-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.studio-photo-slot {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.studio-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.studio-photo-slot.add-slot {
  border: 2px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}

.studio-photo-slot.empty-slot {
  border: 1px dashed #e2e8f0;
  background: #f8fafc;
}

.studio-cover-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  border: none;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.68);
  color: #ffffff;
  cursor: pointer;
}

.studio-cover-tag.is-cover {
  background: #ff2442;
}

.studio-photo-del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.studio-url-fallback {
  display: flex;
  gap: 6px;
}

.studio-url-fallback input {
  flex: 1;
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
}

.studio-safesearch-pill {
  background: #ecfdf5;
  color: #047857;
  border-radius: 10px;
  padding: 7px 11px;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
}

.studio-field-box {
  min-width: 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 9px 12px;
  display: grid;
  gap: 5px;
}

.studio-field-box.pin-tint {
  background: #f0fdfa;
  border-color: #ccfbf1;
}

.studio-field-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #64748b;
}

.studio-field-label.teal {
  color: #0d9488;
}

.studio-field-box input,
.studio-field-box textarea,
.studio-field-box select {
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  resize: vertical;
}

.studio-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.studio-date-inputs,
.studio-latlon-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.studio-mini-field {
  display: grid;
  gap: 2px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px 7px;
  min-width: 0;
}

.studio-mini-field > span {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.studio-pin-options {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 12px;
}

.studio-pin-options .form-row {
  gap: 10px;
}

.studio-pin-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.studio-pin-tools select {
  flex: 1;
  min-width: 0;
}

.studio-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.studio-rsvp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
}

.studio-rsvp-row strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
}

.studio-rsvp-row span {
  font-size: 11px;
  color: #64748b;
}

.studio-toggle-switch {
  width: 20px;
  height: 20px;
  accent-color: #0d9488;
}

body.mobile-preview .global-notif-panel {
  left: 10px;
  right: 10px;
  width: auto;
  top: 96px;
  bottom: auto;
  height: auto;
  max-height: 75vh;
}

body.mobile-preview .studio-modal-card {
  width: 100%;
  height: 100%;
  max-height: 100vh;
  border-radius: 0;
}

body.mobile-preview .studio-two-col {
  grid-template-columns: 1fr;
}

@media (max-width: 768px) {
  .filter-popover.exclude-popover {
    right: 0;
    width: min(330px, calc(100vw - 24px));
  }
  .global-notif-panel {
    left: 10px;
    right: 10px;
    width: auto;
    top: 96px;
    bottom: auto;
    height: auto;
    max-height: 75vh;
  }

  .studio-modal-card {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .studio-two-col {
    grid-template-columns: 1fr;
  }

  #privacy-modal,
  #mod-queue-modal {
    padding: 0;
    z-index: 48;
    align-items: flex-start;
  }

  .m2-sheet-card {
    width: 100%;
    height: calc(100vh - 64px);
    max-height: calc(100vh - 64px);
    border-radius: 0;
  }
}

/* ================================================================
   #146 Fixes + Milestone 2 Screens 09, 10, 11
   ================================================================ */
@media (min-width: 769px) and (max-width: 1400px) {
  .floating-topbar {
    flex-wrap: nowrap;
    gap: 3px;
  }

  .map-app[data-stage="map"] .floating-topbar {
    left: 362px;
    right: 8px;
  }

  .stage-mode-btn {
    padding: 4px 6px;
    font-size: 11px;
  }

  .search-card {
    min-width: 155px;
    flex: 1 1 160px;
    padding: 5px 8px;
    gap: 4px;
  }

  .search-card input {
    font-size: 12px;
    min-width: 80px;
  }

  .compact-filter-bar {
    gap: 3px;
    flex-shrink: 0;
  }

  .compact-filter-bar .chip,
  .auth-bar .chip {
    padding: 4px 6px;
    font-size: 11px;
    white-space: nowrap;
  }

  body:not(.mobile-preview) .map-app[data-stage="map"] .along-route-label-full,
  body:not(.mobile-preview) .trip-label-extra {
    display: none;
  }

  body:not(.mobile-preview) .map-app[data-stage="map"] .along-route-label-short {
    display: inline;
  }

  .auth-bar {
    gap: 3px;
    flex-shrink: 0;
  }
}

@media (min-width: 769px) and (max-width: 1250px) {
  body:not(.mobile-preview) .map-app[data-stage="map"] .sidebar {
    left: 8px;
    width: 310px;
  }

  body:not(.mobile-preview) .map-app[data-stage="map"] .floating-topbar {
    left: 322px;
    right: 8px;
    gap: 3px;
  }

  body:not(.mobile-preview) .map-app[data-stage="map"] .trip-route-banner,
  body:not(.mobile-preview) .map-app[data-stage="map"] .along-route-banner {
    left: 322px;
    right: 8px;
  }

  body:not(.mobile-preview) .stage-mode-switch {
    padding: 2px;
    gap: 1px;
  }

  body:not(.mobile-preview) .stage-mode-btn {
    padding: 4px 5px;
    font-size: 10.5px;
  }

  body:not(.mobile-preview) .search-card {
    min-width: 48px;
    flex: 1 1 54px;
    padding: 4px 6px;
    gap: 3px;
  }

  body:not(.mobile-preview) .search-card input {
    font-size: 11px;
    min-width: 28px;
  }

  body:not(.mobile-preview) .compact-filter-bar,
  body:not(.mobile-preview) .auth-bar {
    gap: 3px;
  }

  body:not(.mobile-preview) .compact-filter-bar .chip,
  body:not(.mobile-preview) .auth-bar .chip {
    padding: 4px 6px;
    font-size: 10.5px;
    gap: 3px;
  }

  body:not(.mobile-preview) .along-route-label-full,
  body:not(.mobile-preview) .trip-label-extra {
    display: none;
  }

  body:not(.mobile-preview) .along-route-label-short {
    display: inline;
  }

  body:not(.mobile-preview) .chip .trip-badge {
    padding: 1px 4px;
    font-size: 10px;
  }

  body:not(.mobile-preview) .notif-bell-btn.topbar-notif-btn {
    width: 25px;
    height: 25px;
    font-size: 12px;
  }
}

body.mobile-preview .modal-backdrop,
body.mobile-preview .smart-search-overlay {
  left: 50%;
  right: auto;
  top: 50%;
  bottom: auto;
  width: 390px;
  height: min(844px, calc(100vh - 24px));
  max-width: 390px;
  transform: translate(-50%, -50%);
  border-radius: 28px;
  overflow: hidden;
}

body.mobile-preview #privacy-modal,
body.mobile-preview #mod-queue-modal {
  padding: 0;
  z-index: 48;
  align-items: flex-start;
}

body.mobile-preview .m2-sheet-card {
  width: 100%;
  height: calc(100% - 64px);
  max-height: calc(100% - 64px);
  border-radius: 0;
}

.me-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* Screen 11: Verified Local Insider Impact Dashboard */
.me-impact-dashboard {
  max-width: 1160px;
  margin: 0 auto 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px 16px;
  display: grid;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.m2-impact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.m2-impact-user {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.m2-impact-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ff2442;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.m2-impact-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.m2-kpi-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 9px 10px;
  text-align: center;
}

.m2-kpi-box strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
}

.m2-kpi-box.saves strong { color: #ff2442; }
.m2-kpi-box.rsvps strong { color: #0f172a; }
.m2-kpi-box.helpful strong { color: #059669; }

.m2-kpi-box span {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.m2-ambassador-box {
  display: grid;
  gap: 6px;
}

.m2-ambassador-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #64748b;
}

.m2-ambassador-head strong {
  color: #e11d48;
  font-size: 12px;
}

.m2-progress-track {
  height: 8px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}

.m2-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff2442, #fb7185);
  transition: width 0.25s ease;
}

.m2-top-pins-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
}

.m2-top-pin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.m2-top-pin-row:hover {
  background: #f1f5f9;
}

.m2-top-pin-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
}

/* Screens 09 & 10 Sheet Modals */
.m2-sheet-card {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 36px);
  padding: 0;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.m2-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.m2-sheet-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  flex: 1;
}

.m2-back-btn {
  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  padding: 4px 6px;
}

.m2-status-pill {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.m2-status-pill.mint {
  background: #ecfdf5;
  color: #047857;
}

.m2-status-pill.rose {
  background: #fff1f2;
  color: #e11d48;
}

.m2-sheet-body {
  padding: 14px 16px 22px;
  overflow-y: auto;
  display: grid;
  gap: 12px;
}

.m2-card-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.m2-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.m2-mini-tag {
  background: #f1f5f9;
  color: #475569;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10.5px;
  font-weight: 700;
}

.m2-mini-tag.rose {
  background: #fff1f2;
  color: #e11d48;
}

.m2-seg-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 3px;
}

.m2-seg-btn {
  border: none;
  background: transparent;
  color: #475569;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.m2-seg-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.m2-helper-copy {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}

.m2-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
}

.m2-toggle-row small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

.m2-digest-block {
  display: grid;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}

.m2-digest-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

.m2-digest-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.m2-digest-pill {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  border-radius: 999px;
  padding: 6px 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.m2-digest-pill.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.m2-digest-preview {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11.5px;
  color: #475569;
}

.m2-pwa-card {
  background: #0f172a;
  color: #ffffff;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.m2-pwa-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ff2442;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.m2-pwa-copy {
  flex: 1;
  min-width: 0;
}

.m2-pwa-copy strong {
  display: block;
  font-size: 13px;
}

.m2-pwa-copy span {
  font-size: 11px;
  color: #94a3b8;
}

.m2-pwa-install-btn {
  border: none;
  border-radius: 999px;
  background: #ff2442;
  color: #ffffff;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.m2-save-cta {
  width: 100%;
  border: none;
  border-radius: 999px;
  background: #ff2442;
  color: #ffffff;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

/* Screen 10: Moderator Queue */
.m2-mod-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.m2-mod-tab {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.m2-mod-tab.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.m2-safesearch-bar {
  background: #ecfdf5;
  color: #047857;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.m2-mod-list {
  display: grid;
  gap: 10px;
}

.m2-mod-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.m2-mod-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.m2-mod-badge {
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10.5px;
  font-weight: 800;
}

.m2-mod-badge.hidden-badge {
  background: #fff1f2;
  color: #e11d48;
}

.m2-mod-badge.review-badge {
  background: #fff7ed;
  color: #ea580c;
}

.m2-mod-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.m2-mod-btn {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.m2-mod-btn.mint {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.m2-mod-btn.danger {
  background: #ff2442;
  border-color: #ff2442;
  color: #ffffff;
}

/* ================================================================
   Milestone 3: Trip Route Overlay (#44), Highlights Rail (#45),
   WCAG Focus / Live Announcer / Reduced Motion / Safari Polish (#46)
   ================================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.discover-highlights-rail {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}

.map-app[data-stage="map"] .toast-banner {
  top: auto;
  bottom: 24px;
}

.discover-highlights-rail::-webkit-scrollbar {
  display: none;
}

.highlight-pill {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.highlight-pill:hover {
  background: #f8fafc;
}

.highlight-pill.active {
  background: #ff2442;
  border-color: #ff2442;
  color: #ffffff;
}

.trip-route-banner {
  position: absolute;
  top: 66px;
  left: 384px;
  right: 16px;
  z-index: 28;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
  display: grid;
  gap: 8px;
}

.map-app[data-stage="map"].sidebar-collapsed .trip-route-banner {
  left: 24px;
}

.trip-route-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.trip-route-head strong {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.trip-route-ctas {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trip-route-ics-btn,
.trip-board-ics-btn {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.trip-route-exit-btn {
  border: none;
  background: #0f172a;
  color: #ffffff;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.trip-route-stops {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-right: 18px;
  -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, #000 88%, transparent 100%);
}

.trip-route-stops::-webkit-scrollbar {
  display: none;
}

.trip-route-stop-chip {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #be123c;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

.trip-route-stop-chip.active {
  background: #ff2442;
  border-color: #ff2442;
  color: #ffffff;
}

.floating-topbar,
.smart-search-overlay {
  -webkit-backdrop-filter: blur(14px);
}

.map-app,
.reels-stage {
  height: 100dvh;
}

@media (max-width: 768px) {
  .trip-route-banner {
    top: 98px;
    left: 10px;
    right: 10px;
  }

  .map-app[data-stage="map"] .toast-banner {
    top: auto;
    bottom: 76px;
  }
}

body.mobile-preview .trip-route-banner,
body.mobile-preview .map-app[data-stage="map"] .trip-route-banner {
  top: 98px;
  left: 10px;
  right: 10px;
}

body.mobile-preview .map-app[data-stage="map"] .toast-banner {
  top: auto;
  bottom: 76px;
}

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

/* ================================================================
   Milestone 4: Select Dropdowns, Discover Filter Strip & Along-Route
   ================================================================ */
.along-route-label-short {
  display: none;
}

.along-route-trigger {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.along-route-trigger:hover {
  background: #ffe4e6;
}

.along-route-trigger.active {
  background: #ff2442;
  border-color: #ff2442;
  color: #ffffff;
}

.map-app[data-stage="map"] .active-filter-chips,
body.mobile-preview .active-filter-chips {
  display: none;
}

.popover-dropdown-grid {
  display: grid;
  gap: 10px;
  padding: 4px 0 8px;
}

.dropdown-row-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dropdown-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dropdown-field > span {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.compact-select,
.compact-date-input {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 7px 9px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
}

.compact-select:focus,
.compact-date-input:focus {
  outline: 2px solid rgba(255, 36, 66, 0.25);
  border-color: #ff2442;
  background: #ffffff;
}

.radius-origin-inline {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.radius-origin-inline .compact-select {
  flex: 1;
}

.radius-gps-btn {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
}

.radius-gps-btn.live-gps {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}

.popover-hint {
  font-size: 11.5px;
  color: #64748b;
}

.discover-dropdown-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 1440px;
  margin: 0 auto 6px;
  padding: 2px 0 4px;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
  max-height: 46px;
  transition: max-height 0.22s ease, opacity 0.18s ease, margin 0.22s ease, padding 0.22s ease;
}

.discover-dropdown-strip.scroll-hidden {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.discover-dropdown-strip::-webkit-scrollbar {
  display: none;
}

.pill-select {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  height: 30px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.pill-select-cta {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #be123c;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  height: 30px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.pill-select-cta.active {
  background: #ff2442;
  border-color: #ff2442;
  color: #ffffff;
}

.pill-select-cta.live-gps {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}

.rn-badge.route-offset,
.route-dist-tag {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.radius-dist-tag {
  background: #ecfeff;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.route-dist-tag,
.radius-dist-tag {
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 700;
}

.along-route-card {
  width: min(440px, calc(100vw - 24px));
}

.along-route-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.along-preset-btn {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.along-preset-btn:hover {
  border-color: #ff2442;
  color: #be123c;
  background: #fff1f2;
}

.along-route-form {
  display: grid;
  gap: 10px;
}

.along-origin-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.along-origin-row input,
.along-route-form input[type="text"] {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
}

.along-gps-btn {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

.action-btn.coral-cta {
  background: #ff2442;
  color: #ffffff;
  border-color: #ff2442;
}

@media (max-width: 768px) {
  .active-filter-chips {
    display: none;
  }

  .discover-dropdown-strip {
    padding: 2px 24px 4px 0;
    width: 100%;
    box-sizing: border-box;
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
  }

  .along-route-label-full {
    display: none;
  }

  .along-route-label-short {
    display: inline;
  }
}

body.mobile-preview .discover-dropdown-strip {
  padding: 2px 24px 4px 0;
  width: 100%;
  box-sizing: border-box;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
}

body.mobile-preview .along-route-label-full {
  display: none;
}

body.mobile-preview .along-route-label-short {
  display: inline;
}

body.mobile-preview .filter-popover.when-popover,
body.mobile-preview .filter-popover.filters-popover {
  width: 340px;
  max-width: 350px;
}

body.mobile-preview .along-route-card,
body.mobile-preview #auth-modal .modal-card {
  width: 350px;
  max-width: 350px;
  max-height: calc(100% - 28px);
  overflow-y: auto;
}

/* ================================================================
   Milestone 6 — Provenance Badges, Platform Admin Controls & Studio
   ================================================================ */
.provenance-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.provenance-badge.badge-platform-created,
.badge-official-platform {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.provenance-badge.badge-platform-verified {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #6ee7b7;
}

.provenance-badge.badge-sponsored {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.provenance-badge.badge-ingested {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.provenance-badge.badge-community {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.badge-official-platform {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  margin-left: 4px;
}

.rn-badge.badge-platform-created {
  background: #4338ca;
  color: #ffffff;
}

.rn-badge.badge-platform-verified {
  background: #059669;
  color: #ffffff;
}

.rn-badge.badge-sponsored {
  background: #d97706;
  color: #ffffff;
}

.rn-badge.badge-ingested {
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
}

.rn-badge.badge-community {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
}

.gm-popup-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.platform-status-ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 4px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}

.platform-status-ctrl label {
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

.platform-status-ctrl .compact-select {
  max-width: 210px;
}

.rn-badge.reel-video-pill {
  background: rgba(15, 23, 42, 0.84);
  color: #ffffff;
}

.studio-video-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}

.studio-video-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.studio-video-upload-lbl {
  flex-shrink: 0;
  cursor: pointer;
}

.studio-video-controls input[type="url"] {
  flex: 1 1 180px;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 6px 9px;
  font-size: 12px;
}

.studio-video-status {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #047857;
}

.studio-video-preview-wrap {
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
}

.studio-video-preview {
  width: 100%;
  max-height: 190px;
  display: block;
  object-fit: cover;
}

.share-sheet-preview-title {
  margin: 4px 0 2px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.share-sheet-preview-url {
  margin: 0 0 12px;
  font-size: 12px;
  color: #64748b;
  word-break: break-all;
}

.share-sheet-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.share-channel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  text-align: center;
}

.share-channel-btn.whatsapp { background: #16a34a; }
.share-channel-btn.telegram { background: #0284c7; }
.share-channel-btn.x-post { background: #0f172a; }
.share-channel-btn.email { background: #475569; }

.share-copy-full-btn,
.share-poster-btn {
  width: 100%;
}

.share-poster-btn {
  margin-bottom: 8px;
}

.plan-friends-btn {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.plan-friends-btn:hover {
  background: #dcfce7;
}

.group-plan-card {
  width: min(500px, calc(100vw - 24px));
  max-height: 88vh;
  overflow-y: auto;
}

.plan-event-preview {
  margin: 0 0 10px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}

.plan-form,
.plan-rsvp-form {
  display: grid;
  gap: 10px;
}

.plan-form input[type="text"],
.plan-form textarea,
.plan-rsvp-form input[type="text"] {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  color: #0f172a;
}

.plan-field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

.plan-slots-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.plan-slot-chip {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.plan-slot-chip.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.plan-custom-slot-row {
  display: flex;
  gap: 6px;
}

.plan-custom-slot-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 6px 9px;
  font-size: 12px;
}

.plan-submit-full {
  width: 100%;
}

.plan-live-view {
  display: grid;
  gap: 12px;
}

.plan-live-hero {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
}

.plan-live-cover {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.plan-live-hero-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.plan-live-event-badge {
  font-size: 11px;
  font-weight: 700;
  color: #e11d48;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.plan-live-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.plan-live-meta {
  margin: 0;
  font-size: 12px;
  color: #475569;
}

.plan-live-note {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: #334155;
  background: #ffffff;
  border-left: 3px solid #fb7185;
  padding: 4px 8px;
  border-radius: 4px;
}

.plan-share-bar {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 6px;
}

.plan-wa-btn {
  font-size: 12.5px;
  padding: 8px;
}

.plan-live-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.plan-count-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
}

.plan-count-pill.going { background: #dcfce7; color: #166534; }
.plan-count-pill.maybe { background: #fef3c7; color: #92400e; }
.plan-count-pill.cant_go { background: #fee2e2; color: #991b1b; }

.plan-live-slot-votes {
  display: grid;
  gap: 6px;
}

.plan-slot-vote-row {
  display: grid;
  gap: 3px;
  font-size: 12px;
}

.plan-slot-vote-head {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: #334155;
}

.plan-slot-vote-track {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.plan-slot-vote-fill {
  height: 100%;
  background: #0d9488;
  border-radius: 999px;
}

.plan-live-attendees {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.plan-attendee-chip {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
}

.plan-rsvp-form {
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
}

.plan-rsvp-form h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.plan-rsvp-status-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.plan-status-pill {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 9px;
  padding: 7px 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
}

.plan-status-pill.active[data-rsvp-status="going"] {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.plan-status-pill.active[data-rsvp-status="maybe"] {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
}

.plan-status-pill.active[data-rsvp-status="cant_go"] {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.plan-rsvp-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mod-scraper-panel {
  display: grid;
  gap: 12px;
}

.mod-geo-rings-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}

.mod-geo-rings-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.mod-geo-rings-head h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.mod-geo-rings-head .card-meta {
  margin: 2px 0 0;
  display: block;
}

.mod-geo-rings-ctas {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mod-geo-rings-ctas .action-btn {
  padding: 6px 10px;
  font-size: 12px;
}

.mod-geo-rings-list {
  display: grid;
  gap: 8px;
}

.geo-ring-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  display: grid;
  gap: 5px;
}

.geo-ring-card.active-ring {
  border-color: #fda4af;
}

.geo-ring-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.geo-ring-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}

.geo-ring-badge.active {
  background: #ffe4e6;
  color: #be123c;
}

.geo-ring-progress-track {
  height: 7px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.geo-ring-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0d9488, #14b8a6);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.geo-ring-metrics {
  font-size: 11.5px;
  color: #475569;
  font-weight: 600;
}

.rn-match-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #7c3aed;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 999px;
  padding: 2px 8px;
  margin-bottom: 5px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekend-radar-strip {
  max-width: 1440px;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 100%);
  border: 1px solid #fecdd3;
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}

.weekend-radar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.weekend-radar-head strong {
  font-size: 13px;
  color: #9f1239;
}

.weekend-radar-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.weekend-radar-card {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ffe4e6;
  background: #ffffff;
  border-radius: 11px;
  padding: 6px 8px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.15s;
}

.weekend-radar-card:hover {
  transform: translateY(-1px);
  border-color: #fb7185;
}

.weekend-radar-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}

.weekend-radar-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.weekend-radar-copy strong {
  font-size: 12px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weekend-radar-copy span {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.taste-profile-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.taste-profile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.taste-profile-head h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.taste-reset-btn {
  font-size: 11.5px;
  padding: 4px 10px;
}

.taste-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.taste-stat-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.taste-stat-pill.accent {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #6d28d9;
}

.reel-speed-pill {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
}

.reel-comments-backdrop {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(2, 6, 23, 0.56);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.reel-comments-card {
  width: min(520px, 100%);
  height: 62vh;
  max-height: 62vh;
  background: #ffffff;
  color: #0f172a;
  border-radius: 20px 20px 0 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  overflow: hidden;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.35);
}

.reel-comments-grabber {
  display: flex;
  justify-content: center;
  padding: 8px 0 2px;
}

.reel-comments-grabber span {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: #cbd5e1;
}

.reel-comments-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px 10px;
  border-bottom: 1px solid #e2e8f0;
}

.reel-comments-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.reel-comments-list {
  overflow-y: auto;
  padding: 10px 14px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.reel-comments-form {
  border-top: 1px solid #e2e8f0;
  padding: 10px 12px;
  background: #f8fafc;
  display: grid;
  gap: 6px;
}

.reel-comments-stars {
  display: flex;
  gap: 4px;
}

.reel-comments-compose-row {
  display: flex;
  gap: 8px;
}

.reel-comments-compose-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
}

.map-search-area-btn {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
  cursor: pointer;
}

.map-search-area-btn:hover {
  background: #f8fafc;
  border-color: #ff2442;
}

.map-peek-carousel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 184px;
  z-index: 26;
  display: none;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 12px;
  scrollbar-width: none;
}

body.mobile-preview .map-peek-carousel:not(.hidden) {
  display: flex;
}

.map-peek-carousel.hidden {
  display: none;
}

.map-peek-carousel::-webkit-scrollbar {
  display: none;
}

.map-peek-card {
  flex: 0 0 240px;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  padding: 7px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
  cursor: pointer;
  text-align: left;
}

.map-peek-card.active {
  border-color: #ff2442;
}

.map-peek-thumb {
  width: 52px;
  height: 52px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}

.map-peek-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.map-peek-copy strong {
  font-size: 12px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-peek-copy span {
  font-size: 11px;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.directions-btn {
  text-decoration: none;
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

body.mobile-preview .reels-stage {
  height: 100%;
}

body.mobile-preview .weekend-radar-cards {
  grid-template-columns: 1fr;
}

body.mobile-preview .map-search-area-btn {
  top: 106px;
}

body.mobile-preview .reel-comments-backdrop {
  z-index: 60;
  padding-bottom: 62px;
}

body.mobile-preview .reel-comments-card {
  height: min(58vh, calc(100% - 16px));
  max-height: 100%;
  border-radius: 18px 18px 0 0;
}

@media (max-width: 768px) {
  .map-peek-carousel:not(.hidden) {
    display: flex;
  }
  .weekend-radar-cards {
    grid-template-columns: 1fr;
  }
  .map-search-area-btn {
    top: 106px;
  }
  .reel-comments-backdrop {
    z-index: 60;
    padding-bottom: 64px;
  }
  .reel-comments-card {
    height: min(58vh, calc(100% - 16px));
    max-height: 100%;
  }
}

.mod-scraper-form {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.mod-scraper-form-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.mod-scraper-dry-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  padding-bottom: 6px;
}

.mod-scraper-result {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #047857;
}

.mod-scraper-subsec h4 {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: #334155;
}

.mod-scraper-list {
  display: grid;
  gap: 6px;
  max-height: 210px;
  overflow-y: auto;
}

.mod-scraper-item {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 10px;
  padding: 8px 10px;
  display: grid;
  gap: 2px;
  font-size: 12px;
}

.toast-action-btn {
  margin-left: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #fda4af;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .global-notif-panel {
    height: auto;
    max-height: 75vh;
  }
  .reel-story-bars {
    top: 90px;
  }
  .reel-mute-btn {
    top: 102px;
    right: 12px;
  }
  .reel-rail {
    bottom: 48px;
  }
  .reel-overlay {
    padding-bottom: 40px;
  }
  .plan-share-bar {
    grid-template-columns: 1fr;
  }
}

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