/* Custom CSS for SilentSpot App */

@layer utilities {
    .no-scrollbar::-webkit-scrollbar {
        display: none;
    }
    .no-scrollbar {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/* Custom Shadow Utility */
.shadow-ambient {
    box-shadow: 0px 4px 20px rgba(30, 41, 59, 0.06);
}

.dark .shadow-ambient {
    box-shadow: 0px 4px 25px rgba(0, 0, 0, 0.4);
}

.shadow-modal {
    box-shadow: 0px 12px 40px rgba(0, 0, 0, 0.15);
}

/* Nav Link Styling */
.nav-link {
    position: relative;
}

.nav-link.active {
    color: #006948 !important;
    font-weight: 700;
}

.dark .nav-link.active {
    color: #68dba9 !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #006948;
    border-radius: 9999px;
}

.dark .nav-link.active::after {
    background-color: #68dba9;
}

/* Mobile Nav Button Styling */
.mobile-nav-btn {
    color: #505f76;
    transition: all 0.2s ease;
}

.dark .mobile-nav-btn {
    color: #9ca3af;
}

.mobile-nav-btn.active {
    color: #006948 !important;
    font-weight: 700;
}

.dark .mobile-nav-btn.active {
    color: #68dba9 !important;
}

/* Quick Filter Pills */
.quick-pill {
    background-color: transparent;
    color: #505f76;
    border-color: #bccac0;
}

.dark .quick-pill {
    color: #9ca3af;
    border-color: #343836;
}

.quick-pill:hover {
    border-color: #006948;
}

.dark .quick-pill:hover {
    border-color: #68dba9;
}

.quick-pill.active {
    background-color: #006948;
    color: #ffffff;
    border-color: #006948;
    box-shadow: 0px 2px 8px rgba(0, 105, 72, 0.25);
}

.dark .quick-pill.active {
    background-color: #00855d;
    color: #ffffff;
    border-color: #00855d;
}

/* Leaflet Custom Marker Styling */
.leaflet-div-pin {
    background: transparent;
    border: none;
}

.custom-map-pin {
    display: flex;
    align-items: center;
    justify-center;
    border-radius: 9999px;
    padding: 4px 10px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    position: relative;
}

.custom-map-pin:hover {
    transform: scale(1.12);
    z-index: 999 !important;
}

.pin-quiet {
    background-color: #006948;
    color: #ffffff;
}

.pin-moderate {
    background-color: #00855d;
    color: #f5fff7;
}

.pin-active {
    background-color: #ffffff;
    color: #006948;
    border: 2.5px solid #006948;
    transform: scale(1.15);
}

.dark .pin-active {
    background-color: #1a1c1b;
    color: #68dba9;
    border: 2.5px solid #68dba9;
}

.custom-map-pin::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
}

/* Glassmorphism utility */
.glass-panel {
    background: rgba(250, 249, 247, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dark .glass-panel {
    background: rgba(26, 28, 27, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Responsive Safe Padding */
.pb-safe {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
}
