/* Dump Sites Plugin Styles */

/* Map Container Styles */
.dump-sites-map-wrapper {
    margin: 20px 0;
}

.dump-sites-map-container {
    display: flex;
    flex-direction: row;
    gap: 25px;
    margin-bottom: 40px;
    align-items: flex-start;
}

/* Filter Panel Styles */
.dump-sites-filter-panel {
    flex: 0 0 280px;
    min-width: 280px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.dump-sites-filter-panel h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.dump-sites-filter-panel .filter-section {
    margin-bottom: 25px;
}

.dump-sites-filter-panel .filter-section:last-of-type {
    margin-bottom: 20px;
}

.dump-sites-filter-panel .filter-group {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.5) rgba(255, 255, 255, 0.1);
}

.dump-sites-filter-panel .filter-group::-webkit-scrollbar {
    width: 6px;
}

.dump-sites-filter-panel .filter-group::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.dump-sites-filter-panel .filter-group::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 3px;
}

.dump-sites-filter-panel .filter-group::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

.dump-sites-filter-panel label {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 6px;
}

.dump-sites-filter-panel label:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.dump-sites-filter-panel input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.dump-sites-filter-panel .category-name {
    flex: 1;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.dump-sites-filter-panel .category-count {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Horizontal Zip Code Search Styles */
.zip-search-section-horizontal {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 15px 15px 0 0;
    margin-bottom: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.zip-search-wrapper {
    width: 100%;
}

.zip-search-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: center;
}

.zip-search-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.zip-code-input-horizontal {
    flex: 1;
    min-width: 150px;
    padding: 7px !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px !important;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff !important;
}

.zip-code-input-horizontal:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    background: #fff;
}

.radius-select-horizontal {
    padding: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.radius-select-horizontal:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    background: #fff;
}

.btn-zip-search-horizontal {
    padding: 10px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-zip-search-horizontal:hover {
    background: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(47, 128, 237, 0.3);
}

.btn-clear-search-horizontal {
    padding: 12px 30px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-clear-search-horizontal:hover {
    background: #da190b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.3);
}

.zip-search-message-horizontal {
    margin-top: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    color: #333;
}

.zip-search-message-horizontal:empty {
    display: none;
}

.distance-info {
    background: linear-gradient(135deg, #56CCF2 0%, #2F80ED 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 13px;
    font-weight: 500;
}

/* Filter Buttons */
.dump-sites-filter-buttons {
    margin-top: 20px;
}

.dump-sites-filter-buttons button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-show-all {
    background: #4CAF50;
    color: white;
}

.btn-show-all:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* Map Styles */
.dump-sites-map-area {
    flex: 1;
    min-height: 500px;
}

.dump-sites-map {
    border-radius: 0 0 15px 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    position: relative;
}

.dump-sites-map .leaflet-container {
    border-radius: 15px;
}

/* Empty State */
.dump-sites-empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

.dump-sites-empty-state h4 {
    color: #667eea;
    font-size: 20px;
    margin-bottom: 15px;
}

.dump-sites-empty-state p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Locations Grid */
.dump-sites-locations-section {
    margin-top: 50px;
}

.dump-sites-locations-section h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.dump-sites-locations-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.dump-sites-locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* Location Card */
.dump-site-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dump-site-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dump-site-card:hover::before {
    transform: scaleX(1);
}

.dump-site-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.dump-site-card h4 {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.dump-site-card .site-meta {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dump-site-card .site-meta strong {
    color: #444;
    font-weight: 600;
    min-width: 80px;
}

.dump-site-card .site-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.dump-site-card .site-location {
    display: inline-block;
    background: linear-gradient(135deg, #56CCF2 0%, #2F80ED 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.dump-site-card .site-directions-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #2F80ED;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
    background: rgba(47, 128, 237, 0.05);
}

.dump-site-card .site-directions-link:hover {
    background: rgba(47, 128, 237, 0.1);
    transform: translateX(3px);
}

.dump-site-card .site-directions-link strong {
    color: #2F80ED;
    font-weight: 600;
}

.dump-site-card .site-excerpt {
    margin: 15px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.dump-site-card .site-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dump-site-card .site-link:hover {
    gap: 10px;
    color: #764ba2;
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 15px;
    font-size: 14px;
    line-height: 1.6;
    min-width: 200px;
}

.leaflet-popup-content b {
    color: #333;
    font-size: 16px;
    display: block;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.leaflet-popup-content a {
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.leaflet-popup-content a:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .dump-sites-map-container {
        flex-direction: column;
    }
    
    .dump-sites-filter-panel {
        flex: 1;
        position: static;
        margin-bottom: 20px;
    }
    
    .dump-sites-locations-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .zip-search-controls {
        flex-direction: column;
    }
    
    .zip-code-input-horizontal {
        width: 100%;
    }
    
    .radius-select-horizontal {
        width: 100%;
    }
    
    .btn-zip-search-horizontal,
    .btn-clear-search-horizontal {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .dump-sites-filter-panel {
        padding: 20px;
    }
    
    .dump-sites-locations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dump-site-card {
        padding: 20px;
    }
    
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.dump-sites-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: 10px;
    height: 500px;
}

/* Accessibility */
.dump-sites-filter-panel input[type="checkbox"]:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.dump-sites-filter-buttons button:focus,
.dump-site-card:focus {
    outline: 2px solid #667eea;
    outline-offset: 3px;
}

/* Print Styles */
@media print {
    .dump-sites-filter-panel {
        display: none;
    }
    
    .dump-sites-map-container {
        flex-direction: column;
    }
    
    .dump-site-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}