/* ===================================
   Branches Page Styles
   =================================== */

.page-header {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    margin-top: 80px;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.3rem;
    margin-bottom: 20px;
    opacity: 0.95;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.breadcrumb a {
    color: white;
    opacity: 0.9;
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.breadcrumb span {
    opacity: 0.7;
}

/* Branch Search */
.branch-search {
    max-width: 600px;
    margin: 40px auto 0;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 20px;
    color: var(--text-light);
    font-size: 1.2rem;
}

.search-box input {
    width: 100%;
    padding: 15px 20px 15px 55px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
}

/* Map Section */
.branches-map {
    padding: 60px 0;
    background: var(--light-color);
}

.map-container {
    position: relative;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-placeholder {
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: var(--text-light);
}

.map-placeholder i {
    font-size: 5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.map-placeholder p {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.map-placeholder small {
    font-size: 1rem;
}

.map-legend {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.map-legend h4 {
    margin-bottom: 15px;
    font-size: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
}

.marker.main {
    background: var(--secondary-color);
    border: 3px solid var(--primary-color);
}

.marker.branch {
    background: var(--primary-color);
    border: 3px solid var(--accent-color);
}

/* Branch Cards */
.branch-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    transition: var(--transition);
}

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

.branch-card.featured {
    border: 3px solid var(--secondary-color);
}

.branch-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary-color);
    color: var(--dark-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

.branch-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 0;
}

.branch-image {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.branch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.branch-status {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.branch-status.open {
    background: #4CAF50;
    color: white;
}

.branch-status.closed {
    background: #F44336;
    color: white;
}

.branch-status i {
    font-size: 0.6rem;
    animation: pulse 2s infinite;
}

.branch-info {
    padding: 40px;
}

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

.branch-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

.branch-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.branch-rating span {
    color: var(--text-light);
    font-size: 1rem;
    margin-left: 5px;
}

.branch-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    gap: 15px;
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
    flex-shrink: 0;
}

.detail-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.detail-item p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.branch-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--light-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.feature-tag i {
    color: var(--primary-color);
}

.branch-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.branch-actions .btn {
    flex: 1;
    min-width: 150px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Section */
.branches-cta {
    text-align: center;
}

.branches-cta .cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.branches-cta .cta-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .branch-content {
        grid-template-columns: 1fr;
    }
    
    .branch-image {
        min-height: 300px;
    }
    
    .map-legend {
        position: static;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .page-header {
        height: 300px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .branch-info {
        padding: 30px 20px;
    }
    
    .branch-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .branch-actions {
        flex-direction: column;
    }
    
    .branch-actions .btn {
        width: 100%;
    }
    
    .map-placeholder {
        height: 300px;
    }
    
    .map-placeholder i {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}
