﻿/* Wspolne style dla wszystkich podstron */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

body {
  font-family: 'Public Sans', sans-serif;
}

h1,
h2,
h3 {
  font-family: 'Manrope', sans-serif;
}

/* Lista aptek */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #003f7e;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mapa */
.backdrop-blur-xl {
  backdrop-filter: blur(20px);
}

.map-container {
  height: calc(100vh - 72px);
}

@media (max-width: 768px) {
  .map-container {
    height: calc(100vh - 144px);
  }
}

/* O nas */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Leaflet */
.leaflet-container {
  width: 100%;
  height: 100%;
  font-family: 'Public Sans', sans-serif;
  z-index: 0;
}

.map-marker-wrapper {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
}

.map-marker-wrapper.is-active .map-pin__body {
  transform: scale(1.1);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.map-pin {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map-pin__pulse {
  display: none;
  position: absolute;
  top: -6px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  z-index: 0;
  animation: mapPulse 1.6s ease-out infinite;
}

.map-pin--duty .map-pin__pulse {
  display: block;
  background: rgba(101, 49, 0, 0.22);
}

.map-pin__body {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}

.map-pin__tip {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  margin-top: -1px;
  z-index: 1;
}

.map-pin__icon {
  color: #ffffff;
  font-size: 17px;
  line-height: 1;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}

.map-pin--featured .map-pin__body {
  width: 40px;
  height: 40px;
}

.map-pin--open .map-pin__body {
  background: #006b5f;
}

.map-pin--open .map-pin__tip {
  border-top: 10px solid #006b5f;
}

.map-pin--duty .map-pin__body {
  background: #653100;
}

.map-pin--duty .map-pin__tip {
  border-top: 10px solid #653100;
}

.map-pin--closed .map-pin__body {
  background: #6f797c;
}

.map-pin--closed .map-pin__tip {
  border-top: 10px solid #6f797c;
}

@keyframes mapPulse {
  0% {
    transform: scale(0.55);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.pharmacy-popup-shell .leaflet-popup-content-wrapper {
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
  border: 1px solid #dfe3e8;
}

.pharmacy-popup-shell .leaflet-popup-content {
  margin: 10px 12px;
}

.pharmacy-popup {
  min-width: 185px;
}

.pharmacy-popup__status {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.pharmacy-popup__status--open {
  background: #d8f6ee;
  color: #005047;
}

.pharmacy-popup__status--duty {
  background: #ffdcc5;
  color: #713700;
}

.pharmacy-popup__status--closed {
  background: #e5e8ee;
  color: #3f484c;
}

.pharmacy-popup__title {
  font-size: 14px;
  font-weight: 800;
  color: #181c20;
  margin-bottom: 2px;
}

.pharmacy-popup__address,
.pharmacy-popup__hours {
  font-size: 12px;
  color: #3f484c;
}

.map-legend {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  border: 1px solid #dfe3e8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 8px 10px;
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: #181c20;
}

.map-legend__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.map-legend__dot--open {
  background: #006b5f;
}

.map-legend__dot--duty {
  background: #653100;
}

.map-legend__dot--closed {
  background: #6f797c;
}

.map-result--interactive {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-result--interactive:hover {
  transform: translateY(-1px);
}

.map-result--active {
  box-shadow: 0 0 0 2px #003f7e inset;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.pagination__button {
  min-width: 40px;
  height: 40px;
  border: 1px solid #bfc8cc;
  border-radius: 999px;
  background: #ffffff;
  color: #003f7e;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination__button:hover {
  background: #e5e8ee;
}

.pagination__button--active {
  background: #003f7e;
  color: #ffffff;
  border-color: #003f7e;
}

#homeMap .leaflet-control-container,
#pharmacyDetailMap .leaflet-control-container,
#contactMap .leaflet-control-container {
  display: none;
}
