* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Decimal, sans-serif;
  height: 100vh;
  overflow: hidden;
}

@font-face {
  font-family: 'Decimal';
  src: url('https://patriarhia.ro/wp-content/uploads/2025/02/decimal-book.woff2') format('woff2'),
       url('https://patriarhia.ro/wp-content/uploads/2025/02/decimal-book.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
}

.mapboxgl-canvas-container {
  mix-blend-mode: normal;
}

#map::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.05;
  background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.01) 100%);
}

.mapboxgl-popup {

 z-index: 99999!important;
}

/* Legend */
.legend {
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 240px;
  z-index: 9999;
  margin-left: -120px;
}

.full-screen {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 9999;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(15px) saturate(1.5) brightness(1.1);
  -webkit-backdrop-filter: blur(15px) saturate(1.5) brightness(1.1);
  border-radius: 100px;
  padding: 10px;

}

.toggle-group {
  display: flex;
  gap: 8px;
}

.toggle-btn {
  flex: 1;
  padding: 16px 24px;
  border: none;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(15px) saturate(1.5) brightness(1.1);
  -webkit-backdrop-filter: blur(15px) saturate(1.5) brightness(1.1);
  border-radius: 100px;
  font-size: 10px;
  line-height: 1.4em;
  font-family: Decimal, sans-serif;
  text-transform: uppercase;
  color: rgba(34, 53, 128, 0.85);
  cursor: pointer;
  transition: all 0.3s ease;
}

@supports (-webkit-hyphens:none) {
  .toggle-btn {
    padding: 14px 24px 16px 24px;
  }
}

.toggle-btn:hover {
  background: rgba(255, 255, 255, 0.90);
  border: none;
}

.toggle-btn.active {
  background: rgba(34, 53, 128, 1);
  color: white;
  border: none;
}

/* Popup */
.mapboxgl-popup-content {
  padding: 20px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 320px;
}

.popup-title {
  font-size: 16px;
  font-weight: 600;
  color: #223580;
  margin-bottom: 8px;
  line-height: 1.4;
}

.popup-description {
  font-size: 12px;
  color: #223580;
  line-height: 1.5;
  font-family: Decimal, sans-serif;
}

.popup-description a {
  color: #AD8D66;
  text-decoration: none;
}

.popup-description a:hover {
  color: #AD8D66;
  text-decoration: underline;
}

.popup-description b,
.popup-description strong {
  font-weight: normal;
  text-transform: uppercase;
  font-size: 10px;
}

.mapboxgl-popup-close-button {
  font-size: 20px;
  padding: 4px 8px;
  color: #223580;
}

.mapboxgl-popup-close-button:hover {
  background: #f5f5f5;
  color: #1a1a1a;
}

/* Loading */
.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(15px) saturate(1.5) brightness(1.1);
  -webkit-backdrop-filter: blur(15px) saturate(1.5) brightness(1.1);
  padding: 16px 24px;
  border-radius: 100px;
  z-index: 1000;
  font-size: 12px;
  line-height: 1em;
  color: #223580;
}

.loading.hidden {
  display: none;
}

/* Gradient blur */
.gradient-blur {
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
  z-index: 999;
  flex: none;
  width: 100%;
  height: 200px;
  position: fixed;
  bottom: 0;
  left: 0;
}

/* Mapbox blockers */
.mapboxgl-scroll-zoom-blocker,
.mapboxgl-touch-pan-blocker {
  z-index: 999999 !important;
  background: rgba(245, 240, 233, 0.3);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  font-family: Decimal, sans-serif;
  color: rgba(34, 53, 129, 1.000);
  font-weight: normal !important;
}

.mapboxgl-scroll-zoom-blocker {
  font-size: 16px !important;
  line-height: 1.2;
}

.mapboxgl-touch-pan-blocker {
  font-size: 12px !important;
  line-height: 1.2;
}

@media (max-width: 640px) {


.toggle-btn {

	padding: 12px 16px;
}

@supports (-webkit-hyphens:none) {
  .toggle-btn {
    padding: 12px 16px 14px 16px;
  }
}

  .legend {
    bottom: 20px;

  }

  .gradient-blur {

  height: 120px;

}

.full-screen {
  
  right: 15px;
  top: 15px;
  width: 40px;
  height: 40px;
  padding: 8px;

}

}
