* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

    font-family: 'Vazirmatn', sans-serif;

}

body {

    height: 100vh;

    overflow: hidden;

    background: #f8fafc;

}

#map {

    height: 100vh;

    width: 100%;

}

/* HEADER */

.map-header {

    position: absolute;

    top: 15px;

    left: 15px;
    right: 15px;

    z-index: 1000;

    height: 65px;

    background: white;

    border-radius: 18px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 0 18px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .12);

}

.map-header h2 {

    font-size: 18px;

    color: #0f172a;

}

.header-btn {

    width: 42px;
    height: 42px;

    border: none;

    background: #f1f5f9;

    border-radius: 12px;

    cursor: pointer;

    font-size: 20px;

    color: #334155;

}

/* SEARCH */

.search-box {

    position: absolute;

    top: 95px;

    left: 15px;
    right: 15px;

    z-index: 1000;

    background: white;

    height: 58px;

    border-radius: 18px;

    display: flex;

    align-items: center;

    padding: 0 18px;

    gap: 10px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .1);

}

.search-box i {

    font-size: 18px;

    color: #64748b;

}

.search-box input {

    width: 100%;

    border: none;

    outline: none;

    font-size: 15px;

}

/* FILTERS */

.filters {

    position: absolute;

    top: 170px;

    left: 15px;
    right: 15px;

    display: flex;

    gap: 10px;

    overflow-x: auto;

    z-index: 1000;

    padding-bottom: 5px;

}

.filters::-webkit-scrollbar {

    display: none;

}

.filters button {

    border: none;

    background: white;

    padding: 10px 15px;

    border-radius: 30px;

    display: flex;

    align-items: center;

    gap: 8px;

    white-space: nowrap;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, .08);

    cursor: pointer;

    font-weight: 500;

}

/* GPS */

.gps-btn {

    width: 58px;

    height: 58px;

    border: none;

    border-radius: 50%;

    background: #fff;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 24px;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .15);

    cursor: pointer;

}

/* FILTER COLORS */

.filters button:nth-child(1) i {
    color: #16a34a;
}

/* ATM */

.filters button:nth-child(2) i {
    color: #f59e0b;
}

/* پارکینگ */

.filters button:nth-child(3) i {
    color: #dc2626;
}

/* سرویس */

.filters button:nth-child(4) i {
    color: #ec4899;
}

/* داروخانه */

.filters button:nth-child(5) i {
    color: #8b5cf6;
}

/* کافه */

.filters button:nth-child(6) i {
    color: #ea580c;
}

/* رستوران */

.filters button:nth-child(7) i {
    color: #2563eb;
}

/* پمپ بنزین */

.filters button:nth-child(8) i {
    color: #ef4444;
}

/* بیمارستان */

.filters button:nth-child(9) i {
    color: #7c3aed;
}

/* گردشگری */

/* ==========================
   دکمه شناور دسته بندی ها
========================== */

/* ==========================
   دکمه دسته بندی شناور
========================== */

.fab-btn {

    height: 56px;

    padding: 0 18px;

    border: none;

    border-radius: 18px;

    background: #fff;

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .15);

}

.floating-actions {

    position: absolute;

    top: -75px;

    left: 20px;
    right: 20px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    z-index: 5;

}

/* آیکون داخل دکمه */

.fab-btn i {

    font-size: 20px;

    color: #2563eb;

}

/* ==========================
   پنل پایین
========================== */

.category-sheet {

    position: fixed;

    left: 0;
    right: 0;

    bottom: -100%;

    background: white;

    border-radius: 25px 25px 0 0;

    padding: 20px;

    z-index: 10000;

    transition: .15s;

    max-height: 70vh;

    overflow: auto;

    box-shadow:
        0 -10px 30px rgba(0, 0, 0, .15);

}

.category-sheet.active {

    bottom: 0;

}

/* ==========================
   عنوان پنل
========================== */

.sheet-header {

    margin-bottom: 15px;

    text-align: center;

}

/* ==========================
   دسته بندی
========================== */

.category {

    margin-bottom: 12px;

}

/* سربرگ دسته */

.category-header {

    background: #f8fafc;

    padding: 14px;

    border-radius: 14px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    cursor: pointer;

}

/* سمت راست دسته */

.category-info {

    display: flex;

    align-items: center;

    gap: 10px;

}

/* آیکون دسته */

.category-info i {

    font-size: 20px;

    color: #2563eb;

}

/* زیر مجموعه ها */

.category-items {

    display: none;

    margin-top: 8px;

    padding-right: 10px;

}

/* نمایش زیرمجموعه */

.category-items.active {

    display: block;

}

/* آیتم زیرمجموعه */

.category-items div {

    background: #f1f5f9;

    padding: 12px;

    margin-top: 6px;

    border-radius: 10px;

    cursor: pointer;

}

/* ==========================
   پس زمینه پشت پنل
========================== */

.sheet-overlay {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, .25);

    backdrop-filter: blur(2px);

    opacity: 0;

    visibility: hidden;

    transition: .3s;

    z-index: 9998;

}

.sheet-overlay.active {

    opacity: 1;

    visibility: visible;

}

.icon-red {
    color: #ef4444 !important;
}

.icon-blue {
    color: #3b82f6 !important;
}

.icon-green {
    color: #22c55e !important;
}

.icon-purple {
    color: #a855f7 !important;
}

.icon-orange {
    color: #f59e0b !important;
}

.icon-pink {
    color: #ec4899 !important;
}

.icon-cyan {
    color: #06b6d4 !important;
}

.icon-emerald {
    color: #10b981 !important;
}

.icon-dark-green {
    color: #00b97c !important;
}

.icon-yellow {
    color: #ffee00 !important;
}

.icon-fuel {
    color: #059700 !important;
}

.icon-gas {
    color: #1c00b8 !important;
}

.icon-cafe {
    color: #0042f8 !important;
}




.place-actions {

    display: flex;

    gap: 10px;

}

.action-btn {

    flex: 1;

    height: 48px;

    border: none;

    border-radius: 16px;

    font-family: inherit;

    font-weight: 700;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 8px;

    cursor: pointer;

}

.route-btn {

    background: #2563eb;

    color: #fff;

}

.phone-btn {

    background: #22c55e;

    color: #fff;

}









.leaflet-marker-icon {

    transition:
        transform .25s ease;

}

.leaflet-marker-icon {

    transition:
        all .25s ease;

    transform-origin:
        bottom center;

}

.place-card {

    position: fixed;

    bottom: 16px;

    left: 16px;

    right: 16px;


    background: #fff;

    border-radius: 24px;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, .18);

    overflow: visible;

    z-index: 9999;

    transition: .35s ease;

    max-height: 110px;

}

.place-card.expanded {

    max-height: 70vh;

    overflow-y: visible;

    overflow-x: hidden;
    

}

.sheet-handle {

    width: 50px;
    height: 5px;

    background: #d1d5db;

    border-radius: 999px;

    margin: 10px auto;

    touch-action: none;

    cursor: grab;

}

.place-preview {

    display: flex;
    align-items: center;

    padding: 12px 16px;

    cursor: pointer;

    gap: 12px;

}

.place-preview img {

    width: 70px;
    height: 70px;

    border-radius: 16px;

    object-fit: cover;

}

.place-preview-content {

    flex: 1;

}

.place-preview-title {

    font-size: 15px;
    font-weight: 700;

}

.place-preview-sub {

    font-size: 12px;
    color: #6b7280;

    margin-top: 4px;

}

.place-cover {

    width: 100%;
    height: 220px;

    object-fit: cover;

}

.place-details {

    padding: 18px;

    padding-bottom: 90px;

}

.place-description {

    line-height: 2;

    color: #374151;

    font-size: 14px;

}

.place-actions {

    position: sticky;

    bottom: 0;

    left: 0;
    right: 0;

    display: flex;

    gap: 6px;

    padding: 5px;

    margin-top: 20px;

    background: #fff;

    border-top: 1px solid #e5e7eb;

    z-index: 20;

}

.action-btn {

    flex: 1;

    height: 48px;

    border: none;

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    font-family: inherit;

    cursor: pointer;

    font-size: 14px;

}

.route-btn {

    background: #2563eb;
    color: #fff;
    padding: 10PX;

}

.call-btn {

    background: #22c55e;
    color: #fff;
    padding: 10PX;

}

.gps-active {
    background: #1a73e8;
    color: #fff;
}

.leaflet-interactive {
    transition:
        all .8s linear;
}

.gps-pulse {

    width: 16px;
    height: 16px;

    background: #1a73e8;

    border-radius: 50%;

    position: relative;
}

.gps-pulse::after {

    content: "";

    position: absolute;

    inset: -10px;

    border-radius: 50%;

    border: 2px solid #1a73e8;

    animation: gpsPulse 2s infinite;

}

@keyframes gpsPulse {

    from {

        transform: scale(.6);
        opacity: 1;

    }

    to {

        transform: scale(2);
        opacity: 0;

    }

}

.user-location {

    width: 18px;
    height: 18px;

    background: #1a73e8;

    border: 3px solid #fff;

    border-radius: 50%;

    position: relative;

    box-shadow:
        0 0 10px rgba(26, 115, 232, .5);

}

.user-location-pulse {

    position: absolute;

    inset: -8px;

    border-radius: 50%;

    border: 2px solid #1a73e8;

    animation: userPulse 2s infinite;

}

@keyframes userPulse {

    0% {

        transform: scale(.5);
        opacity: 1;

    }

    100% {

        transform: scale(2);
        opacity: 0;

    }

}


.gps-btn.gps-click {

    background: #2563eb;

    color: #fff;

    transform: scale(.92);

}

.gps-btn.gps-click i {

    color: #fff;

}




















.place-details h3 {

    font-size: 20px;

    font-weight: 800;

    color: #111827;

    margin-bottom: 12px;

    display: flex;

    align-items: center;

    gap: 8px;

}

.place-description {

    line-height: 2;

    font-size: 14px;

    color: #64748b;

    margin-bottom: 16px;

}

.place-meta {

    display: flex;

    gap: 10px;

    margin-bottom: 15px;

    flex-wrap: wrap;

}

.meta-chip {

    background: #f3f4f6;

    padding: 8px 12px;

    border-radius: 999px;

    font-size: 12px;

    font-weight: 700;

    display: flex;

    align-items: center;

    gap: 6px;

}

.meta-chip i {

    color: #2563eb;

}

.place-actions {

    display: flex;

    gap: 10px;

    margin-top: 18px;

}

.action-btn {

    height: 50px;

    font-size: 14px;

    font-weight: 700;

    border: none;

    border-radius: 14px;

}


.place-card {

    transition:
        max-height .45s cubic-bezier(0.22, 1, 0.36, 1),
        transform .45s cubic-bezier(0.22, 1, 0.36, 1);
}

.place-card.expanded {

    transform: translateY(0);

}

.place-card:not(.expanded) {

    transform: translateY(0);

}

.sheet-arrow {

    transition: transform .35s ease;

}

.place-card.expanded .sheet-arrow {

    transform: rotate(180deg);

}

.route-info {

    position: absolute;

    top: 170px;

    left: 50%;

    transform: translateX(-50%);

    background: #fff;

    padding: 12px 18px;

    border-radius: 18px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .15);

    z-index: 9999;

    display: none;

    font-size: 14px;

    font-weight: 700;

}

.route-info.show {

    display: flex;

    gap: 15px;

    align-items: center;

}

.route-info i {

    color: #2563eb;

}

.destination-marker {

    width: 40px;
    height: 40px;

    border-radius: 50%;

    background: #ef4444;

    display: flex;

    justify-content: center;
    align-items: center;

    color: #fff;

    font-size: 20px;

    border: 3px solid #fff;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, .25);

}

.search-results {

    position: absolute;

    top: 160px;

    left: 15px;
    right: 15px;

    background: #fff;

    border-radius: 20px;

    max-height: 300px;

    overflow-y: auto;

    z-index: 9999;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .12);

    display: none;

}

.search-item {

    padding: 14px 16px;

    display: flex;

    align-items: center;

    gap: 12px;

    cursor: pointer;

    border-bottom: 1px solid #f1f5f9;

}

.search-item:last-child {

    border-bottom: none;

}

.search-item i {

    font-size: 18px;

    color: #2563eb;

}

.search-item-title {

    font-size: 14px;

    font-weight: 700;

}

.search-item-sub {

    font-size: 12px;

    color: #64748b;

    margin-top: 4px;

}

@media (max-height: 700px) {

    .place-card.expanded {

        max-height: 65vh;

    }

    .place-cover {

        height: 160px;

    }

    .place-preview img {

        width: 60px;
        height: 60px;

    }

    .place-details {

        padding: 14px;
        padding-bottom: 90px;

    }

    .place-preview-title {

        font-size: 14px;

    }

    .place-preview-sub {

        font-size: 11px;

    }

}

.bottom-actions {

    position: sticky;

    bottom: 0;

    display: flex;

    align-items: center;

    gap: 10px;

    background: #fff;

    padding: 15px;

    border-top: 1px solid #e5e7eb;

    z-index: 20;

}

.bottom-actions .place-actions {

    flex: 1;

    margin: 0;

}

.preview-nav-btn {

    width: 36px;
    height: 36px;

    border: none;

    border-radius: 50%;

    background: #f3f4f6;

    display: flex;

    justify-content: center;
    align-items: center;

    font-size: 18px;

    flex-shrink: 0;

    cursor: pointer;

}

@media (max-width:380px) {

    .place-actions {
        gap: 4px;
    }

    .action-btn {
        height: 44px;
        font-size: 13px;
    }

    .preview-nav-btn {
        width: 34px;
        height: 34px;
    }

}



.tea-logo{

    width:42px;
    height:42px;

    background:#f1f5f9;

    border-radius:12px;

    display:flex;

    align-items:center;
    justify-content:center;

    box-shadow:
    0 4px 15px rgba(0,0,0,.08);

}