/* ========================================================
   DroneBulgaria.com - Custom Minimalist Stylesheet
   Допълва Tailwind CSS с анимации за дрон картата, бейджове и плавни преходи
   ======================================================== */

:root {
  --color-primary: #0284c7;     /* Sky 600 */
  --color-primary-dark: #0369a1;
  --color-secondary: #0f172a;   /* Slate 900 */
  --color-accent: #f59e0b;      /* Amber 500 */
  --color-danger: #ef4444;      /* Red 500 */
  --color-success: #10b981;     /* Emerald 500 */
}

/* Гладки преходи за интерактивни елементи */
a, button, input, select, textarea {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Модерен скролбар */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Пулсиращ ефект за No-Fly Zone зони и маркери */
@keyframes radar-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.pulse-danger {
  animation: radar-pulse 2s infinite;
}

/* Leaflet Custom Marker Icons */
.custom-map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 2px solid white;
}
.custom-map-pin.no_fly_zone {
  background-color: #ef4444;
}
.custom-map-pin.fpv_spot {
  background-color: #8b5cf6;
}
.custom-map-pin.scenic_view {
  background-color: #0284c7;
}

/* Персонализиран изглед на балончетата в Leaflet картата */
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  font-family: inherit;
}
.leaflet-popup-content {
  margin: 10px 12px;
  line-height: 1.5;
}

/* Карти за обяви - hover микро-ефект */
.ad-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ad-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.12);
}

/* Бадж стилове за типове обяви */
.badge-sell { background-color: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-buy { background-color: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-job_offer { background-color: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.badge-job_request { background-color: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.badge-service_offer { background-color: #f0fdfa; color: #0f766e; border: 1px solid #99f6e4; }
.badge-service_request { background-color: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }

/* Тост известия */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  min-width: 280px;
  max-width: 420px;
  padding: 0.85rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  color: #fff;
  font-size: 0.925rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideIn 0.3s ease-out forwards;
}
.toast-success { background-color: #10b981; }
.toast-error { background-color: #ef4444; }
.toast-info { background-color: #0284c7; }

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
