/* Branch Page Styles - Matching Blog Theme */
:root {
    --primary: #1A886D;
    --primary-dark: #0e5f4a;
    --primary-light: #e8f5f0;
    --primary-soft: rgba(26, 136, 109, 0.1);
    --secondary: #f5f7fa;
    --accent: #ffb347;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #ffffff;
    --border-light: #e2e8f0;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 30px rgba(26, 136, 109, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    --transition: all 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section - Matching Blog */
#branch-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

#branch-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

#branch-hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
}

#branch-hero h1 {
    font-weight: 700;
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--text-light);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out forwards;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#branch-hero h1 span {
    color: var(--accent);
}

#branch-hero p {
    max-width: 672px;
    font-size: 20px;
    color: var(--text-light);
    opacity: 0.9;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.7s ease-out forwards;
    line-height: 1.6;
}

/* Filter Section - Matching Blog */
#branch-filter {
    background-color: #ffffff;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-light);
}

.filter-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 280px;
    position: relative;
}

.search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 14px;
    transition: var(--transition);
    outline: none;
    font-weight: 500;
}

.search-box input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

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

.filter-select {
    padding: 12px 28px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    background-color: transparent;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
    min-width: 160px;
}

.filter-select:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

/* Branches Section - Matching Blog */
#branches {
    background-color: #f8fafc;
    padding: 40px 0;
}

.branches-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 32px 0 48px;
}

/* Branch Card - Matching Blog Card */
.branch-card {
    padding: 28px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.5s ease-out;
}

.branch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: var(--transition);
}

.branch-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.branch-card:hover::before {
    opacity: 1;
}

/* Tag Section - Matching Blog */
.branch-card .tag {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.branch-card .tag svg {
    color: var(--primary);
    width: 20px;
    height: 20px;
}

.branch-card .tag button {
    border: 1px solid var(--border-light);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    background: var(--primary-soft);
    color: var(--primary-dark);
    cursor: text;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.status-badge {
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-left: auto;
}

/* Title - Matching Blog */
.branch-card .title {
    width: 100%;
    margin-bottom: 12px;
}

.branch-card .title h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    transition: var(--transition);
}

.branch-card:hover .title h3 {
    color: var(--primary);
}

/* Address Text - Matching Blog */
.branch-card .text p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Info Section - Matching Blog */
.branch-card .info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 16px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 16px;
}

.branch-card .info span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.branch-card .info span svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

.branch-card .info span a {
    color: var(--text-muted);
    transition: var(--transition);
}

.branch-card .info span a:hover {
    color: var(--primary);
}

/* Services Section */
.branch-card .services {
    margin-bottom: 20px;
}

.branch-card .services p {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tag {
    padding: 4px 12px;
    background: var(--primary-soft);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 500;
    color: var(--primary-dark);
    transition: var(--transition);
}

.service-tag:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    border-color: transparent;
    transform: translateY(-2px);
}

.no-services {
    color: var(--text-muted);
    font-size: 12px;
    font-style: italic;
}

/* Branch Actions - Matching Blog */
.branch-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn-direction, .btn-contact {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1.5px solid var(--border-light);
    background-color: transparent;
    color: var(--text-dark);
}

.btn-direction {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    border: none;
}

.btn-direction:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-contact:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Load More Button - Matching Blog */
.btn-load-more {
    display: inline-block;
    margin: 0 auto 48px;
    padding: 12px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(26, 136, 109, 0.2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 136, 109, 0.3);
}

.btn-load-more:active {
    transform: translateY(0);
}

/* CTA Section - Matching Blog Subscribe */
#branch-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

#branch-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

#branch-cta h2 {
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

#branch-cta p {
    max-width: 600px;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(26, 136, 109, 0.2);
    text-decoration: none;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 136, 109, 0.3);
    color: #D4AF37;
}

.btn-cta svg {
    transition: transform var(--transition);
}

.btn-cta:hover svg {
    transform: translateX(4px);
}

/* Animations - Matching Blog */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Delays - Matching Blog */
.branch-card:nth-child(1) { animation-delay: 0.1s; }
.branch-card:nth-child(2) { animation-delay: 0.2s; }
.branch-card:nth-child(3) { animation-delay: 0.3s; }
.branch-card:nth-child(4) { animation-delay: 0.4s; }
.branch-card:nth-child(5) { animation-delay: 0.5s; }
.branch-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Design - Matching Blog */

/* Tablet Landscape */
@media (max-width: 1200px) {
    .branches-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    #branch-hero h1 {
        font-size: 42px;
    }

    #branch-hero p {
        font-size: 18px;
        padding: 0 20px;
    }
}

/* Tablet Portrait */
@media (max-width: 1024px) {
    .branches-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    #branch-hero {
        padding: 50px 20px;
    }

    #branch-hero h1 {
        font-size: 36px;
    }

    #branch-hero p {
        font-size: 16px;
    }

    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .branches-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0 40px;
    }

    .filter-wrapper {
        padding: 0 15px;
    }

    .filter-select {
        width: 100%;
        padding: 10px 20px;
    }

    .branch-card {
        padding: 24px;
    }

    .branch-card .title h3 {
        font-size: 20px;
    }

    .branch-actions {
        flex-direction: column;
    }

    #branch-cta h2 {
        font-size: 28px;
    }

    #branch-cta p {
        font-size: 15px;
        padding: 0 20px;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    #branch-hero {
        padding: 40px 15px;
    }

    #branch-hero h1 {
        font-size: 28px;
        margin-bottom: 12px;
    }

    #branch-hero p {
        font-size: 14px;
        line-height: 1.5;
    }

    #branch-filter {
        padding: 20px 0;
    }

    .search-box input {
        padding: 10px 16px 10px 40px;
        font-size: 13px;
    }

    .branch-card {
        padding: 20px;
    }

    .branch-card .info {
        gap: 10px;
    }

    .branch-card .info span {
        font-size: 12px;
    }

    .service-tag {
        font-size: 10px;
        padding: 3px 10px;
    }

    .btn-load-more {
        padding: 10px 30px;
        font-size: 14px;
        margin-bottom: 40px;
    }

    #branch-cta {
        padding: 60px 15px;
    }

    #branch-cta h2 {
        font-size: 24px;
    }

    #branch-cta p {
        font-size: 14px;
    }

    .btn-cta {
        padding: 12px 28px;
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 380px) {
    #branch-hero h1 {
        font-size: 24px;
    }

    #branch-hero p {
        font-size: 13px;
    }

    .branch-card .tag button {
        font-size: 10px;
        padding: 4px 12px;
    }

    .branch-card .title h3 {
        font-size: 18px;
    }

    .branch-card .info span {
        font-size: 11px;
    }

    .btn-direction, .btn-contact {
        font-size: 12px;
        padding: 8px 12px;
    }

    #branch-cta h2 {
        font-size: 20px;
    }
}

/* Touch Device Optimizations - Matching Blog */
@media (hover: none) and (pointer: coarse) {
    .branch-card:hover {
        transform: none;
    }

    .branch-card:hover .title h3 {
        color: var(--text-dark);
    }

    .branch-card:hover::before {
        opacity: 0;
    }

    .btn-direction:hover,
    .btn-contact:hover,
    .btn-cta:hover {
        transform: none;
    }

    .btn-direction:active,
    .btn-contact:active,
    .btn-cta:active {
        transform: scale(0.98);
    }
}

/* Print Styles - Matching Blog */
@media print {
    #branch-hero {
        background: none;
        color: #000;
    }

    #branch-hero h1,
    #branch-hero p {
        color: #000;
    }

    .branch-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }

    #branch-filter,
    .branch-actions,
    .btn-load-more,
    #branch-cta {
        display: none;
    }
}


/* Map Section */
#branch-map {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.map-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.map-title span {
    color: var(--primary);
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* No Results Message */
.no-results-message {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
    background: var(--background-light);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-light);
}

.no-results-message svg {
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 16px;
}

.no-results-message p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 20px;
}

.no-results-message button {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.no-results-message button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Search Clear Button */
.search-clear:hover {
    color: var(--primary) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .map-container {
        height: 300px;
    }

    .map-title {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .map-container {
        height: 250px;
    }

    .map-title {
        font-size: 24px;
    }
}
