/* ===================== */
/* PAGE HERO BANNER      */
/* ===================== */
.page-hero {
    margin-top: calc(var(--header-height) + 10px);
    position: relative;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.page-hero--with-tabs {
    height: 300px;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
   /* transform: scale(1.15);*/
    object-position: center 75%;
    background: linear-gradient(0deg, rgba(0, 59, 112, 0.54), rgba(0, 59, 112, 0.54));
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, #003B70 0%, rgba(0, 29, 56, 0.72) 45%, rgba(0, 0, 0, 0) 100%);
}

.page-hero__title {
    font-family: Co Headline;
    font-weight: 400;
    font-size: 28px;
    line-height: 115.99999999999999%;
    letter-spacing: 0%;
    margin-bottom: 90px;
}

/* ===================== */
/* MAP / BRANCHES        */
/* ===================== */
.branches-section {
    padding: 0;
    margin: 0;
    margin-top: -91px;
    position: relative;
    z-index: 10;
}

.branches-layout {
    position: relative;
    height: 720px;
    overflow: hidden;
}

.branches-map {
    position: absolute;
    inset: 0;
    background: var(--gray-200);
    overflow: hidden;
}

    .branches-map iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

.branches-panel {
    position: absolute;
    left: 48px;
    top: 140px;
    width: 582px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 28px 24px 32px;
    z-index: 2;
    max-height: calc(100% - 132px);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.branches-list {
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #424242 #e0e0e0;
}

    .branches-list::-webkit-scrollbar {
        width: 4px;
    }

    .branches-list::-webkit-scrollbar-track {
        background: #e0e0e0;
        border-radius: 300px;
    }

    .branches-list::-webkit-scrollbar-thumb {
        background: #424242;
        border-radius: 300px;
    }

.branch-type-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    background: var(--white);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.15);
    width: fit-content;
    margin: 0 auto;
    position: relative;
    z-index: 11;
    margin-bottom: -77px;
}

.branch-type-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 12px;
    width: 120px;
    height: 120px;
    justify-content: center;
    color: var(--primary-teal);
    overflow: hidden;
    padding: 8px;
}

    .branch-type-tab.active {
        background: var(--primary-teal);
        color: var(--white);
    }


    .branch-type-tab img {
        width: 28.783203125px;
        height: 28.781789779663086px;
        opacity: 1;
        top: 2px;
        left: 46px;
        border-width: 2.11px;
    }

.branch-type-tab span {
    font-family: Co Headline;
    font-weight: 300;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 1%;
    text-align: center;
    color: rgba(0, 59, 112, 1);
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.15;
}

.branch-type-tab.active img {
    filter: brightness(0) invert(1);
}

.branch-type-tab.active span {
    color: var(--white);
}

.branches-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*margin-bottom: 16px;*/
}

    .branches-filter-header h3 {
        font-family: Co Headline;
        font-weight: 400;
        font-size: 24px;
        line-height: 127%;
        letter-spacing: 0%;
        color: var(--primary-dark-blue);
    }

    .branches-filter-header .btnuseLocationBtn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-family: Co Headline;
        font-weight: 400;
        font-size: 18px;
        line-height: 100%;
        letter-spacing: 0%;
        color: var(--primary-dark-blue);
    }

    .branches-filter-header .btnuseLocationBtn img {
        display: block;
        flex-shrink: 0;
    }

.branches-filter-selects {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

    .branches-filter-selects .form-select {
        font-size:16px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex: 1;
        min-width: 0;
        height: 48px;
        padding: 10px;
        border: 1px solid #D6D6D6;
        border-radius: 8px;
        background-color: #FFFFFF;
        color: #9B9B9B;
        font-weight: var(--font-regular);
        line-height: 1;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%239B9B9B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        background-size: 20px 20px;
        padding-right: 44px;
    }

        .branches-filter-selects .form-select:focus {
            outline: none;
            border-color: #D6D6D6;
            box-shadow: none;
        }

.branches-showing {
    color: #003B70;
    font-family: Co Headline;
    font-weight: 400;
    font-size: 16px;
    line-height: 127%;
    letter-spacing: 0%;
}

.branch-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border: 1px solid var(--gray-300);
}

.branch-item__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2px;
}

    .branch-item__icon svg {
        width: 28px;
        height: 28px;
    }

    .branch-item__icon img {
        width: 28px;
        height: 28px;
        object-fit: contain;
    }

.branch-item__content {
    flex: 1;
    min-width: 0;
}

.branch-item__name {
    color: var(--primary-dark-blue);
    font-family: Co Headline;
    font-weight: 400;
    font-size: 20px;
    line-height: 127%;
    letter-spacing: 0%;
}

.branch-item__address {
    font-family: Co Headline;
    font-weight: 300;
    font-size: 16px;
    line-height: 127%;
    letter-spacing: 0%;
    color: #2C2C2C;
}

.branch-item__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.branch-item__tag {
    font-size: var(--text-sm);
    color: var(--primary-dark-blue);
    font-weight: var(--font-bold);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .branch-item__tag svg {
        flex-shrink: 0;
    }

    .branch-item__tag img {
        width: 12px;
        height: 12px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .branch-item__tag + .branch-item__tag::before {
        content: "/";
        color: var(--gray-400);
        margin-right: 4px;
        font-weight: var(--font-regular);
    }
.useLocation-wrapper {
    gap: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.branch-item__distance {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: Co Headline;
    font-weight: 400;
    font-size: 16px;
    line-height: 127%;
    letter-spacing: 0%;
    color: var(--primary-teal);
}

    .branch-item__distance svg {
        width: 9.166666984558105px;
        height: 16.25px;
        opacity: 1;
        top: 2.08px;
        left: 5.84px;
        border-width: 2px;
    }

    .branch-item__distance img {
        width: 14px;
        height: 14px;
        object-fit: contain;
        flex-shrink: 0;
    }

.branch-item__arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    align-self: center;
    transition: background var(--transition-fast);
}

    .branch-item__arrow img {
        width: 44px;
        height: 44px;
        object-fit: contain;
    }

.branch-item--hidden {
    display: none;
}

/* ===================== */
/* PANEL TOGGLE BUTTON   */
/* ===================== */
.panel-toggle-btn {
    position: absolute;
    top: 155px;
    left: 630px;
    width: 32px;
    height: 52px;
    background: #003B70;
    border: none;
    border-radius: 0 10px 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    padding: 0;
    transition: left 0.35s ease;
}

.panel-toggle-btn svg {
    transition: transform 0.35s ease;
    flex-shrink: 0;
    display: block;
}
.i4ewOd-pzNkMb-haAclf{
    display:none;

}
   
    .branches-layout.panel-collapsed .branches-panel {
        transform: translateX(calc(-100% - 48px));
        opacity: 0;
        pointer-events: none;
    }

.branches-layout.panel-collapsed .panel-toggle-btn {
    left: 0;
}

.branches-layout.panel-collapsed .panel-toggle-btn svg {
    transform: rotate(180deg);
}

/* Desktop RTL — the mirror of the LTR rule above.
   This was commented out, which is why the button moved around on zoom in
   Arabic: with no desktop RTL rule it fell back to the LTR `left: 630px`, so it
   sat on the wrong side above 1024px and then jumped to a different place at
   each breakpoint the zoom crossed. `left: auto` is essential — leaving both
   left and right set makes the box over-constrained.

   Rotating the whole button mirrors the chevron and the rounded corners in one
   go, so no separate border-radius override is needed. */
html[dir="rtl"] .panel-toggle-btn {
    left: auto;
     right: auto;
    transform: rotate(180deg);
    transition: right 0.35s ease;
}

html[dir="rtl"] .branches-layout.panel-collapsed .branches-panel {
    transform: translateX(calc(100% + 48px));
}

html[dir="rtl"] .branches-layout.panel-collapsed .panel-toggle-btn {
    right: 0;
    left: auto;
}

/* ===================== */
/* RTL OVERRIDES         */
/* ===================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;700&display=swap');

html[dir="rtl"] {
    --font-primary: 'Cairo', 'Co Headline', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    html[dir="rtl"] body {
        direction: rtl;
        text-align: right;
    }

    html[dir="rtl"] .form-select {
        text-align: right;
        background-position: left 16px center;
    }

    html[dir="rtl"] .branches-filter-selects .form-select {
        padding-right: 16px;
        padding-left: 44px;
    }

    html[dir="rtl"] .page-hero__overlay {
        background: linear-gradient( to left, rgba(0, 59, 112, 0.6), rgba(0, 29, 56, 0.6), rgba(0, 0, 0, 0.6) );
    }
select option {
    color: #003B70;
}
/*    html[dir="rtl"] .branches-panel {
        left: auto;
        right: 48px;
        }*/

        html[dir="rtl"] .branch-item__content {
            text-align: right;
        }

        html[dir="rtl"] .branch-item__tag + .branch-item__tag::before {
            margin-right: 0;
            margin-left: 4px;
        }
        /* ===================== */
        /* RESPONSIVE            */
        /* ===================== */
        /* Tablet */
        @media (max-width: 1024px) {
            .branches-layout {
                height: auto;
                display: flex;
                flex-direction: column;
            }

            .branches-panel {
                position: relative;
                left: auto;
                top: auto;
                width: 100%;
                max-height: none;
                border-radius: 24px 24px 0 0;
                box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
                z-index: 2;
                padding: 24px 20px;
            }

            .branches-map {
                position: relative;
                height: 400px;
            }

            .panel-toggle-btn {
                top: 368px;
                left: auto;
                right: 20px;
                width: 44px;
                height: 44px;
                border-radius: 50%;
                transition: none;
            }

            /* RTL mirror of the round button above. Without this, Arabic used the
               LTR position between 769px and 1024px — one of the jumps seen when
               zooming. transform is reset because the circle needs no mirroring
               and the desktop rule rotates the button. */
            html[dir="rtl"] .panel-toggle-btn {
                right: auto;
                left: 20px;
                transform: none;
            }

            .panel-toggle-btn svg {
                transform: rotate(-90deg);
                transition: transform 0.25s ease;
            }

            .branches-layout.panel-collapsed .panel-toggle-btn {
                left: auto;
            }

            .branches-layout.panel-collapsed .panel-toggle-btn svg {
                transform: rotate(90deg);
            }

            .branches-layout.panel-collapsed .branches-panel {
                transform: translateY(20px) !important;
                opacity: 0 !important;
                pointer-events: none;
            }
        }
        /* Mobile */
        @media (max-width: 768px) {
            .branches-filter-header .btnuseLocationBtn {
            font-size:15px;
            }
                :root {
                    --header-height: 48px;
                }
                /*.branches-section {
                margin-top: -138px;
            }*/

                .page-hero {
                    margin-top: calc(var(--header-height) + 40px);
                    height: 200px;
                    padding: 24px 16px;
                }

                .page-hero--with-tabs {
                    height: 280px;
                }

                .page-hero__title {
                    font-size: 20px;
                    margin-bottom: 90px;
                }

                .branches-layout {
                    display: block;
                    height: 620px;
                    overflow: hidden;
                    margin-top: -138px; 
                }

                .branches-panel {
                    position: absolute;
                    top: 200px;
                    left: 50%;
                    transform: translateX(-50%);
                    display: flex;
                    flex-direction: column;
                    align-items: stretch;
                    gap: 16px;
                    width: 343px;
                    max-width: calc(100% - 16px);
                    height: 408px;
                    padding: 16px;
                    background: #FFFFFF;
                    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.31);
                    border-radius: 24px;
                    margin: 0;
                    z-index: 2;
                }

                .branches-filter-header {
                    flex-direction: column-reverse;
                    align-items: flex-start;
                    gap: 16px;
                    width: 100%;
                }

                    .branches-filter-header .btn {
                        align-self: flex-start;
                        width: auto;
                        height: auto;
                        padding: 0;
                        border: 0;
                        border-radius: 0;
                        background: transparent;
                        justify-content: flex-start;
                    }

                    .branches-filter-header h3 {
                        margin: 0;
                        text-align: left;
                        font-weight: var(--font-regular);
                        font-size: 20px
                    }

                .branches-filter-selects {
                    width: 100%;
                    flex-direction: row;
                    gap: 12px;
                    margin-bottom: 16px;
                }

                    .branches-filter-selects .form-select {
                        flex: 1 1 0;
                        min-width: 0;
                        height: 50px;
                        padding: 0 40px 0 14px;
                        border: 1px solid #CFCFCF;
                        border-radius: 14px;
                        background-position: right 12px center;
                        background-size: 22px 22px;
                        font-size: 12px;
                        font-weight: 300;
                    }

                .branches-showing {
                    margin-top: -16px;
                }

                html[dir="rtl"] .branches-filter-selects .form-select {
                    padding-right: 14px;
                    padding-left: 40px;
                    background-position: left 12px center;
                }

                .branches-map {
                    position: absolute;
                    inset: 0;
                    height: 100%;
                }

                    .branches-map iframe {
                        height: calc(100% + 120px);
                        transform: translateY(-120px);
                    }

            .branch-type-tabs {
                display: grid;
                grid-template-columns: repeat(3, 88px);
                column-gap: 8px;
                row-gap: 8px;
                width: fit-content;
                padding: 16px 12px;
                justify-content: center;
                margin-bottom: -180px;
            }

                .branch-type-tab {
                    width: 88px;
                    height: 88px;
                    font-size: 9px;
                }

                    .branch-type-tab span {
                        font-size: 10px;
                        font-weight: 400;
                        line-height: 1.2;
                        overflow-wrap: normal;
                        word-break: keep-all;
                    }

                .branch-item__name {
                    font-family: Co Headline;
                    font-weight: 400;
                    font-size: 14px;
                    line-height: 127%;
                    letter-spacing: 0%;
                }

                .branch-item__address {
                    font-family: Co Headline;
                    font-weight: 300;
                    font-size: 10px;
                    line-height: 127%;
                    letter-spacing: 0%;
                }

                .branch-item__distance {
                    font-family: Co Headline;
                    font-weight: 300;
                    font-size: 10px;
                    line-height: 127%;
                    letter-spacing: 0%;
                }

                .branch-item__arrow img {
                    width: 26px;
                    height: 26px;
                    opacity: 1;
                }

                .panel-toggle-btn {
                    top: 222px;
                    right: max(8px, calc(50% - 172px));
                    left: auto;
                    bottom: auto;
                    width: 32px;
                    height: 32px;
                    border-radius: 8px 0px 0px 8px;
                    transition: none;
                }

                    .panel-toggle-btn svg {
                        transform: none;
                        transition: transform 0.25s ease;
                    }

                .branches-layout.panel-collapsed .panel-toggle-btn {
                    left: 0;
                    right: auto;
                    border-radius: 0 8px 8px 0;
                }

                    .branches-layout.panel-collapsed .panel-toggle-btn svg {
                        transform: rotate(180deg);
                    }

                .branches-layout.panel-collapsed .branches-panel {
                    transform: translateX(-50%) translateY(120%) !important;
                    opacity: 0 !important;
                    pointer-events: none;
                    display: flex !important;
                }

                html[dir="rtl"] .panel-toggle-btn {
                    right: auto;
                    left: max(8px, calc(50% - 172px));
                    border-radius: 0 8px 8px 0;
                }

                html[dir="rtl"] .branches-layout.panel-collapsed .panel-toggle-btn {
                    left: auto;
                    right: 0;
                    border-radius: 8px 0 0 8px;
                }

                html[dir="rtl"] .branches-filter-header {
                    align-items: flex-start;
                }
            }
