:root {
    --bg-cream: #f6f3eb;
    --card-cream: #ede8dc;
    --primary-olive: #4a5d4e;
    --olive-hover: #5b7260;
    --text-dark: #2c322b;
    --text-muted: #6b7268;
    --border-color: rgba(74, 93, 78, 0.2);
    --sidebar-width: 380px;
    --header-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100vh;
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    overflow: hidden;
}

/* ===== صفحة البداية ===== */
.landing-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #fbf9f4 0%, #ece5d5 100%);
    overflow-y: auto;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.landing-content {
    max-width: 550px;
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 20px 50px rgba(74, 93, 78, 0.15);
    backdrop-filter: blur(12px);
    position: relative;
}

.logo-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-cream);
    border-radius: 50%;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 25px rgba(74, 93, 78, 0.12);
    overflow: hidden;
}

.sanam-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-title {
    font-family: 'Amiri', serif;
    font-size: 34px;
    color: var(--primary-olive);
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.landing-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 500;
}

.landing-desc {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 25px;
    background: var(--card-cream);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.enter-btn {
    background: var(--primary-olive);
    color: #fff;
    border: none;
    padding: 13px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(74, 93, 78, 0.25);
    margin-bottom: 12px;
    font-family: 'Tajawal', sans-serif;
    width: 100%;
}

.enter-btn:hover {
    background: var(--olive-hover);
    transform: translateY(-2px);
}

.landing-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 15px;
}

.action-toggle-btn {
    flex: 1;
    background: transparent;
    border: 1.5px solid var(--primary-olive);
    color: var(--primary-olive);
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.action-toggle-btn:hover {
    background: var(--primary-olive);
    color: #fff;
}

.lang-switch-subtle {
    position: absolute;
    top: 20px;
    left: 25px;
    background: transparent;
    border: 1.5px solid var(--primary-olive);
    color: var(--primary-olive);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.lang-switch-subtle:hover {
    background: var(--primary-olive);
    color: #fff;
}

.landing-footer {
    margin-top: 15px;
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== النوافذ المنبثقة ===== */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 50, 43, 0.6);
    backdrop-filter: blur(5px);
    z-index: 20000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: #fdfbf7;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    max-width: 450px;
    width: 100%;
    text-align: right;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--primary-olive);
}

.modal-content h3 {
    font-family: 'Amiri', serif;
    color: var(--primary-olive);
    font-size: 22px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.modal-content p {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.8;
}

/* ===== التطبيق الرئيسي ===== */
#main-app {
    display: flex;
    width: 100vw;
    height: 100vh;
}

.app-hidden {
    display: none !important;
}

.app-active {
    display: flex !important;
}

/* ===== الهيدر العلوي (للجوال فقط) ===== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: #2c322b;
    color: #fdfbf7;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 1500;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    border-bottom: 2px solid var(--primary-olive);
}

.logo-badge-mobile {
    width: 40px;
    height: 40px;
    background: var(--primary-olive);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.logo-badge-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-badge-mobile span {
    font-family: 'Amiri', serif;
    font-size: 22px;
    font-weight: 700;
    color: #fdfbf7;
}

.mobile-title {
    font-family: 'Amiri', serif;
    font-size: 20px;
    font-weight: 700;
    color: #fdfbf7;
}

/* ===== زر القائمة (الثلاث خطوط) ===== */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1600;
}

.menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fdfbf7;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* تحويل الخطوط إلى X */
.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== الخلفية المعتمة ===== */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 900;
}

.overlay.show {
    display: block;
}

/* ===== القائمة الجانبية ===== */
aside {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: #2c322b;
    color: #fdfbf7;
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 30px rgba(0,0,0,0.3);
    z-index: 1000;
    border-left: 1px solid rgba(74, 93, 78, 0.4);
    transition: right 0.3s ease;
    position: relative;
}

.brand-box {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(135deg, #2c322b, #1e231d);
}

.logo-badge {
    width: 60px;
    height: 60px;
    background: var(--primary-olive);
    color: #fdfbf7;
    font-family: 'Amiri', serif;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(74, 93, 78, 0.4);
    overflow: hidden;
}

.logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-box h1 {
    font-family: 'Amiri', serif;
    font-size: 22px;
    color: #fdfbf7;
    letter-spacing: 1px;
}

.brand-box p {
    font-size: 12px;
    color: #adb5ad;
    margin-top: 4px;
}

.filters-container {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.filters-container h3 {
    font-size: 12px;
    color: #adb5ad;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn {
    width: 100%;
    padding: 11px 15px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fdfbf7;
    border-radius: 8px;
    cursor: pointer;
    text-align: right;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-olive);
    color: #fdfbf7;
    border-color: var(--primary-olive);
    font-weight: 700;
    transform: translateX(-4px);
}

.back-home-btn {
    width: 100%;
    padding: 11px 15px;
    margin-top: 25px;
    background: rgba(74, 93, 78, 0.25);
    border: 1px solid var(--primary-olive);
    color: #d1ddd2;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.back-home-btn:hover {
    background: var(--primary-olive);
    color: #fff;
}

.sidebar-footer {
    padding: 12px;
    text-align: center;
    font-size: 11px;
    color: #8c958c;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ===== الخريطة ===== */
#map {
    flex: 1;
    height: 100vh;
    z-index: 1;
}

/* ===== تنسيق النوافذ المنبثقة في الخريطة ===== */
.leaflet-popup-content-wrapper {
    background: #fdfbf7;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    max-width: 480px !important;
    min-width: 320px !important;
}

.leaflet-popup-content {
    width: auto !important;
    min-width: 280px !important;
    max-width: 420px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    padding: 12px 18px;
    font-size: 15px;
    line-height: 2;
}

.leaflet-popup-content h3 {
    font-family: 'Amiri', serif;
    color: var(--primary-olive);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
    text-align: right;
}

.leaflet-popup-content pre {
    font-family: 'Amiri', 'Tajawal', serif;
    font-size: 15px;
    line-height: 2.2;
    white-space: pre-wrap;
    word-break: keep-all;
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
}

.leaflet-popup-tip {
    background: #fdfbf7;
}

@media screen and (max-width: 768px) {
    .leaflet-popup-content-wrapper {
        max-width: 90vw !important;
        min-width: 70vw !important;
    }
    
    .leaflet-popup-content {
        min-width: 65vw !important;
        max-width: 85vw !important;
        max-height: 55vh !important;
        padding: 10px 14px;
        font-size: 13px;
        line-height: 1.9;
    }
    
    .leaflet-popup-content h3 {
        font-size: 16px;
        margin-bottom: 6px;
        padding-bottom: 5px;
    }
    
    .leaflet-popup-content pre {
        font-size: 13px;
        line-height: 2;
    }
    
    .leaflet-popup-content p {
        font-size: 13px;
        line-height: 1.9;
    }
    
    .leaflet-popup-content a {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
}

#showAllBtn {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 1500 !important;
}

@media screen and (max-width: 768px) {
    #showAllBtn {
        bottom: 15px !important;
        right: 15px !important;
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
}

/* ============================================= */
/* ===== RESPONSIVE - MEDIA QUERIES ===== */
/* ============================================= */

/* للشاشات الكبيرة (لابتوب) */
@media screen and (min-width: 769px) {
    .mobile-header,
    .overlay {
        display: none !important;
    }

    aside {
        position: relative !important;
        right: auto !important;
        width: var(--sidebar-width) !important;
        min-width: var(--sidebar-width) !important;
        height: 100vh !important;
        transform: none !important;
    }

    #map {
        height: 100vh !important;
        margin-top: 0 !important;
    }
}

/* للجوال (شاشات أقل من 768px) */
@media screen and (max-width: 768px) {
    /* إظهار الهيدر */
    .mobile-header {
        display: flex !important;
    }

    .menu-btn {
        display: flex !important;
    }

    /* تثبيت الخريطة تحت الهيدر */
    #map {
        height: calc(100vh - var(--header-height)) !important;
        margin-top: var(--header-height) !important;
        width: 100% !important;
        flex: none !important;
    }

    /* تعديل القائمة الجانبية */
    aside {
        position: fixed !important;
        top: var(--header-height) !important;
        right: -100% !important;
        width: 80% !important;
        max-width: 350px !important;
        height: calc(100vh - var(--header-height)) !important;
        transition: right 0.3s ease !important;
        z-index: 1000 !important;
        box-shadow: 5px 0 30px rgba(0,0,0,0.4) !important;
        border-left: 2px solid var(--primary-olive) !important;
    }

    aside.mobile-open {
        right: 0 !important;
    }

    /* تصغير الشعار في القائمة الجانبية للجوال */
    .logo-badge {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .brand-box h1 {
        font-size: 20px;
    }

    .filter-btn {
        font-size: 13px;
        padding: 10px 12px;
    }

    /* تعديل صفحة البداية للجوال */
    .landing-content {
        padding: 25px 20px;
        margin: 10px;
    }

    .landing-title {
        font-size: 28px;
    }

    .logo-wrapper {
        width: 70px;
        height: 70px;
    }

    .lang-switch-subtle {
        top: 15px;
        left: 15px;
        font-size: 11px;
        padding: 4px 10px;
    }

    /* تعديل النوافذ المنبثقة */
    .modal-content {
        padding: 20px;
        margin: 10px;
    }

    .modal-content h3 {
        font-size: 19px;
    }
}

/* للجوالات الصغيرة جداً */
@media screen and (max-width: 480px) {
    .mobile-title {
        font-size: 16px;
    }

    .logo-badge-mobile {
        width: 34px;
        height: 34px;
    }

    .menu-btn span {
        width: 24px;
        height: 2.5px;
    }

    aside {
        width: 85% !important;
        max-width: 300px !important;
    }

    .landing-title {
        font-size: 24px;
    }

    .landing-desc {
        font-size: 13px;
        padding: 12px;
    }

    .enter-btn {
        font-size: 14px;
        padding: 11px 30px;
    }

    .action-toggle-btn {
        font-size: 12px;
        padding: 8px;
    }
}
/* ===== زر البحث ===== */
.search-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 6px;
    transition: all 0.3s;
    font-family: 'Tajawal', sans-serif;
}

.search-btn:hover {
    background: #4a5d4e;
    border-color: #4a5d4e;
}

/* ===== نافذة البحث ===== */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 50, 43, 0.8);
    backdrop-filter: blur(8px);
    z-index: 20000;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
}

.search-modal.show {
    display: flex;
}

.search-modal-content {
    background: #fdfbf7;
    border-radius: 16px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    position: relative;
}

.close-search {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 28px;
    color: #6b7268;
    cursor: pointer;
    transition: color 0.2s;
}

.close-search:hover {
    color: #4a5d4e;
}

.search-modal-content h3 {
    font-family: 'Amiri', serif;
    color: #4a5d4e;
    font-size: 22px;
    margin-bottom: 15px;
    text-align: center;
}

#search-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid rgba(74, 93, 78, 0.2);
    border-radius: 10px;
    outline: none;
    font-family: 'Tajawal', sans-serif;
    transition: border-color 0.3s;
}

#search-input:focus {
    border-color: #4a5d4e;
}

#search-results {
    margin-top: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(74, 93, 78, 0.1);
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 8px;
}

.search-result-item:hover {
    background: #ede8dc;
}

.search-result-item .result-title {
    font-weight: 700;
    color: #4a5d4e;
    font-size: 16px;
}

.search-result-item .result-category {
    font-size: 12px;
    color: #6b7268;
    margin-right: 8px;
}

.search-result-item .result-desc {
    font-size: 13px;
    color: #2c322b;
    margin-top: 4px;
}

.search-result-item .result-location {
    font-size: 11px;
    color: #6b7268;
    margin-top: 4px;
}

.no-results {
    text-align: center;
    color: #6b7268;
    padding: 20px;
    font-size: 16px;
}

@media screen and (max-width: 768px) {
    .search-modal {
        padding-top: 60px;
    }
    
    .search-modal-content {
        padding: 20px;
        width: 95%;
    }
    
    #search-input {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .search-result-item .result-title {
        font-size: 14px;
    }
}
/* ===== إصلاح ظهور الخريطة ===== */
#main-app {
    display: flex;
    width: 100vw;
    height: 100vh;
}

.app-hidden {
    display: none !important;
}

.app-active {
    display: flex !important;
}

#map {
    flex: 1;
    height: 100vh;
    z-index: 1;
}

@media screen and (max-width: 768px) {
    #map {
        height: calc(100vh - 60px) !important;
        margin-top: 60px !important;
        width: 100% !important;
        flex: none !important;
    }
}
/* ===== زر البحث ===== */
.search-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 6px;
    transition: all 0.3s;
    font-family: 'Tajawal', sans-serif;
}

.search-btn:hover {
    background: #4a5d4e;
    border-color: #4a5d4e;
}

/* ===== نافذة البحث ===== */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 50, 43, 0.8);
    backdrop-filter: blur(8px);
    z-index: 999999 !important;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
}

.search-modal.show {
    display: flex !important;
}

.search-modal-content {
    background: #fdfbf7;
    border-radius: 16px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    position: relative;
    z-index: 9999999 !important;
}

.close-search {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 28px;
    color: #6b7268;
    cursor: pointer;
    transition: color 0.2s;
}

.close-search:hover {
    color: #4a5d4e;
}

.search-modal-content h3 {
    font-family: 'Amiri', serif;
    color: #4a5d4e;
    font-size: 22px;
    margin-bottom: 15px;
    text-align: center;
}

#search-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid rgba(74, 93, 78, 0.2);
    border-radius: 10px;
    outline: none;
    font-family: 'Tajawal', sans-serif;
    transition: border-color 0.3s;
}

#search-input:focus {
    border-color: #4a5d4e;
}

#search-results {
    margin-top: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(74, 93, 78, 0.1);
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 8px;
}

.search-result-item:hover {
    background: #ede8dc;
}

.search-result-item .result-title {
    font-weight: 700;
    color: #4a5d4e;
    font-size: 16px;
}

.search-result-item .result-category {
    font-size: 12px;
    color: #6b7268;
    margin-right: 8px;
}

.search-result-item .result-desc {
    font-size: 13px;
    color: #2c322b;
    margin-top: 4px;
}

.search-result-item .result-location {
    font-size: 11px;
    color: #6b7268;
    margin-top: 4px;
}

.no-results {
    text-align: center;
    color: #6b7268;
    padding: 20px;
    font-size: 16px;
}

/* ===== زر البحث للابتوب ===== */
.search-btn-laptop {
    width: 100%;
    padding: 11px 15px;
    margin-bottom: 15px;
    background: var(--primary-olive);
    border: none;
    color: #fdfbf7;
    border-radius: 8px;
    cursor: pointer !important;
    text-align: center;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    z-index: 1000;
    position: relative;
    pointer-events: auto !important;
}

.search-btn-laptop:hover {
    background: var(--olive-hover);
    transform: translateX(-4px);
}

/* ===== إخفاء زر البحث في الجوال ===== */
@media screen and (max-width: 768px) {
    .search-btn-laptop {
        display: none !important;
    }
}

/* ===== إخفاء زر البحث في اللابتوب من الهيدر ===== */
@media screen and (min-width: 769px) {
    .search-btn {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {
    .search-modal {
        padding-top: 60px;
    }
    
    .search-modal-content {
        padding: 20px;
        width: 95%;
    }
    
    #search-input {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .search-result-item .result-title {
        font-size: 14px;
    }
}
/* ===== توهج خطوط الربط ===== */
.leaflet-interactive {
    filter: drop-shadow(0 0 4px rgba(139, 94, 60, 0.5));
}
/* ===== توهج خطوط الربط ===== */
.leaflet-overlay-pane {
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.4));
}
/* ===== تصغير حجم الـ popup على الجوال ===== */
@media screen and (max-width: 768px) {
    .leaflet-popup-content {
        max-width: 260px !important;
        font-size: 12px !important;
        line-height: 1.6 !important;
    }
    
    .leaflet-popup-content h3 {
        font-size: 14px !important;
        margin-bottom: 4px !important;
    }
    
    .leaflet-popup-content p {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }
    
    .leaflet-popup-content pre {
        font-size: 11px !important;
        line-height: 1.6 !important;
        white-space: pre-wrap !important;
    }
    
    .leaflet-popup-content-wrapper {
        padding: 8px !important;
        border-radius: 10px !important;
    }
    
    .leaflet-popup-content a {
        font-size: 11px !important;
        padding: 5px 12px !important;
    }
}

/* للجوالات الصغيرة جداً */
@media screen and (max-width: 480px) {
    .leaflet-popup-content {
        max-width: 220px !important;
        font-size: 11px !important;
    }
    
    .leaflet-popup-content h3 {
        font-size: 13px !important;
    }
    
    .leaflet-popup-content pre {
        font-size: 10px !important;
    }
}