/* Municipalities Hero Section */
.municipalities-hero {
    position: relative;
    height: 350px;
    background: linear-gradient(rgba(30, 41, 59, 0.85), rgba(30, 41, 59, 0.9)), url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.municipalities-hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.municipalities-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.municipalities-hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--rounded-md);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.cta-button:hover {
    background-color: #0f766e;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Responsive Styles for Hero Section */
@media (max-width: 768px) {
    .municipalities-hero {
        height: 300px;
    }
    
    .municipalities-hero h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .municipalities-hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .cta-button {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .municipalities-hero {
        height: 250px;
    }
    
    .municipalities-hero-content {
        padding: 0 15px;
    }
    
    .municipalities-hero h1 {
        font-size: 1.6rem;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .municipalities-hero p {
        font-size: 0.9rem;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    .cta-button {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}

/* Municipalities Filter */
.municipalities-filter {
    background-color: var(--dark-gray);
    padding: 25px;
    border-radius: var(--rounded-md);
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-header h2 {
    color: var(--dark);
    font-size: 1.5rem;
}

.filter-results {
    font-size: 0.9rem;
    color: var(--gray);
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.filter-group select, .filter-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--rounded-sm);
    background: var(--darker-gray);
    color: var(--dark);
    transition: all 0.3s ease;
}

.filter-group select:focus, .filter-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.3);
}

.filter-group select option {
    background-color: var(--darker-gray);
    color: var(--dark);
}

/* Responsive Styles for Filter Section */
@media (max-width: 768px) {
    .municipalities-filter {
        padding: 20px;
    }
    
    .filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .filter-header h2 {
        font-size: 1.3rem;
        margin-bottom: 0;
    }
    
    .filter-results {
        font-size: 0.85rem;
    }
    
    .filter-group {
        min-width: calc(50% - 10px);
    }
    
    .filter-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .filter-group select, .filter-group input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .municipalities-filter {
        padding: 15px;
    }
    
    .filter-options {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-header h2 {
        font-size: 1.2rem;
    }
    
    .filter-group select, .filter-group input {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

/* Municipalities Grid */
.municipalities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.municipality-card {
    background: var(--dark-gray);
    border-radius: var(--rounded-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}

.municipality-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.municipality-color {
    height: 8px;
    width: 100%;
}

.municipality-content {
    padding: 20px;
}

.municipality-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.municipality-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.municipality-slug {
    color: var(--gray);
    font-size: 0.9rem;
    font-style: italic;
}

.municipality-island {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--darker-gray);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.municipality-details {
    margin-bottom: 20px;
}

.municipality-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--light-gray);
}

.municipality-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-label {
    font-weight: 500;
    color: var(--gray);
}

.detail-value {
    color: var(--dark);
}

.municipality-actions {
    display: flex;
    justify-content: space-between;
}

.municipality-button {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: var(--darker-gray);
    color: var(--dark);
    text-decoration: none;
    border-radius: var(--rounded-sm);
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.municipality-button.primary {
    background: var(--primary);
    color: var(--light);
    margin-right: 10px;
}

.municipality-button:hover {
    background: var(--primary-light);
    color: var(--light);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.pagination-list {
    display: flex;
    list-style: none;
    gap: 10px;
}

.pagination-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--rounded-sm);
    background-color: var(--darker-gray);
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-item.active a,
.pagination-item a:hover {
    background-color: var(--primary);
    color: var(--light);
}

.no-municipalities {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background-color: var(--dark-gray);
    border-radius: var(--rounded-md);
    box-shadow: var(--shadow-sm);
}

.no-municipalities h3 {
    color: var(--dark);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.no-municipalities p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .municipalities-grid {
        grid-template-columns: 1fr;
    }
    
    .municipality-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .municipality-button.primary {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    /* This rule is now handled in the filter section styles above */
}