﻿/* =====================================
   Mobile Layout (GIS)
   فقط روی موبایل اعمال می‌شود
===================================== */

@media (max-width: 991px) {

    /* هدر کوتاه */
    .site-header {
        height: 64px;
        padding: 0 14px;
    }

    .header-nav,
    .desktop-menu {
        display: none !important;
    }

    /* صفحه */
    .home-page {
        height: calc(100vh - 64px);
        position: relative;
        overflow: hidden;
    }

    /* سایدبار دسکتاپ حذف */
    .sidebar {
        display: none !important;
    }

    /* نقشه تمام صفحه */
    .map-container,
    #map {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    /* کنترل‌های نقشه */
    .map-controls {
        top: 80px;
        left: 12px;
    }

    /* دکمه لایه */
    .layer-toggle {
        bottom: 110px;
        left: 12px;
    }

    /* فاصله از ناچ آیفون */
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ===========================
   Mobile Drawer
=========================== */

.mobile-menu-btn {
    display: none;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.45);
    opacity: 0;
    visibility: hidden;
    transition: .25s;
    z-index: 998;
}

    .mobile-overlay.show {
        opacity: 1;
        visibility: visible;
    }

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 88%;
    max-width: 340px;
    height: 100vh;
    background: #fff;
    transform: translateX(100%);
    transition: .3s ease;
    z-index: 999;
    overflow-y: auto;
    padding: 16px;
    box-shadow: -12px 0 30px rgba(0,0,0,.18);
}

    .mobile-drawer.open {
        transform: translateX(0);
    }

@media (max-width:991px) {

    .mobile-menu-btn {
        display: flex;
        width: 42px;
        height: 42px;
        border: none;
        border-radius: 12px;
        background: #fff;
        align-items: center;
        justify-content: center;
    }

    .desktop-sidebar {
        display: none !important;
    }

    .map-container {
        width: 100%;
    }

    .home-page {
        height: calc(100vh - 64px);
    }

    body.no-scroll {
        overflow: hidden;
    }
}

@media (min-width:992px) {

    .mobile-drawer,
    .mobile-overlay,
    .mobile-menu-btn {
        display: none !important;
    }
}

/* ===========================
   Bottom Sheet
=========================== */

.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -240px;
    background: #fff;
    border-radius: 22px 22px 0 0;
    padding: 16px;
    transition: .3s ease;
    z-index: 997;
    box-shadow: 0 -10px 30px rgba(0,0,0,.18);
}

    .bottom-sheet.show {
        bottom: 0;
    }

.sheet-handle {
    width: 48px;
    height: 5px;
    border-radius: 99px;
    background: #D1D5DB;
    margin: 0 auto 14px;
}

.sheet-title {
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
}

.sheet-subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: #64748B;
}

.sheet-address {
    margin: 12px 0;
    font-size: 13px;
    color: #475569;
    line-height: 1.8;
}

.sheet-route {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 12px;
    background: #2563EB;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}
