/* ── Explore page layout ── */
.explore-layout {
  display: flex;
  height: calc(100vh - 4.5rem);
  overflow: hidden;
  margin-top: -1.5rem;
}

/* Left: map panel (60%) */
.explore-map-panel {
  flex: 0 0 60%;
  position: relative;
}
#explore-map {
  width: 100%;
  height: 100%;
  background: #1a1a1a;
}

/* Right: content panel (40%) */
.explore-content-panel {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  background: #0f0f0f;
  border-left: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

/* Search bar */
.explore-search-bar {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: #111;
  flex-shrink: 0;
  position: relative;
}
.explore-search-input {
  width: 100%;
  padding: 0.6rem 2.2rem 0.6rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 0.8rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.explore-search-input::placeholder { color: rgba(255,255,255,0.35); }
.explore-search-input:focus { border-color: var(--primary); }
.explore-search-icon {
  position: absolute;
  right: 1.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.35);
  pointer-events: none;
}
.explore-search-results {
  position: absolute;
  top: 100%;
  left: 1rem;
  right: 1rem;
  background: #1e1e1e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 1001;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.explore-search-results.visible { display: block; }
.explore-search-section-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  padding: 0.5rem 0.85rem 0.25rem;
  font-weight: 600;
}
.explore-search-result-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: #fff;
  font-size: 0.82rem;
}
.explore-search-result-item:hover { background: rgba(255,255,255,0.08); }

/* Tab bar */
.explore-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0 1rem;
  background: #111;
  flex-shrink: 0;
  overflow-x: auto;
}
.explore-tab {
  padding: 0.9rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  font-family: var(--font-body);
}
.explore-tab.active {
  color: #fff;
  border-bottom-color: var(--primary);
}
.explore-tab:hover { color: rgba(255,255,255,0.8); }

/* Content header */
.explore-content-header {
  padding: 1.25rem 1.5rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.explore-content-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.25rem;
}
.explore-content-subtitle {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* Content list */
.explore-content-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0;
}
.explore-content-list::-webkit-scrollbar { width: 4px; }
.explore-content-list::-webkit-scrollbar-track { background: transparent; }
.explore-content-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.explore-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.875rem;
}

.explore-dest-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-decoration: none;
  transition: background 0.15s;
}
.explore-dest-item:hover { background: rgba(255,255,255,0.05); }
.explore-dest-item.active { background: rgba(var(--primary-rgb, 211,47,47), 0.12); }

.explore-dest-marker {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.explore-dest-info { flex: 1; min-width: 0; }
.explore-dest-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.explore-dest-count { font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.explore-dest-arrow { color: rgba(255,255,255,0.25); font-size: 1rem; flex-shrink: 0; }
.explore-locate-on-map {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 0.3rem;
  cursor: pointer;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.explore-locate-on-map:hover {
  color: #fff;
  border-color: var(--primary);
  background: rgba(var(--primary-rgb, 211,47,47), 0.15);
}

/* Article item in content list */
.explore-article-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-decoration: none;
  transition: background 0.15s;
}
.explore-article-item:hover { background: rgba(255,255,255,0.05); }
.explore-article-item.active { background: rgba(var(--primary-rgb, 211,47,47), 0.12); }
.explore-article-thumb {
  width: 3.5rem;
  height: 2.5rem;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #222;
}
.explore-article-info { flex: 1; min-width: 0; }
.explore-article-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.explore-article-city {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
}
.explore-distance-badge {
  font-size: 0.65rem;
  color: var(--primary);
  font-weight: 600;
}

/* Collection item in content list */
.explore-collection-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-decoration: none;
  transition: background 0.15s;
}
.explore-collection-item:hover { background: rgba(255,255,255,0.05); }
.explore-collection-thumb {
  width: 3.5rem;
  height: 2.5rem;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #222;
}
.explore-collection-info { flex: 1; min-width: 0; }
.explore-collection-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.explore-collection-count {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
}

/* Map controls */
.explore-map-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.explore-locate-btn {
  background: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #333;
  white-space: nowrap;
}
.explore-locate-btn:hover { background: #f0f0f0; }

/* Fullscreen toggle button (TOU-1698) */
.explore-fullscreen-btn {
  padding: 0.5rem;
  width: 32px;
  height: 32px;
  justify-content: center;
  color: #333;
}
.explore-fullscreen-btn .explore-fullscreen-icon-collapse { display: none; }
/* When the panel is in CSS-fallback fullscreen, swap to the collapse icon */
.explore-fullscreen-active .explore-fullscreen-btn .explore-fullscreen-icon-expand { display: none; }
.explore-fullscreen-active .explore-fullscreen-btn .explore-fullscreen-icon-collapse { display: block; }
/* When the panel is in native Fullscreen API mode, also swap the icon */
.explore-map-panel:fullscreen .explore-fullscreen-btn .explore-fullscreen-icon-expand { display: none; }
.explore-map-panel:fullscreen .explore-fullscreen-btn .explore-fullscreen-icon-collapse { display: block; }
.explore-map-panel:-webkit-full-screen .explore-fullscreen-btn .explore-fullscreen-icon-expand { display: none; }
.explore-map-panel:-webkit-full-screen .explore-fullscreen-btn .explore-fullscreen-icon-collapse { display: block; }

/* CSS fallback fullscreen state (iOS Safari has no element Fullscreen API) */
.explore-map-panel.explore-fullscreen-active {
  position: fixed;
  inset: 0;
  z-index: 3000;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}
.explore-map-panel.explore-fullscreen-active #explore-map {
  width: 100%;
  height: 100%;
}
.explore-location-status {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Location status hidden by default */
#explore-location-status { display: none; }

/* Location denied banner */
.explore-location-denied {
  display: none;
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 1000;
  background: rgba(30,30,30,0.95);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.8rem;
}
.explore-denied-msg { margin-bottom: 0.5rem; }
.explore-reauth-btn-sm { font-size: 0.75rem; padding: 0.35rem 0.65rem; }

/* Location found toast */
.explore-location-toast {
  display: none;
  position: absolute;
  top: 4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  background: rgba(33,150,243,0.92);
  color: #fff;
  border-radius: 4px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  white-space: nowrap;
  pointer-events: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .explore-layout {
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 4.5rem);
  }
  .explore-map-panel {
    flex: 0 0 auto;
    height: 55vw;
    min-height: 280px;
  }
  .explore-content-panel {
    flex: 1;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    min-height: 360px;
    max-height: 60vh;
  }
  /* Mobile: full-screen map with bottom sheet */
  .explore-layout.mobile-mode {
    height: calc(100vh - 4.5rem);
    position: relative;
    overflow: hidden;
  }
  .explore-layout.mobile-mode .explore-map-panel {
    flex: 1 1 auto;
    height: 100%;
    min-height: unset;
  }
  .explore-layout.mobile-mode .explore-content-panel {
    display: none;
  }
  .explore-bottom-sheet {
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f0f0f;
    border-top: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px 14px 0 0;
    z-index: 1100;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: height;
    overflow: hidden;
  }
  .explore-bottom-sheet.sheet-collapsed {
    height: 3.5rem;
  }
  .explore-bottom-sheet.sheet-half {
    height: 50vh;
  }
  .explore-bottom-sheet.sheet-full {
    height: 90vh;
  }
  .explore-sheet-handle-area {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0 0.25rem;
    cursor: grab;
    touch-action: none;
  }
  .explore-sheet-handle {
    width: 2.5rem;
    height: 4px;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
  }
  .explore-sheet-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .explore-map-fullscreen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .explore-map-controls-mobile {
    position: absolute;
    bottom: 4rem;
    right: 1rem;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .explore-search-toggle {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1050;
    background: #1e1e1e;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-family: var(--font-body);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    max-width: calc(100% - 1.5rem);
  }
  .explore-search-overlay {
    position: fixed;
    inset: 0;
    background: #111;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateY(-100%);
    transition: transform 0.25s ease;
  }
  .explore-search-overlay.visible {
    transform: translateY(0);
  }
  .explore-search-overlay-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .explore-search-overlay-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
  }
  .explore-search-overlay-input {
    flex: 1;
    padding: 0.6rem 0.85rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    background: rgba(255,255,255,0.07);
    color: #fff;
    font-size: 0.9rem;
    font-family: var(--font-body);
    outline: none;
  }
  .explore-search-overlay-results {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
  }
  /* TOU-1698: Mobile filter toggle button (beside search toggle) */
  .explore-filter-toggle {
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    background: #1e1e1e;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-family: var(--font-body);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  }
  /* TOU-1698: Mobile filter drawer (bottom sheet, capped ~60vh) */
  .explore-filter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .explore-filter-backdrop.open {
    opacity: 1;
    visibility: visible;
  }
  .explore-filter-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
    background: #0f0f0f;
    border-top: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px 14px 0 0;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.25s ease;
    will-change: transform;
  }
  .explore-filter-drawer.open {
    transform: translateY(0);
  }
  .explore-filter-drawer-handle-area {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0 0.25rem;
    cursor: grab;
    touch-action: none;
  }
  .explore-filter-drawer-handle {
    width: 2.5rem;
    height: 4px;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
  }
  .explore-filter-drawer-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 1.25rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .explore-filter-drawer-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
  }
  .explore-filter-drawer-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.2rem;
    line-height: 1;
  }
  .explore-filter-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
  }
  .explore-filter-drawer-select {
    width: 100%;
  }
  .explore-filter-drawer-count {
    margin-top: 0.85rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
  }
  .explore-filter-drawer-footer {
    flex-shrink: 0;
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .explore-filter-drawer-reset {
    flex: 0 0 auto;
    padding: 0.65rem 1.1rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    font-family: var(--font-body);
    cursor: pointer;
  }
  .explore-filter-drawer-apply {
    flex: 1;
    padding: 0.65rem 1.1rem;
    background: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
  }
}
@media (min-width: 769px) {
  .explore-bottom-sheet,
  .explore-map-controls-mobile,
  .explore-search-toggle,
  .explore-filter-toggle,
  .explore-filter-backdrop,
  .explore-filter-drawer,
  .explore-search-overlay {
    display: none !important;
  }
}

/* Itinerary item in content list */
.explore-itinerary-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-decoration: none;
  transition: background 0.15s;
}
.explore-itinerary-item:hover { background: rgba(255,255,255,0.05); }
.explore-itinerary-item.active { background: rgba(59,130,246,0.12); }
.explore-itinerary-thumb {
  width: 3.5rem;
  height: 2.5rem;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #222;
}
.explore-itinerary-info { flex: 1; min-width: 0; }
.explore-itinerary-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.explore-itinerary-meta {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  gap: 0.6rem;
}

/* Route item in content list */
.explore-route-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-decoration: none;
  transition: background 0.15s;
}
.explore-route-item:hover { background: rgba(255,255,255,0.05); }
.explore-route-item.active { background: rgba(34,197,94,0.12); }
.explore-route-thumb {
  width: 3.5rem;
  height: 2.5rem;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #222;
}
.explore-route-info { flex: 1; min-width: 0; }
.explore-route-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.explore-route-meta {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
}
.explore-route-path {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.explore-route-arrow-icon {
  color: rgba(255,255,255,0.3);
  font-size: 0.65rem;
}

/* Leaflet dark map overrides */
.leaflet-container { background: #1a1a1a; }
.leaflet-tile { filter: brightness(0.85) saturate(0.9); }
.leaflet-popup-content-wrapper {
  background: #1e1e1e;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
}
.leaflet-popup-tip { background: #1e1e1e; }
.leaflet-popup-content { margin: 0.75rem 1rem; }
.leaflet-popup-content a { color: var(--primary); text-decoration: none; }
.leaflet-popup-content a:hover { text-decoration: underline; }

/* ── Default content (cold start) ── */
.explore-default-content { padding: 0.25rem 0; }
.explore-default-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  padding: 0.5rem 0.75rem 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.explore-featured-dest-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s;
}
.explore-featured-dest-card:hover { background: rgba(255,255,255,0.05); }
.explore-featured-dest-img {
  width: 3.5rem;
  height: 2.5rem;
  border-radius: 4px;
  object-fit: cover;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.explore-featured-dest-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.explore-featured-dest-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.explore-default-hint {
  padding: 1rem 0.75rem 0.75rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
  line-height: 1.4;
}
.explore-section-title-mt { margin-top: 1rem; }

/* Mobile default content hidden */
#explore-default-content-mobile { display: none; }

/* ── Mobile map popup card ── */
/* Replaces Leaflet floating popups on mobile (<768px) with a bottom card */
.map-popup-card {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--background, #1a1a1a);
  border-radius: 1rem 1rem 0 0;
  padding: 0.75rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 10001;
  max-height: 60vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  color: rgba(255,255,255,0.9);
}
.map-popup-card.open {
  display: block;
  transform: translateY(0);
}
.map-popup-card-handle {
  width: 2.5rem;
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 100rem;
  margin: 0 auto 1rem;
  cursor: grab;
  touch-action: pan-y;
}
.map-popup-card-content {
  font-size: 0.9375rem;
  line-height: 1.5;
}
/* Touch-friendly links/buttons inside popup card */
.map-popup-card-content a,
.map-popup-card-content button {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--primary, #e8341c);
}
.map-popup-card-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 10000;
}
.map-popup-card-overlay.open {
  display: block;
}

/* ===== Map Mobile Interaction Improvements ===== */

/* Pinch zoom gesture hint overlay */
.map-pinch-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.map-pinch-hint.visible {
  opacity: 1;
}

.map-pinch-hint svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* POI Bottom Drawer for mobile */
.poi-bottom-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  z-index: 2000;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  max-height: 70vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.poi-bottom-drawer.open {
  transform: translateY(0);
}

.poi-bottom-drawer__handle {
  width: 36px;
  height: 4px;
  background: #d1d5db;
  border-radius: 2px;
  margin: 12px auto 8px;
  flex-shrink: 0;
}

.poi-bottom-drawer__header {
  display: flex;
  align-items: flex-start;
  padding: 0 16px 12px;
  gap: 12px;
}

.poi-bottom-drawer__close {
  margin-left: auto;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #6b7280;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.poi-bottom-drawer__image {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.poi-bottom-drawer__info {
  flex: 1;
  min-width: 0;
}

.poi-bottom-drawer__name {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px;
  line-height: 1.3;
}

.poi-bottom-drawer__category {
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 6px;
}

.poi-bottom-drawer__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #f59e0b;
}

.poi-bottom-drawer__body {
  padding: 0 16px 16px;
}

.poi-bottom-drawer__description {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poi-bottom-drawer__actions {
  display: flex;
  gap: 8px;
}

.poi-bottom-drawer__btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s;
}

.poi-bottom-drawer__btn--primary {
  background: #2563eb;
  color: #fff;
}

.poi-bottom-drawer__btn--secondary {
  background: #f3f4f6;
  color: #374151;
}

.poi-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.poi-drawer-backdrop.open {
  display: block;
  opacity: 1;
}

@media (min-width: 768px) {
  .poi-bottom-drawer,
  .poi-drawer-backdrop {
    display: none !important;
  }
}
