/* ── Branch Locator Section ── */
.branch-locator-section {
    padding: 50px 0 70px;
    background-color: #f4f6f8;
}

/* ── Tabs ── */
.branch-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 36px;
}

.branch-tab-btn {
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 700;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.25s, color 0.25s;
}

/* .branch-tab-btn:first-child {
    border-radius: 4px 0 0 4px;
} */

.branch-tab-btn:last-child {
    /* border-radius: 0 4px 4px 0; */
    border-left: none;
}

.branch-tab-btn.active,
.branch-tab-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ── Tab Content ── */
.branch-tab-content {
    display: none;
}

.branch-tab-content.active {
    display: block;
}

/* ── Filter Row ── */
.locator-filter-row {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

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

.locator-select {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-size: 15px;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.locator-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 147, 150, 0.12);
}

.locator-select:disabled {
    background-color: #f5f5f5;
    color: #aaa;
    cursor: not-allowed;
}

/* ── Main Panel: List + Map ── */
.branch-main-panel {
    display: flex;
    gap: 0;
    border: 1px solid #d8dee4;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    min-height: 520px;
}

/* ── Branch List Panel ── */
.branch-list-panel {
    width: 320px;
    min-width: 280px;
    max-width: 340px;
    flex-shrink: 0;
    overflow-y: auto;
    border-right: 1px solid #d8dee4;
    position: relative;
    background: #fff;
    max-height: 580px;
}

/* ── Scrollbar Styling ── */
.branch-list-panel::-webkit-scrollbar {
    width: 6px;
}

.branch-list-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.branch-list-panel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* ── Branch Results ── */
.branch-results-container {
    padding: 0;
}

.initial-state,
.no-branches {
    padding: 40px 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
    line-height: 1.6;
}

/* ── Branch List Items ── */
.branches-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.branch-item {
    padding: 16px 20px;
    border-bottom: 1px solid #eef0f3;
    transition: background 0.2s;
}

.branch-item:last-child {
    border-bottom: none;
}

.branch-item:hover {
    background: #f7fbfb;
}

.branch-item-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 8px;
}

.branch-item-address {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 12px;
}

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

.btn-locate,
.btn-enquire {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.4px;
    transition: background 0.2s, color 0.2s;
    border: 1px solid var(--primary-color);
    text-transform: uppercase;
}

.btn-locate {
    background: transparent;
    color: var(--primary-color);
}

.btn-locate:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-enquire {
    background: transparent;
    color: var(--primary-color);
}

.btn-enquire:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ── Map Panel ── */
.branch-map-panel {
    flex: 1;
    min-height: 520px;
    position: relative;
    overflow: hidden;
}

.branch-map {
    width: 100%;
    height: 100%;
    min-height: 520px;
}

.branch-map iframe {
    width: 100%;
    height: 100%;
    min-height: 520px;
    border: none;
    display: block;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #e9edf1;
    color: #aaa;
    gap: 12px;
}

.map-placeholder i {
    font-size: 48px;
    color: #c8d2da;
}

.map-placeholder p {
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* ── Loader ── */
.branch-loader {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(10, 147, 150, 0.15);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Experience Zone Details ── */
.experience-branch-details {
    background: #fff;
    border: 1px solid #d8dee4;
    border-radius: 6px;
    padding: 40px;
    min-height: 400px;
}

.experience-initial-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.experience-initial-state i {
    font-size: 52px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.exp-branch-main {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.exp-branch-info {
    flex: 1;
}

.exp-branch-featured {
    flex: 1;
    max-width: 50%;
}

.exp-featured-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.exp-branch-name {
    font-size: 28px;
    color: var(--primary-color);
    margin: 0 0 15px;
    font-weight: 700;
}

.exp-branch-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 25px;
}

.exp-branch-meta {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.exp-branch-meta p {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.exp-branch-meta i {
    color: var(--primary-color);
    margin-top: 3px;
    width: 16px;
}

.exp-branch-meta a {
    color: inherit;
    text-decoration: none;
}

.exp-branch-meta a:hover {
    color: var(--primary-color);
}

.btn-locate-exp {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.btn-locate-exp:hover {
    background: var(--primary-dark);
}

/* ── Gallery Grid ── */
.exp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.exp-gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
}

.exp-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.exp-gallery-img:hover {
    transform: scale(1.05);
}

#experience-loader {
    min-height: 400px;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
    .exp-branch-main {
        gap: 30px;
    }

    .experience-branch-details {
        padding: 30px;
    }
}

@media (max-width: 900px) {
    .branch-main-panel {
        flex-direction: column;
        min-height: auto;
    }

    .branch-list-panel {
        width: 100%;
        max-width: 100%;
        max-height: 350px;
        border-right: none;
        border-bottom: 1px solid #d8dee4;
    }

    .branch-map-panel,
    .branch-map,
    .branch-map iframe,
    .map-placeholder {
        min-height: 400px;
    }

    .exp-branch-name {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .branch-locator-section {
        padding: 40px 0 50px;
    }

    .exp-branch-main {
        flex-direction: column-reverse;
    }

    .exp-branch-featured {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .experience-branch-details {
        padding: 24px;
    }

    .locator-filter-row {
        gap: 12px;
    }

    .locator-filter-col {
        min-width: calc(50% - 6px);
    }

    .locator-filter-col:first-child {
        min-width: 100%;
    }
}

@media (max-width: 600px) {
    .branch-tabs {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 30px;
    }

    .branch-tab-btn {
        width: 100%;
        max-width: none;
        padding: 12px 20px;
        font-size: 15px;
        border-radius: 4px !important;
        border-left: 2px solid var(--primary-color) !important;
    }

    .locator-filter-col {
        min-width: 100%;
    }

    .branch-list-panel {
        max-height: 300px;
    }

    .branch-map-panel,
    .branch-map,
    .branch-map iframe,
    .map-placeholder {
        min-height: 300px;
    }

    .exp-branch-name {
        font-size: 20px;
    }

    .exp-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .branch-locator-section {
        padding: 30px 0 40px;
    }

    .experience-branch-details {
        padding: 15px;
    }
}