@charset "UTF-8";
/* rja3.com - Authentic Google Maps UI Edition (Adjusted Floating Controls Layout) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,800&family=Noto+Sans+Arabic:wght@400;600;700;800&display=swap');

:root {
    --gmaps-blue: #1a73e8;
    --gmaps-blue-hover: #1557b0;
    --gmaps-red: #d93025;
    --gmaps-green: #188038;
    --gmaps-amber: #f9ab00;
    
    --gmaps-font-sans: 'Plus Jakarta Sans', -apple-system, Roboto, sans-serif;
    --gmaps-font-arabic: 'Noto Sans Arabic', 'Plus Jakarta Sans', sans-serif;
}

body.theme-light {
    --gmaps-bg: #f8f9fa;
    --gmaps-surface: #ffffff;
    --gmaps-surface-hover: #f1f3f4;
    --gmaps-border: #dadce0;
    --gmaps-text-primary: #202124;
    --gmaps-text-sub: #5f6368;
    --gmaps-text-muted: #80868b;
    --gmaps-shadow: 0 3px 10px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
    --gmaps-chip-bg: #ffffff;
    --gmaps-chip-border: #dadce0;
    --gmaps-chip-active-bg: #e8f0fe;
    --gmaps-chip-active-text: #1967d2;
    --gmaps-chip-active-border: #aecbfa;
}

body.theme-dark {
    --gmaps-bg: #171717;
    --gmaps-surface: #202124;
    --gmaps-surface-hover: #292a2d;
    --gmaps-border: #3c4043;
    --gmaps-text-primary: #e8eaed;
    --gmaps-text-sub: #9aa0a6;
    --gmaps-text-muted: #70757a;
    --gmaps-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    --gmaps-chip-bg: #202124;
    --gmaps-chip-border: #3c4043;
    --gmaps-chip-active-bg: #303134;
    --gmaps-chip-active-text: #8ab4f8;
    --gmaps-chip-active-border: #8ab4f8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100%;
}

/* Restrict overflow:hidden ONLY when the fullscreen Leaflet map is rendered */
body.home, body.front-page, body:has(#gw-map-canvas) {
    height: 100%;
    height: 100dvh;
    overflow: hidden;
}

/* Non-Homepage Pages Body Scroll & Padding Fix */
body:not(.home):not(.front-page) {
    height: auto !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    position: relative !important;
    padding-top: 56px !important;
    padding-bottom: 72px !important;
}

/* SECTION 1: TOP FIXED NAVIGATION BAR */
.rja3-top-fixed-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--gmaps-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    padding: 8px 16px;
}

body.theme-dark .rja3-top-fixed-bar {
    background: rgba(32, 33, 36, 0.92);
}

.rja3-top-nav-container {
    max-width: 1060px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rja3-nav-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--gmaps-surface-hover);
    border: 1px solid var(--gmaps-border);
    color: var(--gmaps-text-main);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.rja3-nav-back-btn:hover {
    background: var(--gmaps-border);
}

/* Citizen Front-End Dashboard Modal */
#gw-dashboard-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#gw-dashboard-modal.gw-modal-open {
    display: flex !important;
}

.gw-dashboard-card {
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 24px;
    padding: 24px;
    background: var(--gmaps-surface);
    border: 1px solid var(--gmaps-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gw-dash-user-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background: var(--gmaps-surface-hover);
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--gmaps-border);
}

.gw-dash-avatar-lg {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gw-dash-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--gmaps-border);
    padding-bottom: 10px;
}

.gw-dash-tab {
    flex: 1;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--gmaps-surface-hover);
    border: 1px solid var(--gmaps-border);
    color: var(--gmaps-text-main);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

.gw-dash-tab.active {
    background: var(--gmaps-blue);
    border-color: var(--gmaps-blue);
    color: #ffffff;
}

button.rja3-nav-lang-btn, #gw-lang-btn.rja3-nav-lang-btn {
    width: auto !important;
    height: 32px !important;
    border-radius: 20px !important;
    padding: 4px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    background: var(--gmaps-surface-hover) !important;
    border: 1px solid var(--gmaps-border) !important;
    color: var(--gmaps-text-main) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    cursor: pointer !important;
}

button.rja3-nav-lang-btn:hover, #gw-lang-btn.rja3-nav-lang-btn:hover {
    background: var(--gmaps-border) !important;
}

/* Animated Carte Live Button */
.rja3-nav-map-cta, .rja3-btn-action {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.35);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.rja3-nav-map-cta:hover, .rja3-btn-action:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 22px rgba(26, 115, 232, 0.5);
}

.rja3-nav-map-cta:active, .rja3-btn-action:active {
    transform: translateY(0) scale(0.97);
}

/* Shimmer Sweep Animation */
.rja3-nav-map-cta::after, .rja3-btn-action::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        60deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    animation: rja3Shimmer 3.2s infinite ease-in-out;
    pointer-events: none;
}

@keyframes rja3Shimmer {
    0% { left: -70%; }
    40% { left: 140%; }
    100% { left: 140%; }
}

/* Live Green Radar Dot */
.rja3-live-dot {
    width: 7px;
    height: 7px;
    background-color: #34a853;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(52, 168, 83, 0.4);
    animation: rja3LiveRadar 1.8s infinite ease-in-out;
}

@keyframes rja3LiveRadar {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.7);
    }
    70% {
        transform: scale(1.2);
        box-shadow: 0 0 0 6px rgba(52, 168, 83, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52, 168, 83, 0);
    }
}

.rja3-nav-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--gmaps-surface-hover);
    border: 1px solid var(--gmaps-border);
    color: var(--gmaps-text-main);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.rja3-nav-account-btn:hover {
    background: var(--gmaps-border);
}

/* SECTION 2: BOTTOM FIXED NAVIGATION BAR (MOVED DOWN) */
.rja3-bottom-fixed-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid var(--gmaps-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
}

body.theme-dark .rja3-bottom-fixed-bar {
    background: rgba(32, 33, 36, 0.92);
}

.rja3-bottom-fixed-bar .rja3-nav-pill {
    max-width: 1060px;
    width: 100%;
    margin: 0 auto;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
}

@media (max-width: 600px) {
    .rja3-top-fixed-bar {
        padding: 5px 6px !important;
    }
    .rja3-top-nav-container {
        gap: 3px !important;
    }
    .rja3-nav-back-btn, .rja3-nav-map-cta, button.rja3-nav-lang-btn, #gw-lang-btn, .rja3-nav-account-btn {
        padding: 4px 8px !important;
        font-size: 11px !important;
        height: 30px !important;
        white-space: nowrap !important;
        border-radius: 16px !important;
        min-width: auto !important;
    }
    .rja3-nav-back-btn span, .rja3-nav-map-cta span, .rja3-nav-lang-btn span, .rja3-nav-account-btn span {
        white-space: nowrap !important;
        font-size: 11px !important;
        line-height: 1 !important;
    }
}

/* Pulsing Notification Badge for Info Coupures Tab */
.gw-notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background-color: #d93025;
    border: 1.5px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(217, 48, 37, 0.4);
    animation: gwNotifPulse 1.8s infinite ease-in-out;
}

@keyframes gwNotifPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(217, 48, 37, 0.6);
    }
    70% {
        transform: scale(1.15);
        box-shadow: 0 0 0 6px rgba(217, 48, 37, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(217, 48, 37, 0);
    }
}

body:not(.home):not(.front-page) * {
    user-select: auto;
}

html, body {
    background-color: var(--gmaps-bg);
    font-family: var(--gmaps-font-sans);
    color: var(--gmaps-text-primary);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.lang-tn {
    font-family: var(--gmaps-font-arabic);
}

#grid-waze-app {
    width: 100%;
    height: 100%;
    height: 100dvh;
    position: relative;
    overflow: hidden;
}

.gmaps-card {
    background: var(--gmaps-surface);
    border: 1px solid var(--gmaps-border);
    box-shadow: var(--gmaps-shadow);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Fullscreen Map Canvas */
#gw-map-canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    touch-action: pan-x pan-y !important;
}

.leaflet-container, .leaflet-touch .leaflet-pane {
    background: var(--gmaps-bg) !important;
    touch-action: pan-x pan-y !important;
}
.leaflet-control-zoom { display: none !important; }

.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #5f6368 !important;
    font-size: 9px !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    margin: 4px !important;
}

body.theme-dark .leaflet-control-attribution {
    background: rgba(32, 33, 36, 0.8) !important;
    color: #9aa0a6 !important;
}

/* Pin Picker Banner */
.gmaps-pin-picker-bar {
    position: absolute;
    top: max(80px, calc(env(safe-area-inset-top) + 70px));
    left: 12px;
    right: 12px;
    max-width: 500px;
    margin: 0 auto;
    z-index: 2000;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid var(--gmaps-blue);
}

.gmaps-pin-picker-info span { font-size: 13px; color: var(--gmaps-text-primary); }
.gmaps-pin-picker-info p { font-size: 11px; color: var(--gmaps-text-sub); }
.gmaps-pin-picker-actions { display: flex; align-items: center; gap: 8px; }

/* Top Floating Search Container */
.gmaps-top-container {
    position: absolute;
    top: max(10px, env(safe-area-inset-top));
    left: 10px;
    right: 10px;
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
    pointer-events: none;
}

.gmaps-top-container * { pointer-events: auto; }

.gmaps-search-pill {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 32px;
    width: 100%;
    gap: 8px;
}

.gmaps-logo-pin { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gmaps-logo-pin img { width: 22px; height: 22px; object-fit: contain; }

.gmaps-search-pill input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--gmaps-text-primary);
    font-size: 14px;
    font-family: inherit;
    width: 100%;
    min-width: 0;
}

.gmaps-search-pill input::placeholder { color: var(--gmaps-text-sub); }

.gmaps-search-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.gmaps-btn-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--gmaps-surface-hover);
    color: var(--gmaps-text-primary);
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.gmaps-btn-circle:hover { background: var(--gmaps-border); }

.gmaps-avatar-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.gmaps-chips-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    width: 100%;
}

.gmaps-chips-scroll::-webkit-scrollbar { display: none; }

.gmaps-chip {
    background: var(--gmaps-chip-bg);
    border: 1px solid var(--gmaps-chip-border);
    color: var(--gmaps-text-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.gmaps-chip-active {
    background: var(--gmaps-chip-active-bg);
    color: var(--gmaps-chip-active-text);
    border-color: var(--gmaps-chip-active-border);
    font-weight: 700;
}



/* -------------------------------------------------------------
   RIGHT FLOATING CIRCULAR MAP CONTROLS (Moved to Far Right)
   ------------------------------------------------------------- */
.gmaps-right-controls {
    position: absolute;
    top: max(135px, calc(env(safe-area-inset-top) + 120px));
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    z-index: 1000;
    pointer-events: none;
}

.gmaps-right-controls * { pointer-events: auto; }

.gmaps-fab-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gmaps-surface);
    border: 1px solid var(--gmaps-border);
    color: var(--gmaps-text-primary);
    box-shadow: var(--gmaps-shadow);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gmaps-fab-circle:hover { transform: scale(1.08); }

/* -------------------------------------------------------------
   FLOATING BOTTOM-RIGHT SIGNALER FAB (Moved Down Right Above Sheet)
   ------------------------------------------------------------- */
.gmaps-report-fab-container {
    display: none !important;
}

.gmaps-bottom-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 24px 24px 0 0;
    z-index: 1000;
    padding: 12px 16px env(safe-area-inset-bottom) 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), all 0.3s ease;
}

.gmaps-drag-handle { 
    width: 44px; 
    height: 5px; 
    background: var(--gmaps-border); 
    border-radius: 3px; 
    margin: 2px auto 4px auto; 
    cursor: pointer; 
    transition: background 0.2s ease, width 0.2s ease;
}

.gmaps-drag-handle:hover {
    background: var(--gmaps-text-sub);
    width: 54px;
}

/* Collapsed state styling */
.gmaps-bottom-sheet.gmaps-sheet-collapsed .gmaps-sheet-header,
.gmaps-bottom-sheet.gmaps-sheet-collapsed .gmaps-fav-locations-grid {
    display: none !important;
}

.gmaps-bottom-sheet.gmaps-sheet-collapsed {
    padding-top: 6px;
}

/* Adjust floating report FAB when sheet is collapsed */
.gmaps-bottom-sheet.gmaps-sheet-collapsed ~ .gmaps-report-fab-container {
    bottom: max(85px, calc(env(safe-area-inset-bottom) + 75px));
}

.gmaps-sheet-header { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; }
.gmaps-sheet-title { font-size: 13px; font-weight: 800; color: var(--gmaps-text-primary); display: block; }
.gmaps-sheet-sub { font-size: 10px; font-weight: 700; color: var(--gmaps-green); }

.gmaps-btn-add-fav {
    background: var(--gmaps-surface-hover);
    border: 1px solid var(--gmaps-border);
    color: var(--gmaps-blue);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

body.theme-dark .gmaps-btn-add-fav { color: #8ab4f8; }

.gmaps-fav-locations-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
}

.gmaps-fav-locations-grid::-webkit-scrollbar { display: none; }

.gmaps-fav-card {
    background: var(--gmaps-bg);
    border: 1px solid var(--gmaps-border);
    border-radius: 12px;
    padding: 8px 12px;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.gmaps-fav-card:hover {
    transform: translateY(-2px);
    border-color: var(--gmaps-blue);
}

.gmaps-fav-card-header { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 800; }
.gmaps-fav-card-name { font-size: 11px; font-weight: 700; color: var(--gmaps-text-primary); }
.gmaps-fav-card-gov { font-size: 9px; color: var(--gmaps-text-sub); }
.gmaps-fav-card-status { font-size: 10px; font-weight: 800; display: flex; align-items: center; gap: 4px; }
.gmaps-status-ok { color: var(--gmaps-green); }
.gmaps-status-warn { color: var(--gmaps-red); }

/* 5-Tab Bottom Navigation Bar */
.gmaps-nav-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--gmaps-border);
    padding-top: 8px;
    padding-bottom: 2px;
}

.gmaps-tab {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 2px 0;
    color: var(--gmaps-text-sub);
    transition: all 0.2s ease;
}

.gmaps-tab-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gmaps-surface-hover);
    border: 1px solid var(--gmaps-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gmaps-text-primary);
    transition: all 0.2s ease;
}

.gmaps-tab-icon svg {
    width: 17px;
    height: 17px;
}

.gmaps-tab-label {
    font-size: 10px;
    font-weight: 700;
    font-family: inherit;
    color: var(--gmaps-text-sub);
    transition: color 0.2s ease;
}

.gmaps-tab:hover .gmaps-tab-icon {
    transform: scale(1.08);
    background: var(--gmaps-surface);
}

.gmaps-tab-active .gmaps-tab-icon {
    background: var(--gmaps-blue);
    color: #ffffff;
    border-color: var(--gmaps-blue);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.35);
}

.gmaps-tab-active .gmaps-tab-label {
    color: var(--gmaps-blue);
    font-weight: 800;
}

body.theme-dark .gmaps-tab-active .gmaps-tab-label { color: #8ab4f8; }

/* Buttons */
.gw-btn { padding: 10px 16px; border-radius: 8px; border: none; font-family: inherit; font-weight: 700; font-size: 12px; cursor: pointer; }
.gw-btn-danger { background: var(--gmaps-red); color: #fff; }
.gw-btn-success { background: var(--gmaps-green); color: #fff; }

.gw-btn-verify-address-pin {
    padding: 6px 12px;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
    background: var(--gmaps-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.gw-gps-quick-box {
    margin-bottom: 12px;
    background: rgba(24, 128, 56, 0.08);
    padding: 10px;
    border-radius: 12px;
    border: 1px dashed var(--gmaps-green);
}

.gw-btn-share-vote {
    background: rgba(26, 115, 232, 0.1);
    border: 1px solid var(--gmaps-blue);
    color: var(--gmaps-blue);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

body.theme-dark .gw-btn-share-vote { color: #8ab4f8; border-color: #8ab4f8; }

/* Modals */
.gw-modal-backdrop { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 2500; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.gw-modal-backdrop.gw-modal-open { opacity: 1; pointer-events: auto; }
.gw-modal-card { width: 100%; max-width: 440px; padding: 24px; border-radius: 20px; }
.gw-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.gw-modal-header h3 { font-size: 18px; font-weight: 800; margin: 0; }
.gw-modal-sub { font-size: 11px; color: var(--gmaps-text-sub); margin-bottom: 18px; }

.gw-form-group { margin-bottom: 14px; }
.gw-form-group label { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; color: var(--gmaps-text-sub); }
.gw-input { width: 100%; padding: 12px 14px; background: var(--gmaps-bg); border: 1px solid var(--gmaps-border); border-radius: 8px; color: var(--gmaps-text-primary); font-size: 13px; font-family: inherit; outline: none; }
.gw-btn-block { width: 100%; }

.gw-votes-list { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.gw-vote-item { background: var(--gmaps-bg); border: 1px solid var(--gmaps-border); border-radius: 8px; padding: 12px; display: flex; justify-content: space-between; align-items: center; }

.gw-referral-box { display: flex; align-items: center; gap: 8px; background: var(--gmaps-bg); border: 1px dashed var(--gmaps-amber); padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.gw-ref-link-val { font-size: 12px; font-weight: 700; color: var(--gmaps-amber); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-grow: 1; }

.gw-share-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gw-share-btn { padding: 12px; border-radius: 8px; border: none; font-weight: 700; font-size: 12px; cursor: pointer; color: #fff; font-family: inherit; }
.gw-share-whatsapp { background: #25D366; }
.gw-share-sms { background: #007AFF; }

.gw-radial-overlay { position: absolute; top:0; left:0; right:0; bottom:0; z-index: 2500; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.gw-radial-overlay.gw-active { opacity: 1; pointer-events: auto; }
.gw-radial-container { width: 100%; max-width: 480px; background: var(--gmaps-surface); border: 1px solid var(--gmaps-border); border-top-left-radius: 24px; border-top-right-radius: 24px; padding: 20px 20px max(20px, env(safe-area-inset-bottom)); text-align: center; }

.gw-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.gw-radial-btn { background: var(--gmaps-bg); border: 1px solid var(--gmaps-border); border-radius: 16px; padding: 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; transition: transform 0.2s ease; }
.gw-radial-btn:hover { background: var(--gmaps-surface-hover); transform: translateY(-2px); }
.gw-radial-emoji { font-size: 28px; }
.gw-radial-label { font-size: 11px; font-weight: 700; color: var(--gmaps-text-primary); }
.gw-radial-close { background: var(--gmaps-bg); border: 1px solid var(--gmaps-border); color: var(--gmaps-text-primary); padding: 12px 24px; border-radius: 20px; font-weight: 700; font-size: 12px; cursor: pointer; width: 100%; }

/* Markers */
.gw-waze-marker { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #ffffff; border: 2px solid #202124; font-size: 16px; box-shadow: 0 3px 8px rgba(0,0,0,0.3); }


@keyframes rja3-siren-alert {
    0%, 100% { transform: rotate(0deg); color: var(--gmaps-red); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); color: #ff4d4d; }
}

/* Pin drop animation for draggable location pin */
@keyframes gw-pin-drop {
    0%   { transform: translateY(-40px) scale(0.8); opacity: 0; }
    60%  { transform: translateY(6px) scale(1.05); opacity: 1; }
    80%  { transform: translateY(-3px) scale(0.97); }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Stale report badge — shown on markers older than 1 hour */
.gw-stale-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 10px;
    background: #fff3cd;
    color: #856404;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffc107;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Make the waze-marker container relative so the stale dot can be positioned */
.gw-waze-marker { position: relative; }

/* Premium Modern Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
    background: var(--gmaps-surface) !important;
    color: var(--gmaps-text-primary) !important;
    border-radius: 20px !important;
    padding: 0 !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid var(--gmaps-border) !important;
    overflow: hidden !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 290px !important;
    font-family: 'Plus Jakarta Sans', 'Noto Sans Arabic', sans-serif !important;
}

.leaflet-popup-tip-container {
    margin-top: -1px;
}

.leaflet-popup-tip {
    background: var(--gmaps-surface) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
}

.leaflet-container a.leaflet-popup-close-button {
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    width: 24px !important;
    height: 24px !important;
    color: var(--gmaps-text-sub) !important;
    border-radius: 50% !important;
    background: var(--gmaps-surface-hover) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    border: none !important;
}

[dir="rtl"] .leaflet-container a.leaflet-popup-close-button {
    left: 10px !important;
    right: auto !important;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    background: var(--gmaps-border) !important;
    color: var(--gmaps-text-primary) !important;
}

/* Card Content inside Popup */
.rja3-popup-card {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rja3-popup-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rja3-popup-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--gmaps-text-primary);
    line-height: 1.3;
}

.rja3-popup-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    width: fit-content;
}

.rja3-status-outage {
    background: rgba(217, 48, 37, 0.1);
    color: #d93025;
    border: 1px solid rgba(217, 48, 37, 0.2);
}

.rja3-status-working {
    background: rgba(24, 128, 56, 0.1);
    color: #188038;
    border: 1px solid rgba(24, 128, 56, 0.2);
}

.rja3-popup-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gmaps-surface-hover);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 11px;
}

.rja3-popup-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gmaps-text-sub);
    font-weight: 600;
}

.rja3-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.rja3-btn-popup-primary {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #d93025, #c5221f);
    color: #ffffff;
    border: none;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(217, 48, 37, 0.25);
    transition: all 0.2s ease;
    font-family: inherit;
}

.rja3-btn-popup-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(217, 48, 37, 0.35);
}

.rja3-btn-popup-secondary {
    width: 100%;
    padding: 9px 14px;
    border-radius: 12px;
    background: var(--gmaps-surface);
    color: #1a73e8;
    border: 1.5px solid rgba(26, 115, 232, 0.4);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.rja3-btn-popup-secondary:hover {
    background: rgba(26, 115, 232, 0.08);
    border-color: #1a73e8;
}



@keyframes gwPopIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

.gw-location-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gmaps-surface-hover);
    border: 1px solid var(--gmaps-border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gmaps-text-primary);
    margin: 14px 0;
}

.gw-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #34a853;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.7);
    animation: gwPulse 1.6s infinite;
}

@keyframes gwPulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(52, 168, 83, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 168, 83, 0); }
}

.gw-utility-switcher {
    display: flex;
    background: var(--gmaps-surface-hover);
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
    margin-bottom: 18px;
}

.gw-util-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gmaps-text-sub);
    cursor: pointer;
    transition: all 0.2s ease;
}

.gw-util-btn.active {
    background: var(--gmaps-surface);
    color: var(--gmaps-text-primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.gw-onboarding-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.gw-onboard-vote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    border-radius: 14px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gw-onboard-vote-btn:active {
    transform: scale(0.96);
}

.gw-vote-rja3 {
    background: rgba(24, 128, 56, 0.1);
    border-color: #188038;
    color: #188038;
}

.gw-vote-rja3:hover {
    background: #188038;
    color: #ffffff;
}

.gw-vote-mezel {
    background: rgba(217, 48, 37, 0.1);
    border-color: #d93025;
    color: #d93025;
}

.gw-vote-mezel:hover {
    background: #d93025;
    color: #ffffff;
}

.gw-vote-icon-lg {
    font-size: 24px;
    margin-bottom: 4px;
}

.gw-vote-main-label {
    font-size: 16px;
    font-weight: 800;
}

.gw-vote-sub-label {
    font-size: 11px;
    opacity: 0.85;
    margin-top: 2px;
}

.gw-onboarding-reward {
    font-size: 12px;
    font-weight: 700;
    color: var(--gmaps-blue);
    background: rgba(26, 115, 232, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* =============================================================
   ULTRA-MODERN GOOGLE MAPS / WAZE SEARCH DROPDOWN (GLASSMORPHISM)
   ============================================================= */
.gmaps-search-dropdown {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--gmaps-surface) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid var(--gmaps-border) !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    max-height: 380px !important;
    overflow-y: auto !important;
    z-index: 9999 !important;
    padding: 8px !important;
    animation: searchSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes searchSlideDown {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Custom Scrollbar for Dropdown */
.gmaps-search-dropdown::-webkit-scrollbar {
    width: 6px;
}
.gmaps-search-dropdown::-webkit-scrollbar-track {
    background: transparent;
}
.gmaps-search-dropdown::-webkit-scrollbar-thumb {
    background: var(--gmaps-border);
    border-radius: 10px;
}

.gmaps-search-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 14px !important;
    margin: 4px 0 !important;
    border-radius: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
}

.gmaps-search-item:hover, .gmaps-search-item.active {
    background: var(--gmaps-surface-hover) !important;
    border-color: var(--gmaps-border) !important;
    transform: translateX(4px) !important;
}

.gmaps-search-item-main {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.gmaps-search-item-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.15), rgba(26, 115, 232, 0.05)) !important;
    border: 1px solid rgba(26, 115, 232, 0.2) !important;
    color: var(--gmaps-blue) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.gmaps-search-item-icon svg {
    width: 20px !important;
    height: 20px !important;
}

.gmaps-search-text-group {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}

.gmaps-search-item-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--gmaps-text-primary) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.gmaps-search-item-sub {
    font-size: 12px !important;
    color: var(--gmaps-text-sub) !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.gmaps-search-status-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    margin-left: 8px !important;
}

.gmaps-status-badge-ok {
    background: rgba(24, 128, 56, 0.12) !important;
    color: #188038 !important;
    border: 1px solid rgba(24, 128, 56, 0.25) !important;
}

body.theme-dark .gmaps-status-badge-ok {
    background: rgba(52, 168, 83, 0.15) !important;
    color: #34a853 !important;
    border-color: rgba(52, 168, 83, 0.3) !important;
}

.gmaps-status-badge-warn {
    background: rgba(217, 48, 37, 0.12) !important;
    color: #d93025 !important;
    border: 1px solid rgba(217, 48, 37, 0.25) !important;
}

body.theme-dark .gmaps-status-badge-warn {
    background: rgba(234, 67, 53, 0.15) !important;
    color: #ea4335 !important;
    border-color: rgba(234, 67, 53, 0.3) !important;
}


/* Vibrate the siren SVG icon continuously */



    4% { transform: rotate(-14deg) scale(1.18); }
    8% { transform: rotate(14deg) scale(1.18); }
    12% { transform: rotate(-12deg) scale(1.12); }
    16% { transform: rotate(12deg) scale(1.12); }
    20% { transform: rotate(-8deg) scale(1.06); }
    24% { transform: rotate(8deg) scale(1.06); }
    28% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(0deg) scale(1); }

/* Pulsing Red Aura Effect for Map Sirens & Outage Markers */


@keyframes modalPopUp {
    from { opacity: 0; transform: scale(0.9) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Header & Close Button */
.gw-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid var(--gmaps-border) !important;
    margin-bottom: 16px !important;
}

.gw-modal-header h3,
.gw-modal-header h2 {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--gmaps-text-primary) !important;
}

.gw-btn-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: var(--gmaps-surface-hover) !important;
    border: 1px solid var(--gmaps-border) !important;
    color: var(--gmaps-text-primary) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.gw-btn-icon:hover {
    background: var(--gmaps-red) !important;
    color: #ffffff !important;
    border-color: var(--gmaps-red) !important;
    transform: scale(1.08) !important;
}

/* Form Inputs & Selects */
.gw-input,
.gw-form-group input,
.gw-form-group select {
    width: 100% !important;
    padding: 12px 16px !important;
    border-radius: 14px !important;
    border: 1px solid var(--gmaps-border) !important;
    background: var(--gmaps-surface-hover) !important;
    color: var(--gmaps-text-primary) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.gw-input:focus,
.gw-form-group input:focus,
.gw-form-group select:focus {
    border-color: var(--gmaps-blue) !important;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2) !important;
    background: var(--gmaps-surface) !important;
}

/* Action Buttons */
.gw-btn {
    border-radius: 14px !important;
    padding: 12px 18px !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.gw-btn-success {
    background: linear-gradient(135deg, #188038 0%, #13662c 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(24, 128, 56, 0.3) !important;
}

.gw-btn-success:hover {
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: 0 6px 18px rgba(24, 128, 56, 0.4) !important;
}

/* Leaflet Map Popups Redesign */
.leaflet-popup-content-wrapper {
    background: var(--gmaps-surface) !important;
    border: 1px solid var(--gmaps-border) !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3) !important;
    padding: 12px 16px !important;
    color: var(--gmaps-text-primary) !important;
}

.leaflet-popup-tip {
    background: var(--gmaps-surface) !important;
}

/* Radial Overlay Container */
.gw-radial-container {
    background: var(--gmaps-surface) !important;
    border-radius: 28px 28px 0 0 !important;
    padding: 24px !important;
    border-top: 1px solid var(--gmaps-border) !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35) !important;
}

.gw-radial-btn {
    border-radius: 16px !important;
    padding: 16px 12px !important;
    background: var(--gmaps-surface-hover) !important;
    border: 1px solid var(--gmaps-border) !important;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.gw-radial-btn:hover {
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}



/* Disable icon vibration safely */
.rja3-icon-siren, svg.rja3-icon-siren { animation: none !important; }


/* =============================================================
   UI FIXES: SEARCH PILL RTL, PIN PICKER BAR, FAV CARDS ICON SIZING
   ============================================================= */

/* 1. Search Pill Layout & Icons Fix */
.gmaps-search-pill {
    display: flex !important;
    align-items: center !important;
    padding: 6px 10px !important;
    border-radius: 28px !important;
    background: var(--gmaps-surface) !important;
    box-shadow: var(--gmaps-shadow) !important;
    border: 1px solid var(--gmaps-border) !important;
    direction: ltr !important; /* Keep internal flex order predictable */
}

.gmaps-logo-pin {
    display: flex !important;
    align-items: center !important;
    padding-left: 4px !important;
}

.gmaps-search-pill input {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    color: var(--gmaps-text-primary) !important;
    outline: none !important;
}

body.lang-tn .gmaps-search-pill input {
    text-align: right !important;
    direction: rtl !important;
}

.gmaps-search-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.gmaps-btn-circle, .gmaps-avatar-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--gmaps-surface-hover) !important;
    border: 1px solid var(--gmaps-border) !important;
    color: var(--gmaps-text-primary) !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.gmaps-btn-circle svg, .gmaps-avatar-btn svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
}

/* 2. Hide Pin Picker Bar by default */
.gmaps-pin-picker-bar {
    display: none !important;
}
.gmaps-pin-picker-bar.active {
    display: flex !important;
}

/* Strict Hidden State for Search Dropdown when Empty */
.gmaps-search-dropdown {
    display: none !important;
}

.gmaps-search-dropdown:not(:empty) {
    display: block !important;
}

/* =============================================================
   LEAFLET MAP RTL COMPATIBILITY FIX
   ============================================================= */
/* Leaflet positioning relies strictly on LTR coordinates. 
   Forcing LTR on the map canvas prevents broken tiles and layout collapse in RTL mode. */
#gw-map-canvas,
.leaflet-container,
.leaflet-pane,
.leaflet-map-pane,
.leaflet-control-container,
.leaflet-marker-pane,
.leaflet-popup-pane,
.leaflet-tile-container {
    direction: ltr !important;
    text-align: left !important;
}


/* =============================================================
   UNIFIED BRANDING: SVG ICONS & FAVORITE CARDS CORRECTION
   ============================================================= */

/* Ensure line-art SVG icons have standard dimension, stroke, and color alignment (exclude flags) */
.rja3-icon:not(.rja3-icon-flag-tn):not(.rja3-icon-flag-fr),
svg.rja3-icon:not(.rja3-icon-flag-tn):not(.rja3-icon-flag-fr) {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    stroke: currentColor !important;
    stroke-width: 2px !important;
    fill: none !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

/* Explicit Flag SVG Reset & Styling */
.rja3-icon-flag-tn,
.rja3-icon-flag-fr,
svg.rja3-icon-flag-tn,
svg.rja3-icon-flag-fr {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    display: block !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    stroke: none !important;
    stroke-width: 0 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3) !important;
}
.rja3-icon-flag-tn path, .rja3-icon-flag-tn circle, .rja3-icon-flag-tn polygon,
.rja3-icon-flag-fr rect, .rja3-icon-flag-fr circle {
    stroke: none !important;
}

/* Ensure tab icons render nicely in the bottom nav bar with unified Black & White styling */
.gmaps-tab-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: var(--gmaps-surface-hover) !important;
    border: 1px solid var(--gmaps-border) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 2px !important;
    color: var(--gmaps-text-primary) !important;
    transition: all 0.2s ease !important;
}

.gmaps-tab-icon svg,
.gmaps-tab-icon .rja3-icon {
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor !important;
    color: inherit !important;
    fill: none !important;
}

/* Black & White Active State for Bottom Navigation Bar Icons */
.gmaps-tab-active .gmaps-tab-icon {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

.gmaps-tab-active .gmaps-tab-icon svg,
.gmaps-tab-active .gmaps-tab-icon .rja3-icon {
    stroke: #ffffff !important;
    color: #ffffff !important;
}

.gmaps-tab-active .gmaps-tab-label {
    color: #000000 !important;
    font-weight: 800 !important;
}

/* Dark Mode Black & White Active State */
body.theme-dark .gmaps-tab-icon {
    background: var(--gmaps-surface-hover) !important;
    color: #ffffff !important;
}

body.theme-dark .gmaps-tab-active .gmaps-tab-icon {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.35) !important;
}

body.theme-dark .gmaps-tab-active .gmaps-tab-icon svg,
body.theme-dark .gmaps-tab-active .gmaps-tab-icon .rja3-icon {
    stroke: #000000 !important;
    color: #000000 !important;
}

body.theme-dark .gmaps-tab-active .gmaps-tab-label {
    color: #ffffff !important;
}

/* Fix Favorite Cards layout & structure in the bottom sheet */
.gmaps-fav-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-width: 200px !important;
    max-width: 240px !important;
    padding: 14px 12px !important;
    border-radius: 18px !important;
    text-align: center !important;
    background: var(--gmaps-surface) !important;
    border: 1px solid var(--gmaps-border) !important;
    box-shadow: var(--gmaps-shadow) !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
    cursor: pointer !important;
}

.gmaps-fav-card:hover {
    transform: translateY(-2px) !important;
    border-color: var(--gmaps-blue) !important;
}

.gmaps-fav-card-header {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: var(--gmaps-text-primary) !important;
}

.gmaps-fav-card-header svg,
.gmaps-fav-card-header .rja3-icon {
    width: 20px !important;
    height: 20px !important;
    color: var(--gmaps-blue) !important;
    display: inline-block !important;
}

/* Adjust colors of statuses */
.gmaps-status-ok {
    color: #188038 !important;
    font-weight: 800 !important;
}

.gmaps-status-warn {
    color: #d93025 !important;
    font-weight: 800 !important;
}


/* =============================================================
   RESTORED USER COMPTE & FAVORITES DASHBOARD MODAL STYLES
   ============================================================= */
.gw-dashboard-card {
    max-width: 500px !important;
    width: 95% !important;
    padding: 24px 20px !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.3) !important;
}

.gw-dash-user-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding: 16px !important;
    background: var(--gmaps-surface-hover) !important;
    border: 1px solid var(--gmaps-border) !important;
    border-radius: 16px !important;
    margin-bottom: 16px !important;
}

body.lang-tn .gw-dash-user-header {
    flex-direction: row-reverse !important;
}

.gw-dash-avatar-lg {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--gmaps-blue) 0%, #0d47a1 100%) !important;
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3) !important;
}

.gw-dash-user-info {
    flex: 1 !important;
    text-align: left !important;
    padding: 0 10px !important;
}

body.lang-tn .gw-dash-user-info {
    text-align: right !important;
}

.gw-dash-username {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: var(--gmaps-text-primary) !important;
}

.gw-dash-userphone {
    font-size: 12px !important;
    color: var(--gmaps-text-sub) !important;
    margin-top: 2px !important;
}

.gw-dash-level-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    color: var(--gmaps-amber) !important;
    background: rgba(249, 171, 0, 0.12) !important;
    padding: 4px 10px !important;
    border-radius: 12px !important;
    margin-top: 6px !important;
}

.gw-dash-tabs {
    display: flex !important;
    gap: 6px !important;
    border-bottom: 1px solid var(--gmaps-border) !important;
    margin-bottom: 16px !important;
    padding-bottom: 8px !important;
}

body.lang-tn .gw-dash-tabs {
    flex-direction: row-reverse !important;
}

.gw-dash-tab {
    flex: 1 !important;
    text-align: center !important;
    padding: 8px 12px !important;
    border: none !important;
    background: transparent !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--gmaps-text-sub) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.gw-dash-tab.active {
    background: var(--gmaps-chip-active-bg) !important;
    color: var(--gmaps-chip-active-text) !important;
    border: 1px solid var(--gmaps-chip-active-border) !important;
}

.gw-fav-item-card {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 14px !important;
    background: var(--gmaps-surface-hover) !important;
    border: 1px solid var(--gmaps-border) !important;
    border-radius: 14px !important;
    margin-bottom: 10px !important;
    text-align: left !important;
}

body.lang-tn .gw-fav-item-card {
    flex-direction: row-reverse !important;
    text-align: right !important;
}

.gw-btn-logout {
    background: rgba(217, 48, 37, 0.08) !important;
    color: #d93025 !important;
    border: 1px solid rgba(217, 48, 37, 0.25) !important;
    padding: 12px 16px !important;
    border-radius: 14px !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
}

.gw-btn-logout:hover {
    background: #d93025 !important;
    color: #ffffff !important;
}


/* =============================================================
   GOOGLE MAPS STYLE PULSING BLUE GPS LOCATION PIN
   ============================================================= */
.gmaps-gps-marker {
    position: relative !important;
    width: 20px !important;
    height: 20px !important;
}

.gmaps-gps-dot {
    width: 16px !important;
    height: 16px !important;
    background: #1a73e8 !important;
    border: 3px solid #ffffff !important;
    border-radius: 50% !important;
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4) !important;
    z-index: 10 !important;
}

.gmaps-gps-pulse {
    width: 36px !important;
    height: 36px !important;
    background: rgba(26, 115, 232, 0.3) !important;
    border-radius: 50% !important;
    position: absolute !important;
    top: -8px !important;
    left: -8px !important;
    animation: gpsPulse 1.8s infinite ease-out !important;
    pointer-events: none !important;
    z-index: 5 !important;
}

@keyframes gpsPulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}


/* =============================================================
   COLORIZED SEMANTIC ICONS FOR A LIVELY DESIGN
   ============================================================= */
.rja3-icon-lightning { color: #f9ab00 !important; filter: drop-shadow(0 2px 4px rgba(249, 171, 0, 0.35)); }
.rja3-icon-siren { color: #ea4335 !important; filter: drop-shadow(0 2px 4px rgba(234, 67, 53, 0.35)); }
.rja3-icon-water, .rja3-icon-tap { color: #1a73e8 !important; filter: drop-shadow(0 2px 4px rgba(26, 115, 232, 0.35)); }
.rja3-icon-home { color: #24b263 !important; }
.rja3-icon-briefcase { color: #e67e22 !important; }
.rja3-icon-pin { color: #ea4335 !important; }
.rja3-icon-target { color: #1a73e8 !important; }
.rja3-icon-bell { color: #f39c12 !important; }
.rja3-icon-clipboard { color: #9b59b6 !important; }
.rja3-icon-handshake { color: #2c3e50 !important; }
body.theme-dark .rja3-icon-handshake { color: #ecf0f1 !important; }


/* =============================================================
   NEXT LEVEL BOTTOM SHEET FAVORITE CARDS REDESIGN
   ============================================================= */

.gmaps-bottom-sheet {
    background: var(--gmaps-surface) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-top: 1px solid var(--gmaps-border) !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15) !important;
    padding: 16px 20px 8px !important;
    border-radius: 28px 28px 0 0 !important;
}

/* Redesigned grid container */
.gmaps-fav-locations-grid {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    padding: 8px 0 14px !important;
    scroll-behavior: smooth !important;
}

/* Premium Card Design */
.gmaps-fav-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 20px 16px !important;
    border-radius: 24px !important;
    background: linear-gradient(135deg, var(--gmaps-surface) 0%, var(--gmaps-surface-hover) 100%) !important;
    border: 1px solid var(--gmaps-border) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
    min-width: 250px !important;
    max-width: 280px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    flex-shrink: 0 !important;
}

.gmaps-fav-card:hover {
    transform: translateY(-6px) scale(1.01) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
    border-color: var(--gmaps-blue) !important;
}

.gmaps-fav-card-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-bottom: 6px !important;
}

.gmaps-fav-card-title {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: var(--gmaps-text-primary) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.gmaps-fav-card-name {
    font-size: 12px !important;
    color: var(--gmaps-text-sub) !important;
    text-align: left !important;
    margin-bottom: 12px !important;
}

body.lang-tn .gmaps-fav-card-name {
    text-align: right !important;
}

/* Utility Badges Container inside Card */
.gw-card-status-container {
    display: flex !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
}

.gw-utility-badge {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    border: 1px solid transparent !important;
    white-space: nowrap !important;
}

.gw-utility-badge svg,
.gw-utility-badge .rja3-icon {
    width: 14px !important;
    height: 14px !important;
}

.gw-badge-working {
    background: rgba(24, 128, 56, 0.1) !important;
    color: #188038 !important;
    border-color: rgba(24, 128, 56, 0.2) !important;
}

.gw-badge-outage {
    background: rgba(217, 48, 37, 0.1) !important;
    color: #d93025 !important;
    border-color: rgba(217, 48, 37, 0.2) !important;
}

/* Animated User GPS Blue Pulse Dot */
.gw-user-gps-marker {
    display: flex;
    align-items: center;
    justify-content: center;
}
.gw-user-gps-dot {
    width: 20px;
    height: 20px;
    background: #1a73e8;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.35), 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: scale(0);
    animation: gwGpsPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, gwGpsPulse 2s infinite 0.5s;
}

@keyframes gwGpsPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    70% {
        transform: scale(1.4);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes gwGpsPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.6), 0 4px 12px rgba(0, 0, 0, 0.25);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(26, 115, 232, 0), 0 4px 12px rgba(0, 0, 0, 0.25);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0), 0 4px 12px rgba(0, 0, 0, 0.25);
    }
}

/* Share Button customization */
.gw-btn-share-vote {
    background: var(--gmaps-surface) !important;
    border: 1.5px solid var(--gmaps-blue) !important;
    color: var(--gmaps-blue) !important;
    border-radius: 14px !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
    width: 100% !important;
}

.gw-btn-share-vote:hover {
    background: var(--gmaps-chip-active-bg) !important;
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.2) !important;
    transform: translateY(-1px) !important;
}

/* Semantic icon color overrides */
.rja3-icon-candle {
    color: #ea4335 !important;
    filter: drop-shadow(0 2px 4px rgba(234, 67, 53, 0.4));
}


/* =============================================================
   ULTRA-MODERN AUTH / LOGIN MODAL REDESIGN
   ============================================================= */
.gw-auth-modal-card {
    max-width: 400px !important;
    width: 92% !important;
    padding: 32px 24px 28px !important;
    border-radius: 24px !important;
    text-align: center !important;
    position: relative !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid var(--gmaps-border) !important;
    background: var(--gmaps-surface) !important;
}

.gw-auth-close-btn {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: 1px solid var(--gmaps-border) !important;
    background: var(--gmaps-surface-hover) !important;
    color: var(--gmaps-text-primary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

body.lang-fr .gw-auth-close-btn {
    left: auto !important;
    right: 14px !important;
}

.gw-auth-branding {
    margin-bottom: 24px !important;
}

.gw-auth-logo {
    height: 64px !important;
    max-height: 64px !important;
    width: auto !important;
    margin: 0 auto 16px auto !important;
    display: block !important;
    object-fit: contain !important;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.gw-auth-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--gmaps-text-primary) !important;
    margin-bottom: 8px !important;
}

.gw-auth-sub {
    font-size: 13px !important;
    color: var(--gmaps-text-sub) !important;
    line-height: 1.4 !important;
}

.gw-auth-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.gw-auth-input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.gw-input-icon {
    position: absolute !important;
    right: 14px !important;
    font-size: 16px !important;
    pointer-events: none !important;
}

body.lang-fr .gw-input-icon {
    right: auto !important;
    left: 14px !important;
}

.gw-auth-input {
    width: 100% !important;
    padding: 14px 42px 14px 16px !important;
    border-radius: 14px !important;
    border: 1px solid var(--gmaps-border) !important;
    background: var(--gmaps-surface-hover) !important;
    color: var(--gmaps-text-primary) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

body.lang-fr .gw-auth-input {
    padding: 14px 16px 14px 42px !important;
}

.gw-auth-input:focus {
    border-color: var(--gmaps-blue) !important;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2) !important;
    background: var(--gmaps-surface) !important;
}

.gw-auth-submit-btn {
    width: 100% !important;
    height: 48px !important;
    background: linear-gradient(135deg, #188038 0%, #13662c 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 24px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(24, 128, 56, 0.35) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    margin-top: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.gw-auth-submit-btn:hover {
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(24, 128, 56, 0.45) !important;
}

.gw-auth-submit-btn:active {
    transform: scale(0.98) !important;
}


/* =============================================================
   NEXT LEVEL LOCATIONS MODAL REDESIGN
   ============================================================= */
.gw-locations-modal-card {
    max-width: 480px !important;
    width: 95% !important;
    padding: 24px 20px !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3) !important;
    background: var(--gmaps-surface) !important;
    border: 1px solid var(--gmaps-border) !important;
}

.gw-locations-tabs {
    display: flex !important;
    gap: 6px !important;
    margin-bottom: 20px !important;
    border-bottom: 1px solid var(--gmaps-border) !important;
    padding-bottom: 6px !important;
}

body.lang-tn .gw-locations-tabs {
    flex-direction: row-reverse !important;
}

.gw-loc-tab {
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    padding: 10px 4px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: var(--gmaps-text-sub) !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    outline: none !important;
}

.gw-loc-tab.active {
    background: var(--gmaps-chip-active-bg) !important;
    color: var(--gmaps-chip-active-text) !important;
    border: 1px solid var(--gmaps-chip-active-border) !important;
}

.gw-input-gps-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.gw-btn-gps-autofill {
    position: absolute !important;
    right: 12px !important;
    background: transparent !important;
    border: none !important;
    font-size: 18px !important;
    cursor: pointer !important;
    outline: none !important;
    padding: 0 !important;
    transition: transform 0.2s ease !important;
}

body.lang-fr .gw-btn-gps-autofill {
    right: auto !important;
    left: 12px !important;
}

.gw-btn-gps-autofill:hover {
    transform: scale(1.15) !important;
}

.gw-loc-tab-content {
    display: none !important;
}

.gw-loc-tab-content.active {
    display: block !important;
    animation: gwTabFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes gwTabFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.gw-btn-verify-primary {
    width: 100% !important;
    padding: 12px 16px !important;
    border-radius: 14px !important;
    border: 1.5px solid var(--gmaps-blue) !important;
    background: transparent !important;
    color: var(--gmaps-blue) !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 14px !important;
    transition: all 0.2s ease !important;
}

.gw-btn-verify-primary:hover {
    background: var(--gmaps-chip-active-bg) !important;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15) !important;
}

.gw-locations-modal-footer {
    margin-top: 24px !important;
    border-top: 1px solid var(--gmaps-border) !important;
    padding-top: 16px !important;
}


/* =============================================================
   SUPER USER-FRIENDLY WIZARD MODAL STYLES
   ============================================================= */
.gw-wizard-modal-card {
    max-width: 440px !important;
    width: 94% !important;
    padding: 32px 24px 28px !important;
    border-radius: 28px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35) !important;
    background: var(--gmaps-surface) !important;
    border: 1px solid var(--gmaps-border) !important;
}

.gw-wizard-close-btn {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    width: 32px !important;
    height: 32px !important;
}

body.lang-fr .gw-wizard-close-btn {
    left: auto !important;
    right: 16px !important;
}

.gw-btn-back-wizard {
    background: transparent !important;
    border: none !important;
    color: var(--gmaps-blue) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin-bottom: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.gw-wizard-screen {
    display: none !important;
}

.gw-wizard-screen.active {
    display: block !important;
    animation: wizFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes wizFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.gw-wizard-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--gmaps-text-primary) !important;
    margin-bottom: 8px !important;
}

.gw-wizard-subtitle {
    font-size: 13px !important;
    color: var(--gmaps-text-sub) !important;
    line-height: 1.4 !important;
    margin-bottom: 24px !important;
}

/* Card Selection Grid */
.gw-wizard-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
}

.gw-wizard-card {
    border: 1.5px solid var(--gmaps-border) !important;
    background: var(--gmaps-surface-hover) !important;
    padding: 24px 16px !important;
    border-radius: 20px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.gw-wizard-card:hover {
    transform: translateY(-4px) !important;
    border-color: var(--gmaps-blue) !important;
    background: var(--gmaps-surface) !important;
    box-shadow: 0 8px 24px rgba(26, 115, 232, 0.12) !important;
}

.gw-wizard-icon-box {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    margin: 0 auto 12px auto !important;
}

.home-color { background: rgba(36, 178, 99, 0.1) !important; }
.work-color { background: rgba(230, 126, 34, 0.1) !important; }

.gw-wizard-card h4 {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: var(--gmaps-text-primary) !important;
    margin-bottom: 2px !important;
}

.gw-wizard-card p {
    font-size: 11px !important;
    color: var(--gmaps-text-sub) !important;
}

/* Method Rows */
.gw-wizard-methods-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.gw-wizard-method-row {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px 20px !important;
    border-radius: 18px !important;
    background: var(--gmaps-surface-hover) !important;
    border: 1.5px solid var(--gmaps-border) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

body.lang-tn .gw-wizard-method-row {
    flex-direction: row-reverse !important;
}

.gw-wizard-method-row:hover {
    border-color: var(--gmaps-blue) !important;
    background: var(--gmaps-surface) !important;
    transform: scale(1.02) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

.gw-method-icon {
    font-size: 22px !important;
}

.gw-method-icon-box {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: var(--gmaps-surface-hover) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.gw-method-info {
    text-align: left !important;
    flex: 1 !important;
}

body.lang-tn .gw-method-info {
    text-align: right !important;
}

.gw-method-info h5 {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: var(--gmaps-text-primary) !important;
    margin-bottom: 2px !important;
}

.gw-method-info p {
    font-size: 11px !important;
    color: var(--gmaps-text-sub) !important;
}


/* =============================================================
   PREMIUM REDESIGNED PROFILE SCREEN MODAL & TABS
   ============================================================= */
.gw-dash-tabs {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
    border-bottom: 1.5px solid var(--gmaps-border) !important;
    padding-bottom: 8px !important;
}

body.lang-tn .gw-dash-tabs {
    flex-direction: row-reverse !important;
}

.gw-dash-tab {
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 10px 14px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: var(--gmaps-text-sub) !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.gw-dash-tab.active {
    background: var(--gmaps-chip-active-bg) !important;
    color: var(--gmaps-chip-active-text) !important;
    border: 1px solid var(--gmaps-chip-active-border) !important;
}

.gw-fav-item-card {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 18px !important;
    border-radius: 18px !important;
    background: var(--gmaps-surface-hover) !important;
    border: 1px solid var(--gmaps-border) !important;
    margin-bottom: 12px !important;
    transition: all 0.2s ease !important;
    text-align: left !important;
}

body.lang-tn .gw-fav-item-card {
    flex-direction: row-reverse !important;
    text-align: right !important;
}

.gw-fav-item-card:hover {
    transform: translateY(-2px) !important;
    border-color: var(--gmaps-blue) !important;
}

/* Adjust clear search button placement in pill */
#gw-btn-clear-search {
    margin-left: 4px;
    margin-right: 4px;
    font-size: 15px !important;
    font-weight: bold !important;
    cursor: pointer !important;
}

/* SVG Icon & Flag Button Fixes */
.rja3-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

.rja3-icon-flag-tn, .rja3-icon-flag-fr {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: block !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
}

#gw-lang-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}

#gw-lang-label {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

/* GPS Location Verification Bar & Modal Redesign */
.gw-report-gps-box {
    margin: 16px 0 !important;
    padding: 12px 16px !important;
    border-radius: 14px !important;
    background: var(--gmaps-surface-hover) !important;
    border: 1px solid var(--gmaps-border) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
}

.gw-gps-status-loading {
    color: #0284c7 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.gw-gps-status-verified {
    color: #16a34a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.gw-gps-status-warning {
    color: #dc2626 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.gw-pulse-radar {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: #0284c7 !important;
    box-shadow: 0 0 0 rgba(2, 132, 199, 0.4) !important;
    animation: gwRadarPulse 1.5s infinite !important;
}

@keyframes gwRadarPulse {
    0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(2, 132, 199, 0); }
    100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

/* Redesigned Modal Buttons */
.gw-radial-power-out {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
    border: 1.5px solid #fecaca !important;
    color: #991b1b !important;
}
.gw-radial-power-on {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
    border: 1.5px solid #bbf7d0 !important;
    color: #166534 !important;
}
.gw-radial-water-out {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border: 1.5px solid #bae6fd !important;
    color: #075985 !important;
}
.gw-radial-water-on {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%) !important;
    border: 1.5px solid #99f6e4 !important;
    color: #115e59 !important;
}

.gw-radial-btn:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
}

/* ==========================================================================
   ULTRA-PREMIUM ARTICLE & THEME HEADER DESIGN SYSTEM
   ========================================================================== */

/* Non-Homepage Pages Body Scroll Fix */
body:not(.home):not(.front-page) {
    overflow-y: auto !important;
    height: auto !important;
    position: static !important;
}

/* Modern Article Header Bar */
.rja3-nav-header {
    position: sticky;
    top: 12px;
    z-index: 1000;
    padding: 0 16px;
    margin-bottom: 24px;
}

.rja3-nav-pill {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-radius: 40px;
    background: var(--gmaps-surface);
    border: 1px solid var(--gmaps-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.rja3-search-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 380px;
    margin: 0 12px;
    background: var(--gmaps-surface-hover);
    border: 1px solid var(--gmaps-border);
    border-radius: 24px;
    padding: 6px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rja3-search-wrapper:focus-within {
    border-color: var(--gmaps-blue);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.rja3-search-input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--gmaps-text-main);
    font-family: inherit;
}

/* Article Hero & Typography */
.rja3-article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 64px;
}

.rja3-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gmaps-text-sub);
    margin-bottom: 24px;
}

.rja3-breadcrumb a {
    color: var(--gmaps-blue);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.rja3-breadcrumb a:hover {
    opacity: 0.8;
}

.rja3-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.1) 0%, rgba(26, 115, 232, 0.04) 100%);
    border: 1px solid rgba(26, 115, 232, 0.2);
    color: #1a73e8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.rja3-article-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--gmaps-text-main);
    line-height: 1.28;
    letter-spacing: -0.5px;
    margin: 0 0 20px 0;
}

@media (max-width: 640px) {
    .rja3-article-title {
        font-size: 26px;
    }
}

.rja3-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    font-size: 13.5px;
    color: var(--gmaps-text-sub);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gmaps-border);
    margin-bottom: 32px;
}

.rja3-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rja3-meta-item svg {
    width: 16px;
    height: 16px;
    color: var(--gmaps-blue);
}

/* Callout Box */
.rja3-callout-card {
    background: var(--gmaps-surface);
    border: 1px solid var(--gmaps-border);
    border-left: 4px solid var(--gmaps-blue);
    border-radius: 16px;
    padding: 20px 24px;
    margin: 32px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 640px) {
    .rja3-callout-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

.rja3-callout-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gmaps-text-main);
    margin-bottom: 4px;
}

.rja3-callout-sub {
    font-size: 13.5px;
    color: var(--gmaps-text-sub);
}

.rja3-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 13.5px;
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.rja3-btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26, 115, 232, 0.4);
}

/* Article Body Typography */
.rja3-article-body {
    font-size: 18px;
    line-height: 1.82;
    color: var(--gmaps-text-main);
}

.rja3-article-body p {
    margin-bottom: 24px;
}

.rja3-article-body p:first-of-type {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--gmaps-text-main);
}

/* Share Bar */
.rja3-share-bar {
    background: var(--gmaps-surface);
    border: 1px solid var(--gmaps-border);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    margin-top: 48px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.rja3-share-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gmaps-text-main);
    margin-bottom: 16px;
}

.rja3-share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rja3-btn-share-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    transition: transform 0.2s ease;
}

.rja3-btn-share-wa:hover {
    transform: translateY(-2px);
}

.rja3-btn-share-fb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, #1877F2 0%, #0d5aa7 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.25);
    transition: transform 0.2s ease;
}

.rja3-btn-share-fb:hover {
    transform: translateY(-2px);
}

/* Modern Citizen Voting Cards System (No Emojis, Pure SVG Vector Icons) */
.gw-radial-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin: 16px 0 !important;
}

.gw-radial-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px 10px !important;
    border-radius: 20px !important;
    border: 1.5px solid var(--gmaps-border) !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    background: var(--gmaps-surface) !important;
    min-height: 125px !important;
    position: relative !important;
}

.gw-radial-btn:hover {
    transform: translateY(-4px) scale(1.03) !important;
}

.gw-radial-btn:active {
    transform: translateY(0) scale(0.97) !important;
}

.gw-vote-icon-badge {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 10px !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease !important;
}

.gw-radial-btn:hover .gw-vote-icon-badge {
    transform: scale(1.1) rotate(-4deg) !important;
}

/* Power Outage Card */
.gw-radial-power-out {
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.05) 0%, rgba(234, 67, 53, 0.12) 100%) !important;
    border-color: rgba(234, 67, 53, 0.3) !important;
}
.gw-radial-power-out .gw-vote-icon-badge {
    background: rgba(234, 67, 53, 0.15) !important;
    color: #d93025 !important;
}
.gw-radial-power-out:hover {
    box-shadow: 0 10px 24px rgba(234, 67, 53, 0.22) !important;
    border-color: #d93025 !important;
}

/* Power Restored Card */
.gw-radial-power-on {
    background: linear-gradient(135deg, rgba(24, 128, 56, 0.05) 0%, rgba(24, 128, 56, 0.12) 100%) !important;
    border-color: rgba(24, 128, 56, 0.3) !important;
}
.gw-radial-power-on .gw-vote-icon-badge {
    background: rgba(24, 128, 56, 0.15) !important;
    color: #188038 !important;
}
.gw-radial-power-on:hover {
    box-shadow: 0 10px 24px rgba(24, 128, 56, 0.22) !important;
    border-color: #188038 !important;
}

/* Water Outage Card */
.gw-radial-water-out {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.05) 0%, rgba(26, 115, 232, 0.12) 100%) !important;
    border-color: rgba(26, 115, 232, 0.3) !important;
}
.gw-radial-water-out .gw-vote-icon-badge {
    background: rgba(26, 115, 232, 0.15) !important;
    color: #1a73e8 !important;
}
.gw-radial-water-out:hover {
    box-shadow: 0 10px 24px rgba(26, 115, 232, 0.22) !important;
    border-color: #1a73e8 !important;
}

/* Water Restored Card */
.gw-radial-water-on {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.05) 0%, rgba(0, 180, 216, 0.12) 100%) !important;
    border-color: rgba(0, 180, 216, 0.3) !important;
}
.gw-radial-water-on .gw-vote-icon-badge {
    background: rgba(0, 180, 216, 0.15) !important;
    color: #0096c7 !important;
}
.gw-radial-water-on:hover {
    box-shadow: 0 10px 24px rgba(0, 180, 216, 0.22) !important;
    border-color: #0096c7 !important;
}

.gw-vote-title-tn {
    font-size: 19px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    margin-bottom: 4px !important;
}

/* Hardware-Accelerated Smooth Leaflet Map & Tile Transitions */
.leaflet-tile {
    transition: opacity 0.35s ease, transform 0.25s cubic-bezier(0.25, 1, 0.5, 1) !important;
    will-change: transform, opacity !important;
}

.leaflet-fade-anim .leaflet-tile {
    will-change: opacity !important;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
    will-change: transform !important;
}

.leaflet-container {
    transition: background-color 0.3s ease !important;
}

.gw-waze-marker, .gw-custom-pin, .gw-user-gps-dot {
    will-change: transform !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* User Live GPS Location Blue Dot Marker (Always Pinned on Top of Map Layers) */
.gw-user-gps-marker, .leaflet-marker-pane .gw-user-gps-marker {
    z-index: 999999 !important;
}

.gw-user-gps-dot {
    width: 20px !important;
    height: 20px !important;
    background-color: #1a73e8 !important;
    border: 3px solid #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 6px rgba(26, 115, 232, 0.4), 0 4px 12px rgba(0, 0, 0, 0.35) !important;
    animation: rja3GpsPulse 2s infinite ease-in-out !important;
}

@keyframes rja3GpsPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.7), 0 4px 12px rgba(0, 0, 0, 0.35);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(26, 115, 232, 0), 0 4px 12px rgba(0, 0, 0, 0.35);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0), 0 4px 12px rgba(0, 0, 0, 0.35);
    }
}
