/* ============================================================
   INTO LEBANON — map.css
   ============================================================ */

.map-section { background: var(--warm-white); }

.map-wrapper {
  display: flex;
  height: 580px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--mist);
  box-shadow: 0 20px 60px rgba(42,28,16,0.12);
}

/* SIDEBAR */
.map-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--cream);
  border-right: 1px solid var(--mist);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.map-sidebar-title {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  padding: 1.25rem 1.5rem 0.75rem;
  border-bottom: 1px solid var(--mist);
  flex-shrink: 0;
}

.map-dest-list {
  list-style: none;
  overflow-y: auto;
  flex: 1;
}

.map-dest-list::-webkit-scrollbar { width: 3px; }
.map-dest-list::-webkit-scrollbar-track { background: transparent; }
.map-dest-list::-webkit-scrollbar-thumb { background: var(--mist); border-radius: 2px; }

.map-dest-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(232,222,206,0.5);
  transition: background 0.2s;
}
.map-dest-item:hover,
.map-dest-item.active { background: var(--mist); }

.map-dest-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sand);
  flex-shrink: 0;
  transition: background 0.2s;
}
.map-dest-item.active .map-dest-dot { background: var(--terracotta); }

.map-dest-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem; font-weight: 400;
  color: var(--cedar); line-height: 1.2;
}
.map-dest-region {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive);
  opacity: 0.7;
}

.map-tip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(107,107,74,0.65);
  border-top: 1px solid var(--mist);
  line-height: 1.4;
  flex-shrink: 0;
}
.map-tip svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
  color: var(--sand);
}

/* MAP CONTAINER */
#lebanon-map {
  flex: 1;
  z-index: 1;
}

/* Override Leaflet default popup style */
.leaflet-popup-content-wrapper {
  background: var(--cedar-dark) !important;
  color: var(--cream) !important;
  border-radius: 6px !important;
  padding: 0 !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35) !important;
  border: 1px solid rgba(201,169,110,0.2) !important;
  overflow: hidden;
}
.leaflet-popup-content {
  margin: 0 !important;
  width: 220px !important;
}
.leaflet-popup-tip {
  background: var(--cedar-dark) !important;
}
.leaflet-popup-close-button {
  color: var(--sand) !important;
  font-size: 1.1rem !important;
  right: 8px !important;
  top: 6px !important;
}

.map-popup {
  font-family: 'DM Sans', sans-serif;
}
.map-popup-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.map-popup-body-inner {
  padding: 0.85rem 1rem 1rem;
}
.map-popup-inner-region {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.2rem;
}
.map-popup-inner-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 400;
  color: var(--cream); margin-bottom: 0.4rem;
}
.map-popup-inner-desc {
  font-size: 0.75rem; font-weight: 300;
  line-height: 1.6;
  color: rgba(245,239,224,0.62);
  margin-bottom: 0.75rem;
}
.map-popup-inner-tags {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
}
.map-popup-tag {
  font-size: 0.58rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(201,169,110,0.15);
  color: var(--sand);
  padding: 0.25rem 0.5rem; border-radius: 2px;
}

/* CUSTOM MARKER */
.custom-marker {
  display: flex;
  align-items: center;
  justify-content: center;
}
.marker-pin {
  width: 32px; height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--terracotta);
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow: 0 3px 12px rgba(0,0,0,0.35);
  transition: transform 0.2s, background 0.2s;
  cursor: pointer;
}
.marker-pin:hover,
.marker-pin.active { background: var(--cedar); transform: rotate(-45deg) scale(1.2); }

.marker-pin-inner {
  width: 10px; height: 10px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* Map popup side card (right panel) */
.map-popup-card {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 240px;
  background: var(--cedar-dark);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  border: 1px solid rgba(201,169,110,0.18);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: opacity 0.3s, transform 0.3s;
}
.map-popup-card.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}
.map-popup-close {
  position: absolute; top: 0.5rem; right: 0.6rem;
  background: none; border: none;
  color: rgba(245,239,224,0.5); font-size: 0.9rem;
  cursor: pointer; z-index: 2;
  transition: color 0.2s;
}
.map-popup-close:hover { color: var(--cream); }

.map-popup-img-wrap { height: 130px; overflow: hidden; }
.map-popup-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.map-popup-body { padding: 0.9rem 1rem 1rem; }
.map-popup-region {
  font-size: 0.58rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--sand); margin-bottom: 0.2rem;
}
.map-popup-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 400;
  color: var(--cream); margin-bottom: 0.4rem;
}
.map-popup-desc {
  font-size: 0.75rem; font-weight: 300;
  line-height: 1.6; color: rgba(245,239,224,0.6);
  margin-bottom: 0.75rem;
}
.map-popup-tags {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
}
