.pharmacy-page-title {
  padding: 48px 0 28px;
}

.pharmacy-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: start;
}

.pharmacy-sidebar {
  position: sticky;
  top: 110px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .06);
}

.pharmacy-search-wrap {
  position: relative;
}

.pharmacy-search-input {
  border-radius: 16px;
  padding-left: 44px;
  height: 52px;
}

.pharmacy-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .55;
  font-size: 18px;
}

.pharmacy-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.pharmacy-filter-grid .form-select {
  border-radius: 16px;
  height: 52px;
}

.pharmacy-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  margin-bottom: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, .08);
}

.pharmacy-results-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.pharmacy-results-count {
  font-size: 13px;
  opacity: .65;
}

.pharmacy-results-list {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 4px;
  padding-top:10px;
}

.pharmacy-results-list::-webkit-scrollbar {
  width: 6px;
}

.pharmacy-results-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .14);
  border-radius: 999px;
}

.pharmacy-card {
  position: relative;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 20px;
  padding: 18px;
  background: #fff;
  transition: all .2s ease;
  cursor: pointer;
}

.pharmacy-card + .pharmacy-card {
  margin-top: 12px;
}

.pharmacy-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
  border-color: rgba(13, 110, 253, .35);
}

.pharmacy-card.is-active {
  border-color: #0d6efd;
  background: #f8fbff;
  box-shadow: 0 14px 34px rgba(13, 110, 253, .14);
}

.pharmacy-card.is-active .pharmacy-card-title {
  color: #0d3f8f;
}

.pharmacy-card-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
  transition: color .2s ease;
}

.pharmacy-card-address,
.pharmacy-card-phone {
  font-size: 14px;
  color: #667085;
  margin-bottom: 8px;
  line-height: 1.5;
  word-break: break-word;
}

.pharmacy-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.pharmacy-map-panel {
  min-height: 760px;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 24px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .04);
  padding: 18px;
}

.pharmacy-map-placeholder {
  height: 100%;
  min-height: 720px;
  border-radius: 20px;
  border: 1px dashed rgba(0, 0, 0, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #667085;
  background: rgba(255, 255, 255, .55);
  padding: 24px;
}

.pharmacy-empty {
  border: 1px dashed rgba(0, 0, 0, .12);
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  color: #667085;
  background: rgba(0, 0, 0, .015);
}

.pharmacy-loading {
  font-size: 14px;
  color: #667085;
  padding: 4px 0 12px;
}

#pharmacyMap {
  height: 720px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.leaflet-popup-content-wrapper {
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .14);
}

.leaflet-popup-content {
  margin: 14px 16px;
  min-width: 220px;
}

.pharmacy-map-popup-title {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
  line-height: 1.35;
}

.pharmacy-map-popup-address,
.pharmacy-map-popup-phone {
  font-size: 13px;
  font-weight: 500;
  color: #667085;
  line-height: 1.5;
  margin-bottom: 6px;
  word-break: break-word;
}

.pharmacy-map-popup-phone:last-child,
.pharmacy-map-popup-address:last-child {
  margin-bottom: 0;
}

.pharmacy-modal-label {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}

.pharmacy-modal-value {
  font-size: 15px;
  color: #111827;
  line-height: 1.6;
  margin-bottom: 14px;
  word-break: break-word;
}

#pharmacyDetailModal .modal-content {
  border-radius: 24px;
}

#pharmacyDetailModal .modal-header {
  padding: 22px 22px 8px;
}

#pharmacyDetailModal .modal-body {
  padding: 10px 22px 22px;
}

#pharmacyDetailModal .modal-title {
  font-size: 24px;
  font-weight: 800;
}

@media (max-width: 991.98px) {
  .pharmacy-layout {
    grid-template-columns: 1fr;
  }

  .pharmacy-sidebar {
    position: static;
  }

  .pharmacy-map-panel {
    min-height: 360px;
  }

  .pharmacy-map-placeholder {
    min-height: 320px;
  }

  #pharmacyMap {
    height: 360px;
  }
}

@media (max-width: 575.98px) {
  .pharmacy-page-title {
    padding: 28px 0 18px;
  }

  .pharmacy-sidebar,
  .pharmacy-map-panel {
    border-radius: 18px;
    padding: 14px;
  }

  .pharmacy-filter-grid {
    grid-template-columns: 1fr;
  }

  .pharmacy-results-title {
    font-size: 20px;
  }

  .pharmacy-card-title {
    font-size: 18px;
  }

  .pharmacy-card-actions {
    flex-direction: column;
  }

  #pharmacyMap {
    height: 320px;
  }

  .leaflet-popup-content {
    min-width: 180px;
    margin: 12px 14px;
  }

  #pharmacyDetailModal .modal-header {
    padding: 18px 18px 6px;
  }

  #pharmacyDetailModal .modal-body {
    padding: 10px 18px 18px;
  }

  #pharmacyDetailModal .modal-title {
    font-size: 20px;
  }
}
.pharmacy-popup-map {
    margin-bottom: 14px;
    overflow: hidden;
    border-radius: 12px;
}
.pharmacy-card {
        cursor: pointer;
        position: relative;
    }

    .pharmacy-card.is-active {
        border-color: #0d6efd !important;
        background: #f8fbff;
        box-shadow: 0 12px 30px rgba(13, 110, 253, .12);
    }

    .pharmacy-map-popup-title {
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 6px;
        line-height: 1.4;
    }

    .pharmacy-map-popup-address,
    .pharmacy-map-popup-phone {
        font-size: 13px;
        color: #667085;
        line-height: 1.5;
        margin-bottom: 4px;
        word-break: break-word;
    }

    .pharmacy-map-popup-phone:last-child,
    .pharmacy-map-popup-address:last-child {
        margin-bottom: 0;
    }

    .pharmacy-modal-label {
        font-size: 12px;
        font-weight: 700;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: .04em;
        margin-bottom: 4px;
    }

    .pharmacy-modal-value {
        font-size: 15px;
        color: #111827;
        line-height: 1.6;
        margin-bottom: 14px;
        word-break: break-word;
    }

    #pharmacyDetailModal .modal-content {
        border-radius: 24px;
        border: 0;
    }

    #pharmacyDetailModal .modal-header {
        border-bottom: 0;
        padding-bottom: 8px;
    }

    #pharmacyDetailModal .modal-title {
        font-size: 24px;
        font-weight: 800;
    }

    .pharmacy-card-actions {
        position: relative;
        z-index: 2;
    }