/* =========================================================
   mybnd - Glass UI
   طراحی شیشه‌ای (Glassmorphism) با پایه‌ی نارنجی برند
   ========================================================= */

:root {
    /* رنگ‌ها */
    --brand: #ea580c;
    --brand-strong: #c2410c;
    --brand-deep: #9a3412;
    --brand-soft: #ffedd5;
    --accent: #1d4ed8;
    --accent-soft: #dbeafe;
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #475569;
    --line: rgba(15, 23, 42, 0.08);

    /* شیشه */
    --glass: rgba(255, 255, 255, 0.55);
    --glass-strong: rgba(255, 255, 255, 0.74);
    --glass-soft: rgba(255, 255, 255, 0.38);
    --glass-border: rgba(255, 255, 255, 0.75);
    --glass-blur: 18px;
    --shadow-lg: 0 24px 60px -24px rgba(15, 23, 42, 0.45);
    --shadow-md: 0 14px 34px -18px rgba(15, 23, 42, 0.4);
    --shadow-sm: 0 6px 18px -10px rgba(15, 23, 42, 0.35);

    /* هندسه */
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --header-h: 76px;

    /* حرکت */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --dur: 220ms;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Vazirmatn', 'Vazir', Tahoma, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    min-height: 100dvh;
    overflow: hidden;
    overscroll-behavior-y: contain;
    background:
        radial-gradient(1100px 620px at 88% -12%, #fed7aa 0%, rgba(254, 215, 170, 0) 62%),
        radial-gradient(900px 560px at 4% 4%, #bfdbfe 0%, rgba(191, 219, 254, 0) 58%),
        radial-gradient(900px 640px at 46% 112%, #fecdd3 0%, rgba(254, 205, 211, 0) 62%),
        linear-gradient(160deg, #fff7ed 0%, #eef2ff 52%, #fdf2f8 100%);
    background-attachment: fixed;
}

body::before,
body::after {
    content: '';
    position: fixed;
    z-index: 0;
    border-radius: 50%;
    filter: blur(10px);
    pointer-events: none;
}

body::before {
    width: 46vmax;
    height: 46vmax;
    top: -18vmax;
    right: -14vmax;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.34), transparent 68%);
}

body::after {
    width: 40vmax;
    height: 40vmax;
    bottom: -16vmax;
    left: -12vmax;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.3), transparent 68%);
}

::selection {
    background: rgba(234, 88, 12, 0.25);
    color: var(--ink);
}

:where(a, button, input, textarea, select):focus-visible {
    outline: 3px solid rgba(234, 88, 12, 0.55);
    outline-offset: 2px;
}

button {
    font-family: inherit;
}

img {
    max-width: 100%;
}

/* =========================================================
   هدر
   ========================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 10px clamp(10px, 2vw, 24px);
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.header * {
    color: var(--ink);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 10px 12px;
    border-radius: var(--radius-lg);
    background: var(--glass-strong);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(var(--glass-blur)) saturate(170%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(170%);
}

/* برند */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex: 0 0 auto;
    border-radius: 14px;
    padding: 2px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 14px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(255, 237, 213, 0.75));
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
    padding: 5px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand-text strong {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--ink);
}

.brand-text small {
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
}

/* جستجو */
.search-section {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
}

.search-container {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 440px;
}

.search-box {
    width: 100%;
    height: 48px;
    padding: 0 52px 0 46px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.82);
    font-family: inherit;
    font-size: 16px;
    color: var(--ink);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease),
        border-color var(--dur) var(--ease);
}

.search-box::placeholder {
    color: #64748b;
    opacity: 1;
}

.search-box:hover {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-sm);
}

.search-box:focus {
    outline: none;
    background: #fff;
    border-color: rgba(234, 88, 12, 0.45);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.16), var(--shadow-sm);
}

.search-box::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.search-logo {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    object-fit: contain;
    opacity: 0.9;
    pointer-events: none;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-strong);
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

/* شمارنده / اکشن‌های هدر */
.header-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.business-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    color: var(--brand-deep);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    background: rgba(255, 237, 213, 0.72);
    border: 1px solid rgba(234, 88, 12, 0.18);
    border-radius: 999px;
    transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.count-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.16);
}

.business-count:hover {
    background: rgba(255, 237, 213, 0.95);
}

.account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: var(--ink);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
        color var(--dur) var(--ease);
}

.account-link:hover {
    background: #fff;
    color: var(--brand-strong);
    transform: translateY(-1px);
}

.hamburger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.75);
    color: var(--ink);
    font-size: 19px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}

.hamburger-btn:hover {
    background: #fff;
}

.hamburger-btn:active {
    transform: scale(0.95);
}

/* منوی دسکتاپ */
.main-menu {
    display: none;
    flex: 0 0 auto;
}

.main-menu ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.main-menu a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 13px;
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
        transform var(--dur) var(--ease);
}

.main-menu a:hover {
    background: rgba(255, 255, 255, 0.75);
    color: var(--ink);
}

.main-menu a.is-active {
    background: rgba(255, 237, 213, 0.85);
    color: var(--brand-deep);
}

.main-menu a.nav-cta {
    margin-inline-start: 6px;
    padding: 0 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-strong), var(--brand-deep));
    box-shadow: 0 10px 22px -12px rgba(154, 52, 18, 0.9);
}

.main-menu a.nav-cta:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    transform: translateY(-1px);
}

/* =========================================================
   منوی موبایل
   ========================================================= */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -110%;
    width: min(330px, 88vw);
    height: 100dvh;
    padding: 76px 18px 24px;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.78);
    border-left: 1px solid var(--glass-border);
    box-shadow: -24px 0 60px -20px rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(26px) saturate(180%);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    transition: right 320ms var(--ease);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-sm);
    transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.mobile-menu a:hover {
    background: #fff;
    transform: translateX(-4px);
}

.mobile-menu i {
    width: 22px;
    color: var(--brand-strong);
    font-size: 17px;
    text-align: center;
}

.mobile-menu .app-download {
    margin-top: 14px;
}

.mobile-menu .app-download a,
.mobile-menu > a.app-download {
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-strong), var(--brand-deep));
    border-color: transparent;
    font-weight: 700;
}

.mobile-menu .app-download i {
    color: #fff;
}

.close-menu {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink);
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.close-menu:hover {
    background: #fff;
    transform: rotate(90deg);
}

/* پوشش تیره پشت منوی موبایل */
body:has(.mobile-menu.active) #map-container::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 800;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* =========================================================
   نقشه
   ========================================================= */

#map-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    z-index: 0;
}

#offline-map {
    position: relative;
    width: 100%;
    height: 100%;
    background: #e2e8f0;
}

/* پیش‌نمایش سبک نقشهٔ منوجان — تا لحظهٔ آماده شدن WebGL دیده می‌شود */
#offline-map::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: url('/assets/map/manujan-preview-desktop.jpg') center / cover no-repeat;
    opacity: 1;
    transition: opacity 320ms ease;
    pointer-events: none;
}

#offline-map.is-ready::before {
    opacity: 0;
}

@media (max-width: 720px) {
    #offline-map::before {
        background-image: url('/assets/map/manujan-preview-mobile.jpg');
    }
}

/* محو شدن آرام لبه‌های نقشه برای خوانایی هدر و شیت */
#map-container::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 700;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 247, 237, 0.5) 0, rgba(255, 247, 237, 0) 130px),
        linear-gradient(0deg, rgba(15, 23, 42, 0.18) 0, rgba(15, 23, 42, 0) 170px);
}

/* پاپ‌آپ شیشه‌ای */
.leaflet-popup-content-wrapper {
    border-radius: var(--radius-md) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg) !important;
    color: var(--ink);
}

.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.92) !important;
}

.business-popup {
    min-width: 160px;
    direction: rtl;
    font-family: inherit;
}

.business-popup h3 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--ink);
}

.business-popup p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.business-popup .rating {
    margin-top: 8px;
    font-size: 13px;
    color: var(--brand-deep);
    font-weight: 700;
}

/* مارکر کسب‌وکار (فقط در زوم نزدیک) */
.biz-marker-wrap {
    width: 0;
    height: 0;
    background: none;
    border: none;
}

.biz-marker {
    position: absolute;
    left: -70px;
    top: -19px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 140px;
}

.biz-marker-badge {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 5px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid var(--brand);
    box-shadow: 0 7px 16px -5px rgba(15, 23, 42, 0.5);
    transition: transform 0.15s ease;
}

.biz-marker-wrap:hover .biz-marker-badge {
    transform: scale(1.12);
}

.biz-marker-wrap.is-open .biz-marker-badge {
    border-color: #16a34a;
}

.biz-marker-wrap.is-closed .biz-marker-badge {
    border-color: #dc2626;
}

.biz-marker-badge svg {
    display: block;
    width: 100%;
    height: 100%;
}

.biz-marker-name {
    max-width: 136px;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 10px -6px rgba(15, 23, 42, 0.55);
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* در زوم‌های پایین فقط آیکن دیده می‌شود؛ نام از زوم ۱۶ به بالا */
.biz-marker-wrap.is-compact .biz-marker-name {
    display: none;
}

/* برچسب‌های هم‌پوشان پنهان می‌مانند و فقط با hover نمایان می‌شوند */
.biz-marker-wrap.is-label-hidden .biz-marker-name {
    display: none;
}

.biz-marker-wrap:hover {
    z-index: 4;
}

.biz-marker-wrap.is-label-hidden:hover .biz-marker-name {
    display: block;
}

/* خوشهٔ کسب‌وکارها (مثل گوگل‌مپ/نشان) */
.biz-cluster {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--cluster-size, 42px);
    height: var(--cluster-size, 42px);
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    border: 3px solid rgba(255, 255, 255, 0.94);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.6), 0 0 0 4px rgba(13, 148, 136, 0.16);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.biz-cluster-wrap:hover .biz-cluster {
    transform: translate(-50%, -50%) scale(1.08);
}

.biz-cluster-crown {
    position: absolute;
    top: -5px;
    inset-inline-end: -4px;
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: 1.5px solid #fff;
    color: #fff;
    font-size: 7.5px;
    box-shadow: 0 4px 10px -4px rgba(15, 23, 42, 0.7);
    pointer-events: none;
}

/* موقعیت کاربر */
.user-accuracy {
    position: relative;
    z-index: 1;
    border-radius: 50%;
    background: rgba(26, 115, 232, 0.14);
    border: 1px solid rgba(26, 115, 232, 0.38);
    box-shadow: 0 0 0 1px rgba(26, 115, 232, 0.08);
    pointer-events: none;
}

.user-location {
    z-index: 2;
    pointer-events: none;
}

.location-marker {
    position: relative;
    width: 24px;
    height: 24px;
}

.location-circle {
    position: absolute;
    z-index: 2;
    inset: 5px;
    background: #1a73e8;
    border: 2.5px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 6px rgba(26, 115, 232, 0.45), 0 0 0 1px rgba(26, 115, 232, 0.25);
}

.location-pulse {
    position: absolute;
    z-index: 1;
    inset: 3px;
    border-radius: 50%;
    background: rgba(26, 115, 232, 0.38);
    animation: locationPulse 2.4s ease-out infinite;
}

.location-pulse.is-second {
    animation-delay: 1.2s;
}

@keyframes locationPulse {
    0% { transform: scale(0.5); opacity: 0.85; }
    75% { transform: scale(2.6); opacity: 0; }
    100% { transform: scale(2.6); opacity: 0; }
}

/* =========================================================
   کارت کسب‌وکار انتخاب‌شده روی نقشه
   ========================================================= */

.place-sheet {
    position: fixed;
    z-index: 1210;
    inset-inline: 50%;
    bottom: 64px;
    transform: translate(50%, calc(100% + 90px));
    width: min(560px, calc(100% - 24px));
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    box-shadow: 0 -20px 50px -24px rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    overflow: hidden;
    visibility: hidden;
    transition: transform 0.32s var(--ease), visibility 0.32s var(--ease);
}

.place-sheet.open {
    transform: translate(50%, 0);
    visibility: visible;
}

.place-sheet-close {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink-soft);
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 6px 16px -8px rgba(15, 23, 42, 0.6);
}

.place-gallery {
    display: flex;
    gap: 3px;
    height: 122px;
    background: #e2e8f0;
}

.place-gallery[hidden] {
    display: none;
}

.place-gallery[hidden] + .place-body .place-head {
    padding-inline-start: 42px;
}

.place-gallery img {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    object-fit: cover;
    display: block;
}

.place-body {
    padding: 14px 18px 16px;
}

.place-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.place-head h2 {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.place-more {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11.5px;
    font-weight: 700;
}

.place-more i {
    font-size: 9px;
}

.place-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 3px;
    font-size: 12.5px;
    color: var(--muted);
}

.place-rating {
    color: #b45309;
    font-weight: 700;
}

.place-address {
    margin-top: 7px;
    font-size: 12.5px;
    color: var(--ink-soft);
    line-height: 1.8;
}

.place-address[hidden] {
    display: none;
}

.place-actions {
    display: flex;
    gap: 6px;
    margin-top: 13px;
}

.place-actions > * {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 9px 4px 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--ink-soft);
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease);
}

.place-actions > *[hidden] {
    display: none;
}

.place-actions > * i {
    font-size: 16px;
    color: var(--brand-strong);
}

.place-actions > *:hover {
    background: #fff;
    transform: translateY(-1px);
}

.place-actions .is-active {
    background: var(--brand-soft);
    border-color: rgba(234, 88, 12, 0.25);
    color: var(--brand-deep);
}

.place-actions .is-active i {
    color: var(--brand-deep);
}

/* =========================================================
   دکمه GPS
   ========================================================= */

.gps-control {
    position: absolute;
    bottom: 104px;
    right: 18px;
    z-index: 850;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--brand-strong);
    font-size: 19px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px) saturate(170%);
    -webkit-backdrop-filter: blur(16px) saturate(170%);
    transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}

.gps-control:hover {
    background: #fff;
    transform: translateY(-2px);
}

.gps-control:active {
    transform: scale(0.94);
}

.gps-control.is-loading {
    cursor: progress;
    opacity: 0.7;
}

.gps-control.is-loading i {
    animation: gpsWaiting 1s ease-in-out infinite;
}

.gps-control.is-active {
    background: #1a73e8;
    border-color: rgba(255, 255, 255, 0.95);
    color: #fff;
    box-shadow: 0 12px 26px -12px rgba(26, 115, 232, 0.8);
}

.gps-control.is-active:hover {
    background: #1765cc;
}

@keyframes gpsWaiting {
    0%, 100% { opacity: 0.45; transform: scale(0.92); }
    50% { opacity: 1; transform: scale(1.08); }
}

/* =========================================================
   شیت دسته‌بندی‌ها
   ========================================================= */

.back_swipeup {
    position: fixed;
    inset: 0;
    z-index: 940;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}

.back_swipeup.active {
    opacity: 1;
    visibility: visible;
}

.swipe-up-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 88dvh;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 -28px 70px -24px rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(30px) saturate(185%);
    -webkit-backdrop-filter: blur(30px) saturate(185%);
    transform: translateY(calc(100% - 64px));
    transition: transform 320ms var(--ease);
    will-change: transform;
}

.handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 28px;
    padding-top: 8px;
    cursor: grab;
    touch-action: none;
}

.handle::after {
    content: '';
    width: 48px;
    height: 5px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.24);
    transition: background var(--dur) var(--ease);
}

.handle:hover::after {
    background: rgba(15, 23, 42, 0.38);
}

.handle:focus-visible {
    outline: 3px solid rgba(234, 88, 12, 0.55);
    outline-offset: -4px;
    border-radius: 12px;
}

.handle:active {
    cursor: grabbing;
}

.menu-content {
    height: calc(100% - 28px);
    padding: 0 clamp(12px, 3vw, 26px) 22px;
    overflow: hidden;
    transition: opacity 180ms var(--ease);
}

/* در حالت بسته فقط دستگیره دیده شود */
.swipe-up-menu:not(.open) .menu-content {
    opacity: 0;
    pointer-events: none;
}

.categories-container {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.category-list {
    position: absolute;
    inset: 0;
    display: none;
    padding: 14px 2px 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    direction: rtl;
}

.category-list.active {
    display: block;
    animation: catPanelIn 260ms var(--ease) both;
}

@keyframes catPanelIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.category-list h3 {
    color: var(--ink);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.2px;
    margin: 0 4px 18px;
}

/* شبکه آیکون‌ها */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 6px;
    justify-items: center;
    padding: 2px 0 12px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.category-icon {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(74px, 21vw, 94px);
    height: clamp(74px, 21vw, 94px);
    border-radius: 26px;
    background: linear-gradient(158deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.5) 58%, rgba(255, 255, 255, 0.34) 100%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -10px 22px rgba(15, 23, 42, 0.04),
        0 12px 26px -14px rgba(15, 23, 42, 0.42);
    transition: transform 180ms var(--ease), box-shadow 180ms var(--ease),
        background 180ms var(--ease);
}

.category-icon svg {
    width: 62%;
    height: 62%;
    display: block;
    filter: drop-shadow(0 5px 10px rgba(15, 23, 42, 0.22));
    pointer-events: none;
}

.category-item:hover .category-icon {
    transform: translateY(-3px);
    background: linear-gradient(158deg, #fff 0%, rgba(255, 255, 255, 0.72) 100%);
    box-shadow:
        inset 0 1px 0 #fff,
        0 18px 32px -16px rgba(15, 23, 42, 0.5);
}

.category-item:active .category-icon {
    transform: scale(0.94);
}

.category-label {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ink);
    text-align: center;
    max-width: 100px;
    word-break: break-word;
    font-weight: 600;
}

.category-item.is-all .category-label {
    color: var(--brand-deep);
    font-weight: 800;
}

/* برچسب جدید */
.badge-new {
    position: absolute;
    top: -6px;
    left: -8px;
    z-index: 2;
    padding: 2px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ea580c, #b91c1c);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.7;
    box-shadow: 0 6px 14px -6px rgba(185, 28, 28, 0.75);
}

/* هدر زیردسته‌ها */
.sub-header {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 8px 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px) saturate(170%);
    -webkit-backdrop-filter: blur(14px) saturate(170%);
}

.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink);
    font-size: 15px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
        transform var(--dur) var(--ease);
}

.back-button:hover {
    background: var(--brand-soft);
    color: var(--brand-deep);
}

.back-button:active {
    transform: scale(0.94);
}

.sub-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.2px;
}

.empty-sub {
    margin: 8px 0;
    padding: 40px 16px;
    text-align: center;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.9;
    background: rgba(255, 255, 255, 0.5);
    border: 1px dashed rgba(15, 23, 42, 0.16);
    border-radius: var(--radius-md);
}

/* =========================================================
   toast
   ========================================================= */

.app-toast {
    position: fixed;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    z-index: 3000;
    transform: translateX(-50%) translateY(12px);
    max-width: min(90vw, 380px);
    padding: 11px 20px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
    box-shadow: 0 18px 40px -14px rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}

.app-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =========================================================
   اسکرول‌بار
   ========================================================= */

.category-list::-webkit-scrollbar,
.mobile-menu::-webkit-scrollbar {
    width: 5px;
}

.category-list::-webkit-scrollbar-thumb,
.mobile-menu::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.18);
    border-radius: 99px;
}

/* =========================================================
   ریسپانسیو
   ========================================================= */

@media (min-width: 420px) {
    .categories-grid {
        gap: 26px 10px;
    }

    .category-label {
        font-size: 14px;
        max-width: 106px;
    }
}

@media (max-width: 639px) {
    .brand-text {
        display: none;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
    }

    .header-inner {
        padding: 8px;
        gap: 8px;
        border-radius: 20px;
    }

    .search-container {
        max-width: none;
    }

    .search-box {
        height: 46px;
        padding-inline: 44px 42px;
        border-radius: 14px;
    }

    .hamburger-btn {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .header-meta {
        display: none;
    }

    .gps-control {
        bottom: 96px;
        right: 14px;
    }
}

@media (max-width: 899px) {
    .business-count {
        display: none;
    }
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 28px 12px;
    }

    .menu-content {
        padding-inline: 32px;
    }

    .swipe-up-menu {
        left: max(0px, calc((100vw - 1180px) / 2));
        right: max(0px, calc((100vw - 1180px) / 2));
    }
}

@media (min-width: 1080px) {
    .main-menu {
        display: block;
    }

    .hamburger-btn {
        display: none;
    }

    .header-inner {
        padding: 10px 16px;
        gap: 18px;
    }

    .search-section {
        justify-content: center;
    }

    .search-container {
        max-width: 420px;
    }

    .swipe-up-menu {
        height: min(62dvh, 600px);
    }

    .gps-control {
        bottom: 110px;
        right: 26px;
    }
}

@media (min-width: 1440px) {
    .categories-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* =========================================================
   دسترس‌پذیری: کاهش حرکت
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .location-pulse {
        animation: none;
        opacity: 0.3;
        transform: scale(1.9);
    }
}

/* =========================================================
   پنل نتایج جستجو
   ========================================================= */
.results-panel {
    position: fixed;
    z-index: 1200;
    inset-inline: 50%;
    bottom: 64px;
    transform: translate(50%, calc(100% + 64px));
    width: min(560px, calc(100% - 24px));
    max-height: min(62vh, calc(100dvh - 160px));
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    box-shadow: 0 -20px 50px -24px rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    transition: transform 0.32s var(--ease), visibility 0.32s var(--ease);
    visibility: hidden;
}

.results-panel.open {
    transform: translate(50%, 0);
    visibility: visible;
}

.results-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    flex: 0 0 auto;
}

.results-head strong {
    font-size: 15px;
    font-weight: 800;
}

.results-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-deep);
    background: var(--brand-soft);
    padding: 3px 9px;
    border-radius: 999px;
}

.results-close {
    margin-inline-start: auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink-soft);
    cursor: pointer;
    font-size: 14px;
}

.results-list {
    overflow-y: auto;
    padding: 12px 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
}

.result-card {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s var(--ease), box-shadow 0.2s var(--ease);
}

.result-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.result-thumb {
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
    border-radius: 11px;
    object-fit: cover;
    background: linear-gradient(135deg, #fed7aa, #dbeafe);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 20px;
}

.result-body {
    min-width: 0;
    flex: 1;
}

.result-body h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 4px;
    flex-wrap: wrap;
}

.result-meta .stars {
    color: #f59e0b;
    letter-spacing: 1px;
}

.result-address {
    font-size: 11.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.75;
    margin-top: 3px;
}

.results-empty {
    text-align: center;
    padding: 28px 16px;
    color: var(--muted);
    font-size: 13.5px;
}

.results-empty i {
    display: block;
    font-size: 26px;
    opacity: 0.35;
    margin-bottom: 10px;
}

/* جداکنندهٔ اماکن عمومی داخل پنل نتایج */
.results-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 2px 2px;
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
}

.results-section::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* کارت اماکن عمومی روی نقشه (kindهای بدون کسب‌وکار ثبت‌شده) */
.result-card--poi .result-thumb i {
    font-size: 22px;
}

.map-poi-popup .maplibregl-popup-content {
    direction: rtl;
    font-family: inherit;
    text-align: center;
    border-radius: 12px;
    padding: 9px 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.map-poi-popup strong {
    display: block;
    font-size: 13px;
    color: #0f172a;
}

.map-poi-popup span {
    font-size: 11.5px;
    color: #64748b;
}

@media (max-width: 640px) {
    .results-panel {
        width: calc(100% - 16px);
        border-radius: 20px;
        max-height: min(68vh, calc(100dvh - 150px));
    }
}

/* لینک داخل پاپ‌آپ نقشه */
.business-popup .popup-link {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 11px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--brand-strong), var(--brand-deep));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.business-popup .popup-link:hover {
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

/* ---------------- ساعت کاری ---------------- */
.place-hours {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--ink-soft);
}

.place-hours[hidden] {
    display: none;
}

.place-hours strong {
    font-weight: 800;
}

.place-hours.is-open strong {
    color: #15803d;
}

.place-hours.is-closed strong {
    color: #b91c1c;
}

.status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.18);
}

.place-hours.is-open .status-dot,
.tag-open .status-dot {
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
}

.place-hours.is-closed .status-dot,
.tag-closed .status-dot {
    background: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.result-open {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.8;
}

.result-open.is-open {
    background: #dcfce7;
    color: #15803d;
}

.result-open.is-closed {
    background: #fee2e2;
    color: #b91c1c;
}

/* =========================================================
   دارک مود شیشه‌ای
   ========================================================= */
:root[data-theme="dark"] {
    --brand: #fb923c;
    --brand-strong: #f97316;
    --brand-deep: #ea580c;
    --brand-soft: rgba(251, 146, 60, 0.16);
    --accent: #60a5fa;
    --accent-soft: rgba(96, 165, 250, 0.14);
    --ink: #f8fafc;
    --ink-soft: #cbd5e1;
    --muted: #94a3b8;
    --line: rgba(148, 163, 184, 0.16);

    --glass: rgba(15, 23, 42, 0.5);
    --glass-strong: rgba(9, 14, 26, 0.68);
    --glass-soft: rgba(15, 23, 42, 0.38);
    --glass-border: rgba(255, 255, 255, 0.12);

    --shadow-lg: 0 28px 70px -28px rgba(0, 0, 0, 0.9);
    --shadow-md: 0 18px 40px -24px rgba(0, 0, 0, 0.85);
    --shadow-sm: 0 10px 24px -16px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] body {
    background:
        radial-gradient(1100px 620px at 88% -12%, rgba(249, 115, 22, 0.18) 0%, rgba(249, 115, 22, 0) 62%),
        radial-gradient(900px 560px at 4% 4%, rgba(59, 130, 246, 0.16) 0%, rgba(59, 130, 246, 0) 58%),
        radial-gradient(900px 640px at 46% 112%, rgba(236, 72, 153, 0.12) 0%, rgba(236, 72, 153, 0) 62%),
        linear-gradient(160deg, #050810 0%, #0a1120 52%, #101827 100%);
}

[data-theme="dark"] body::before {
    background: radial-gradient(circle, rgba(249, 115, 22, 0.22), transparent 68%);
}

[data-theme="dark"] body::after {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 68%);
}

[data-theme="dark"] ::selection {
    background: rgba(251, 146, 60, 0.3);
    color: #fff;
}

/* هدر */
[data-theme="dark"] .header-inner {
    background: rgba(9, 14, 26, 0.7);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .brand-logo {
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.14), rgba(249, 115, 22, 0.12));
    border-color: rgba(255, 255, 255, 0.16);
}

[data-theme="dark"] .search-box {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .search-box::placeholder {
    color: #94a3b8;
}

[data-theme="dark"] .search-box:hover {
    background: rgba(15, 23, 42, 0.88);
}

[data-theme="dark"] .search-box:focus {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(251, 146, 60, 0.55);
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.14), var(--shadow-sm);
}

[data-theme="dark"] .business-count {
    color: #fdba74;
    background: rgba(249, 115, 22, 0.14);
    border-color: rgba(249, 115, 22, 0.26);
}

[data-theme="dark"] .business-count:hover {
    background: rgba(249, 115, 22, 0.22);
}

[data-theme="dark"] .account-link,
[data-theme="dark"] .hamburger-btn {
    background: rgba(15, 23, 42, 0.68);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--ink);
    box-shadow: 0 14px 30px -20px rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] .account-link:hover,
[data-theme="dark"] .hamburger-btn:hover {
    background: rgba(30, 41, 59, 0.92);
    color: #fdba74;
}

[data-theme="dark"] .main-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .main-menu a.is-active {
    background: rgba(249, 115, 22, 0.18);
    color: #fdba74;
}

/* منوی موبایل */
[data-theme="dark"] .mobile-menu {
    background: rgba(8, 13, 24, 0.84);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: -24px 0 60px -20px rgba(0, 0, 0, 0.85);
}

[data-theme="dark"] .mobile-menu a {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--ink);
    box-shadow: none;
}

[data-theme="dark"] .mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.11);
}

[data-theme="dark"] .mobile-menu .app-download a {
    background: linear-gradient(135deg, var(--brand-strong), var(--brand-deep));
    border-color: transparent;
    color: #fff;
}

[data-theme="dark"] .close-menu {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--ink);
}

[data-theme="dark"] .close-menu:hover {
    background: rgba(255, 255, 255, 0.13);
}

[data-theme="dark"] body:has(.mobile-menu.active) #map-container::before {
    background: rgba(0, 0, 0, 0.52);
}

/* نقشه */
[data-theme="dark"] #offline-map {
    background: #0b1220;
}

/* پیش‌نمایش نقشه در حالت شب هم مثل خود نقشه معکوس می‌شود */
[data-theme="dark"] #offline-map::before {
    filter: invert(1) hue-rotate(180deg) brightness(0.84) contrast(0.9) saturate(0.82);
}

[data-theme="dark"] #map-container #offline-map .maplibregl-canvas {
    filter: invert(1) hue-rotate(180deg) brightness(0.84) contrast(0.9) saturate(0.82);
}

[data-theme="dark"] #map-container::after {
    background:
        linear-gradient(180deg, rgba(5, 8, 16, 0.72) 0, rgba(5, 8, 16, 0) 130px),
        linear-gradient(0deg, rgba(5, 8, 16, 0.45) 0, rgba(5, 8, 16, 0) 190px);
}

[data-theme="dark"] .biz-marker-badge {
    background: rgba(9, 14, 26, 0.9);
    border-color: var(--brand);
    box-shadow: 0 7px 16px -5px rgba(0, 0, 0, 0.85);
}

[data-theme="dark"] .biz-marker-name {
    background: rgba(9, 14, 26, 0.88);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--ink);
}

[data-theme="dark"] .biz-cluster {
    border-color: rgba(9, 14, 26, 0.94);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.85), 0 0 0 4px rgba(13, 148, 136, 0.2);
}

[data-theme="dark"] .location-circle {
    border-color: #0b1220;
}

[data-theme="dark"] .user-accuracy {
    background: rgba(96, 165, 250, 0.16);
    border-color: rgba(147, 197, 253, 0.45);
    box-shadow: 0 0 0 1px rgba(147, 197, 253, 0.1);
}

[data-theme="dark"] .leaflet-popup-content-wrapper {
    background: rgba(9, 14, 26, 0.94) !important;
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--ink);
}

[data-theme="dark"] .leaflet-popup-tip {
    background: rgba(9, 14, 26, 0.94) !important;
}

[data-theme="dark"] .business-popup .rating {
    color: #fdba74;
}

/* کارت کسب‌وکار روی نقشه */
[data-theme="dark"] .place-sheet {
    background: rgba(9, 14, 26, 0.9);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 -20px 50px -24px rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] .place-sheet-close {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--ink-soft);
}

[data-theme="dark"] .place-gallery {
    background: #0b1220;
}

[data-theme="dark"] .place-more {
    background: rgba(96, 165, 250, 0.16);
    color: #93c5fd;
}

[data-theme="dark"] .place-rating {
    color: #fbbf24;
}

[data-theme="dark"] .place-actions > * {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--ink-soft);
}

[data-theme="dark"] .place-actions > *:hover {
    background: rgba(255, 255, 255, 0.11);
}

[data-theme="dark"] .place-actions .is-active {
    background: rgba(249, 115, 22, 0.18);
    border-color: rgba(249, 115, 22, 0.3);
    color: #fdba74;
}

[data-theme="dark"] .place-actions .is-active i {
    color: #fdba74;
}

[data-theme="dark"] .place-hours.is-open strong {
    color: #4ade80;
}

[data-theme="dark"] .place-hours.is-closed strong {
    color: #f87171;
}

/* دکمه‌های نقشه */
[data-theme="dark"] .gps-control {
    background: rgba(9, 14, 26, 0.8);
    border-color: rgba(255, 255, 255, 0.14);
    color: #fdba74;
    box-shadow: 0 16px 36px -22px rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] .gps-control:hover {
    background: rgba(30, 41, 59, 0.92);
}

[data-theme="dark"] .gps-control.is-active {
    background: #1a73e8;
    border-color: rgba(255, 255, 255, 0.24);
    color: #fff;
    box-shadow: 0 16px 36px -20px rgba(26, 115, 232, 0.9);
}

[data-theme="dark"] .gps-control.is-active:hover {
    background: #1765cc;
}

/* شیت دسته‌بندی‌ها */
[data-theme="dark"] .back_swipeup {
    background: rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .swipe-up-menu {
    background: rgba(8, 13, 24, 0.8);
    border-top-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 -28px 70px -24px rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] .handle::after {
    background: rgba(255, 255, 255, 0.32);
}

[data-theme="dark"] .handle:hover::after {
    background: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .category-list h3,
[data-theme="dark"] .category-label {
    color: var(--ink);
}

[data-theme="dark"] .category-icon {
    background: linear-gradient(158deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 58%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -10px 22px rgba(0, 0, 0, 0.3),
        0 12px 26px -14px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .category-item:hover .category-icon {
    background: linear-gradient(158deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 18px 32px -16px rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] .category-icon svg {
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.45));
}

[data-theme="dark"] .category-item.is-all .category-label {
    color: #fdba74;
}

[data-theme="dark"] .sub-header {
    background: rgba(15, 23, 42, 0.74);
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .back-button {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--ink);
}

[data-theme="dark"] .back-button:hover {
    background: rgba(249, 115, 22, 0.18);
    color: #fdba74;
}

[data-theme="dark"] .empty-sub {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--muted);
}

/* پنل نتایج */
[data-theme="dark"] .results-panel {
    background: rgba(9, 14, 26, 0.92);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 -20px 50px -24px rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] .results-count {
    color: #fdba74;
    background: rgba(249, 115, 22, 0.18);
}

[data-theme="dark"] .results-close {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--ink-soft);
}

[data-theme="dark"] .result-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .result-card:hover {
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] .result-thumb {
    background: linear-gradient(135deg, #7c2d12, #1e3a8a);
}

[data-theme="dark"] .result-meta .stars {
    color: #fbbf24;
}

[data-theme="dark"] .result-open.is-open {
    background: rgba(74, 222, 128, 0.14);
    color: #86efac;
}

[data-theme="dark"] .result-open.is-closed {
    background: rgba(248, 113, 113, 0.14);
    color: #fca5a5;
}

/* اسکرول‌بار */
[data-theme="dark"] .category-list::-webkit-scrollbar-thumb,
[data-theme="dark"] .mobile-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

