/* =========================================================
   MAP MODAL OVERLAY
========================================================= */

.map-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 5000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;
}

/* =========================================================
   MAP MODAL (FILTER PANEL)
========================================================= */

.map-modal {
  width: 100%;
  max-width: 760px;
  max-height: 90vh;

  overflow-y: auto;

  background: #fff;
  border-radius: 22px;

  padding: 24px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* Mobile bottom sheet behavior */
@media (max-width: 768px) {
  .map-modal {
    border-radius: 22px 22px 0 0;

    max-width: 100%;
    width: 100%;

    position: absolute;
    bottom: 0;

    max-height: 85vh;
  }
}

/* =========================================================
   FILTER GROUPS INSIDE MODAL
========================================================= */

.map-filter-group {
  margin-top: 24px;
}

.map-filter-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}

.map-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================================
   MODAL ACTIONS
========================================================= */

.map-modal-actions {
  margin-top: 30px;
  display: flex;
  justify-content: flex-end;
}

/* =========================================================
   MAP DESTINATION CARDS LAYER
========================================================= */

#map-cards {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4500;
}

/* Desktop layout for multiple cards */
@media (min-width: 769px) {
  #map-cards {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
  }
}

/* Mobile bottom sheet container behavior */
@media (max-width: 768px) {
  #map-cards {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
  }
}

/* =========================================================
   MAP DESTINATION CARD
========================================================= */

.map-destination-card {
  pointer-events: auto;

  width: 320px;

  background: #fff;

  border-radius: 18px;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);

  padding: 18px;

  position: relative;

  margin: 20px;
}

/* Mobile full-width bottom sheet card */
@media (max-width: 768px) {
  .map-destination-card {
    width: 100%;
    margin: 0;

    border-radius: 22px 22px 0 0;

    max-height: 75vh;
    overflow-y: auto;
  }
}

/* =========================================================
   MAP CARD CONTENT
========================================================= */

.map-card-line {
  margin-top: 10px;
  font-size: 14px;
  color: #374151;
}