/* Custom CSS for Discover Bangladesh */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
  --primary: #059669;
  --primary-dark: #047857;
  --accent: #d97706;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
}

.font-bangla {
  font-family: 'Hind Siliguri', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Category Marker & Clusters */
.custom-map-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 3px white;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.custom-map-marker:hover, .custom-map-marker.active {
  transform: scale(1.22);
  z-index: 1000 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 4px #ffffff;
}

/* Category Marker Color Themes */
.marker-nature { background: linear-gradient(135deg, #10b981, #047857); }
.marker-history { background: linear-gradient(135deg, #f59e0b, #b45309); }
.marker-photography { background: linear-gradient(135deg, #6366f1, #4338ca); }
.marker-adventure { background: linear-gradient(135deg, #f97316, #c2410c); }
.marker-food { background: linear-gradient(135deg, #f43f5e, #be123c); }
.marker-culture { background: linear-gradient(135deg, #06b6d4, #0e7490); }
.marker-hidden_gems { background: linear-gradient(135deg, #a855f7, #6b21a8); }
.marker-default { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }

/* Custom Marker Cluster Styling */
.marker-cluster-nature {
  background-color: rgba(16, 185, 129, 0.25) !important;
}
.marker-cluster-nature div {
  background-color: #059669 !important;
  color: white !important;
}

.marker-cluster-history {
  background-color: rgba(245, 158, 11, 0.25) !important;
}
.marker-cluster-history div {
  background-color: #d97706 !important;
  color: white !important;
}

.marker-cluster-photography {
  background-color: rgba(99, 102, 241, 0.25) !important;
}
.marker-cluster-photography div {
  background-color: #4f46e5 !important;
  color: white !important;
}

.marker-cluster-hidden_gems {
  background-color: rgba(168, 85, 247, 0.25) !important;
}
.marker-cluster-hidden_gems div {
  background-color: #9333ea !important;
  color: white !important;
}

.marker-cluster-mixed {
  background-color: rgba(59, 130, 246, 0.25) !important;
}
.marker-cluster-mixed div {
  background-color: #2563eb !important;
  color: white !important;
}

.marker-cluster div {
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  border-radius: 50% !important;
  text-align: center !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

/* Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid #e2e8f0;
}

.leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.5 !important;
  max-width: 290px !important;
}

.leaflet-container a.leaflet-popup-close-button {
  top: 10px !important;
  right: 10px !important;
  width: 26px !important;
  height: 26px !important;
  line-height: 24px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: 50% !important;
  color: #334155 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
  transition: all 0.2s ease !important;
}

.leaflet-container a.leaflet-popup-close-button:hover {
  background: white !important;
  color: #0f172a !important;
  transform: scale(1.1) !important;
}

/* Category Filter Pills */
.category-pill {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}
.category-pill:hover {
  transform: translateY(-1px);
}
.category-pill.active {
  box-shadow: 0 4px 12px -2px rgba(5, 150, 105, 0.35);
}

/* Card Hover Elevation */
.place-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.place-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.12);
}

/* Shimmer Loading Effect */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ==========================================================================
   Unseen Bangladesh (unseenbangladesh.com) Exact Aesthetic & In-Map Layout
   ========================================================================== */

:root {
  --ub-bg: #faf8f4;
  --ub-surface: #ffffff;
  --ub-ink: #17201c;
  --ub-muted: #6b716d;
  --ub-line: #ebe6dc;
  --ub-brand: #0f6b4f;
  --ub-brand-ink: #ffffff;
  --ub-chip: #f3efe7;
  --ub-radius: 16px;
}

body.ub-body {
  background-color: var(--ub-bg);
  color: var(--ub-ink);
  font-family: 'Anek Bangla', 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* Two-Column App Layout */
.app-ub {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 64px;
}

@media (max-width: 960px) {
  .app-ub {
    grid-template-columns: 1fr;
  }
}

/* Card */
.card-ub {
  background: var(--ub-surface);
  border: 1px solid var(--ub-line);
  border-radius: var(--ub-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Picker Sidebar */
.picker-ub {
  padding: 20px;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
}

@media (max-width: 960px) {
  .picker-ub {
    position: static;
    max-height: none;
  }
}

.picker-head-ub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.picker-head-ub h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--ub-ink);
}

.count-ub {
  font-size: 13px;
  font-weight: 700;
  color: var(--ub-brand);
  background: #e3f0ea;
  padding: 3px 10px;
  border-radius: 99px;
  font-variant-numeric: tabular-nums;
}

.search-ub {
  position: relative;
  margin-bottom: 12px;
}

.search-ub input {
  width: 100%;
  border: 1px solid var(--ub-line);
  background: var(--ub-bg);
  border-radius: 12px;
  padding: 10px 14px 10px 38px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}

.search-ub input:focus {
  border-color: var(--ub-brand);
  background: #fff;
}

.search-ub svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ub-muted);
}

.tools-ub {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.link-ub {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ub-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s;
}

.link-ub:hover {
  color: var(--ub-ink);
}

.groups-ub {
  overflow-y: auto;
  margin: 0 -20px;
  padding: 0 20px;
  flex: 1;
}

.group-ub {
  padding: 12px 0;
  border-top: 1px solid var(--ub-line);
}

.group-h-ub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.group-h-ub b {
  font-size: 13px;
  font-weight: 700;
  color: var(--ub-ink);
}

.group-h-ub small {
  color: var(--ub-muted);
  font-size: 12px;
  font-weight: 600;
  margin-left: 4px;
}

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

.chip-ub {
  border: 1px solid transparent;
  background: var(--ub-chip);
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ub-ink);
  user-select: none;
}

.chip-ub:hover {
  border-color: #d6cfc1;
}

.chip-ub[aria-pressed="true"] {
  background: var(--sel, var(--ub-brand));
  color: var(--sel-ink, #ffffff);
  font-weight: 600;
}

.chip-ub[aria-pressed="true"]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Stage Card */
.stage-ub {
  padding: 20px;
}

.stage-top-ub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.themes-ub {
  display: flex;
  gap: 8px;
  align-items: center;
}

.themes-ub span {
  font-size: 13px;
  color: var(--ub-muted);
  margin-right: 2px;
  font-weight: 600;
}

/* Theme Circular Swatches */
.sw-ub {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--ub-surface);
  outline: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: outline-color .15s, transform .15s;
}

.sw-ub:hover {
  transform: scale(1.08);
}

.sw-ub[aria-checked="true"] {
  outline-color: var(--ub-ink);
}

.sw-ub i {
  position: absolute;
  inset: 0;
}

.sw-ub i:last-child {
  inset: auto 0 0 auto;
  width: 55%;
  height: 55%;
  border-radius: 50% 0 0 0;
}

.opts-ub {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.name-ub {
  border: 1px solid var(--ub-line);
  background: var(--ub-bg);
  border-radius: 10px;
  padding: 7px 12px;
  width: 170px;
  font-size: 13px;
  outline: none;
}

.name-ub:focus {
  border-color: var(--ub-brand);
  background: #fff;
}

.toggle-ub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.toggle-ub input {
  accent-color: var(--ub-brand);
  width: 16px;
  height: 16px;
}

/* The Canvas Map Wrap */
.canvas-wrap-ub {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ub-chip);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

canvas#preview {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
}

/* Pins layer directly overlaying canvas */
.map-pins-layer-ub {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Hover Tooltip */
.tip-ub {
  position: absolute;
  pointer-events: none;
  background: rgba(23, 32, 28, 0.96);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -140%);
  transition: opacity .12s, transform .12s;
  z-index: 60;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   IN-MAP CONTENT PANEL (Content Set INSIDE the Map)
   ========================================================================== */
.in-map-content-ub {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: min(390px, calc(100% - 32px));
  max-height: 82%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.04);
  z-index: 50;
  overflow-y: auto;
  pointer-events: auto;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  animation: inMapSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes inMapSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.in-map-content-ub.hidden {
  display: none;
}

.hint-ub {
  font-size: 12.5px;
  color: var(--ub-muted);
  text-align: center;
  margin: 12px 0 0;
}

.dl-title-ub {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--ub-line);
  color: var(--ub-ink);
}

.dl-ub {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn-ub {
  flex: 1;
  min-width: 100px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid var(--ub-line);
  background: var(--ub-surface);
  color: var(--ub-ink);
  transition: all .15s;
}

.btn-ub:hover {
  border-color: var(--ub-ink);
  background: var(--ub-chip);
}

.btn-ub.primary {
  background: var(--ub-brand);
  color: #fff;
  border-color: var(--ub-brand);
}

.btn-ub.primary:hover {
  background: #0b4e39;
}


