/* --------------------------------------------------
   إعدادات عامة وألوان موحدة
-------------------------------------------------- */
:root {
    --bg: #F7F8FA;
    --surface: #FFFFFF;
    --surface-soft: #EEF1F5;
    --text: #1A1F2E;
    --muted: #5C6878;
    --border: #E4E8EF;
    --primary: #0D6B6E;
    --primary-light: #1A8C8F;
    --primary-dark: #074E51;
    --secondary: #F0A500;
    --accent: #FFB703;
    --header-dark: #0A2E2F;
    
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
    
    --radius-lg: 24px;
    --radius-pill: 999px;

    background: var(--bg);
    color: var(--text);
}

[data-theme="dark"] {
    --bg: #0A2E2F;
    --surface: #123D3F;
    --surface-soft: #074E51;
    --text: #F7F8FA;
    --muted: #A0AABA;
    --border: #1A8C8F;
    --primary: #1A8C8F;
    --primary-light: #0D6B6E;
    --secondary: #F0A500;
    --accent: #FFB703;
    --header-dark: #052627;
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

body {
    margin: 0;
    font-family: 'Cairo', sans-serif;
    background: var(--bg);
    color: var(--text);
}

body.controls-open {
    overflow: hidden;
}

main,
header,
section {
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------
   الهيدر الجديد: شريط التحكم + شريط الفلاتر
-------------------------------------------------- */
header#city-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    border-bottom: none;
    transition: transform 0.25s ease, opacity 0.2s ease;
    z-index: 500;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    pointer-events: none;
}
header#city-header * {
    pointer-events: auto;
}

header#city-header.collapsed {
    transform: translateY(-100%);
    opacity: 0;
}

/* 1) الشريط العلوي الثابت */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.85); /* Transparent white */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: none;
    position: relative;
    z-index: 60;
    width: 100%;
    margin: 0 auto;
    max-width: 944px;
}

.site-branding-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.site-label {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.site-tagline {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

#city-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.header-top .pill-btn {
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--header-dark), #123D3F);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(7, 78, 81, 0.3);
}

/* 2) صندوق الخيارات المخفي */
.header-options-panel {
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
    padding: 0 16px;
    box-sizing: border-box;
    pointer-events: none;
}

.header-options-panel.open {
    max-height: 1000px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.header-options-panel .options-panel-card {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    padding: 0 16px 16px;
    box-sizing: border-box;
    margin-top: 12px;
}

body.dark-mode .header-options-panel .options-panel-card {
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.options-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 8px;
    gap: 12px;
}

.options-panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.options-icon {
    font-size: 20px;
}

.header-options-panel .controls-toggle.close {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--text);
}

.options-content {
    padding: 0 4px 4px;
}

.controls-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.control-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.control-item label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}

.select-wrapper,
.search-wrapper {
    position: relative;
    min-width: 140px;
}

.search-wrapper input,
.select-wrapper select {
    width: 100%;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    background: var(--surface-soft);
    color: var(--text);
    height: 40px;
    outline: none;
    transition: 0.2s;
    display: flex;
    align-items: center;
}

.search-wrapper input:focus,
.select-wrapper select:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(15, 75, 162, 0.1);
}

.chevron {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    font-size: 12px;
}

.pill-btn.small {
    padding: 0 16px;
    height: 40px;
    font-size: 12px;
    min-width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text);
}

.theme-toggle-btn {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: 0.2s;
    flex: 0 0 auto;
}

.theme-toggle-btn:hover {
    background: var(--border);
}

/* 2) الشريط الثاني: فلاتر التصنيف */
.filters-bar-container {
    background: transparent;
    padding: 16px 20px 8px; /* Added padding since it's now inside the bottom sheet */
    width: 100%;
    box-sizing: border-box;
    border-bottom: none;
    max-width: 944px;
    margin: 0 auto;
}

.filters-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    padding-bottom: 4px;
    white-space: nowrap;
    width: 100%;
}

.filters-bar::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.filter-pill {
    flex: 0 0 auto;
    height: 38px;
    padding: 0 16px;
    border: none;
    background: var(--surface-soft);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    transition: 0.2s;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-pill:hover {
    background: var(--border);
    transform: translateY(-1px);
}

.filter-pill.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 107, 110, 0.3);
}

/* Dropdown Menu for "More" */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 100;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-menu.show {
    display: flex;
}

/* User Requested Class */
.filters-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 100;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.filters-dropdown.visible {
    display: flex;
}

.filters-dropdown.hidden {
    display: none;
}

.dropdown-item {
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: 0.2s;
    text-align: right;
}

.dropdown-item:hover {
    background: var(--surface-soft);
    color: var(--primary);
}

/* --------------------------------------------------
   الخريطة (Full Screen)
-------------------------------------------------- */
#map-section.full-screen-map {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

#map {
    width: 100%;
    height: 100%;
    background: #EEF1F5;
}

/* --------------------------------------------------
   النافذة السفلية (Bottom Sheet)
-------------------------------------------------- */
.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60vh; /* Default half height */
    background: var(--surface);
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: translateY(0);
}

.bottom-sheet.collapsed {
    transform: translateY(calc(100% - 100px)); /* Show only handle and title */
}

.bottom-sheet.expanded {
    height: 90vh;
    transform: translateY(0);
}

.sheet-handle {
    width: 48px;
    height: 5px;
    background: var(--border);
    border-radius: 4px;
    margin: 12px auto;
    cursor: grab;
    flex-shrink: 0;
}

.sheet-handle:active {
    cursor: grabbing;
}

.sheet-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 40px;
    -webkit-overflow-scrolling: touch;
}

/* --------------------------------------------------
   توسيط الخريطة (Re-center btn)
-------------------------------------------------- */
.floating-recenter-btn {
    position: fixed;
    top: 130px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    z-index: 400;
    transition: 0.2s;
}

.floating-recenter-btn:hover {
    background: var(--surface-soft);
    transform: scale(1.05);
}

/* Marker Container (Leaflet wrapper) */
.marker-wrapper {
    background: transparent !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* New Circular Marker Style */
.rahhal-marker {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    font-size: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.map-popup-content {
    padding: 10px;
    text-align: right;
    font-family: 'Cairo', sans-serif;
    max-width: 192px;
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}

.popup-emoji {
    font-size: 18px;
}

.popup-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.popup-desc {
    margin: 6px 0 8px;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.5;
}

.clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popup-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.popup-links+.popup-links {
    margin-top: 8px;
}

.popup-btn {
    display: block;
    padding: 6px 8px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    transition: 0.2s;
}

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

.popup-btn.tiktok {
    background: #000;
    color: #fff;
}

.popup-btn:hover {
    opacity: 0.9;
}

/* --------------------------------------------------
   الكروت
-------------------------------------------------- */
#cards-section {
    padding: 10px 24px 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 4px 12px;
}

.section-header h2 {
    margin: 4px 0 6px;
    font-size: 24px;
    color: var(--text);
}

.eyebrow {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--primary);
}

.section-desc {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    max-width: 760px;
    font-size: 14px;
}

#cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    justify-content: center;
}

.empty-text {
    text-align: center;
    color: var(--muted);
    padding: 10px 0 6px;
    width: 100%;
}

.place-card {
    background: var(--surface);
    padding: 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.place-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* عنوان البطاقة */
.place-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0px;
}

.place-header.with-photo {
    flex-direction: column;
    align-items: stretch;
}

.place-image {
    width: 100%;
    height: 160px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background-color: var(--surface-soft);
}

.place-emoji-mini {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: white;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
}

.place-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.place-emoji {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-soft);
    border-radius: 8px;
    flex-shrink: 0;
}

.place-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin: 0;
}

.place-type {
    margin-top: 2px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    width: max-content;
    background: rgba(13, 107, 110, 0.1);
    color: var(--primary);
}

/* الوصف */
.place-desc {
    margin-top: 0px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    padding: 0;
    margin-bottom: 5px;
    cursor: pointer;
    text-align: right;
    display: inline-block;
    width: max-content;
}

.read-more-btn:hover {
    text-decoration: underline;
}

.place-meta {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.place-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.place-link {
    padding: 6px 10px;
    background: var(--surface-soft);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.place-link.link-gmaps {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.place-link.link-tiktok {
    background: #000;
    color: #fff;
    border-color: #000;
}

.place-link:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* الأزرار */
.place-actions {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.place-card.active {
    outline: 2px solid var(--primary);
    box-shadow: 0 14px 32px rgba(15, 75, 162, 0.18);
}

.distance-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--surface-soft);
    color: var(--text);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid var(--border);
}

.place-btn,
.action-btn {
    padding: 6px 10px;
    font-size: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-btn:hover {
    background: var(--surface-soft);
    border-color: var(--primary);
    color: var(--primary);
}

.action-btn.fav-btn {
    color: #ef4444;
}

.share-btn {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.share-btn:hover {
    opacity: 0.9;
    color: #fff;
}

/* Floating Map Button */
.floating-map-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 28px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1001;
    display: none;
    /* Hidden by default, show on scroll */
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease, opacity 0.3s ease;
}

.floating-map-btn.visible {
    display: flex;
    animation: bounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-map-btn:hover {
    transform: scale(1.1);
    background: #0f4ba2;
}

@keyframes bounceIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --------------------------------------------------
   Mobile Mini Bar
-------------------------------------------------- */
.mobile-mini-bar {
    position: fixed;
    top: 6px;
    left: 12px;
    right: 12px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    font-weight: 800;
    color: var(--text);
    z-index: 35;
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-mini-bar[aria-hidden="false"] {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.mini-site {
    color: var(--primary);
    font-size: 13px;
}

.mini-city {
    font-size: 13px;
    color: var(--text);
}

/* --------------------------------------------------
   Responsive
-------------------------------------------------- */
@media (max-width: 900px) {
    .header-top {
        flex-direction: row;
        align-items: center;
        padding: 8px 12px;
        gap: 8px;
    }

    .site-branding-container {
        text-align: center;
        padding: 0;
    }

    .header-top .pill-btn {
        align-self: center;
    }

    .header-top .pill-btn {
        padding: 8px 10px;
        font-size: 14px;
    }

    .controls-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .search-item {
        grid-column: span 2;
    }

    .control-item {
        width: 100%;
    }

    .select-wrapper,
    .search-wrapper {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 820px) {
    body {
        padding-bottom: 20px;
    }
}

/* Dark Mode Class Support */
body.dark-mode {
    --bg: #0f172a;
    --surface: #1e293b;
    --surface-soft: #334155;
    --text: #f8fafc;
    --muted: #94a3b8;
    --border: #334155;
    --primary: #60a5fa;
    --accent: #fbbf24;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {

    .mobile-nav,
    #mobile-mini-bar {
        display: none !important;
    }
}

/* --------------------------------------------------
   Landing Page
-------------------------------------------------- */
.landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f4ba2 0%, #1e293b 100%);
    color: #fff;
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

.landing-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.landing-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
}

.landing-logo {
    font-size: 80px;
    margin-bottom: 10px;
    display: inline-block;
    animation: float 4s ease-in-out infinite;
}

.landing-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
}

.landing-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    line-height: 1.6;
}

.landing-app-promo {
    margin-top: 10px;
}
.modern-appstore-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(145deg, #0f0f11, #1a1a1f);
    padding: 10px 24px;
    border-radius: 14px;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease;
    text-align: right;
    direction: ltr;
}

.modern-appstore-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    background: linear-gradient(145deg, #131316, #202026);
}

.modern-appstore-btn:active {
    transform: translateY(2px) scale(0.98);
}

.glow-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modern-appstore-btn:hover .glow-effect {
    opacity: 1;
    animation: rotateGlow 4s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.apple-logo {
    fill: #ffffff;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    z-index: 1;
}

.modern-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    z-index: 1;
}

.modern-btn-sub {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.2;
    letter-spacing: 0.1px;
}

.modern-btn-main {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.3px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}


.landing-cities-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.city-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #fff;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.city-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.2), transparent 70%);
    opacity: 0;
    transition: 0.4s;
    border-radius: 20px;
    z-index: -1;
}

.city-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.city-card:hover::before {
    opacity: 1;
}

.city-card .city-name {
    font-size: 20px;
    font-weight: 700;
}

.city-card .city-country {
    font-size: 14px;
    opacity: 0.6;
}

.landing-footer {
    margin-top: 40px;
    padding-bottom: 40px;
    font-size: 14px;
    opacity: 0.7;
}

.landing-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.landing-footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.landing-footer-links a:hover {
    color: #fbbf24;
    text-decoration: underline;
}

.footer-sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

.footer-email {
    margin-bottom: 10px;
}

.footer-email a {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-email a:hover {
    color: #fcd34d;
    text-decoration: underline;
}

.loading-spinner {
    grid-column: 1 / -1;
    padding: 40px;
    font-size: 16px;
    opacity: 0.7;
}

/* --------------------------------------------------
   Animations
-------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.landing-hero>* {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.landing-title {
    animation-delay: 0.3s;
}

.landing-subtitle {
    animation-delay: 0.5s;
}

.landing-app-promo {
    animation-delay: 0.7s;
}

.landing-cities-section {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s backwards;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .landing-title {
        font-size: 32px;
    }

    .landing-subtitle {
        font-size: 16px;
    }

    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .city-card {
        padding: 20px 10px;
    }

    .city-card .city-name {
        font-size: 18px;
    }
}

.landing-page::-webkit-scrollbar {
    width: 8px;
}

.landing-page::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.landing-page::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.landing-page::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* --------------------------------------------------
   Demo Mode Styles
-------------------------------------------------- */

/* Promo Card in List */
.place-card.promo-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    border: 2px dashed var(--primary);
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.place-card.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(15, 75, 162, 0.15);
}

.promo-icon {
    font-size: 50px;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.place-card.promo-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: var(--primary);
}

.place-card.promo-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Restricted Map Popup */
.map-popup-content.restricted {
    text-align: center;
    padding: 15px 10px;
}

.restricted-notice {
    background: #fff9eb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 10px;
    margin: 10px 0;
}

.restricted-notice p {
    margin: 0;
    font-weight: 700;
    color: #92400e;
    font-size: 13px;
}

.restricted-notice .small {
    font-weight: 400;
    font-size: 11px;
    margin-top: 5px;
    color: #b45309;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* .app-download-btn.disabled — removed, button is now active */

/* Premium Marker Highlight */
.rahhal-marker.premium {
    border: 2px solid #22c55e !important;
    /* جذاب أخضر لون */
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.4), 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    animation: markerPulse 2s infinite;
}

@keyframes markerPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4), 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0), 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0), 0 4px 10px rgba(0, 0, 0, 0.2);
    }
}