﻿/**
 * Map Fullscreen Styles - تم دارک مطابق با استایل اصلی پروژه
 * طراحی مدرن و کاربرپسند
 */

/* ========== Variables (از style.css اصلی) ========== */
:root {
    /* رنگ‌های اصلی پروژه */
    --bg-primary: #131927;
    --bg-secondary: #1c253a;
    --bg-card: #26324f;
    --bg-card-hover: #303f63;
    --bg-input: #1c253a;
    --border-color: #3a4c78;
    --border-light: #43598c;
    --text-primary: #ebeef5;
    --text-secondary: #d6ddeb;
    --text-muted: #8498c4;
    --text-dim: #99a9ce;
    --accent-primary: #00a0aa;
    --accent-hover: #006970;
    --accent-secondary: #00c1ce;
    --accent-light: #d9fcff;
    --accent-gradient: linear-gradient(135deg, #00a0aa, #00c1ce);
    --orange: #ff6c00;
    --orange-light: #ffac71;
    --green: #00ba88;
    --red: #ed2e2e;
    --yellow: #f90;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(28, 37, 58, 0.9);
    --glass-border: rgba(58, 76, 120, 0.5);
}

/* ========== Base Reset ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'yekanBakh-Regular', sans-serif;
    direction: rtl;
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* ========== Map Container ========== */
#mapContainer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

#escapeRoomMap {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
}

/* رنگ‌بندی برای حالت دارک — همان فیلتر صفحه اتاق فرار */
.leaflet-container {
    background: var(--bg-primary) !important;
}

#escapeRoomMap .leaflet-tile-pane {
    filter: invert(100%) hue-rotate(180deg) brightness(0.92) contrast(0.95);
}

/* ========== Header ========== */
.map-header {
    position: fixed;
    top: 16px;
    right: 16px;
    left: 16px;
    height: 56px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 1000;
    gap: 12px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 36px;
    width: auto;
}

.header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.map-title {
    font-size: 16px;
    font-family: 'yekanBakh-Bold';
    color: var(--text-primary);
}

.room-count {
    font-size: 12px;
    font-family: 'yekanBakh-Regular';
    color: var(--text-muted);
}

.room-count span {
    color: var(--accent-primary);
    font-family: 'yekanBakh-Bold';
}

.btn-close-map {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s linear;
}

.btn-close-map:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

.btn-close-map span {
    font-size: 18px;
    color: var(--text-muted);
}

/* ========== Filters Bar ========== */
.filters-bar {
    position: fixed;
    top: 88px;
    right: 16px;
    left: 16px;
    display: flex;
    flex-direction: row-reverse;
    direction: ltr;
    align-items: center;
    gap: 8px;
    z-index: 1200;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
    cursor: grab;
}

.filters-bar.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.filters-bar .chips-container,
.filters-bar .chip {
    direction: rtl;
}

.filters-bar::-webkit-scrollbar {
    display: none;
}

.chips-container {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.chips-divider {
    width: 2px;
    height: 32px;
    background: var(--border-color);
    border-radius: 1px;
    flex-shrink: 0;
}

/* ========== Chips ========== */
.chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    font-size: 14px;
    font-family: 'yekanBakh-Regular';
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s linear;
    white-space: nowrap;
}

.chip:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.chip.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.chip[data-type].active {
    background: var(--chip-color, var(--accent-primary));
    border-color: var(--chip-color, var(--accent-primary));
}

.chip-emoji {
    font-size: 16px;
}

.chip-count {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    font-family: 'yekanBakh-Bold';
    min-width: 20px;
    text-align: center;
}

.chip.active .chip-count {
    background: rgba(255, 255, 255, 0.25);
}

/* Chip Toggle */
.chip-toggle.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* Chip Select/Dropdown */
.chip-dropdown {
    position: relative;
}

.chip-select {
    padding-left: 10px;
}

.chip-select .icon-arrow-down-1 {
    font-size: 12px;
    transition: transform 0.2s;
}

.chip-dropdown.open .map-svg-caret,
.chip-dropdown.open .icon-keyboard_arrow_down {
    transform: rotate(180deg);
}

.chip-dropdown.open .chip-select {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
}

.chip-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    max-height: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 3000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chip-dropdown.open .chip-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-search {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-search input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'yekanBakh-Regular';
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.dropdown-search input::placeholder {
    color: var(--text-muted);
}

.dropdown-search input:focus {
    border-color: var(--accent-primary);
}

.dropdown-options {
    max-height: none;
    overflow-y: auto;
    padding: 8px;
    min-height: 0;
}

.dropdown-options::-webkit-scrollbar {
    width: 5px;
}

.dropdown-options::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 10px;
}

.dropdown-options::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.dropdown-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    text-align: right;
    background: none;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'yekanBakh-Regular';
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.dropdown-option:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.dropdown-option.active {
    background: rgba(0, 160, 170, 0.15);
    color: var(--accent-primary);
    font-family: 'yekanBakh-Bold';
}

/* ========== Map Controls ========== */
.map-controls {
    position: fixed;
    left: 16px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 998;
}

.control-btn {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s linear;
}

.control-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn span {
    font-size: 22px;
    color: var(--text-muted);
}

.control-btn:hover span {
    color: var(--accent-primary);
}

/* ========== Loading ========== */
.map-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(19, 25, 39, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 2000;
    transition: opacity 0.3s, visibility 0.3s;
}

.map-loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.map-loading span {
    font-size: 14px;
    font-family: 'yekanBakh-Regular';
    color: var(--text-muted);
}

/* ========== Legend ========== */
.map-legend {
    position: fixed;
    left: 16px;
    bottom: 160px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    z-index: 998;
    overflow: hidden;
    transition: all 0.3s;
}

.map-legend.collapsed {
    width: 48px;
    height: 48px;
}

.map-legend.collapsed .legend-content {
    opacity: 0;
    visibility: hidden;
}

.legend-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legend-toggle span {
    font-size: 22px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.legend-toggle:hover span {
    color: var(--accent-primary);
}

.legend-content {
    padding: 56px 16px 16px;
    min-width: 160px;
    transition: opacity 0.2s, visibility 0.2s;
}

.legend-content h4 {
    font-size: 12px;
    font-family: 'yekanBakh-Bold';
    color: var(--text-muted);
    margin-bottom: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 12px;
    font-family: 'yekanBakh-Regular';
    color: var(--text-secondary);
}

.legend-marker {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* ========== Mobile Drawer ========== */
.mobile-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
    border-radius: 24px 24px 0 0;
    border: 1px solid var(--border-color);
    border-bottom: none;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
    z-index: 1100;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 85vh;
    display: none;
}

.mobile-drawer.open {
    transform: translateY(0);
}

.drawer-handle {
    width: 40px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 12px auto;
}

.drawer-content {
    padding: 0 20px 20px;
    max-height: calc(85vh - 28px);
    overflow-y: auto;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.drawer-header h3 {
    font-size: 16px;
    font-family: 'yekanBakh-Bold';
    color: var(--text-primary);
}

.btn-reset {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 12px;
    font-family: 'yekanBakh-Regular';
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

.btn-reset span[class^="icon-"],
.btn-reset span[class*=" icon-"] {
    font-size: 14px;
    font-family: 'icomoon' !important;
}

.drawer-section {
    margin-bottom: 20px;
}

.drawer-section h4 {
    font-size: 12px;
    font-family: 'yekanBakh-Bold';
    color: var(--text-muted);
    margin-bottom: 12px;
}

.drawer-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.drawer-chips .chip {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 76px;
    padding: 10px 6px;
    border-radius: 14px;
    white-space: normal;
    text-align: center;
    font-size: 11px;
    line-height: 1.35;
}

.drawer-chips .chip-emoji {
    font-size: 22px;
    line-height: 1;
}

.drawer-chips .chip-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.drawer-select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    font-family: 'yekanBakh-Regular';
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238498c4' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
}

.drawer-select:focus {
    border-color: var(--accent-primary);
}

.drawer-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.drawer-toggles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.toggle-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 8px;
    min-height: 84px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: all 0.2s;
    position: relative;
}

.toggle-item:hover {
    border-color: var(--border-light);
}

.toggle-item input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.toggle-item:has(input:checked) {
    border-color: var(--accent-primary);
    background: rgba(0, 160, 170, 0.18);
}

.toggle-item:has(input:checked) .toggle-label,
.toggle-item:has(input:checked) .toggle-label span[class^="icon-"] {
    color: var(--accent-light);
}

.toggle-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
    font-family: 'yekanBakh-Regular';
    color: var(--text-secondary);
}

.toggle-label span[class^="icon-"],
.toggle-label span[class*=" icon-"] {
    font-size: 18px;
    color: var(--text-muted);
    font-family: 'icomoon' !important;
}

.drawer-footer {
    padding: 16px 0 0;
    border-top: 1px solid var(--border-color);
}

.btn-apply {
    width: 100%;
    padding: 14px;
    background: var(--accent-primary);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'yekanBakh-Regular';
    color: white;
    cursor: pointer;
    transition: all 0.2s linear;
}

.btn-apply:hover {
    background: var(--accent-hover);
}

.btn-apply:active {
    transform: scale(0.98);
}

/* ========== Mobile Filter Button ========== */
.mobile-filter-btn {
    position: fixed;
    right: 16px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    background: var(--accent-primary);
    border: none;
    border-radius: 50%;
    box-shadow: 0 6px 25px rgba(0, 160, 170, 0.4);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.2s;
}

.mobile-filter-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.mobile-filter-btn:active {
    transform: scale(0.95);
}

.mobile-filter-btn span[class^="icon-"],
.mobile-filter-btn span[class*=" icon-"] {
    font-size: 22px;
    color: white;
    font-family: 'icomoon' !important;
}

.mobile-filter-label {
    display: none;
    color: white;
    font-family: 'yekanBakh-Regular';
    font-size: 10px;
    line-height: 1.2;
}

.filter-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--orange);
    color: #fff;
    font-size: 11px;
    font-family: 'yekanBakh-Bold';
    line-height: 18px;
    text-align: center;
}

/* ========== Marker Styles ========== */
.custom-marker-wrapper {
    background: transparent !important;
    border: none !important;
}

.map-svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: currentColor;
    stroke: none;
}

.map-svg-caret {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s;
}

.control-btn .map-svg {
    width: 22px;
    height: 22px;
    fill: #00c1ce;
}

.custom-marker {
    width: 46px;
    height: 46px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 4px rgba(0, 232, 255, 0.95)) drop-shadow(0 0 10px rgba(0, 193, 206, 0.75)) drop-shadow(0 0 2px rgba(255, 140, 0, 0.45));
    transition: transform 0.2s, filter 0.2s;
}

.custom-marker:hover {
    transform: scale(1.12);
}

.custom-marker.is-playground,
.custom-marker.is-playground:hover {
    filter: none;
    animation: none;
}

.custom-marker.is-playground.is-selected {
    filter: none;
    animation: map-pin-playground 1.2s ease-in-out infinite;
}

@keyframes map-pin-playground {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.custom-marker-wrapper.is-selected {
    z-index: 1000 !important;
}

@keyframes map-pin-selected {
    0%, 100% {
        filter: drop-shadow(0 0 5px #00e8ff) drop-shadow(0 0 12px rgba(0, 193, 206, 0.8)) drop-shadow(0 0 3px rgba(255, 140, 0, 0.55));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 10px #7af6ff) drop-shadow(0 0 22px rgba(0, 232, 255, 0.95)) drop-shadow(0 0 8px rgba(255, 120, 0, 0.9));
        transform: scale(1.08);
    }
}

.marker-emoji {
    display: block;
    transform: rotate(45deg);
    font-size: 18px;
    line-height: 1;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

.user-location-marker-wrapper {
    background: transparent !important;
    border: none !important;
}

.user-location-marker {
    width: 22px;
    height: 22px;
    background: #4285f4;
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(66, 133, 244, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(66, 133, 244, 0); }
}

/* ========== Popup Styles - مطابق با AZ-room-box ========== */
.leaflet-popup-content-wrapper {
    background: transparent !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0 !important;
    overflow: visible;
    box-shadow: none !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 280px !important;
    color: var(--text-primary);
}

.leaflet-popup-tip-container {
    display: none;
}

.leaflet-popup-close-button {
    color: var(--text-muted) !important;
    font-size: 18px !important;
    width: 24px !important;
    height: 24px !important;
    top: 12px !important;
    right: 12px !important;
    background: rgba(19, 25, 39, 0.85) !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    border: none !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.leaflet-popup-close-button:hover {
    color: var(--text-primary) !important;
    background: rgba(19, 25, 39, 0.95) !important;
}

/* کارت پاپ‌آپ - مشابه AZ-room-box */
.map-room-popup {
    font-family: 'yekanBakh-Regular', sans-serif;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    display: block;
    overflow: hidden;
}

.map-room-popup:hover {
    border-color: var(--accent-primary);
}

/* تصویر کارت */
.popup-room-img {
    position: relative;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
}

.popup-room-img::after {
    content: "";
    display: block;
    padding-bottom: 70%;
}

.popup-room-img-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-room-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.2s linear;
}

/* تگ‌های روی تصویر */
.popup-overlay-top {
    position: absolute;
    top: 6px;
    left: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.popup-room-age {
    font-size: 9px;
    color: #ffffff;
    font-family: 'yekanBakh-Bold';
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(100.08% 100.08% at 3.75% 11.25%, #fff 0%, rgba(255, 255, 255, 0) 100%), #ff4242;
}

.popup-room-tag {
    font-size: 9px;
    color: #131927;
    font-family: 'yekanBakh-Regular';
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 11px;
    background: radial-gradient(100.08% 100.08% at 3.75% 11.25%, #fff 0%, rgba(255, 255, 255, 0) 100%), #00a0aa;
    background-blend-mode: overlay, normal;
    backdrop-filter: blur(2px);
}

/* بدنه کارت */
.popup-room-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* عنوان اتاق */
.popup-room-title {
    font-size: 14px;
    color: var(--accent-secondary);
    font-family: 'yekanBakh-Bold';
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    margin: 0;
    line-height: 1.3;
}

/* جزئیات */
.popup-room-details {
    font-size: 11px;
    color: var(--text-dim);
    font-family: 'yekanBakh-Bold-En';
    display: flex;
    align-items: center;
    gap: 4px;
}

.popup-room-details span {
    font-size: 12px;
    color: var(--text-muted);
}

/* امتیاز و ستاره‌ها */
.popup-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.popup-rating-score {
    font-size: 12px;
    color: var(--yellow);
    font-family: 'yekanBakh-Bold';
    background: rgba(255, 153, 0, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
}

.popup-rating-count {
    font-size: 10px;
    color: var(--text-dim);
    font-family: 'yekanBakh-Bold-En';
}

.popup-stars {
    display: flex;
    align-items: center;
    gap: 1px;
}

.popup-stars span {
    font-size: 10px;
    color: var(--yellow);
}

/* دسته‌بندی‌ها (ژانر) */
.popup-room-categories {
    display: flex;
    align-items: center;
    gap: 3px;
    overflow-x: hidden;
}

.popup-room-category {
    font-size: 10px;
    color: #ffffff;
    font-family: 'yekanBakh-Regular';
    padding: 3px 6px;
    border-radius: 20px;
    background: var(--bg-secondary);
    white-space: nowrap;
}

/* قیمت */
.popup-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    margin-top: 2px;
}

.popup-old-price {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'yekanBakh-Regular';
    text-decoration: line-through;
}

.popup-discount-tag {
    font-size: 11px;
    color: #ffffff;
    font-family: 'yekanBakh-Regular';
    padding: 2px 6px;
    border-radius: 10px;
    background: #007a83;
}

.popup-room-price {
    font-size: 9px;
    color: #ffffff;
    font-family: 'yekanBakh-Medium';
    display: flex;
    align-items: center;
    gap: 3px;
}

.popup-room-price .prices {
    font-size: 14px;
    font-family: 'yekanBakh-Regular';
}

/* سانس خالی */
.popup-empty-sans {
    padding: 6px;
    border-radius: 6px;
    background: #4d66a0;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.popup-empty-sans span {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    background: var(--bg-card);
    font-size: 10px;
    font-family: 'yekanBakh-Bold';
}

.popup-empty-sans p {
    font-size: 10px;
    color: #ffffff;
    font-family: 'yekanBakh-Bold';
    margin: 0;
}

/* ========== Responsive Popup for Mobile ========== */
@media (max-width: 768px) {
    .leaflet-popup-content {
        width: 220px !important;
    }
    
    .map-room-popup {
        padding: 8px;
        border-radius: 10px;
    }
    
    .popup-room-img {
        border-radius: 8px;
        margin-bottom: 6px;
    }
    
    .popup-room-img::after {
        padding-bottom: 60%;
    }
    
    .popup-overlay-top {
        top: 4px;
        left: 4px;
        gap: 3px;
    }
    
    .popup-room-age {
        width: 18px;
        height: 18px;
        font-size: 8px;
    }
    
    .popup-room-tag {
        height: 18px;
        font-size: 8px;
        padding: 0 5px;
    }
    
    .popup-room-body {
        gap: 4px;
    }
    
    .popup-room-title {
        font-size: 12px;
    }
    
    .popup-room-details {
        font-size: 10px;
    }
    
    .popup-room-details span {
        font-size: 10px;
    }
    
    .popup-rating-row {
        gap: 4px;
    }
    
    .popup-rating-score {
        font-size: 10px;
        padding: 1px 4px;
    }
    
    .popup-rating-count {
        font-size: 9px;
    }
    
    .popup-stars span {
        font-size: 9px;
    }
    
    .popup-room-categories {
        gap: 2px;
    }
    
    .popup-room-category {
        font-size: 9px;
        padding: 2px 5px;
    }
    
    .popup-price-row {
        gap: 4px;
    }
    
    .popup-old-price {
        font-size: 10px;
    }
    
    .popup-discount-tag {
        font-size: 9px;
        padding: 1px 5px;
    }
    
    .popup-room-price {
        font-size: 8px;
    }
    
    .popup-room-price .prices {
        font-size: 12px;
    }
    
    .popup-empty-sans {
        padding: 5px;
        gap: 4px;
    }
    
    .popup-empty-sans span {
        width: 16px;
        height: 16px;
        font-size: 9px;
    }
    
    .popup-empty-sans p {
        font-size: 9px;
    }
    
    .leaflet-popup-close-button {
        width: 22px !important;
        height: 22px !important;
        font-size: 16px !important;
        top: 10px !important;
        right: 10px !important;
    }
}

/* دکمه مشاهده */
.popup-btn {
    display: block;
    width: 100%;
    padding: 8px 16px;
    background: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    border-radius: 6px;
    text-align: center;
    font-size: 12px;
    font-family: 'yekanBakh-Regular';
    color: white;
    text-decoration: none;
    transition: all 0.2s linear;
    margin-top: 6px;
}

.popup-btn:hover {
    background: var(--accent-hover);
    color: white;
}

/* ========== Cluster Styles ========== */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background: rgba(0, 160, 170, 0.2) !important;
    border-radius: 50% !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background: var(--accent-primary) !important;
    color: white !important;
    font-family: 'yekanBakh-Bold' !important;
    font-weight: normal !important;
    width: 72% !important;
    height: 72% !important;
    margin-left: 14% !important;
    margin-top: 14% !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1 !important;
}

/* ========== Leaflet Controls ========== */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: var(--shadow-md) !important;
    border-radius: 8px !important;
    overflow: hidden;
    background: transparent !important;
}

.leaflet-control-zoom a {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 18px !important;
    color: var(--text-muted) !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-bottom: none !important;
}

.leaflet-control-zoom a:hover {
    background: var(--bg-card-hover) !important;
    color: var(--accent-primary) !important;
}

.leaflet-control-zoom-in {
    border-radius: 8px 8px 0 0 !important;
}

.leaflet-control-zoom-out {
    border-radius: 0 0 8px 8px !important;
    border-bottom: 1px solid var(--border-color) !important;
}

/* Layer Control Styles - استایل کنترل لایه‌های نقشه */
.leaflet-control-layers {
    border: none !important;
    box-shadow: var(--shadow-md) !important;
    border-radius: 10px !important;
    background: transparent !important;
}

.leaflet-control-layers-toggle {
    width: 44px !important;
    height: 44px !important;
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    background-size: 24px 24px !important;
}

.leaflet-control-layers-toggle:hover {
    background-color: var(--bg-card-hover) !important;
    border-color: var(--accent-primary) !important;
}

.leaflet-control-layers-expanded {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    color: var(--text-primary) !important;
}

.leaflet-control-layers-base label,
.leaflet-control-layers-overlays label {
    font-family: 'yekanBakh-Regular' !important;
    font-size: 13px !important;
    color: var(--text-secondary) !important;
    padding: 6px 4px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    transition: all 0.2s !important;
}

.leaflet-control-layers-base label:hover,
.leaflet-control-layers-overlays label:hover {
    background: var(--bg-card-hover) !important;
    color: var(--text-primary) !important;
}

.leaflet-control-layers-base input,
.leaflet-control-layers-overlays input {
    accent-color: var(--accent-primary) !important;
    width: 16px !important;
    height: 16px !important;
}

.leaflet-control-layers-separator {
    border-top: 1px solid var(--border-color) !important;
    margin: 6px 0 !important;
}

.leaflet-control-attribution {
    background: rgba(19, 25, 39, 0.8) !important;
    color: var(--text-muted) !important;
    font-size: 10px !important;
    padding: 4px 8px !important;
}

.leaflet-control-attribution a {
    color: var(--accent-primary) !important;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .map-header {
        top: 8px;
        right: 8px;
        left: 8px;
        height: 52px;
        padding: 0 12px;
        border-radius: 16px;
    }

    .logo {
        height: 30px;
    }

    .map-title {
        font-size: 14px;
    }

    .filters-bar {
        display: flex;
        flex-direction: row-reverse;
        direction: ltr;
        top: 68px;
        right: 8px;
        left: 8px;
        padding: 0 0 6px;
        overflow-x: auto;
        overflow-y: hidden;
        align-items: center;
        gap: 8px;
        cursor: grab;
    }

    #typeChipWrapper,
    #filterChips,
    .chips-divider {
        display: flex;
        flex-shrink: 0;
    }

    #typeChips {
        width: 100%;
        direction: ltr;
        flex-direction: row-reverse;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scrollbar-width: none;
        padding: 2px 2px 8px;
        gap: 8px;
        cursor: grab;
    }

    #typeChips::-webkit-scrollbar {
        display: none;
    }

    #typeChips .chip {
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        min-width: 68px;
        max-width: 84px;
        min-height: 62px;
        height: auto;
        padding: 8px 6px 6px;
        border-radius: 14px;
        font-size: 10px;
        line-height: 1.25;
        white-space: normal;
        text-align: center;
        background: rgba(28, 37, 58, 0.94);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    #typeChips .chip-emoji {
        font-size: 20px;
        line-height: 1;
    }

    #typeChips .chip-text {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-width: 76px;
    }

    #typeChips .chip-count {
        display: none;
    }

    .mobile-filter-btn {
        display: none !important;
    }

    .mobile-drawer {
        display: flex;
    }

    .mobile-filter-btn {
        top: 68px;
        bottom: auto;
        left: 8px;
        right: auto;
        width: 62px;
        height: 62px;
        border-radius: 14px;
        flex-direction: column;
        gap: 2px;
        padding: 6px 4px;
    }

    .mobile-filter-label {
        display: block;
    }

    .mobile-drawer {
        flex-direction: column;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .drawer-content {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        max-height: calc(85vh - 28px);
    }

    .drawer-body {
        overflow-y: auto;
        flex: 1;
        min-height: 0;
        padding-bottom: 8px;
    }

    .drawer-footer {
        flex-shrink: 0;
        background: var(--bg-secondary);
        padding-bottom: 4px;
    }

    .custom-marker {
        width: 48px;
        height: 48px;
    }

    .marker-emoji {
        font-size: 18px;
    }

    /* دکمه‌های کنترل نقشه در موبایل */
    .map-controls {
        bottom: calc(16px + env(safe-area-inset-bottom));
        left: 12px;
        right: auto;
    }

    .control-btn {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }
    
    .control-btn span {
        font-size: 22px;
        color: var(--accent-light);
    }

    .map-legend {
        display: none;
    }

    .leaflet-popup-content {
        width: 220px !important;
    }
    
    /* مخفی کردن کنترل زوم leaflet در موبایل */
    .leaflet-control-zoom {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-filter-btn,
    .mobile-drawer {
        display: none !important;
    }
}

/* ========== Backdrop ========== */
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.drawer-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* ========== Hide Leaflet Attribution on Mobile ========== */
@media (max-width: 768px) {
    .leaflet-control-attribution {
        display: none;
    }
}

/* ========== Scrollbar Styles (مطابق با AZ-scrollbar) ========== */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: var(--text-muted);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card-hover);
    border-radius: 10px;
}

/* ========== Icon Font Support ========== */
[class^="icon-"], [class*=" icon-"] {
    font-family: 'icomoon' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== Marker Tooltip ========== */
.marker-tooltip {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    font-family: 'yekanBakh-Regular' !important;
    color: var(--text-secondary) !important;
    box-shadow: var(--shadow-md) !important;
}

.marker-tooltip::before {
    border-top-color: var(--border-color) !important;
}

.leaflet-tooltip-bottom::before {
    border-bottom-color: var(--border-color) !important;
}

/* ========== Marker click sheet — bottom of the screen ========== */
.map-marker-sheet {
    position: fixed;
    z-index: 1200;
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: min(440px, calc(100% - 32px));
    margin-inline: auto;
}

body.map-results-open .map-marker-sheet {
    right: auto;
    margin-inline: 0;
    width: min(440px, calc(100vw - 400px));
}

.map-marker-sheet[hidden] {
    display: none !important;
}

.map-marker-sheet .map-pin-card {
    box-shadow: var(--shadow-lg);
    background: #1c253a;
}

.map-marker-sheet .map-pin-card-img {
    height: 120px;
}

.map-marker-sheet-close {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(19, 25, 39, 0.85);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .map-marker-sheet,
    body.map-results-open .map-marker-sheet {
        left: 8px;
        right: 8px;
        bottom: 0;
        width: auto;
        margin: 0;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    }

    .map-marker-sheet .map-pin-card {
        border-radius: 16px;
    }

    body.map-results-open.marker-sheet-open .map-results {
        bottom: 132px;
        height: calc(42vh - 24px);
    }
}

/* ========== Result cards ========== */
.map-results {
    position: fixed;
    top: 156px;
    right: 16px;
    bottom: 16px;
    width: 340px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    background: rgba(28, 37, 58, 0.96);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.map-results[hidden] {
    display: none !important;
}

.map-results-handle {
    display: none;
}

.map-results-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.map-results-heading {
    min-width: 0;
    flex: 1;
}

.filters-bar .chip [class^="icon-"],
.filters-bar .chip [class*=" icon-"],
.drawer-chips .chip [class^="icon-"],
.control-btn [class^="icon-"] {
    font-size: 16px;
    line-height: 1;
}

.filters-bar .icon-keyboard_arrow_down {
    display: inline-block;
    font-size: 14px;
    transition: transform 0.2s;
}

.control-btn [class^="icon-"] {
    font-size: 22px;
    color: #00c1ce;
}

.map-type-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.drawer-chips .map-type-icon,
.drawer-chips .icon-category {
    width: 28px;
    height: 28px;
    font-size: 28px;
}

.marker-type-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;
    pointer-events: none;
}

.map-results-header h3 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    font-family: 'yekanBakh-Bold';
    color: #00c1ce;
}

.map-results-heading p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #99a9ce;
    font-family: 'yekanBakh-Regular';
}

.map-results-close {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-results-list {
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.map-results-list > .map-pin-card {
    flex: 0 0 auto;
}

.map-results-empty {
    margin: auto 12px 12px;
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    font-family: 'yekanBakh-Bold';
}

.map-result-card {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
}

.map-result-card img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    background: var(--bg-primary);
}

.map-result-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.map-result-body strong {
    font-size: 13px;
    font-family: 'yekanBakh-Bold';
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-result-body span {
    font-size: 12px;
    color: var(--text-muted);
}

.map-result-price {
    color: var(--accent-light) !important;
    font-family: 'yekanBakh-Bold';
}

/* ========== First-visit tour ========== */
.map-tour {
    position: fixed;
    inset: 0;
    z-index: 1400;
}

.map-tour[hidden] {
    display: none !important;
}

.map-tour-spot {
    position: fixed;
    border-radius: 16px;
    box-shadow: 0 0 0 9999px rgba(8, 12, 22, 0.72);
    z-index: 1401;
    pointer-events: none;
}

.map-tour-card {
    position: fixed;
    z-index: 1402;
    width: 320px;
    max-width: calc(100vw - 24px);
    padding: 16px;
    border-radius: 16px;
    background: #1c253a;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
}

.map-tour-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-family: 'yekanBakh-Bold';
}

.map-tour-card p {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.map-tour-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.map-tour-actions .AZ-primary-btn,
.map-tour-actions .AZ-secondary-btn {
    padding: 8px 14px;
}

@media (max-width: 768px) {
    .map-results {
        top: auto;
        right: 0;
        left: 0;
        bottom: 0;
        width: auto;
        height: 46vh;
        border-radius: 20px 20px 0 0;
        border-bottom: none;
        z-index: 1300;
    }

    .map-results-handle {
        display: block;
        width: 40px;
        height: 4px;
        margin: 8px auto 0;
        border-radius: 2px;
        background: var(--border-color);
    }

    body.map-results-open .map-controls {
        bottom: calc(46vh + 12px);
    }
}

.map-page article.map-pin-card {
    margin: 0;
    cursor: pointer;
}

.map-results .AZ-room-box {
    background: transparent;
    color: inherit;
    text-decoration: none;
}

@media (min-width: 992px) {
    .map-results {
        width: min(520px, calc(100vw - 48px));
        background: #131927;
    }

    .map-results-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-content: start;
        gap: 8px;
        padding: 8px;
    }

    .map-results-list.is-single {
        grid-template-columns: minmax(0, 240px);
    }

    .map-results-list > .map-pin-card {
        min-width: 0;
    }

    .map-results-empty {
        grid-column: 1 / -1;
    }

    .map-results .AZ-room-box {
        display: block;
        padding: 8px;
        border-radius: 12px;
        border: 1px solid #3a4c78;
        background: transparent;
    }

    .map-results .AZ-room-box .room-img {
        width: 100%;
        margin-bottom: 6px;
        border-radius: 8px;
    }

    .map-results .AZ-room-box .room-img::after {
        content: "";
        display: block;
        padding-bottom: 72%;
    }

    .map-results .room-title {
        font-size: 12px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .map-results .room-details,
    .map-results .room-price,
    .map-results .room-category,
    .map-results .old-price {
        font-size: 11px;
    }

    .map-results .map-pin-overlay svg,
    .map-results .map-pin-overlay img {
        width: 22px;
        height: auto;
    }

    .map-results .map-pin-reserve {
        padding: 6px 8px;
        font-size: 12px;
    }

    .map-results .map-pin-mobile-rate,
    .map-results .map-pin-provider,
    .map-results .number-emptySans {
        display: none !important;
    }

    .map-results .map-pin-overlay,
    .map-results .map-pin-desktop-rate {
        display: flex;
    }
}

.map-page article.map-pin-card.is-active .AZ-room-box {
    border-color: #00a0aa;
}

.map-results .room-title {
    margin: 0;
}

.map-results .map-pin-overlay,
.map-results .map-pin-desktop-rate {
    display: none;
}

.map-results .map-pin-reserve {
    width: 100%;
    margin-top: 4px;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-page .chip.active,
.map-page .chip[data-type].active,
.map-page .drawer-chips .chip.active {
    background: #00a0aa;
    border-color: #00a0aa;
    color: #fff;
}

.map-page .btn-apply.AZ-primary-btn {
    width: 100%;
}

.map-page .btn-reset.AZ-secondary-btn {
    width: auto;
    padding: 8px 12px;
}

@media (max-width: 991px) {
    .map-results-list {
        padding: 0;
        gap: 8px;
    }

    .map-results .AZ-room-box {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        background: #26324f;
        border: 0;
        border-radius: 0;
        padding: 12px;
    }

    .map-page article.map-pin-card.is-active .AZ-room-box {
        box-shadow: inset 0 0 0 2px #00a0aa;
    }

    .map-results .AZ-room-box .room-img {
        width: 128px;
        min-width: 128px;
        margin-bottom: 0;
        border-radius: 8px;
    }

    .map-results .AZ-room-box .room-img::after {
        padding-bottom: 125%;
    }

    .map-results .AZ-room-box .room-body {
        flex-grow: 1;
        width: calc(100% - 140px);
        min-width: 0;
    }

    .map-results .room-categories {
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .map-results .map-pin-overlay,
    .map-results .map-pin-desktop-rate {
        display: none !important;
    }
}
