/* ============================================================
   LocalLegends — Design System & Full UI Stylesheet
   Dark mode, glassmorphism accents, smooth animations
   ============================================================ */

/* ─── Google Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ─── CSS Design Tokens ─────────────────────────────────────── */
:root {
  /* Base palette (Light / Translucent Glass) */
  --bg-deepest:   #f9fafb;
  --bg-deep:      #f3f4f6;
  --bg-surface:   rgba(255, 255, 255, 0.75);
  --bg-elevated:  rgba(255, 255, 255, 0.55);
  --bg-hover:     rgba(255, 255, 255, 0.85);
  --bg-glass:     rgba(255, 255, 255, 0.25);
  --bg-glass-lgt: rgba(0, 0, 0, 0.05);

  /* Text (Dark Charcoal / Black) */
  --text-primary:   #111827;
  --text-secondary: #4b5563;
  --text-muted:     #6b7280;
  --text-link:      #2563eb;

  /* Borders (Subtle Dark Tints) */
  --border-subtle:  rgba(0, 0, 0, 0.08);
  --border-medium:  rgba(0, 0, 0, 0.15);
  --border-glow:    rgba(37, 99, 235, 0.25);

  /* Category colors */
  --color-food:     #f97316;
  --color-retail:   #3b82f6;
  --color-grocery:  #0ea5e9;
  --color-services: #22c55e;
  --color-others:   #a855f7;

  /* Accent */
  --accent:         #d97706;
  --accent-glow:    rgba(217, 119, 6, 0.2);
  --accent-dim:     rgba(217, 119, 6, 0.08);

  /* Sidebar */
  --sidebar-w: 360px;
  --sidebar-collapsed-w: 0px;

  /* Transitions */
  --t-fast:   150ms cubic-bezier(.4,0,.2,1);
  --t-std:    250ms cubic-bezier(.4,0,.2,1);
  --t-slow:   400ms cubic-bezier(.4,0,.2,1);
  --t-spring: 500ms cubic-bezier(.34,1.56,.64,1);

  /* Radii */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-full: 9999px;

  /* Shadows (Softer and lighter) */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,.1);
  --shadow-lg:  0 10px 24px rgba(0,0,0,.12);
  --shadow-xl:  0 20px 48px rgba(0,0,0,.15);
}

/* ─── Reset & Base ──────────────────────────────────────────── */
/* Standard cursors — grab for map, pointer for interactive elements */
.leaflet-grab {
  cursor: grab !important;
}

.leaflet-dragging .leaflet-grab {
  cursor: grabbing !important;
}

button,
a,
.dock-item,
.category-btn,
.shop-card,
.ll-action-btn,
.ll-popup-btn,
.ll-thanks-btn-sm,
.ll-review-thanks-btn,
.ll-btn-submit-review,
.ll-user-link,
.leaflet-marker-icon,
.leaflet-interactive,
[role="button"] {
  cursor: pointer !important;
}

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

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg-deepest);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; caret-color: #000000; }

/* ─── Layout Shell ──────────────────────────────────────────── */
#app {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
}

/* ─── Map Container ─────────────────────────────────────────── */
#map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--bg-deepest);
  border-radius: 12px;
  overflow: hidden;
}

.leaflet-tile-pane {
  /* No filter applied — standard, clean, highly visible light map colors */
  filter: none;
}





/* ─── Sidebar ────────────────────────────────────────────────── */
/* ─── Left Dock Navigation ─────────────────────────────────── */
#left-dock {
  position: fixed;
  left: 50%;
  bottom: 24px;
  top: auto;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--border-medium);
  border-radius: 40px;
  padding: 12px 32px;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.6), var(--shadow-xl);
  transition: all var(--t-slow);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  transition: all var(--t-fast);
  cursor: pointer;
  background: none;
  border: none;
  width: 56px;
  outline: none;
  position: relative;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
}

.dock-item:hover {
  color: var(--text-primary);
  transform: scale(1.08);
}

.dock-item.active {
  color: #22c55e;
}

.dock-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0.2px;
  transition: fill var(--t-fast);
}

.dock-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* ─── Shop Directory Popover ────────────────────────────────── */
/* ─── Spots Fullscreen Directory Overlay ────────────────────────── */
#directory-popover {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  background: var(--bg-surface); /* Transparent white theme background */
  backdrop-filter: blur(30px) saturate(1.4);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  z-index: 1400;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(30px) scale(0.98);
  transition: opacity var(--t-std), transform var(--t-spring), visibility var(--t-std);
}

#directory-popover.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

/* ─── Spots Directory Header & Navigation ─── */
.popover-nav-header {
  padding: 20px 32px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-subtle);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.back-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
}

/* ─── Main Directory Container ─── */
.directory-main-container {
  flex: 1;
  overflow-y: auto;
  padding: 32px 32px 80px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.directory-main-container::-webkit-scrollbar {
  width: 6px;
}
.directory-main-container::-webkit-scrollbar-track {
  background: transparent;
}
.directory-main-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

/* ─── Hero Section (Left Title/Search, Right Spot of the Day) ─── */
.directory-hero-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.directory-hero-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-tagline {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
}

.hero-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -1px;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-search-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin-top: 8px;
}

#popover-search {
  width: 100%;
  height: 48px;
  background: var(--bg-surface);
  border: 1.5px solid #000000;
  border-radius: var(--r-full);
  padding: 0 44px 0 20px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: all var(--t-fast);
  box-shadow: var(--shadow-sm);
}

#popover-search:focus {
  background-color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

#popover-search-clear {
  position: absolute;
  right: 48px; /* positioned to the left of search icon */
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
  z-index: 5;
}

#popover-search-clear:hover {
  background: var(--text-primary);
  color: #ffffff;
}

#popover-search:placeholder-shown ~ #popover-search-clear {
  display: none;
}

.hero-search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 4;
}

/* ─── Spot of the Day Card ─── */
.spot-of-the-day-card {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform var(--t-std), box-shadow var(--t-std);
}

.spot-of-the-day-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.spot-day-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 10px;
  border-left: 3px solid var(--accent);
  letter-spacing: 1.5px;
  z-index: 10;
  text-transform: uppercase;
}

.spot-day-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  z-index: 2;
}

.spot-day-content {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 3;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spot-day-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.spot-day-story {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spot-day-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.spot-day-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  object-fit: cover;
}

/* ─── Directory Section Divider ─── */
.directory-section-divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
  margin: 8px 0;
}

/* ─── Directory List Section ─── */
.directory-list-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.directory-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

/* ─── Near You Section (inside Spots Directory) ─── */
.directory-near-you-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.directory-near-you-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.near-you-see-all-btn {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: none;
  border: none;
  padding: 4px 10px;
  border-radius: var(--r-full);
  transition: all var(--t-fast);
  white-space: nowrap;
}

.near-you-see-all-btn:hover {
  background: var(--accent-dim);
  transform: translateX(2px);
}

/* Horizontal scrollable row of Near You cards */
.near-you-card-list {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.near-you-card-list::-webkit-scrollbar {
  display: none;
}

/* Individual Near You card */
.near-you-dir-card {
  display: flex;
  flex-direction: column;
  width: 220px;
  min-width: 220px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--t-std);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.near-you-dir-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-medium);
}

.near-you-dir-card-img {
  position: relative;
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.near-you-dir-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
  z-index: 1;
}

.near-you-dir-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.near-you-dir-card-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.near-you-dir-card-story {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.near-you-dir-card-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 2px 8px;
  border-radius: var(--r-full);
  border: 1px solid;
  width: fit-content;
  text-transform: uppercase;
  margin-top: auto;
}

/* Spot list grid */
#spot-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}


/* ─── Overlay Modals ────────────────────────────────────────── */
.overlay-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(5,7,10,0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-std), visibility var(--t-std);
}

.overlay-modal.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.overlay-modal .modal-card {
  transform: translateY(20px) scale(0.95);
  transition: transform var(--t-spring), opacity var(--t-std);
  opacity: 0;
}

.overlay-modal.visible .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.overlay-close {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: var(--bg-glass-lgt);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}

.overlay-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* ─── Floating Top Search Bar ───────────────────────────────── */
#map-search-container {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1020;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 580px;
  padding: 0 16px;
  transition: left var(--t-slow), transform var(--t-slow), top var(--t-slow);
}

.category-filter {
  display: flex;
  gap: 6px;
  padding: 2px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-full);
}

.category-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}

.category-btn:hover {
  color: var(--text-primary);
  background: var(--bg-glass-lgt);
}

.category-btn.active {
  color: #0f1117;
  background: linear-gradient(135deg, var(--accent), #d97706);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.category-btn.active:hover {
  transform: translateY(-1px);
}

.search-field-wrap {
  position: relative;
  flex: 1;
}

#map-search {
  width: 100%;
  height: 44px;
  background: rgba(255, 255, 255, 0.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23111827' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") no-repeat left 14px center;
  background-size: 18px;
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1.5px solid #000000;
  border-radius: 22px;
  padding: 0 38px 0 42px;
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#map-search::placeholder {
  color: var(--text-secondary);
}

#map-search:hover {
  border-color: #000000;
  background-color: rgba(255, 255, 255, 0.92);
}

#map-search:focus {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23111827' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") no-repeat left 14px center;
  background-size: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(0, 0, 0, 0.06);
}

#map-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}

#map-search-clear:hover {
  background: var(--color-food);
  color: white;
}

/* Hide WebKit native search clear button */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
  -webkit-appearance: none;
}

/* Hide custom clear button when search input is empty */
#map-search:placeholder-shown ~ #map-search-clear {
  display: none;
}

#map-add-btn {
  height: 44px;
  padding: 0 20px;
  background: linear-gradient(135deg, var(--accent), #d97706);
  color: #0f1117;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  transition: all var(--t-fast);
  white-space: nowrap;
}

#map-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg), 0 4px 12px var(--accent-glow);
}

#map-add-btn:active {
  transform: translateY(0);
}

/* ─── Refresh Map Button ─────────────────────────────────────── */
#refresh-map-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--bg-glass);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-fast);
  flex-shrink: 0;
}

#refresh-map-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

#refresh-map-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#refresh-map-btn.spinning svg {
  animation: ll-spin 0.8s linear infinite;
}

@keyframes ll-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ─── Btn Spinner (used in form submit + geolocate) ──────────── */
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: ll-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 4px;
}

/* ─── Shop List ──────────────────────────────────────────────── */
#shop-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 12px 80px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#shop-list::-webkit-scrollbar { width: 4px; }
#shop-list::-webkit-scrollbar-track { background: transparent; }
#shop-list::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 4px; }

/* ─── Shop Card ──────────────────────────────────────────────── */
.shop-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 14px;
  cursor: pointer;
  transition: all var(--t-std);
  position: relative;
  overflow: hidden;
}

.shop-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.015), transparent 60%);
  pointer-events: none;
}

.shop-card:hover {
  background: var(--bg-hover);
  border-color: var(--border-medium);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.shop-card:active {
  transform: translateY(0);
}

.shop-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.shop-card-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

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

.shop-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-card-cat {
  font-size: 11px;
  font-weight: 600;
  margin-top: 1px;
}

.shop-card-arrow {
  font-size: 20px;
  color: var(--text-muted);
  font-weight: 300;
  transition: transform var(--t-fast);
}

.shop-card:hover .shop-card-arrow {
  transform: translateX(3px);
  color: var(--text-secondary);
}

.shop-card-story {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-card-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.shop-card-tag {
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: var(--bg-glass-lgt);
  border: 1px solid var(--border-subtle);
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.shop-card-address {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Empty State ────────────────────────────────────────────── */
.shop-list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

.empty-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.6; }
.shop-list-empty p { font-size: 15px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.shop-list-empty span { font-size: 12px; }



/* ─── Custom SVG Shop Markers ────────────────────────────────── */
.ll-marker-spot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 46px;
  transition: transform var(--t-fast);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.ll-marker-spot:hover {
  transform: scale(1.18);
  z-index: 999 !important;
}

.ll-marker-svg {
  width: 100%;
  height: 100%;
}

.ll-marker-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform var(--t-fast);
}

.ll-marker-dot:hover {
  transform: scale(1.25);
  z-index: 999 !important;
}

/* SVG icons in Popups and Cards */
.ll-popup-svg,
.shop-card-svg {
  width: 22px;
  height: 22px;
  display: block;
}



/* ─── Marker Cluster ─────────────────────────────────────────── */
.ll-cluster {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #d97706);
  border: 3px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--accent-glow);
  font-size: 14px;
  font-weight: 800;
  color: #0f1117;
}

/* ─── Leaflet Popup Override ─────────────────────────────────── */
.ll-leaflet-popup .leaflet-popup-content-wrapper {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-medium) !important;
  border-radius: var(--r-xl) !important;
  box-shadow: var(--shadow-xl) !important;
  padding: 0 !important;
  overflow: hidden;
}

.ll-leaflet-popup .leaflet-popup-content {
  margin: 0 !important;
  width: 350px !important;
}

.ll-leaflet-popup .leaflet-popup-tip-container { display: none; }
.ll-leaflet-popup .leaflet-popup-close-button {
  color: var(--text-muted) !important;
  font-size: 20px !important;
  right: 12px !important;
  top: 10px !important;
  z-index: 2;
}

.ll-popup {
  width: 350px;
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.ll-popup::-webkit-scrollbar {
  width: 4px;
}

.ll-popup::-webkit-scrollbar-track {
  background: transparent;
}

.ll-popup::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

.ll-popup-content-inner {
  padding: 16px;
}

.ll-popup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
}

.ll-popup-header-info {
  flex: 1;
  min-width: 0;
  padding-right: 4px;
}

/* ─── Custom Action Icons and Photo Headers in Popups ────────── */
.ll-popup-photo-wrap {
  width: 100%;
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

.ll-actions-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.ll-actions-inline {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.ll-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
  border: 1px solid var(--border-subtle);
  outline: none;
  background: var(--bg-glass-lgt);
  color: var(--text-secondary);
}

.ll-actions-overlay .ll-action-btn {
  background: rgba(15, 20, 28, 0.55) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.ll-actions-overlay .ll-action-btn:hover {
  background: rgba(15, 20, 28, 0.75) !important;
  transform: scale(1.08);
}

.ll-actions-inline .ll-action-btn:hover {
  background: var(--bg-hover) !important;
  color: var(--text-primary);
  transform: scale(1.08);
}

.ll-action-svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* Save / Bookmark Active State */
.ll-save-btn.saved {
  color: var(--accent) !important;
}

.ll-actions-overlay .ll-save-btn.saved {
  color: #f59e0b !important;
}

/* Close Button Hover */
.ll-close-btn:hover {
  background: var(--color-food) !important;
  border-color: var(--color-food) !important;
  color: white !important;
}

/* Side-by-side Button Row */
.ll-popup-buttons-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 8px;
}

.ll-btn-directions {
  flex: 1.2;
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #111111 !important;
}

.ll-btn-directions:hover {
  background: #222222 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}

.ll-btn-thanks {
  flex: 1;
  background: var(--bg-glass-lgt) !important;
  border: 1px solid var(--border-medium) !important;
  color: var(--text-primary) !important;
  box-shadow: none !important;
}

.ll-btn-thanks:hover {
  background: var(--bg-hover) !important;
  transform: translateY(-1px);
}

/* Report Button underneath */
.ll-btn-report {
  display: block;
  width: 100%;
  padding: 6px 12px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  color: var(--text-muted) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-align: center;
  text-decoration: underline;
  box-shadow: none !important;
  transition: all var(--t-fast);
}

.ll-btn-report:hover {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.05) !important;
  text-decoration: none;
  transform: none !important;
}

.ll-popup-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ll-popup-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.ll-popup-category {
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.ll-popup-story {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 10px;
  padding: 10px 12px;
  background: var(--bg-glass-lgt);
  border-radius: var(--r-md);
  border-left: 3px solid var(--border-medium);
}

.ll-popup-address {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.ll-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.ll-tag {
  padding: 3px 9px;
  border-radius: var(--r-full);
  background: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.ll-popup-btn {
  display: block;
  width: 100%;
  padding: 10px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent), #d97706);
  color: #0f1117;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: all var(--t-fast);
  cursor: pointer;
}

.ll-popup-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* Small, auto-width thanks button for overlay (does NOT stretch) */
.ll-thanks-btn-sm {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: auto;
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 600;
  font-family: inherit;
  background: var(--bg-glass-lgt);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-md);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-fast), transform var(--t-fast);
}

.ll-thanks-btn-sm:hover {
  background: var(--bg-hover);
  transform: translateY(-1px);
}

/* Review card thanks button in list — also small, not stretching */
.ll-review-thanks-btn {
  display: inline-flex !important;
  align-items: center;
  flex: 0 0 auto !important;
  width: auto !important;
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 600;
  font-family: inherit;
  background: var(--bg-glass-lgt);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-md);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-fast), transform var(--t-fast);
}

.ll-review-thanks-btn:hover {
  background: var(--bg-hover);
  transform: translateY(-1px);
}

/* ─── Modal Overlay ──────────────────────────────────────────── */
#modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(5,7,10,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-std), visibility var(--t-std);
}

#modal-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(24px) scale(0.97);
  transition: transform var(--t-spring), opacity var(--t-std);
  opacity: 0;
}

#modal-overlay.visible .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-card::-webkit-scrollbar { width: 4px; }
.modal-card::-webkit-scrollbar-track { background: transparent; }
.modal-card::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 4px; }

/* Reviews overlay — inner columns handle their own scrolling */
#reviews-overlay .modal-card {
  overflow: hidden !important;
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-surface);
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-header-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.modal-header-text { flex: 1; }

.modal-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

#modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: #022863 !important; /* solid navy */
  border: 1px solid #022863 !important;
  color: #ffffff !important; /* white cross */
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}

#modal-close:hover {
  background: #111827 !important; /* dark hover */
  border-color: #111827 !important;
  color: #ffffff !important;
}

#modal-overlay .modal-card {
  background: #ffffff !important; /* solid background so elements are not transparent */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#modal-overlay .modal-body {
  overflow-y: auto;
}

#modal-overlay .modal-header {
  background: #ffffff !important; /* solid background so form text doesn't show through on scroll */
}

.modal-body { padding: 20px; }

/* ─── Form Elements ──────────────────────────────────────────── */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--color-food);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--border-glow);
  box-shadow: 0 0 0 3px rgba(96,165,250,0.12);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235a6478'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  cursor: pointer;
}

.form-select option { background: var(--bg-surface); }

.form-textarea {
  resize: vertical;
  min-height: 80px;
  max-height: 140px;
  line-height: 1.55;
}

.story-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

#story-counter {
  font-size: 11px;
  color: var(--text-muted);
  transition: color var(--t-fast);
}

#story-counter.counter-warn  { color: var(--accent); }
#story-counter.counter-over  { color: var(--color-food); }

/* ─── Location Section ───────────────────────────────────────── */
.location-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 14px;
  margin-bottom: 16px;
}

.location-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.location-section-title .required { color: var(--color-food); }

#geolocate-btn {
  width: 100%;
  height: 42px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(96,165,250,0.15), rgba(59,130,246,0.1));
  border: 1px solid rgba(96,165,250,0.3);
  color: var(--text-link);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--t-fast);
  margin-bottom: 10px;
}

#geolocate-btn:hover {
  background: linear-gradient(135deg, rgba(96,165,250,0.25), rgba(59,130,246,0.18));
  border-color: rgba(96,165,250,0.5);
  transform: translateY(-1px);
}

#geolocate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.location-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.location-divider::before,
.location-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.map-hint {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 8px;
  background: var(--bg-glass-lgt);
  border-radius: var(--r-sm);
  border: 1px dashed var(--border-subtle);
  line-height: 1.5;
}

#coords-display {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  min-height: 18px;
  transition: all var(--t-fast);
}

#coords-display.coords-active {
  color: var(--color-grocery);
  font-weight: 600;
}

@keyframes coords-flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

#coords-display.coords-pulse {
  animation: coords-flash 0.5s ease;
}

/* ─── Form Errors ────────────────────────────────────────────── */
#form-errors {
  display: none;
  list-style: none;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--r-md);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: #fca5a5;
  line-height: 1.8;
}

/* ─── Submit Button ──────────────────────────────────────────── */
.btn-submit {
  width: 100%;
  height: 48px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent), #d97706);
  color: #0f1117;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--t-std);
  box-shadow: 0 4px 16px var(--accent-glow);
  letter-spacing: 0.2px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-submit:active { transform: translateY(0); }

/* ─── Spinner ────────────────────────────────────────────────── */
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(15,17,23,0.3);
  border-top-color: #0f1117;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Toast Notifications ────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 320px;
  pointer-events: all;
  transform: translateX(calc(100% + 32px));
  opacity: 0;
  transition: all var(--t-spring);
}

.toast.toast-visible {
  transform: translateX(0);
  opacity: 1;
}

.toast.toast-hiding {
  transform: translateX(calc(100% + 32px));
  opacity: 0;
  transition: all var(--t-slow);
}

.toast-success {
  background: rgba(22,25,32,0.95);
  border: 1px solid rgba(34,197,94,0.4);
}

.toast-error {
  background: rgba(22,25,32,0.95);
  border: 1px solid rgba(239,68,68,0.4);
}

.toast-info {
  background: rgba(22,25,32,0.95);
  border: 1px solid rgba(59,130,246,0.4);
}

.toast-msg {
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  flex: 1;
  line-height: 1.4;
}

.toast-success .toast-msg::before { content: 'Success: '; }
.toast-error   .toast-msg::before { content: 'Error: '; }
.toast-info    .toast-msg::before { content: 'Info: '; }

.toast-close {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  transition: color var(--t-fast);
  pointer-events: all;
}

.toast-close:hover { color: var(--text-primary); }

/* ─── Mobile Drawer Handle ───────────────────────────────────── */
#drawer-handle {
  display: none;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-medium);
  margin: 0 auto 16px;
  cursor: pointer;
  transition: background var(--t-fast);
}

#drawer-handle:hover { background: var(--text-muted); }

/* ─── Leaflet Zoom Controls ──────────────────────────────────── */
.leaflet-control-zoom {
  border: 1px solid var(--border-medium) !important;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.6), var(--shadow-md) !important;
  border-radius: var(--r-md) !important;
  overflow: hidden;
  margin-right: 20px !important;
  margin-bottom: 20px !important;
}

.leaflet-control-zoom a {
  background: var(--bg-glass) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: var(--text-primary) !important;
  border: none !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  font-size: 18px !important;
  transition: background var(--t-fast) !important;
}

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

/* ─── Responsive — Mobile ────────────────────────────────────── */
@media (max-width: 768px) {
  /* Navigation dock becomes horizontal at the bottom on mobile */
  #left-dock {
    left: 50%;
    bottom: 20px;
    top: auto;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 30px;
    padding: 12px 24px;
    border-radius: 40px;
    width: 90%;
    max-width: 380px;
    justify-content: space-around;
  }

  /* Popover remains fullscreen on mobile */
  #directory-popover {
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
    transform: translateY(100%) scale(1);
  }

  #directory-popover.open {
    transform: translateY(0) scale(1);
  }



  /* Toast adjustment */
  #toast-container {
    bottom: 130px;
    right: 16px;
    left: 16px;
    align-items: center;
  }

  .toast { max-width: 100%; width: 100%; }

  /* Modal takes full height on mobile */
  .modal-card {
    max-height: 95vh;
  }

  /* Directory Responsive Overrides */
  .popover-nav-header {
    padding: 12px 16px;
  }
  .directory-main-container {
    padding: 16px 16px 100px;
    gap: 20px;
  }
  .directory-hero-section {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .hero-title {
    font-size: 28px !important;
  }
  .hero-desc {
    font-size: 13.5px !important;
  }
  .spot-of-the-day-card {
    height: 320px !important;
  }
  .spot-day-content {
    bottom: 16px !important;
    left: 16px !important;
    right: 16px !important;
  }
  .spot-day-title {
    font-size: 20px !important;
  }
  .spot-day-badge {
    top: 16px !important;
    left: 16px !important;
  }
}


/* ─── Utility ────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Floating Info (i) Button & Attribution Panel (Bottom Right) */
#map-attribution-container {
  position: absolute;
  right: 20px;
  bottom: 110px; /* Above the Leaflet zoom controls */
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none; /* Let clicks pass through except children */
}

#map-attribution-container * {
  pointer-events: auto; /* Re-enable for elements inside */
}

#map-info-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-glass);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--t-fast);
  cursor: pointer;
  outline: none;
}

#map-info-btn:hover {
  background: var(--bg-hover);
  color: var(--accent);
  transform: scale(1.08);
}

#map-info-btn:active {
  transform: scale(0.95);
}

#map-attribution-popup {
  background: var(--bg-surface);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--border-medium);
  padding: 8px 12px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  font-size: 11px;
  color: var(--text-secondary);
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: opacity var(--t-std), transform var(--t-spring);
  white-space: nowrap;
}

#map-attribution-popup.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}


#map-attribution-popup a {
  color: var(--text-link);
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 768px) {
  #map-attribution-container {
    bottom: 90px; /* Adjust for mobile dock */
    right: 16px;
  }
}

/* ─── Photo Carousel Nav Buttons ─── */
.photo-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 300;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all var(--t-fast);
  backdrop-filter: blur(4px);
  z-index: 10;
}

.photo-nav-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.photo-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

#photo-nav-prev { left: 16px; }
#photo-nav-next { right: 16px; }

/* Responsive adjustments for Reviews modal */
@media (max-width: 768px) {
  #reviews-overlay .modal-card {
    flex-direction: column !important;
  }
  #reviews-overlay-photo-section {
    flex: none !important;
    height: 250px;
    border-right: none !important;
    border-bottom: 1px solid var(--border-subtle);
  }
  #reviews-overlay-right-section {
    flex: 1 !important;
  }
}

/* ─── Full Page Overlays (About & Profile) ──────────────────── */
#profile-overlay,
#about-overlay {
  background: var(--bg-deepest);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
}

#profile-overlay .modal-card,
#about-overlay .modal-card {
  width: 100vw;
  height: 100vh;
  max-width: 100vw !important;
  max-height: 100vh !important;
  border-radius: 0;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  background: var(--bg-deepest);
  transform: none !important;
  opacity: 1 !important;
  position: relative;
}

#profile-overlay .modal-header,
#about-overlay .modal-header {
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  backdrop-filter: blur(10px);
  padding: 16px 24px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

#profile-overlay .modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 40px 24px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

#about-overlay .modal-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 40px 0;
  width: 100%;
  max-width: 100% !important;
  margin: 0;
  position: relative;
}

/* ─── About Illustration ────────────────────────────────────── */
.about-illustration {
  position: absolute;
  right: 0;
  width: auto;
  overflow: hidden;
  pointer-events: auto;
  cursor: grab;
  z-index: 100;
  transform: translate(var(--tx, 0px), var(--ty, 0px));
}

.about-illustration img {
  height: 100%;
  width: auto;
  display: block;
  pointer-events: none;
}

.about-illustration.sunflower-asset {
  left: 25px;
  right: auto;
  top: 460px;
  height: 450px;
}
@media (min-width: 768px) {
  .about-illustration.sunflower-asset {
    left: calc(50% - 370px);
    right: auto;
  }
}

.about-illustration.taxi-asset {
  right: 15px;
  left: auto;
  top: 560px;
  height: 180px;
}
@media (min-width: 768px) {
  .about-illustration.taxi-asset {
    right: calc(50% - 560px);
  }
}

.about-illustration.lotus-asset {
  right: 15px;
  left: auto;
  top: 320px;
  height: 220px;
}
@media (min-width: 768px) {
  .about-illustration.lotus-asset {
    right: calc(50% - 320px);
  }
}

.about-illustration.bakery-asset {
  right: 15px;
  left: auto;
  top: 920px;
  height: 240px;
}
@media (min-width: 768px) {
  .about-illustration.bakery-asset {
    right: calc(50% - 560px);
  }
}

.about-illustration.play-asset {
  left: 15px;
  right: auto;
  top: 920px;
  height: 240px;
}
@media (min-width: 768px) {
  .about-illustration.play-asset {
    left: calc(50% - 540px);
  }
}


/* Merge background colors with the sunflower image */
#about-overlay,
#about-overlay .modal-card,
#about-overlay .modal-header,
#about-overlay .modal-body {
  background: #ffffff !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  border: none !important;
}

/* ─── Auth UI ──────────────────────────────────────────────── */
.ll-auth-wrap {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ll-auth-header {
  text-align: center;
  margin-bottom: 8px;
}

.ll-auth-logo {
  font-size: 32px;
  margin-bottom: 8px;
}

.ll-auth-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px;
  letter-spacing: -0.3px;
}

.ll-auth-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Google button — full width, pill shape, like screenshot */
.ll-auth-btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.ll-auth-btn-google:hover {
  background: var(--bg-hover);
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.ll-auth-btn-google:active {
  transform: translateY(0);
}

/* OR divider */
.ll-auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  margin: 4px 0;
}

.ll-auth-divider::before,
.ll-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* Email form */
.ll-auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ll-auth-field {
  display: flex;
  flex-direction: column;
}

/* Inputs — pill shaped, soft background like screenshot */
.ll-auth-input {
  width: 100%;
  padding: 13px 18px;
  font-size: 14px;
  font-family: inherit;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--r-full);
  background: var(--bg-glass-lgt);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  box-sizing: border-box;
}

.ll-auth-input:focus {
  border-color: #2563eb;
  background: white;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.ll-auth-input::placeholder {
  color: var(--text-muted);
}

/* Error message */
.ll-auth-error {
  font-size: 12px;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--r-md);
  padding: 8px 14px;
  line-height: 1.5;
  text-align: center;
}

/* Sign In / Create Account button — full width pill, orange */
.ll-auth-btn-primary {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: opacity var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 4px 14px var(--accent-glow);
  margin-top: 2px;
  letter-spacing: 0.01em;
}

.ll-auth-btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.ll-auth-btn-primary:active {
  transform: scale(0.98);
}

.ll-auth-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Toggle link */
.ll-auth-toggle {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin: 4px 0 0;
}

.ll-auth-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.ll-auth-link:hover {
  text-decoration: underline;
}

.ll-auth-label {
  display: none; /* No visible labels — placeholder text is enough */
}

/* ─── Brand Header (Top Left) ─── */
#brand-header {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1110;
  display: inline-block;
  background: var(--bg-surface);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  padding: 3px;
  box-shadow: var(--shadow-md);
  transition: all var(--t-fast);
  cursor: pointer;
  user-select: none;
}

#brand-header:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.brand-logo-img {
  height: 80px;
  width: 220px;
  object-fit: contain;
  background-color: #022863;
  display: block;
  border-radius: 7px;
}

.brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  text-transform: lowercase;
  display: block;
}

/* ─── Hanging nimbu-mirchi from Logo (Lower Right) ─── */
.brand-hanging-asset {
  position: absolute;
  top: 100%;
  right: -20px;
  z-index: -1;
  pointer-events: none;
  transform-origin: top center;
  animation: pendulumSwing 2.2s ease-in-out infinite alternate;
}

.brand-hanging-asset img {
  height: 110px;
  width: auto;
  display: block;
}

@keyframes pendulumSwing {
  0% { transform: rotate(-10deg); }
  100% { transform: rotate(10deg); }
}

/* ─── About Links List ──────────────────────────────────────── */
.about-links-card {
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
}

.about-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  text-decoration: none;
  background: transparent;
  transition: background var(--t-fast);
  border-bottom: 1px solid var(--border-medium);
  cursor: pointer;
}

.about-link-row:last-child {
  border-bottom: none;
}

.about-link-row:hover {
  background: rgba(0, 0, 0, 0.02);
}

.about-link-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-link-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.about-link-row.bug-report .about-link-label {
  color: #dc2626; /* Premium red for report a bug */
}

.about-footer {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  pointer-events: none;
}

/* ─── Splash Screen ─── */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #022762;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), pointer-events 0.8s;
  pointer-events: all;
}

#splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 800px;
  padding: 24px;
  animation: splashScaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.splash-logo {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.splash-loader {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: splashSpin 1s linear infinite;
}

@keyframes splashSpin {
  to { transform: rotate(360deg); }
}

@keyframes splashScaleIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ─── Close Buttons Hover Rotation ─── */
.overlay-close,
#modal-close,
#directory-close,
.toast-close {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background var(--t-fast), color var(--t-fast), border-color var(--t-fast) !important;
}

.overlay-close:hover,
#modal-close:hover,
#directory-close:hover,
.toast-close:hover {
  transform: rotate(90deg) scale(1.08) !important;
}

.overlay-close:active,
#modal-close:active,
#directory-close:active,
.toast-close:active {
  transform: rotate(90deg) scale(0.95) !important;
}

/* ─── Custom Photo Upload Dropzone ─── */
.photo-upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  border: 2px dashed var(--border-medium);
  border-radius: var(--r-md);
  background: var(--bg-glass-lgt);
  cursor: pointer;
  transition: all var(--t-fast) ease;
  gap: 6px;
  text-align: center;
  margin-top: 6px;
}

.photo-upload-dropzone:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
}

.upload-icon {
  color: var(--text-muted);
  transition: color var(--t-fast) ease;
}

.photo-upload-dropzone:hover .upload-icon {
  color: var(--accent);
}

.upload-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.upload-subtext {
  font-size: 10px;
  color: var(--text-muted);
}

/* ─── Back Button (Navy & Not Rotating) ─── */
.about-back-btn {
  background: #022863 !important;
  color: #ffffff !important;
  border-color: #022863 !important;
}

.about-back-btn:hover {
  background: #111827 !important;
  border-color: #111827 !important;
  color: #ffffff !important;
}

.overlay-close.no-rotate:hover {
  transform: scale(1.08) !important; /* Scale up slightly but do not rotate */
}

.overlay-close.no-rotate:active {
  transform: scale(0.95) !important;
}

/* ─── Profile Back Button (Orange & Not Rotating) ─── */
.profile-back-btn {
  background: var(--accent) !important;
  color: #ffffff !important;
  border-color: var(--accent) !important;
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
}

.profile-back-btn:hover {
  background: var(--text-primary) !important;
  border-color: var(--text-primary) !important;
  color: #ffffff !important;
}

/* ─── Nearby Spots Carousel ─────────────────────────────────────────────────── */
.carousel-overlay-container {
  position: absolute;
  left: 50%;
  bottom: 96px; /* Positioned directly above bottom navigation dock */
  transform: translateX(-50%) scale(0.95);
  width: 90%;
  max-width: 500px;
  background: var(--bg-surface); /* Light translucent glassmorphism background */
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-xl);
  padding: 14px 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), inset 1px 1px 0 rgba(255, 255, 255, 0.6);
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-std), transform var(--t-spring);
}

.carousel-overlay-container.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) scale(1);
}

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

.carousel-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.carousel-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  border: none;
  background: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}

.carousel-link:hover {
  background: rgba(217, 119, 6, 0.1);
  transform: translateX(1px);
}

.nearby-card-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.nearby-card-list::-webkit-scrollbar {
  height: 4px;
}

.nearby-card-list::-webkit-scrollbar-track {
  background: transparent;
}

.nearby-card-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

.nearby-card {
  flex: 0 0 160px;
  height: 120px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: all var(--t-fast);
}

.nearby-card:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.nearby-card-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  transition: opacity var(--t-fast);
  z-index: 1;
}

.nearby-card:hover .nearby-card-photo {
  opacity: 0.75;
}

.nearby-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 40%, rgba(255, 255, 255, 0.2) 100%);
  z-index: 2;
}

.nearby-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #22c55e; /* Vibrant green distance badge */
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2.5px 6px;
  border-radius: var(--r-sm);
  z-index: 3;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.2);
  letter-spacing: 0.2px;
}

.nearby-card-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nearby-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nearby-card-info {
  font-size: 9.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nearby-card-thanks {
  font-size: 9.5px;
  color: #1d4ed8; /* Navy Blue Theme */
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Hide left-dock when add-spot modal is active to prevent blocking submit button */
body:has(#modal-overlay.visible) #left-dock {
  display: none !important;
}

/* ─── Spot Card Proximity Badge ────────────────────────────────────────────── */
.shop-card-distance-badge {
  font-size: 9.5px;
  font-weight: 800;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 2px 5px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  margin-right: 6px;
  display: inline-block;
  align-self: center;
}

/* ─── Atlas Obscura Grid & Card Styles ───────────────────────────────────────── */
#spot-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 36px 24px;
  width: 100%;
  margin: 0;
  padding: 0 0 40px;
}

.atlas-card {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  height: auto !important; /* Auto height to fit entire story */
  padding: 0 !important;
  cursor: pointer !important;
  transition: opacity var(--t-fast) !important;
  box-shadow: none !important;
}

.atlas-card:hover {
  transform: none !important;
  box-shadow: none !important;
  opacity: 0.85 !important;
}

.atlas-card-image {
  width: 100%;
  height: 180px; /* rectangular style */
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 6px;
  border-bottom: none;
}

.atlas-card-body {
  padding: 12px 0 0 0; /* Align text with card image edges */
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
  min-height: 0;
}

.atlas-card-location {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.atlas-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  white-space: normal; /* wrap title naturally */
  overflow: visible;
  text-overflow: clip;
}

.atlas-card-story {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-family: Georgia, 'Times New Roman', Times, serif; /* Serif font for story */
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  margin-bottom: 6px;
}

.atlas-card-meta {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0;
  border-top: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.atlas-card-distance {
  color: #22c55e;
  display: flex;
  align-items: center;
  gap: 3px;
}

.atlas-card-thanks {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #1d4ed8; /* Navy Blue Theme color */
  font-weight: 700;
}

/* Hide carousel when any modal overlay is active */
body:has(.overlay-modal.visible) #nearby-carousel-container,
body:has(#modal-overlay.visible) #nearby-carousel-container {
  opacity: 0 !important;
  pointer-events: none !important;
}



/* ─── Spots Fullscreen Directory Back Button ─── */
.directory-back-btn {
  background: var(--accent) !important;
  color: #ffffff !important;
  border-color: var(--accent) !important;
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.directory-back-btn:hover {
  background: var(--text-primary) !important;
  border-color: var(--text-primary) !important;
  color: #ffffff !important;
}

/* ─── Spots Carousel Collapsible Minimize Toggle ─── */
.carousel-toggle-btn {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 20px;
  background: var(--bg-surface);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid var(--border-medium);
  border-bottom: none;
  border-radius: var(--r-md) var(--r-md) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
  transition: all var(--t-fast);
  cursor: pointer;
  z-index: 10;
  outline: none;
}

.carousel-toggle-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
  top: -22px;
  height: 22px;
}

.carousel-toggle-btn svg {
  transition: transform var(--t-std);
}

/* When minimized, slide down off-screen leaving toggle visible */
.carousel-overlay-container.visible.minimized {
  transform: translateX(-50%) translateY(100%) scale(1);
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.carousel-overlay-container.visible.minimized .carousel-header,
.carousel-overlay-container.visible.minimized .nearby-card-list {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity var(--t-fast);
}

.carousel-overlay-container.visible.minimized .carousel-toggle-btn svg {
  transform: rotate(180deg);
}


/* ════════════════════════════════════════════════════════
   Profile UI — Redesigned Dark Theme
   ════════════════════════════════════════════════════════ */

.ll-profile-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100%;
  padding-bottom: 120px; /* Safe padding for Left Dock */
}

/* ── Profile Header ──────────────────────────────────── */
.ll-profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 20px;
  background: #1a1a1f;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

.ll-profile-header-left {
  flex: 1;
  min-width: 0;
}

.ll-profile-member-since {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 6px;
}

.ll-profile-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ll-profile-stars {
  display: flex;
  gap: 2px;
  align-items: center;
}

/* ── Email Display ──────────────────────────────────── */
.ll-profile-email {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Username Edit Section ──────────────────────────── */
.ll-username-section {
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.ll-username-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.ll-username-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 2px;
}

.ll-username-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ll-username-edit-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  padding: 6px 12px;
  border-radius: var(--r-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
  flex-shrink: 0;
}

.ll-username-edit-btn:hover {
  border-color: rgba(255,255,255,0.25);
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.ll-username-edit-form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ll-username-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.ll-username-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
}

.ll-username-input::placeholder {
  color: var(--text-muted);
}

.ll-username-edit-actions {
  display: flex;
  gap: 8px;
}

.ll-username-save-btn {
  flex: 1;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: opacity 0.15s;
}

.ll-username-save-btn:hover { opacity: 0.9; }
.ll-username-save-btn:disabled { opacity: 0.5; cursor: wait; }

.ll-username-cancel-btn {
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all 0.15s;
}

.ll-username-cancel-btn:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text-primary);
}

/* ── Invite Section ─────────────────────────────────── */
.ll-invite-section {
  padding: 20px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(135deg, rgba(245,158,11,0.03), rgba(245,158,11,0.01));
}

.ll-invite-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.ll-invite-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.4;
}

.ll-invite-link-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.ll-invite-link-input {
  flex: 1;
  padding: 9px 12px;
  font-size: 11px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: rgba(255,255,255,0.6);
  outline: none;
  min-width: 0;
  cursor: text;
}

.ll-invite-link-input:focus {
  border-color: var(--accent);
}

.ll-invite-copy-btn {
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.15s;
  flex-shrink: 0;
  white-space: nowrap;
}

.ll-invite-copy-btn:hover { opacity: 0.9; }

/* ── Report Section ─────────────────────────────────── */
.ll-report-section {
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.ll-report-btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s;
}

.ll-report-btn:hover {
  border-color: rgba(255,255,255,0.15);
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}

/* ── Notification Bell ───────────────────────────────── */
.ll-notif-bell {
  position: relative;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
  margin-top: 2px;
}

.ll-notif-bell:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.ll-notif-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #dc2626;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* ── Notification Dropdown ───────────────────────────── */
.ll-notif-dropdown {
  display: none;
  background: #1e1e24;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  margin: 0 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.ll-notif-dropdown.open {
  display: block;
}

.ll-notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.ll-notif-mark-all {
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.ll-notif-mark-all:hover { text-decoration: underline; }

.ll-notif-list {
  max-height: 240px;
  overflow-y: auto;
}

.ll-notif-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.ll-notif-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: background 0.15s;
}

.ll-notif-item:hover { background: rgba(255,255,255,0.03); }
.ll-notif-item.unread { background: rgba(245,158,11,0.04); }

.ll-notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
  margin-top: 5px;
}

.ll-notif-dot.active { background: var(--accent); }

.ll-notif-content { flex: 1; min-width: 0; }
.ll-notif-title { font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.ll-notif-message { font-size: 11px; color: rgba(255,255,255,0.5); line-height: 1.4; }
.ll-notif-time { font-size: 10px; color: rgba(255,255,255,0.25); margin-top: 4px; }

/* ── Stats Row ───────────────────────────────────────── */
.ll-profile-stats {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.ll-stat-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ll-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

.ll-stat-num {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.ll-stat-num.accent { color: var(--accent); }
.ll-stat-num.green  { color: #16a34a; }

.ll-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Spots Section ───────────────────────────────────── */
.ll-profile-spots-section {
  padding: 20px 20px 16px;
}

.ll-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ll-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ll-empty-spots {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 24px 0;
  line-height: 1.6;
}

/* ── Spots Grid ──────────────────────────────────────── */
.ll-spots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ll-spot-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.ll-spot-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.ll-spot-card-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.ll-spot-card-no-img {
  width: 100%;
  height: 70px;
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(245,158,11,0.02));
  display: flex;
  align-items: center;
  justify-content: center;
}

.ll-spot-delete-icon {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border: none;
  color: #ef4444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
  opacity: 0;
}

.ll-spot-card:hover .ll-spot-delete-icon {
  opacity: 1;
}

.ll-spot-delete-icon:hover {
  background: rgba(239,68,68,0.9);
  color: #fff;
  transform: scale(1.1);
}

.ll-spot-card-body {
  padding: 10px 12px 6px;
  flex: 1;
}

.ll-spot-card-location {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ll-spot-card-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ll-spot-card-story {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ll-spot-card-footer {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

.ll-spot-card-thanks { color: var(--accent); }
.ll-spot-card-reviews { color: rgba(255,255,255,0.4); }

/* ── Account Actions ─────────────────────────────────── */
.ll-profile-actions {
  padding: 16px 20px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ll-signout-btn {
  width: 100%;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  background: transparent;
  color: #dc2626;
  border: 1.5px solid rgba(220,38,38,0.3);
  border-radius: var(--r-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, border-color 0.2s;
}

.ll-signout-btn:hover {
  background: rgba(220,38,38,0.06);
  border-color: rgba(220,38,38,0.5);
}

.ll-delete-trigger {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  transition: color 0.15s;
}

.ll-delete-trigger:hover { color: #dc2626; }

/* ── Delete Panel ────────────────────────────────────── */
.ll-delete-panel {
  background: rgba(220,38,38,0.04);
  border: 1.5px solid rgba(220,38,38,0.15);
  border-radius: 12px;
  padding: 18px;
  margin: 4px 0;
  width: 100%;
}

.ll-delete-panel-title {
  font-size: 14px;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 6px;
}

.ll-delete-panel-body {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 14px;
}

.ll-delete-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ll-delete-choice-btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.ll-delete-choice-btn:hover {
  border-color: var(--border-medium);
  background: var(--bg-hover);
}

.ll-delete-choice-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.ll-delete-choice-btn.ll-delete-choice-danger:hover {
  border-color: #f87171;
  background: rgba(220,38,38,0.04);
}

.ll-delete-choice-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.ll-delete-choice-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

.ll-delete-cancel-link {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  padding: 8px 0;
  text-align: center;
  width: 100%;
  transition: color 0.15s;
}

.ll-delete-cancel-link:hover { color: var(--text-primary); }

/* ── Delete Confirm Input ────────────────────────────── */
.ll-delete-confirm-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.1em;
  border: 1.5px solid rgba(220,38,38,0.25);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-align: center;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.ll-delete-confirm-input:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

.ll-delete-confirm-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0;
}

.ll-delete-confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ll-delete-confirm-btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: opacity 0.15s;
}

.ll-delete-confirm-btn:hover { opacity: 0.9; }
.ll-delete-confirm-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Footer ──────────────────────────────────────────── */
.ll-profile-footer {
  padding: 16px 20px 28px;
  text-align: center;
  font-size: 11px;
}

.ll-profile-footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.ll-profile-footer-link:hover { color: var(--text-primary); text-decoration: underline; }

.ll-profile-footer-dot {
  color: var(--text-muted);
  margin: 0 6px;
}

/* ── Profile overlay modal-body ──────────────────────── */
#profile-overlay .modal-body,
#profile-overlay #auth-state-container {
  padding: 0 !important;
  display: block !important;
  text-align: left !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 100%;
  overflow-y: auto;
}

/* ── Fix ll-auth-wrap centering inside profile overlay ── */
#profile-overlay .ll-auth-wrap {
  padding: 32px 24px 40px;
}

/* ── Google redirect loading spinner ─────────────────── */
@keyframes ll-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Google redirect button loading state */
.ll-auth-btn-google:disabled {
  opacity: 0.75;
  cursor: wait;
}

/* Ensure interactive elements inside profile are always clickable */
#auth-state-container button,
#auth-state-container input,
#auth-state-container a {
  pointer-events: auto;
}

/* ── Responsive: single column on very narrow screens ── */
@media (max-width: 400px) {
  .ll-spots-grid {
    grid-template-columns: 1fr;
  }
  .ll-profile-header {
    padding: 20px 16px 16px;
  }
  .ll-profile-spots-section {
    padding: 16px 16px 12px;
  }
  .ll-profile-actions {
    padding: 12px 16px 8px;
  }
  .ll-profile-stats {
    padding: 12px 16px;
  }
}

/* ── Instagram Banner style ── */
.ll-instagram-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  border-radius: var(--r-lg);
  padding: 16px;
  margin: 20px 20px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.ll-instagram-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(253, 29, 29, 0.3);
}

.ll-instagram-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.ll-instagram-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ll-instagram-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
}

.ll-instagram-subtitle {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin: 0;
}

/* ─── Antigravity Overrides: Hover and Dock Z-Index Fixes ─── */
#left-dock {
  z-index: 1600 !important;
}

#map-search-clear:hover,
#popover-search-clear:hover,
#refresh-map-btn:hover,
.leaflet-control-zoom a:hover {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
}

/* Specificity override for popup close/cancel button hover to remain black */
.ll-actions-inline .ll-action-btn.ll-close-btn:hover,
.ll-actions-overlay .ll-action-btn.ll-close-btn:hover,
.ll-close-btn:hover,
.ll-btn-cancel-review:hover,
.ll-btn-cancel-report:hover,
.ll-leaflet-popup .leaflet-popup-close-button:hover {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
}

/* ─── Issue Reporting Styles ───────────────────────────────── */
.ll-report-form-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 16px;
  margin-top: 12px;
}

.ll-report-textarea {
  width: 100%;
  height: 80px;
  min-height: 80px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-primary);
  resize: vertical;
  outline: none;
  font-family: inherit;
}

.ll-report-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.ll-report-submit-btn {
  background: var(--text-primary);
  color: var(--bg-deepest);
  border: none;
  border-radius: var(--r-sm);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-end;
  transition: opacity var(--t-fast);
}

.ll-report-submit-btn:hover {
  opacity: 0.9;
}

.ll-report-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Modal styling specificity */
#message-window-modal .modal-body {
  padding: 24px !important;
  max-width: 100% !important;
}

#message-window-content .msg-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

#message-window-content .msg-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

#message-window-content .msg-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ─── Mobile Responsiveness Enhancements ─── */
@media (max-width: 768px) {
  /* Hide map zoom controls on mobile to prevent overlapping with bottom dock & carousel */
  .leaflet-control-zoom {
    display: none !important;
  }

  /* Scale down draggable about illustration sizes on mobile to prevent squishing layout text */
  .about-illustration.sunflower-asset {
    height: 200px !important;
  }
  .about-illustration.taxi-asset {
    height: 90px !important;
  }
  .about-illustration.lotus-asset {
    height: 100px !important;
  }
  .about-illustration.bakery-asset {
    height: 120px !important;
  }
  .about-illustration.play-asset {
    height: 120px !important;
  }
}



