/* ============================================
   ECOFACTOR - Map Page Styles
   ============================================ */

/* ============================================
   HERO SECTION
   ============================================ */

.map-hero {
  padding: 80px 146px;
}

.map-hero .container {
  max-width: 1148px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.map-hero__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 130px;
}

.map-hero__title {
  font-family: var(--font-primary);
  font-size: var(--h2-size);
  font-weight: var(--font-bold);
  line-height: var(--h2-line-height);
  color: var(--text-primary);
  flex: 1;
}

.map-hero__description {
  display: none; /* Hidden on desktop */
  font-family: var(--font-primary);
  font-size: var(--body-size);
  font-weight: var(--font-regular);
  line-height: 1.5;
  color: var(--text-primary);
}

/* Dropdown — uses shared .input-dropdown component, map-specific overrides */
.map-hero__dropdown {
  position: relative;
  z-index: 2;
  width: 363px;
  min-width: 320px;
  max-width: 363px;
}

.map-hero__dropdown .input-dropdown__trigger {
  border-color: var(--color-gray-70, #b0b2b5);
  border-radius: 12px;
}

.map-hero__dropdown .input-dropdown__trigger:hover {
  border-color: var(--color-gray-20);
}

.map-hero__dropdown.input-dropdown--open .input-dropdown__trigger {
    border-bottom: 1px solid #B0B2B5 !important;
    border-radius: 12px 12px 0 0;
    border: 1px solid var(--color-gray-30, #525252);
}

.map-hero__dropdown .input-dropdown__options {
  top: 100%;
  border: 1px solid var(--color-gray-30, #525252);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: none;
  transform: none;
  padding: 8px 0;
  max-height: 300px;
}

.map-hero__dropdown.input-dropdown--open .input-dropdown__options {
  transform: none;
}

/* Hide scrollbar */
.map-hero__dropdown .input-dropdown__options::-webkit-scrollbar {
  display: none;
}

.map-hero__dropdown .input-dropdown__options {
  scrollbar-width: none;
}

.map-hero__dropdown .input-dropdown__option {
  padding: 8px 30px;
  font-weight: var(--font-regular);
  color: var(--color-gray-30, #525252);
  border-bottom: none;
}

.map-hero__dropdown .input-dropdown__option:hover {
  background-color: var(--color-gray-95);
}

.map-hero__dropdown .input-dropdown__option--selected {
  color: var(--color-gray-20, #3a3a3a);
  font-weight: var(--font-medium);
  background-color: transparent;
}

/* ============================================
   MAP CONTAINER
   ============================================ */

.map-container {
  position: relative;
  width: 100%;
  height: 689px;
  border: 1px solid var(--color-gray-95);
  border-radius: var(--radius-xl);
  overflow: hidden;
  z-index: 1;
}

#leaflet-map {
  width: 100%;
  height: 100%;
}

/* ============================================
   SIDEBAR (Overlay inside map)
   ============================================ */

.map-sidebar {
  position: absolute;
  top: 23px;
  left: 23px;
  width: 499px;
  max-height: calc(100% - 46px);
  background: rgba(241, 243, 245, 0.8);
  backdrop-filter: blur(2px);
  border: 1px solid #D9D9D9;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 20px;
  z-index: 1000;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.map-sidebar.collapsed {
  transform: translateX(-550px);
  opacity: 0;
  pointer-events: none;
}

.map-sidebar__title {
  font-family: var(--font-primary);
  font-size: var(--h4-size);
  font-weight: var(--font-semibold);
  line-height: 1.5;
  color: var(--text-primary);
  flex-shrink: 0;
}

.map-sidebar__toggle {
  position: absolute;
  right: -17px;
  top: 19px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-gray-95);
  border: 1px solid var(--color-green-60);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
  z-index: 10;
}

.map-sidebar__toggle:hover {
  background-color: var(--color-white);
}

.map-sidebar__toggle svg {
  transition: transform var(--transition-fast);
}

/* Expand Button (when sidebar is collapsed) */
.map-expand-btn {
  position: absolute;
  top: 23px;
  left: 23px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px 20px 20px;
  background: rgba(241, 243, 245, 0.8);
  backdrop-filter: blur(2px);
  border: 1px solid #D9D9D9;
  border-radius: var(--radius-lg);
  cursor: pointer;
  z-index: 999;
  transition: opacity var(--transition-base), background-color var(--transition-fast);
}

.map-expand-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.map-expand-btn__text {
  font-family: var(--font-primary);
  font-size: var(--h4-size);
  font-weight: var(--font-semibold);
  line-height: 1.5;
  color: var(--text-primary);
  white-space: nowrap;
}

.map-expand-btn__arrow {
    position: absolute;
    right: -20px;
    top: 19px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-gray-95);
    border: 1px solid var(--color-green-60);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--transition-fast);
    z-index: 10;
}

/* Hide expand button when sidebar is open */
.map-sidebar:not(.collapsed) ~ .map-expand-btn {
  opacity: 0;
  pointer-events: none;
}

/* Mobile Toggle */
.map-mobile-toggle {
  display: none;
  position: absolute;
  top: 23px;
  left: 23px;
  z-index: 999;
}

.map-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  background: rgba(241, 243, 245, 0.8);
  backdrop-filter: blur(2px);
  border: 1px solid #D9D9D9;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-primary);
}

/* Search */
.map-sidebar__search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  height: 45px;
  background-color: var(--color-white);
  border: 1px solid #D5DBE1;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.map-sidebar__search-icon {
  flex-shrink: 0;
}

.map-sidebar__search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-primary);
  font-size: var(--body-size);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  background: transparent;
}

.map-sidebar__search-input::placeholder {
  color: #B0B2B5;
}

/* Stations List */
.map-sidebar__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-right: 14px;
}

/* Custom Scrollbar */
.map-sidebar__list::-webkit-scrollbar {
  width: 8px;
}

.map-sidebar__list::-webkit-scrollbar-track {
  background: rgba(58, 58, 58, 0.1);
  border-radius: 4px;
}

.map-sidebar__list::-webkit-scrollbar-thumb {
  background: #525252;
  border-radius: 4px;
}

/* Station Card */
.station-card {
  display: flex;
  gap: 12px;
  padding: 16px;
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
  margin: 0px 1px;
}

.station-card:hover {
  box-shadow: var(--shadow-md);
}

.station-card.active {
  box-shadow: 0 0 0 1px var(--color-gray-35);
}

button#load-more-stations {
    margin-left: auto;
    margin-right: auto;
}

/* Station Marker */
.station-card__marker {
  position: relative;
  width: 36px;
  height: 50px;
  flex-shrink: 0;
}

.station-card__marker-bg {
  width: 100%;
  height: 100%;
}

/* Marker Colors by Type */
/* Hub = 40 - Blue */
.station-card__marker--hub .station-card__marker-bg path,
.station-card__marker--blue .station-card__marker-bg path {
  fill: #106FB4;
}

/* Fast DC = 30 - Orange */
.station-card__marker--fast .station-card__marker-bg path,
.station-card__marker--orange .station-card__marker-bg path {
  fill: #FF9A3D;
}

/* Regular AC = 20 - Light Green */
.station-card__marker--regular .station-card__marker-bg path,
.station-card__marker--green .station-card__marker-bg path {
  fill: #7ED957;
}

/* Service = 10 - Gray */
.station-card__marker--service .station-card__marker-bg path,
.station-card__marker--gray .station-card__marker-bg path {
  fill: #61646B;
}

/* Offline = 5 - Gray */
.station-card__marker--offline .station-card__marker-bg path {
  fill: #61646B;
}

/* Station card marker uses SVG text elements directly inside the SVG */

/* Station Content */
.station-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.station-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.station-card__id {
  font-family: var(--font-primary);
  font-size: var(--h4-size);
  font-weight: var(--font-semibold);
  line-height: 1.5;
  color: var(--text-primary);
}

.station-card__direction {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.station-card__name {
  font-family: var(--font-primary);
  font-size: var(--body-size);
  font-weight: var(--font-medium);
  line-height: 1.5;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}


/* Load More */
.map-sidebar__load-more {
  flex-shrink: 0;
  width: 100%;
}

/* Empty State */
.map-sidebar__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 40px 20px;
}

.map-sidebar__empty-icon {
  width: 48px;
  height: 48px;
  color: #B0B2B5;
}

.map-sidebar__empty-text {
  font-family: var(--font-primary);
  font-size: var(--body-size);
  color: var(--text-secondary);
}


/* Leaflet Custom Styles */
.leaflet-container {
  font-family: var(--font-primary);
}

/* Info Bubble Popup */
.leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: var(--radius-xl);
  box-shadow: 0px 4px 4px 0px rgba(176, 178, 181, 0.2);
  overflow: visible;
}

.leaflet-popup-content {
  margin: 0;
  font-family: var(--font-primary);
  min-width: 280px;
}

.leaflet-popup-tip-container {
  display: none;
}

/* Custom popup tip */
.leaflet-popup-content-wrapper::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid var(--color-white);
}

/* Info Bubble Content */
.info-bubble {
  display: flex;
  gap: 12px;
  padding: 16px;
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
}

.info-bubble__marker {
  position: relative;
  width: 36px;
  height: 50px;
  flex-shrink: 0;
}

.info-bubble__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-bubble__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-bubble__id {
  font-family: var(--font-primary);
  font-size: var(--h4-size);
  font-weight: var(--font-semibold);
  line-height: 1.5;
  color: var(--text-primary);
}

.info-bubble__direction {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.info-bubble__direction:hover {
  transform: scale(1.1);
}

.info-bubble__name {
  font-family: var(--font-primary);
  font-size: var(--body-size);
  font-weight: var(--font-medium);
  line-height: 1.5;
  color: var(--text-primary);
}

/* Custom Marker Wrapper */
.custom-marker-wrapper {
  background: transparent !important;
  border: none !important;
}

/* Custom Marker */
.custom-marker {
  position: relative;
  width: 36px;
  height: 50px;
}

.custom-marker__svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* SVG text and shapes are now inside the SVG itself - no need for separate styling */

/* Active marker (checked state) */
.custom-marker.active,
.station-card.active .station-card__marker {
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}

/* Info Button */
.map-info-btn {
  position: absolute;
  top: 23px;
  right: 23px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  border-radius: var(--radius-3xl);
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: box-shadow var(--transition-fast);
  z-index: 1000;
}

.map-info-btn:hover {
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
}

/* Zoom Controls */
.map-zoom {
  position: absolute;
  bottom: 23px;
  right: 23px;
  display: flex;
  flex-direction: column;
  border: 1px solid #B0B2B5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  z-index: 1000;
}

.map-zoom__btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.map-zoom__btn:hover {
  background-color: var(--color-gray-95);
}

.map-zoom__btn--plus {
  border-bottom: 1px solid var(--color-gray-95);
}


/* ============================================
   DOWNLOAD CTA SECTION
   ============================================ */

.map-download {
  position: relative;
  padding: 80px 146px;
  height: 571px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.map-download__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.map-download__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-download__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(58, 58, 58, 0.3);
}

.map-download .container {
  position: relative;
  z-index: 1;
  max-width: 1148px;
  display: flex;
  justify-content: flex-end;
}

.map-download__content {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.map-download__card {
  max-width: 540px;
  width: 100%;
  padding: 40px;
  background: linear-gradient(90deg, rgba(58, 58, 58, 0.6) 0%, rgba(31, 31, 31, 0.6) 100%);
  backdrop-filter: blur(2px);
  border: 1px solid #666;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.map-download__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map-download__title {
  font-family: var(--font-primary);
  font-size: var(--h3-alt-size);
  font-weight: var(--font-bold);
  line-height: 1.4;
  color: var(--color-white);
}

.map-download__description {
  font-family: var(--font-primary);
  font-size: var(--body-size);
  font-weight: var(--font-regular);
  line-height: 1.5;
  color: var(--color-white);
}

.map-download__buttons {
  display: flex;
  gap: 20px;
}

/* App Buttons - White variant */
.app-btn--white {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  /* border: 1px solid var(--color-white); */
  border-radius: var(--radius-md);
  transition: opacity var(--transition-fast);
}

.app-btn--white:hover {
  opacity: 0.8;
}

.app-btn--white.app-btn--google {
  width: 135px;
}

.app-btn--white.app-btn--apple {
  width: 120px;
}

.app-btn--white img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

/* ============================================
   EASY CHARGE SECTION
   ============================================ */

.map-easy {
  padding: 80px 146px;
}

.map-easy .container {
  max-width: 1148px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.map-easy__title {
  font-family: var(--font-primary);
  font-size: var(--h2-size);
  font-weight: var(--font-bold);
  line-height: var(--h2-line-height);
  color: var(--text-primary);
}

.map-easy__grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.map-easy__row {
  display: flex;
  gap: 30px;
}

.map-easy__card {
  flex: 1;
  padding: 16px;
  background-color: var(--color-gray-95);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.map-easy__card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.map-easy__icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.map-easy__icon img {
  width: 60px !important;
  height: 60px !important;
  object-fit: contain;
}

.map-easy__card-title {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: var(--font-bold);
  line-height: 1.5;
  color: var(--text-primary);
  flex: 1;
  min-width: 130px;
}

.map-easy__card-text {
  font-family: var(--font-primary);
  font-size: var(--body-size);
  font-weight: var(--font-regular);
  line-height: 1.5;
  color: var(--text-primary);
}

/* ============================================
   WHY SECTION
   ============================================ */

.map-why {
  display: flex;
  align-items: center;
  background-color: var(--color-gray-95);
  overflow: hidden;
}

.map-why__image {
  position: relative;
  flex: 1;
  min-width: 500px;
  height: 520px;
}

.map-why__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-why__image-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--color-gray-95) 0%, transparent 11.526%, transparent 91.539%, var(--color-gray-95) 100%);
}

.map-why__content {
  flex: 1;
  min-width: 500px;
  padding: 60px 146px 60px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.map-why__title {
  font-family: var(--font-primary);
  font-size: var(--h2-size);
  font-weight: var(--font-bold);
  line-height: var(--h2-line-height);
  color: var(--text-primary);
}

.map-why__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map-why__item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.map-why__bullet {
  width: 8px;
  height: 8px;
  background-color: var(--color-green-60);
  border-radius: 50%;
  flex-shrink: 0;
}

.map-why__item-text {
  font-family: var(--font-primary);
  font-size: var(--body-size);
  font-weight: var(--font-regular);
  line-height: 1.5;
  color: var(--text-primary);
}

a.btn.btn--filled.btn--lg {
  align-self: flex-start;
  height: 44px;
}

/* ============================================
   SEO TEXT SECTION
   ============================================ */

.map-seo {
  padding: 60px 146px;
}

.map-seo .container {
  max-width: 1148px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.map-seo__wrapper {
  position: relative;
  max-height: 152px;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.map-seo__wrapper.expanded {
  max-height: 2000px;
}

.map-seo__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map-seo__heading {
  font-family: var(--font-primary);
  font-size: var(--h4-size);
  font-weight: var(--font-semibold);
  line-height: 1.5;
  color: var(--text-primary);
  max-width: 854px;
}

.map-seo__text {
  font-family: var(--font-primary);
  font-size: var(--body-small-size);
  font-weight: var(--font-regular);
  line-height: var(--body-small-line-height);
  color: var(--text-primary);
  max-width: 854px;
}

.map-seo__text p {
  font-size: inherit;
  line-height: inherit;
  margin-bottom: 1em;
}

.map-seo__text p:last-child {
  margin-bottom: 0;
}

.map-seo__gradient {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 152px;
  background: linear-gradient(180deg, transparent 0%, var(--color-white) 100%);
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.map-seo__wrapper.expanded .map-seo__gradient {
  opacity: 0;
}

.map-seo__toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  height: 46px;
  cursor: pointer;
}

.map-seo__toggle-icon {
  transition: transform var(--transition-fast);
}

.map-seo__wrapper.expanded + .map-seo__toggle .map-seo__toggle-icon {
  transform: rotate(45deg);
}

.map-seo__toggle-text {
  font-family: var(--font-primary);
  font-size: var(--body-small-size);
  font-weight: var(--font-regular);
  line-height: var(--body-small-line-height);
  color: var(--text-primary);
}

/* ============================================
   RESPONSIVE - TABLET (max-width: 1279px)
   ============================================ */

@media (max-width: 1279px) {
  .map-hero {
    padding: 60px 40px;
  }
  
  .map-hero__header {
    flex-wrap: wrap;
    gap: 30px;
  }
  
  .map-hero__dropdown {
    width: 100%;
    max-width: 100%;
  }
  
  .map-container {
    height: 600px;
  }
  
  .map-sidebar {
    width: 350px;
  }
  
  .map-sidebar.collapsed {
    transform: translateX(-400px);
  }
  
  .map-download {
    padding: 60px 40px;
    height: auto;
    min-height: 450px;
  }
  
  .map-download__card {
    max-width: 100%;
  }
  
  .map-easy {
    padding: 60px 40px;
  }
  
  .map-easy__row {
    flex-wrap: wrap;
  }
  
  .map-easy__card {
    min-width: 280px;
  }
  
  .map-why {
    flex-wrap: wrap;
  }
  
  .map-why__image {
    min-width: 100%;
    height: 400px;
  }
  
  .map-why__content {
    min-width: 100%;
    padding: 40px;
  }
  
  .map-seo {
    padding: 60px 40px;
  }
}

/* ============================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {
  .map-hero {
    padding: 60px 20px 40px;
  }
  
  .map-hero .container {
    gap: 30px;
  }
  
  .map-hero__header {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  
  .map-hero__title {
    min-width: 100%;
    font-size: var(--h3-alt-size);
  }
  
  .map-hero__description {
    display: block; /* Show on mobile */
    order: 2;
  }
  
  .map-hero__dropdown {
    min-width: 100%;
    order: 3;
  }
  
  .map-container {
    height: 400px;
    border-radius: 0;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
  }
  
  /* Hide desktop expand button, show mobile toggle */
  .map-expand-btn {
    display: none;
  }
  
  .map-mobile-toggle {
    display: flex;
  }
  
  /* Mobile sidebar - full screen overlay */
  .map-sidebar {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 100%;
    border-radius: 0;
    z-index: 2000;
    padding: 16px;
    gap: 16px;
    background: var(--color-gray-95);
    backdrop-filter: none;
    border: none;
  }
  
  .map-sidebar__title {
    font-size: var(--h4-size);
  }
  
  .map-sidebar__toggle {
    right: 16px;
    top: 16px;
  }
  
  /* On mobile, sidebar is hidden by default */
  .map-sidebar.collapsed {
    transform: translateY(100%);
  }
  
  /* When visible on mobile */
  .map-sidebar:not(.collapsed) {
    transform: translateY(0);
  }
  
  /* Hide toggle button on mobile when sidebar is open */
  .map-sidebar:not(.collapsed) ~ .map-mobile-toggle {
    display: none;
  }
  
  /* Station cards on mobile */
  .station-card {
    padding: 12px;
  }
  
  .station-card__id {
    font-size: 18px;
  }
  
  .map-download {
    padding: 60px 20px;
    height: auto;
  }
  
  .map-download__card {
    padding: 30px 20px;
    gap: 20px;
  }
  
  .map-download__title {
    font-size: var(--h3-alt-size);
  }
  
  .map-download__buttons {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .map-easy {
    padding: 60px 20px;
  }
  
  .map-easy .container {
    gap: 30px;
  }
  
  .map-easy__title {
    font-size: var(--h3-alt-size);
  }
  
  .map-easy__row {
    flex-direction: column;
  }
  
  .map-easy__card {
    min-width: 100%;
  }
  
  .map-why__image {
    height: 300px;
    min-width: 100%;
  }
  
  .map-why__content {
    min-width: 100%;
    padding: 40px 20px;
    gap: 20px;
  }
  
  .map-why__title {
    font-size: var(--h3-alt-size);
  }
  
  .map-seo {
    padding: 60px 20px;
  }
  
  .map-seo .container {
    gap: 20px;
  }
  
  .map-seo__heading {
    font-size: var(--h4-size);
  }
  
  .map-seo__wrapper {
    max-height: 120px;
  }
  
  .map-seo__gradient {
    height: 120px;
  }
}

/* ============================================
   MARKER CLUSTERING STYLES - FIGMA DESIGN
   ============================================ */

/* Cluster wrapper - remove default MarkerCluster styles */
.marker-cluster-wrapper {
  background: transparent !important;
  border: none !important;
}

/* Custom cluster icon - Figma style (gradient background + colored glow) */
.marker-cluster-custom {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

/* Cluster content wrapper */
.marker-cluster-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
}

/* Cluster numbers - white text */
.marker-cluster-number {
  font-family: var(--font-primary);
  font-size: 10px;
  font-weight: var(--font-bold);
  color: var(--color-white);
  text-align: center;
  line-height: 1;
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Divider line between numbers */
.marker-cluster-divider {
  width: 15px;
  height: 1px;
  background-color: var(--color-white);
  opacity: 0.8;
}

/* Override default MarkerCluster styles */
.leaflet-cluster-anim .leaflet-marker-icon,
.leaflet-cluster-anim .leaflet-marker-shadow {
  transition: transform 0.3s ease-out, opacity 0.3s ease-in;
}

/* Spiderfy lines (when cluster expands) */
.marker-cluster-spider-leg {
  stroke: var(--color-gray-70);
  stroke-width: 1.5;
  stroke-opacity: 0.5;
}
