/* Branches Page Styles */

/* Hero Section */
.branches-hero {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 170px;
}

.branches-hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.branches-hero-subtitle {
    font-size: 1.25rem;
    color: #ffffff;
    opacity: 0.9;
}

/* Main Branches Section */
.branches-main {
    padding: 4rem 0;
}

/* Search and Filter Section */
.search-filter-section {
    margin-bottom: 3rem;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    stroke: #999999;
    stroke-width: 2;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s, background-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #ff0000;
    background-color: rgba(255, 255, 255, 0.08);
}

.search-box input::placeholder {
    color: #999999;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background-color: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
}

.filter-btn.active {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-color: #ff0000;
}

/* Province Section */
.province-section {
    margin-bottom: 4rem;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.province-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #ff0000;
    display: inline-block;
}

/* Branches Grid */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* Branch Card */
.branch-card {
    background: linear-gradient(135deg, #1a1a1a, #000000);
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.branch-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(255, 0, 0, 0.3);
    border-color: #ff0000;
}

.branch-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: grayscale(0.3);
}

.branch-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.branch-status {
    font-size: 0.9rem;
    color: #ff4444;
    font-weight: 600;
    background-color: rgba(255, 68, 68, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: inline-block;
    margin-top: 0.5rem;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results svg {
    width: 4rem;
    height: 4rem;
    stroke: #666666;
    stroke-width: 2;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: #999999;
    font-size: 1rem;
}

/* Hidden class for filtering */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (min-width: 640px) {
    .branches-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (min-width: 768px) {
    .branches-hero-title {
        font-size: 4rem;
    }

    .branches-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (min-width: 1024px) {
    .branches-hero {
        padding: 6rem 2rem;
    }

    .branches-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 2rem;
    }
}