/* ============================================
   GulfPower Branch Map – Styles v2.0
   Full-width · Country Grouped · Bilingual
   ============================================ */

/* ---------- Font Support ---------- */
.gp-map-wrapper.gp-arabic,
.gp-map-wrapper.gp-arabic * {
    font-family: 'Tajawal', 'Gotham', 'Inter', sans-serif;
}

.gp-map-wrapper.gp-english,
.gp-map-wrapper.gp-english * {
    font-family: 'Gotham', 'Inter', sans-serif;
}

/* ---------- Wrapper Layout – FULL WIDTH ---------- */
.gp-map-wrapper {
    display: flex;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    background: #0f1520;
    min-height: 700px;
}

/* Force full width when inside WP containers */
.entry-content .gp-map-wrapper,
.elementor-widget-container .gp-map-wrapper,
.wpb_wrapper .gp-map-wrapper,
.woodmart-container .gp-map-wrapper,
.container .gp-map-wrapper,
.page-content .gp-map-wrapper {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* RTL Support */
.gp-map-wrapper[dir="rtl"] {
    direction: rtl;
}

.gp-map-wrapper[dir="rtl"] .gp-map-sidebar {
    order: -1;
    border-left: none;
    border-right: none;
    border-left: 1px solid rgba(79, 178, 72, 0.12);
}

.gp-map-wrapper[dir="rtl"] #gp-branch-map {
    order: 1;
}

/* ---------- Map Container ---------- */
#gp-branch-map {
    flex: 1;
    min-height: 700px;
    z-index: 1;
    background: #0f1520;
}

/* Map controls */
#gp-branch-map .leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.3) !important;
    border-radius: 12px !important;
    overflow: hidden;
}

#gp-branch-map .leaflet-control-zoom a {
    background: rgba(26, 35, 50, 0.95) !important;
    color: #fff !important;
    border: none !important;
    width: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
    font-size: 18px !important;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

#gp-branch-map .leaflet-control-zoom a:hover {
    background: rgba(79, 178, 72, 0.2) !important;
    color: #4FB248 !important;
}

/* Attribution */
#gp-branch-map .leaflet-control-attribution {
    background: rgba(15, 21, 32, 0.85) !important;
    color: rgba(255,255,255,0.3) !important;
    font-size: 10px !important;
    border-radius: 6px 0 0 0;
}

#gp-branch-map .leaflet-control-attribution a {
    color: rgba(79, 178, 72, 0.7) !important;
}

/* ---------- Custom Marker ---------- */
.gp-marker {
    position: relative;
}

.gp-marker-inner {
    width: 44px;
    height: 44px;
    background: radial-gradient(circle at 30% 30%, #6ddb64, #4FB248);
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 15px rgba(79, 178, 72, 0.5),
        0 0 0 4px rgba(79, 178, 72, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.gp-marker-inner::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #4FB248;
    filter: drop-shadow(0 2px 4px rgba(79, 178, 72, 0.4));
}

.gp-marker-inner:hover {
    transform: scale(1.15);
    box-shadow:
        0 6px 25px rgba(79, 178, 72, 0.6),
        0 0 0 6px rgba(79, 178, 72, 0.2);
}

.gp-marker-inner .marker-count {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    font-family: 'Gotham', 'Inter', sans-serif;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    line-height: 1;
}

/* HQ marker — special gold style */
.gp-marker-hq .gp-marker-inner {
    width: 52px;
    height: 52px;
    background: radial-gradient(circle at 30% 30%, #ffcc02, #e6b800);
    border-color: #fff;
    box-shadow:
        0 4px 20px rgba(230, 184, 0, 0.5),
        0 0 0 4px rgba(230, 184, 0, 0.15);
}

.gp-marker-hq .gp-marker-inner::after {
    border-top-color: #e6b800;
    filter: drop-shadow(0 2px 4px rgba(230, 184, 0, 0.4));
}

.gp-marker-hq .gp-marker-inner:hover {
    box-shadow:
        0 6px 30px rgba(230, 184, 0, 0.6),
        0 0 0 6px rgba(230, 184, 0, 0.25);
}

.gp-marker-hq .gp-marker-inner .marker-count {
    font-size: 16px;
}

/* Pulse animation ring */
.gp-marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(79, 178, 72, 0.5);
    animation: gp-pulse 2.5s ease-out infinite;
    pointer-events: none;
}

.gp-marker-hq .gp-marker-pulse {
    border-color: rgba(230, 184, 0, 0.5);
}

@keyframes gp-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
}

/* ---------- Popup Styles ---------- */
.leaflet-popup-content-wrapper {
    background: rgba(21, 29, 43, 0.97) !important;
    border-radius: 14px !important;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(79, 178, 72, 0.2) !important;
    padding: 0 !important;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.leaflet-popup-tip {
    background: rgba(21, 29, 43, 0.97) !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3) !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    min-width: 260px;
    color: #fff;
}

.leaflet-popup-close-button {
    color: rgba(255,255,255,0.4) !important;
    font-size: 20px !important;
    padding: 8px 10px 0 0 !important;
    z-index: 10;
    transition: color 0.2s ease;
}

.leaflet-popup-close-button:hover {
    color: #4FB248 !important;
}

/* RTL popup close button */
[dir="rtl"] .leaflet-popup-close-button {
    left: 10px !important;
    right: auto !important;
}

.gp-popup {
    padding: 0;
}

.gp-popup-header {
    padding: 18px 20px 14px;
    background: linear-gradient(135deg, rgba(79, 178, 72, 0.12) 0%, transparent 100%);
    border-bottom: 1px solid rgba(79, 178, 72, 0.1);
}

.gp-popup-city {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gp-popup-city .city-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4FB248;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(79, 178, 72, 0.6);
}

.gp-popup-subtitle {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
    margin-top: 2px;
}

.gp-popup-body {
    padding: 14px 20px 16px;
}

.gp-popup-address {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 12px;
}

.gp-popup-address svg {
    flex-shrink: 0;
    color: rgba(79, 178, 72, 0.6);
}

.gp-popup-facilities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.gp-facility-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(79, 178, 72, 0.08);
    border: 1px solid rgba(79, 178, 72, 0.15);
    border-radius: 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.gp-facility-tag:hover {
    background: rgba(79, 178, 72, 0.18);
    border-color: rgba(79, 178, 72, 0.35);
}

.gp-facility-tag .tag-icon {
    font-size: 13px;
    line-height: 1;
}

.gp-popup-directions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #4FB248, #3d9a38);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.3px;
}

.gp-popup-directions:hover {
    background: linear-gradient(135deg, #5cc654, #4FB248);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(79, 178, 72, 0.4);
    color: #fff !important;
}

.gp-popup-directions svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ---------- Sidebar ---------- */
.gp-map-sidebar {
    width: 380px;
    background: linear-gradient(180deg, #151d2b 0%, #111825 100%);
    border-right: 1px solid rgba(79, 178, 72, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
    order: -1;
}

/* LTR: sidebar on left by default */
.gp-map-wrapper:not([dir="rtl"]) .gp-map-sidebar {
    border-right: 1px solid rgba(79, 178, 72, 0.08);
    border-left: none;
}

.gp-sidebar-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 20px;
    background: linear-gradient(135deg, rgba(79, 178, 72, 0.06) 0%, transparent 100%);
    border-bottom: 1px solid rgba(79, 178, 72, 0.08);
}

.gp-sidebar-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #4FB248, #3d9a38);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79, 178, 72, 0.3);
}

.gp-sidebar-icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
}

.gp-sidebar-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.gp-sidebar-title p {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin: 2px 0 0 0;
    font-weight: 400;
}

/* ---------- Country Tabs (Filter Bar) ---------- */
.gp-country-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(79, 178, 72, 0.06);
    background: rgba(0,0,0,0.15);
}

.gp-country-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
}

.gp-country-tab:hover {
    background: rgba(79, 178, 72, 0.08);
    border-color: rgba(79, 178, 72, 0.2);
    color: rgba(255,255,255,0.8);
}

.gp-country-tab.active {
    background: linear-gradient(135deg, rgba(79, 178, 72, 0.15), rgba(79, 178, 72, 0.08));
    border-color: rgba(79, 178, 72, 0.3);
    color: #fff;
    box-shadow: 0 0 12px rgba(79, 178, 72, 0.15);
}

.gp-country-tab .tab-icon {
    font-size: 16px;
    line-height: 1;
}

.gp-country-tab .tab-label {
    font-weight: 500;
}

.gp-country-tab .tab-count {
    background: rgba(255,255,255,0.06);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.gp-country-tab.active .tab-count {
    background: rgba(79, 178, 72, 0.25);
    color: #8ce085;
}

/* ---------- Branch List ---------- */
.gp-branch-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(79, 178, 72, 0.2) transparent;
}

.gp-branch-list::-webkit-scrollbar {
    width: 4px;
}

.gp-branch-list::-webkit-scrollbar-track {
    background: transparent;
}

.gp-branch-list::-webkit-scrollbar-thumb {
    background: rgba(79, 178, 72, 0.2);
    border-radius: 4px;
}

/* ---------- Country Group ---------- */
.gp-country-group {
    margin-bottom: 6px;
}

.gp-country-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

.gp-country-header:hover {
    background: rgba(79, 178, 72, 0.06);
    border-color: rgba(79, 178, 72, 0.15);
}

.gp-country-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.gp-country-flag {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.gp-country-flag img {
    vertical-align: middle;
}

.gp-country-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gp-country-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.gp-country-count {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
    white-space: nowrap;
}

.gp-country-chevron {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    transition: transform 0.3s ease;
    line-height: 1;
}

/* Collapsible country branches */
.gp-country-branches {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 8px;
    padding-right: 8px;
}

[dir="rtl"] .gp-country-branches {
    padding-left: 8px;
    padding-right: 8px;
}

.gp-country-branches.open {
    max-height: 2000px;
}

/* ---------- Branch Card ---------- */
.gp-branch-card {
    padding: 14px 16px;
    margin-bottom: 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.gp-branch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #4FB248;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 3px 3px 0;
}

[dir="rtl"] .gp-branch-card::before {
    left: auto;
    right: 0;
    border-radius: 3px 0 0 3px;
}

.gp-branch-card:hover,
.gp-branch-card.active {
    background: rgba(79, 178, 72, 0.06);
    border-color: rgba(79, 178, 72, 0.18);
    transform: translateX(3px);
}

[dir="rtl"] .gp-branch-card:hover,
[dir="rtl"] .gp-branch-card.active {
    transform: translateX(-3px);
}

.gp-branch-card:hover::before,
.gp-branch-card.active::before {
    opacity: 1;
}

.gp-branch-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.gp-branch-city {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gp-branch-city .branch-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4FB248;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(79, 178, 72, 0.4);
}

.gp-branch-card.hq-card .branch-dot {
    background: #e6b800;
    box-shadow: 0 0 6px rgba(230, 184, 0, 0.4);
}

.gp-branch-subtitle {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 6px;
    font-weight: 400;
}

.gp-branch-address {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    margin-bottom: 8px;
}

.gp-branch-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.gp-branch-tag {
    font-size: 11px;
    padding: 3px 8px;
    background: rgba(79, 178, 72, 0.06);
    border: 1px solid rgba(79, 178, 72, 0.1);
    border-radius: 6px;
    color: rgba(255,255,255,0.55);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.gp-branch-tag .tag-emoji {
    font-size: 11px;
    line-height: 1;
}

/* HQ card highlight */
.gp-branch-card.hq-card {
    background: rgba(230, 184, 0, 0.04);
    border-color: rgba(230, 184, 0, 0.12);
}

.gp-branch-card.hq-card::before {
    background: #e6b800;
}

.gp-branch-card.hq-card:hover,
.gp-branch-card.hq-card.active {
    background: rgba(230, 184, 0, 0.08);
    border-color: rgba(230, 184, 0, 0.25);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .gp-map-wrapper {
        flex-direction: column;
        min-height: auto;
    }

    .gp-map-sidebar {
        width: 100%;
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid rgba(79, 178, 72, 0.1);
        max-height: 350px;
        order: 2 !important;
    }

    #gp-branch-map {
        min-height: 450px;
        order: 1 !important;
    }

    .gp-map-wrapper[dir="rtl"] .gp-map-sidebar {
        border-right: none;
        border-left: none;
    }

    .entry-content .gp-map-wrapper,
    .elementor-widget-container .gp-map-wrapper,
    .wpb_wrapper .gp-map-wrapper,
    .woodmart-container .gp-map-wrapper,
    .container .gp-map-wrapper,
    .page-content .gp-map-wrapper {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
}

@media (max-width: 600px) {
    #gp-branch-map {
        min-height: 350px;
    }

    .gp-map-sidebar {
        max-height: 300px;
    }

    .gp-sidebar-header {
        padding: 16px;
    }

    .gp-branch-card {
        padding: 12px;
    }

    .gp-country-tabs {
        padding: 10px 12px;
    }

    .gp-country-tab {
        padding: 6px 10px;
        font-size: 12px;
    }

    .gp-country-tab .tab-label {
        display: none;
    }

    .gp-country-tab.active .tab-label {
        display: inline;
    }
}

/* ============================================
   GulfPower Site-Aligned Light Theme
   Matches the public site: white cards, navy type, green accents.
   ============================================ */

.gp-map-wrapper {
    --gp-green: #4FB248;
    --gp-green-dark: #37943d;
    --gp-navy: #052b5b;
    --gp-text: #2b2f36;
    --gp-muted: #717986;
    --gp-border: #e6ebef;
    --gp-soft: #f5f8f6;
    --gp-surface: #ffffff;

    min-height: 680px;
    background: var(--gp-soft);
    border-top: 1px solid var(--gp-border);
    border-bottom: 1px solid var(--gp-border);
    color: var(--gp-text);
}

#gp-branch-map {
    min-height: 680px;
    background: #eef3f1;
}

#gp-branch-map .leaflet-tile-pane {
    filter: saturate(0.82) contrast(1.02);
}

#gp-branch-map .leaflet-control-zoom {
    border: 1px solid var(--gp-border) !important;
    box-shadow: 0 10px 30px rgba(5, 43, 91, 0.12) !important;
    border-radius: 8px !important;
}

#gp-branch-map .leaflet-control-zoom a {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    background: var(--gp-surface) !important;
    color: var(--gp-navy) !important;
    border-bottom: 1px solid var(--gp-border) !important;
    font-weight: 700;
}

#gp-branch-map .leaflet-control-zoom a:hover {
    background: var(--gp-green) !important;
    color: #ffffff !important;
}

#gp-branch-map .leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.92) !important;
    color: #8a929c !important;
    border: 1px solid rgba(230, 235, 239, 0.8);
    border-radius: 8px 0 0 0;
}

#gp-branch-map .leaflet-control-attribution a {
    color: var(--gp-green-dark) !important;
}

.gp-map-sidebar {
    width: clamp(370px, 25vw, 440px);
    background: var(--gp-surface);
    border-right: 1px solid var(--gp-border);
    box-shadow: 14px 0 40px rgba(5, 43, 91, 0.08);
}

.gp-map-wrapper:not([dir="rtl"]) .gp-map-sidebar {
    border-right: 1px solid var(--gp-border);
}

.gp-map-wrapper[dir="rtl"] .gp-map-sidebar {
    border-left: 1px solid var(--gp-border);
}

.gp-sidebar-header {
    padding: 26px 24px 22px;
    background: var(--gp-surface);
    border-bottom: 1px solid var(--gp-border);
}

.gp-sidebar-icon {
    width: 52px;
    height: 52px;
    background: var(--gp-green);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(79, 178, 72, 0.25);
}

.gp-sidebar-icon svg {
    width: 24px;
    height: 24px;
}

.gp-sidebar-title h3 {
    color: var(--gp-navy);
    font-size: 21px;
    line-height: 1.25;
}

.gp-sidebar-title p {
    margin-top: 4px;
    color: var(--gp-muted);
    font-size: 13px;
    font-weight: 600;
}

.gp-country-tabs {
    gap: 8px;
    padding: 16px 20px;
    background: #fafcfb;
    border-bottom: 1px solid var(--gp-border);
}

.gp-country-tab {
    min-height: 42px;
    padding: 9px 14px;
    background: var(--gp-surface);
    border: 1px solid var(--gp-border);
    border-radius: 8px;
    color: var(--gp-text);
    font-size: 13px;
    box-shadow: 0 5px 16px rgba(5, 43, 91, 0.04);
}

.gp-country-tab:hover {
    background: #f6fbf5;
    border-color: rgba(79, 178, 72, 0.35);
    color: var(--gp-navy);
}

.gp-country-tab.active {
    background: var(--gp-green);
    border-color: var(--gp-green);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(79, 178, 72, 0.24);
}

.gp-country-tab .tab-icon {
    width: 20px;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
}

.gp-country-tab .tab-icon img,
.gp-country-flag img {
    display: block;
    width: 24px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(5, 43, 91, 0.08);
}

.gp-country-tab .tab-icon-all {
    border: 2px solid currentColor;
    border-radius: 50%;
    position: relative;
}

.gp-country-tab .tab-icon-all::before,
.gp-country-tab .tab-icon-all::after {
    content: '';
    position: absolute;
    background: currentColor;
    opacity: 0.75;
}

.gp-country-tab .tab-icon-all::before {
    width: 2px;
    height: 12px;
    left: 50%;
    top: 2px;
    transform: translateX(-50%);
}

.gp-country-tab .tab-icon-all::after {
    width: 12px;
    height: 2px;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.gp-country-tab .tab-label {
    color: inherit;
    font-weight: 700;
}

.gp-country-tab .tab-count {
    background: #eef3f1;
    color: var(--gp-navy);
    border-radius: 999px;
    font-size: 11px;
}

.gp-country-tab.active .tab-count {
    background: #ffffff;
    color: var(--gp-green-dark);
}

.gp-branch-list {
    background: #f8faf9;
    padding: 14px 16px 18px;
    scrollbar-color: rgba(79, 178, 72, 0.5) transparent;
}

.gp-branch-list::-webkit-scrollbar-thumb {
    background: rgba(79, 178, 72, 0.45);
}

.gp-country-group {
    margin-bottom: 10px;
}

.gp-country-header {
    padding: 14px 16px;
    background: var(--gp-surface);
    border: 1px solid var(--gp-border);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(5, 43, 91, 0.04);
}

.gp-country-header:hover {
    background: #f7fbf6;
    border-color: rgba(79, 178, 72, 0.4);
}

.gp-country-name {
    color: var(--gp-navy);
    font-size: 15px;
    font-weight: 800;
}

.gp-country-count {
    color: var(--gp-muted);
    font-size: 12px;
    font-weight: 700;
}

.gp-country-chevron {
    color: var(--gp-green);
    font-size: 14px;
}

.gp-country-branches {
    padding-left: 10px;
    padding-right: 0;
}

[dir="rtl"] .gp-country-branches {
    padding-left: 0;
    padding-right: 10px;
}

.gp-branch-card {
    padding: 15px 16px;
    margin-bottom: 8px;
    background: var(--gp-surface);
    border: 1px solid var(--gp-border);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(5, 43, 91, 0.04);
}

.gp-branch-card::before {
    width: 4px;
    background: var(--gp-green);
}

.gp-branch-card:hover,
.gp-branch-card.active {
    background: #ffffff;
    border-color: rgba(79, 178, 72, 0.5);
    box-shadow: 0 14px 28px rgba(5, 43, 91, 0.1);
    transform: translateY(-1px);
}

[dir="rtl"] .gp-branch-card:hover,
[dir="rtl"] .gp-branch-card.active {
    transform: translateY(-1px);
}

.gp-branch-city {
    color: var(--gp-navy);
    font-size: 15px;
    font-weight: 800;
}

.gp-branch-city .branch-dot {
    width: 9px;
    height: 9px;
    background: var(--gp-green);
    box-shadow: 0 0 0 4px rgba(79, 178, 72, 0.14);
}

.gp-branch-card.hq-card .branch-dot {
    background: var(--gp-navy);
    box-shadow: 0 0 0 4px rgba(5, 43, 91, 0.12);
}

.gp-branch-subtitle {
    color: var(--gp-muted);
    font-size: 13px;
    font-weight: 600;
}

.gp-branch-address {
    color: #8a929c;
    font-size: 12px;
    line-height: 1.45;
}

.gp-branch-tags {
    gap: 6px;
}

.gp-branch-tag {
    padding: 5px 9px;
    background: #f0f7ef;
    border: 1px solid rgba(79, 178, 72, 0.22);
    border-radius: 999px;
    color: var(--gp-green-dark);
    font-size: 11px;
    font-weight: 700;
}

.gp-branch-tag .tag-emoji,
.gp-facility-tag .tag-icon {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    font-size: 0;
}

.gp-branch-card.hq-card {
    background: #ffffff;
    border-color: rgba(5, 43, 91, 0.18);
}

.gp-branch-card.hq-card::before {
    background: var(--gp-navy);
}

.gp-branch-card.hq-card:hover,
.gp-branch-card.hq-card.active {
    background: #ffffff;
    border-color: rgba(5, 43, 91, 0.35);
}

.gp-marker-inner {
    width: 38px;
    height: 38px;
    background: var(--gp-green);
    border: 3px solid #ffffff;
    box-shadow:
        0 12px 24px rgba(79, 178, 72, 0.28),
        0 0 0 7px rgba(79, 178, 72, 0.12);
}

.gp-marker-inner::after {
    border-top-color: var(--gp-green);
    filter: drop-shadow(0 4px 5px rgba(5, 43, 91, 0.16));
}

.gp-marker-inner:hover {
    box-shadow:
        0 16px 30px rgba(79, 178, 72, 0.32),
        0 0 0 9px rgba(79, 178, 72, 0.14);
}

.gp-marker-inner .marker-count {
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-radius: 50%;
    color: transparent;
    font-size: 0;
    text-shadow: none;
}

.gp-marker-hq .gp-marker-inner {
    width: 48px;
    height: 48px;
    background: var(--gp-navy);
    box-shadow:
        0 16px 34px rgba(5, 43, 91, 0.28),
        0 0 0 8px rgba(5, 43, 91, 0.12);
}

.gp-marker-hq .gp-marker-inner::after {
    border-top-color: var(--gp-navy);
    filter: drop-shadow(0 4px 5px rgba(5, 43, 91, 0.18));
}

.gp-marker-hq .gp-marker-inner .marker-count {
    width: auto;
    height: auto;
    background: transparent;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
}

.gp-marker-pulse {
    border-color: rgba(79, 178, 72, 0.4);
}

.gp-marker-hq .gp-marker-pulse {
    border-color: rgba(5, 43, 91, 0.35);
}

.leaflet-popup-content-wrapper {
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 18px 45px rgba(5, 43, 91, 0.18) !important;
    border: 1px solid var(--gp-border);
    backdrop-filter: none;
}

.leaflet-popup-tip {
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(5, 43, 91, 0.12) !important;
}

.leaflet-popup-content {
    color: var(--gp-text);
}

.leaflet-popup-close-button {
    color: #9aa3ad !important;
}

.leaflet-popup-close-button:hover {
    color: var(--gp-green) !important;
}

.gp-popup-header {
    background: #f8faf9;
    border-bottom: 1px solid var(--gp-border);
}

.gp-popup-city {
    color: var(--gp-navy);
    font-weight: 800;
}

.gp-popup-city .city-dot {
    background: var(--gp-green);
    box-shadow: 0 0 0 4px rgba(79, 178, 72, 0.12);
}

.gp-popup-subtitle {
    color: var(--gp-muted);
    font-weight: 600;
}

.gp-popup-address {
    color: var(--gp-muted);
    font-size: 13px;
}

.gp-popup-address svg {
    color: var(--gp-green);
}

.gp-facility-tag {
    background: #f0f7ef;
    border-color: rgba(79, 178, 72, 0.24);
    border-radius: 999px;
    color: var(--gp-green-dark);
    font-weight: 700;
}

.gp-facility-tag:hover {
    background: #e8f5e6;
    border-color: rgba(79, 178, 72, 0.38);
}

.gp-popup-directions {
    background: var(--gp-green);
    border-radius: 8px;
    box-shadow: none;
    letter-spacing: 0;
}

.gp-popup-directions:hover {
    background: var(--gp-green-dark);
    box-shadow: 0 10px 22px rgba(79, 178, 72, 0.24);
}

@media (max-width: 900px) {
    .gp-map-wrapper {
        min-height: auto;
    }

    .gp-map-sidebar {
        width: 100%;
        max-height: 420px;
        border-top: 1px solid var(--gp-border);
        box-shadow: none;
    }

    #gp-branch-map {
        min-height: 460px;
    }
}

@media (max-width: 600px) {
    #gp-branch-map {
        min-height: 360px;
    }

    .gp-map-sidebar {
        max-height: 390px;
    }

    .gp-sidebar-header {
        padding: 18px 16px;
    }

    .gp-sidebar-title h3 {
        font-size: 18px;
    }

    .gp-country-tabs {
        padding: 12px;
    }

    .gp-country-tab {
        min-height: 38px;
    }
}
