/* ================================
   MONO WASH Platform Custom Styles
   ================================ */

/* === Leaflet Map Styles === */
.leaflet-container {
    background: #fff;
}

/* State tooltip styling */
.state-tooltip {
    background: white;
    border: 2px solid black;
    border-radius: 0;
    padding: 4px 8px;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.state-tooltip::before {
    border: none !important;
}

/* Custom marker styles */
.wash-marker {
    cursor: pointer;
}

.wash-marker-active {
    background-color: white;
    border: 3px solid black;
}

/* Cluster markers - circle style */
.marker-cluster {
    background: black !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.marker-cluster div {
    background: transparent !important;
    color: white;
    font-family: "Inter", sans-serif;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
}

.marker-cluster-small {
    width: 36px !important;
    height: 36px !important;
}

.marker-cluster-medium {
    width: 44px !important;
    height: 44px !important;
}

.marker-cluster-large {
    width: 52px !important;
    height: 52px !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    font-size: 12px;
}

/* Custom popup styling */
.leaflet-popup-content-wrapper {
    background: white;
    border: 2px solid black;
    border-radius: 0;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    font-family: "Inter", sans-serif;
}

.leaflet-popup-content {
    margin: 12px;
    font-size: 12px;
}

.leaflet-popup-tip {
    background: white;
    border: 2px solid black;
    border-top: none;
    border-right: none;
}

.leaflet-popup-close-button {
    color: black !important;
    font-size: 20px !important;
    font-weight: bold !important;
}

.leaflet-popup-close-button:hover {
    color: #666 !important;
}

/* === Vue Transitions === */

/* Slide from right */
.slide-left-enter-active,
.slide-left-leave-active {
    transition: transform 0.3s ease;
}

.slide-left-enter-from {
    transform: translateX(100%);
}

.slide-left-leave-to {
    transform: translateX(100%);
}

/* Fade */
.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: black;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* === Form Elements === */

/* Custom checkbox */
input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid black;
    background: white;
    cursor: pointer;
    position: relative;
}

input[type="checkbox"]:checked::before {
    content: "■";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: black;
}

input[type="checkbox"]:hover {
    background: #f5f5f5;
}

/* Custom range slider */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: black;
    outline: none;
    border: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid black;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid black;
    cursor: pointer;
    border-radius: 0;
}

/* === Loading State === */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid black;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === Mobile Responsive Tweaks === */
@media (max-width: 768px) {
    .leaflet-popup-content-wrapper {
        max-width: 240px;
    }

    .leaflet-popup-content {
        font-size: 11px;
    }
}

/* === Print Styles === */
@media print {
    #map,
    button,
    .filter-panel {
        display: none;
    }
}

/* === Accessibility === */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 4px solid black;
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === Utility Classes === */
.diagonal-stripes {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.03) 10px,
        rgba(0, 0, 0, 0.03) 20px
    );
}

.text-shadow-brutal {
    text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.hover-lift {
    transition: transform 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

/* === Project Type Badges === */
.badge-water {
    background: #f0f0f0;
    border: 2px solid black;
    padding: 4px 8px;
    display: inline-block;
    font-size: 10px;
    font-weight: bold;
}

.badge-sanitation {
    background: #e0e0e0;
    border: 2px solid black;
    padding: 4px 8px;
    display: inline-block;
    font-size: 10px;
    font-weight: bold;
}

.badge-health {
    background: #d0d0d0;
    border: 2px solid black;
    padding: 4px 8px;
    display: inline-block;
    font-size: 10px;
    font-weight: bold;
}
