
.map-pro-wrapper {
    display: flex;
    height: calc(100dvh - 70px);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    background: #e2e8f0;
}


.map-pro-sidebar {
    width: 420px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 4px 0 25px rgba(0,0,0,0.08);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.map-pro-header {
    padding: 25px 20px 15px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.map-pro-header h2 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 800;
}

.map-pro-search {
    position: relative;
    margin-bottom: 15px;
}

.map-pro-search input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #f8fafc;
    transition: all 0.3s;
}

.map-pro-search input:focus {
    outline: none;
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.map-pro-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.map-custom-select-wrapper {
    position: relative;
    width: 100%;
}
.map-custom-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.3s;
}
.map-custom-select:hover {
    border-color: var(--accent);
}
.map-custom-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 100;
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.map-custom-options.show {
    display: flex;
}
.map-custom-option {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--text-muted);
    font-weight: 500;
}
.map-custom-option:hover {
    background: #f8fafc;
    color: var(--primary);
}
.map-custom-option.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent);
    font-weight: 700;
}


.map-pro-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8fafc;
}
.map-pro-list::-webkit-scrollbar { width: 6px; }
.map-pro-list::-webkit-scrollbar-track { background: transparent; }
.map-pro-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.poi-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    align-items: center;
    position: relative;
}
.poi-card:hover, .poi-card.active {
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(212,175,55,0.15);
    transform: translateY(-2px);
}
.poi-card.visited {
    border-color: #10b981;
    background: #ecfdf5;
}

.poi-card-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.poi-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.poi-card-type {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.poi-card.visited .poi-card-type { color: #10b981; }

.poi-card-title {
    font-size: 1rem;
    margin: 0 0 6px 0;
    color: var(--primary);
    line-height: 1.3;
    font-weight: 700;
}

.poi-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.poi-distance {
    font-size: 0.75rem;
    font-weight: 700;
    color: #3b82f6;
    margin-top: 8px;
    display: inline-block;
}


.map-pro-canvas-container {
    flex: 1;
    position: relative;
    height: 100%;
    overflow: hidden;
}
#dubaiInteractiveMap {
    width: 100%;
    height: 100%;
    z-index: 1;
}


.map-pro-controls {
    position: absolute;
    bottom: 30px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-fab-btn {
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--primary);
}
.map-fab-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}
.map-fab-btn.active {
    background: #10b981;
    color: white;
}

.gps-status-box {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}


.map-pro-mobile-toggle {
    display: none;
    position: absolute;
    bottom: 120px; 
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 1001;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}


.map-pro-marker { transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.map-pro-marker.active-marker { 
    transform: scale(1.4) translateY(-10px); 
    z-index: 9999 !important; 
    filter: drop-shadow(0 10px 15px rgba(212, 175, 55, 0.8));
}
.map-pro-marker.active-marker > div {
    border-color: var(--accent) !important;
    background: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.3) !important;
}
.map-pro-marker.active-marker span {
    background: var(--accent) !important;
}
.map-pro-marker.visited-marker { filter: hue-rotate(100deg) saturate(0.8); }


@media (max-width: 900px) {
    .map-pro-wrapper {
        flex-direction: column;
        height: calc(100dvh - 60px - var(--mobile-bottom-nav-height, 65px));
    }
    
    .map-pro-sidebar {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 75vh;
        transform: translateY(100%);
        border-radius: 24px 24px 0 0;
        z-index: 2000;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
    }
    
    .map-pro-sidebar.active {
        transform: translateY(0);
    }
    
    .map-pro-header {
        padding: 20px 20px 10px;
        border-radius: 24px 24px 0 0;
    }
    
    
    .map-pro-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: #cbd5e1;
        border-radius: 2px;
    }
    
    #closeMapListMobile {
        display: flex !important;
    }

    .map-pro-mobile-toggle {
        display: flex;
        bottom: calc(85px + env(safe-area-inset-bottom, 0px)); 
    }
    
    .map-pro-controls {
        bottom: calc(145px + env(safe-area-inset-bottom, 0px)); 
    }
}

@media (min-width: 901px) {
    .map-pro-mobile-toggle { display: none !important; }
}

.poi-card.partner {
    border: 2px solid var(--accent);
    background: linear-gradient(to right, #ffffff, rgba(212, 175, 55, 0.05));
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

.poi-card.partner:hover, .poi-card.partner.active {
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.25);
    transform: translateY(-2px);
}

.poi-card-partner-badge {
    font-size: 0.65rem;
    background: var(--accent);
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.map-pro-marker.partner-marker {
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.9));
    z-index: 900 !important;
}

.nav-top-right {
    position: absolute; top: 20px; right: 20px; z-index: 1000;
    background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px);
    color: white; padding: 15px 20px; border-radius: 16px;
    display: flex; align-items: center; gap: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
}
.nav-maneuver-icon { font-size: 2.2rem; }
.nav-maneuver-info { display: flex; flex-direction: column; }
.nav-maneuver-dist { font-size: 1.6rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 4px; }
.nav-maneuver-text { font-size: 0.95rem; color: #cbd5e1; font-weight: 500; }
.nav-steps-btn { background: rgba(255,255,255,0.1); border: none; color: white; padding: 12px; border-radius: 10px; cursor: pointer; transition: 0.2s; }
.nav-steps-btn:hover { background: rgba(255,255,255,0.2); }

.nav-bottom-right {
    position: absolute; bottom: 30px; right: 20px; z-index: 1000;
    display: flex; flex-direction: column; align-items: flex-end; gap: 15px;
}
.nav-fab-btn {
    width: 54px; height: 54px; border-radius: 50%; background: white; border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); font-size: 1.5rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: var(--primary);
    transition: transform 0.2s;
}
.nav-fab-btn:hover { transform: scale(1.05); }
.nav-stats-box {
    background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px);
    padding: 15px 20px; border-radius: 16px; display: flex; align-items: center; gap: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
}
.nav-stats-time { font-size: 1.5rem; font-weight: 800; color: #10b981; }
.nav-stats-dist { font-size: 1.1rem; color: #cbd5e1; font-weight: 500; }
.nav-stop-btn {
    background: #ef4444; color: white; border: none; padding: 10px 20px;
    border-radius: 10px; font-weight: bold; cursor: pointer; transition: 0.2s;
}
.nav-stop-btn:hover { background: #dc2626; }

.nav-left-panel {
    position: absolute; top: 20px; left: 20px; z-index: 1000;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    padding: 20px; border-radius: 16px; width: 300px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); border: 1px solid #e2e8f0;
}
.nav-left-title { font-weight: 800; color: var(--primary); margin-bottom: 15px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.nav-nearest-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e2e8f0; cursor: pointer; transition: 0.2s; }
.nav-nearest-item:hover { transform: translateX(5px); }
.nav-nearest-item:last-child { border-bottom: none; padding-bottom: 0; }
.nav-nearest-icon { font-size: 1.4rem; }
.nav-nearest-info { flex: 1; }
.nav-nearest-name { font-size: 0.9rem; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.nav-nearest-dist { font-size: 0.8rem; color: #3b82f6; font-weight: bold; }

.nav-steps-panel {
    position: absolute; top: 0; right: 0; width: 350px; height: 100%;
    background: white; z-index: 1001; transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: flex; flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
}
.nav-steps-panel.active { transform: translateX(0); }
.nav-steps-header { padding: 20px; background: var(--primary); color: white; display: flex; justify-content: space-between; align-items: center; }
.nav-steps-header h3 { margin: 0; font-size: 1.2rem; font-weight: 700; }
.nav-steps-header button { background: none; border: none; color: white; font-size: 1.8rem; cursor: pointer; line-height: 1; }
.nav-steps-list { flex: 1; overflow-y: auto; padding: 0; }
.nav-step-item { display: flex; gap: 15px; padding: 15px 20px; border-bottom: 1px solid #f1f5f9; align-items: center; }
.nav-step-icon { font-size: 1.5rem; width: 30px; text-align: center; }
.nav-step-info { flex: 1; }
.nav-step-text { font-size: 0.95rem; color: var(--primary); font-weight: 600; margin-bottom: 4px; }
.nav-step-dist { font-size: 0.85rem; color: #64748b; font-weight: bold; }

@media (max-width: 768px) {
    .nav-top-right { top: 10px; left: 10px; right: 10px; border-radius: 16px; padding: 12px 15px; }
    .nav-bottom-right { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 10px; right: 10px; flex-direction: row; justify-content: space-between; align-items: flex-end; }
    .nav-stats-box { flex: 1; justify-content: space-between; padding: 10px 15px; gap: 10px; margin-left: 10px; }
    .nav-stats-time { font-size: 1.2rem; }
    .nav-stats-dist { font-size: 0.9rem; }
    .nav-stop-btn { padding: 8px 15px; font-size: 0.9rem; }
    .nav-left-panel { display: none !important; }
    .nav-steps-panel { width: 100%; }
}