/* Directory page specific styles */

.directory-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, #08a558 100%);
    color: white;
}

.search-filters .form-control,
.search-filters .form-select {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.625rem 0.75rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-filters .form-control:focus,
.search-filters .form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(10, 201, 109, 0.25);
}

.view-toggle .btn {
    border: 1px solid var(--border-light);
    background: var(--white);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.view-toggle .btn.active {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.view-toggle .btn:hover:not(.active) {
    background: var(--bg-light);
    border-color: var(--primary-green);
}

.results-info {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.mason-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    justify-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.mason-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.map-container {
    height: 500px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.map-view .map-container {
    height: 600px;
}

.filter-sidebar {
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    padding: 1.5rem;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.filter-tag {
    background: var(--primary-green);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.filter-tag .remove {
    background: none;
    border: none;
    color: var(--white);
    padding: 0;
    margin-left: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.sort-options .form-select {
    min-width: 180px;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsive */
@media (max-width: 900px) {
    .mason-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.9rem;
    }
}

@media (max-width: 768px) {
    .mason-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .mason-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-sidebar {
        margin-bottom: 1.5rem;
    }
    
    .view-toggle {
        justify-content: center;
    }
    
    .view-toggle .btn {
        flex: 1;
        font-size: 0.875rem;
    }
    
    .search-filters .row > div {
        margin-bottom: 0.75rem;
    }
    
    .sort-options .form-select {
        min-width: auto;
        width: 100%;
    }
    
    .filter-tags {
        gap: 0.25rem;
    }
    
    .filter-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .map-container {
        height: 400px;
    }
    
    .results-info {
        text-align: center;
        margin-bottom: 1rem;
    }
}

/* Leaflet map custom styles */
.leaflet-popup-content-wrapper {
    border-radius: var(--radius-sm);
}

.leaflet-popup-content {
    margin: 0.75rem;
    line-height: 1.4;
}

.map-popup-content h6 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.map-popup-content .text-muted {
    margin-bottom: 0.5rem;
}

.map-popup-content .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
} 