/**
 * LeBonResto — Search Page Styles
 * Extracted from app/Views/restaurants/search.php
 * Uses design tokens from tokens.css
 */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ═══════════════════════════════════════════
   SEARCH HEADER — sticky bar
   ═══════════════════════════════════════════ */
.search-header {
    background: var(--bg-elevated);
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1003;
    width: 100%;
    box-sizing: border-box;
}
.header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1800px;
    margin: 0 auto;
    min-width: 0;
}

/* Search input */
.search-bar {
    flex: 1;
    position: relative;
    max-width: 480px;
}
.search-bar input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-family: var(--font-display);
    transition: var(--transition);
    background: var(--gray-100);
}
.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-elevated);
    box-shadow: 0 0 0 3px rgba(0,99,90,0.1);
}
.search-bar .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 14px;
}

/* Autocomplete dropdown */
.search-autocomplete {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-height: 380px;
    overflow-y: auto;
    display: none;
    border: 1px solid var(--gray-200);
}
.search-autocomplete.show { display: block; }
.ac-item {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.15s;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.selected { background: #f8fffe; }
.ac-photo {
    width: 44px; height: 44px; min-width: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--gray-100);
}
.ac-icon {
    width: 40px; height: 40px; min-width: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 14px;
}
.ac-content { flex: 1; min-width: 0; }
.ac-title { font-weight: 600; color: var(--text); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-title mark { background: transparent; font-weight: 700; color: var(--primary); }
.ac-sub { font-size: 12px; color: var(--gray-500); margin-top: 1px; }
.ac-rating { color: var(--primary); font-weight: 600; font-size: 12px; }
.ac-rating i { color: var(--accent); font-size: 11px; }
.ac-voir-tous { background: var(--gray-100); }
.ac-voir-tous .ac-title { color: var(--primary); }
.ac-loading, .ac-empty { padding: 24px 16px; text-align: center; color: var(--gray-500); font-size: 13px; }
.ac-section { padding: 8px 14px 4px; font-size: 11px; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.5px; }

/* View toggles */
.view-toggles {
    display: flex;
    gap: 4px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    padding: 3px;
}
.view-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-display);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-700);
    white-space: nowrap;
}
.view-btn:hover { color: var(--text); }
.view-btn.active {
    background: var(--bg-elevated);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

/* Sort */
.sort-select {
    padding: 8px 32px 8px 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-display);
    background: var(--bg-elevated);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.sort-select:focus { outline: none; border-color: var(--primary); }

/* ═══════════════════════════════════════════
   FILTER BAR (mobile only) — 3 boutons fixes
   ═══════════════════════════════════════════ */
.filter-bar {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1002;
    display: none;
    width: 100%;
    box-sizing: border-box;
}
.filter-bar-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
}

/* Chip localisation — prend toute la largeur restante */
.mobile-loc-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    height: 40px;
    min-width: 0;
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-display);
    color: var(--gray-700);
    cursor: pointer;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s;
}
.mobile-loc-chip:active { border-color: var(--primary); }
.mobile-loc-chip i:first-child { color: var(--primary); font-size: 12px; flex-shrink: 0; }
.mobile-loc-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.loc-chevron { color: var(--gray-400); font-size: 10px; flex-shrink: 0; margin-left: auto; }

/* Bouton Filtres */
.filter-modal-btn {
    display: none;
    align-items: center;
    gap: 5px;
    padding: 0 14px;
    height: 40px;
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-display);
    background: #fff;
    color: var(--gray-700);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s, background 0.15s;
    flex-shrink: 0;
}
.filter-modal-btn.has-filters {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Bouton Trier */
.sort-modal-btn {
    display: none;
    align-items: center;
    gap: 5px;
    padding: 0 14px;
    height: 40px;
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-display);
    background: #fff;
    color: var(--gray-700);
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s, background 0.15s;
    flex-shrink: 0;
}
.sort-modal-btn.active {
    background: #f0faf9;
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 768px) {
    .filter-bar { display: block; }
    .filter-modal-btn { display: inline-flex; }
    .sort-modal-btn { display: inline-flex; }
}

/* Badge filtres actifs */
.filter-modal-badge {
    position: absolute;
    top: -5px; right: -5px;
    width: 18px; height: 18px;
    background: #e53e3e;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    min-height: 44px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-display);
    background: var(--bg-elevated);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    color: var(--text);
}
.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-inverse);
}
.filter-chip select {
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-display);
    cursor: pointer;
    color: inherit;
    padding-right: 4px;
}
.filter-chip select:focus { outline: none; }
.filter-chip.active select { color: var(--text); background: var(--bg-elevated); border-radius: 20px; padding: 2px 6px; }
button.filter-chip { font-family: var(--font-display); }

/* Filter dropdown panels (body-level, fixed position) */
.dd-arrow { font-size: 10px; margin-left: 2px; transition: transform .2s; }
.fdd-panel {
    display: none;
    position: fixed;
    background: var(--bg-elevated);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 99999;
    min-width: 200px;
    padding: 6px 0;
}
.fdd-panel.open { display: block; }
.fdd-scrollable { max-height: 320px; overflow-y: auto; }
.fdd-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: background .1s;
}
.fdd-item:hover { background: var(--gray-100); }
.fdd-item.selected {
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-light);
}
.fdd-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    transition: background .1s;
}
.fdd-check:hover { background: var(--gray-100); }
.fdd-check input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}
.fdd-check i { width: 16px; text-align: center; color: var(--primary); font-size: 13px; }
.fdd-actions {
    padding: 8px 14px 4px;
    border-top: 1px solid var(--gray-200);
    margin-top: 4px;
}
.fdd-apply {
    width: 100%;
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-display);
    cursor: pointer;
    transition: background .2s;
}
.fdd-apply:hover { background: var(--primary-dark); }

.filter-chip-clear {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border: 1.5px dashed var(--gray-300);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}
.filter-chip-clear:hover { border-color: #c0392b; color: #c0392b; }

.filter-origin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: var(--radius-full);
    white-space: nowrap;
    border: 1.5px solid rgba(0,99,90,0.2);
}
.context-change-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    margin-left: 4px;
    color: var(--primary);
    opacity: 0.6;
    transition: opacity 0.15s;
}
.context-change-btn:hover {
    opacity: 1;
}

.occasion-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: color-mix(in srgb, var(--occasion-color) 10%, var(--bg-elevated));
    border-bottom: 2px solid var(--occasion-color);
}
.occasion-banner-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--occasion-color);
}
.occasion-banner-content i { font-size: 18px; }
.occasion-banner-clear {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--gray-500);
    transition: background 0.15s;
}
.occasion-banner-clear:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.results-count-bar {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.results-sort-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-500);
}
.results-sort-label i { margin-right: 3px; }

/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */
.search-layout {
    min-height: 0;
}

.results-panel {
    background: var(--bg-elevated);
}

/* ═══════════════════════════════════════════
   "CARTE" BUTTON (always visible)
   ═══════════════════════════════════════════ */
.map-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary);
    color: var(--text-inverse);
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-display);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.map-open-btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.map-open-btn i { font-size: 13px; }

/* ═══════════════════════════════════════════
   FULLSCREEN MAP OVERLAY
   ═══════════════════════════════════════════ */
.fs-map-overlay {
    position: fixed;
    inset: 0;
    z-index: 50000;
    background: var(--bg-elevated);
    /* A1: Animation — use visibility+opacity instead of display:none */
    visibility: hidden;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    flex-direction: column;
    display: flex;
}
.fs-map-overlay.active { visibility: visible; opacity: 1; transform: translateY(0); transition-delay: 0s; }

.fs-map-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 50010;
    width: 42px;
    height: 42px;
    background: var(--bg-elevated);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(28,25,23,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--gray-700);
    transition: var(--transition);
}
.fs-map-close:hover { background: var(--gray-100); color: var(--text); }

.fs-map-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

.fs-map-canvas {
    flex: 1;
    position: relative;
}
.fs-map-canvas #fsMap { width: 100%; height: 100%; }

/* Side panel — desktop */
.fs-map-side {
    width: 380px;
    background: var(--bg-elevated);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--gray-200);
    flex-shrink: 0;
    order: -1;
}
.fs-map-side-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.fs-map-side-count { font-size: 15px; font-weight: 700; color: var(--text); }
.fs-map-side-sort {
    padding: 5px 10px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-family: var(--font-display);
    background: var(--bg-elevated);
    cursor: pointer;
}
.fs-map-side-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
/* U6: Skeleton loading dans le side panel */
.fs-skeleton { padding: 12px 16px; display: flex; gap: 12px; border-bottom: 1px solid var(--gray-100); }
.fs-skeleton-photo { width: 80px; height: 80px; border-radius: 8px; background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: skeletonPulse 1.2s ease-in-out infinite; flex-shrink: 0; }
.fs-skeleton-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.fs-skeleton-line { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: skeletonPulse 1.2s ease-in-out infinite; }
.fs-skeleton-line:nth-child(1) { width: 70%; }
.fs-skeleton-line:nth-child(2) { width: 50%; }
.fs-skeleton-line:nth-child(3) { width: 35%; }
@keyframes skeletonPulse { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.fs-card {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.fs-card:hover { background: #f8fffe; }
.fs-card.highlight { background: #ecfdf5; border-left: 3px solid var(--primary); }
.fs-card-photo {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--gray-100);
}
.fs-card-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.fs-card-name { font-weight: 700; font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-card:hover .fs-card-name { color: var(--primary); }
.fs-card-meta { font-size: 12px; color: var(--gray-500); }
.fs-card-rating { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.fs-card-dots { display: flex; gap: 2px; }
.fs-card-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--primary); border: 1.5px solid var(--primary); }
.fs-card-dot.empty { background: transparent; border-color: var(--gray-300); }
.fs-card-badge {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
}
.fs-card-reviews { font-size: 12px; color: var(--gray-400); }

/* Map controls */
.map-locate-btn {
    position: absolute;
    bottom: 24px;
    right: 12px;
    z-index: 500;
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.map-locate-btn:hover { background: var(--primary); }
.map-locate-btn:hover i { color: var(--text-inverse); }
.map-locate-btn i { font-size: 16px; color: var(--gray-700); }

.fs-map-handle {
    display: none; /* shown only on mobile */
    padding: 10px 0 6px;
    justify-content: center;
    flex-shrink: 0;
}
.fs-map-handle::before {
    content: '';
    width: 40px;
    height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
}

/* Geolocation chip in filter bar */
.geo-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-display);
    background: var(--primary);
    color: var(--text-inverse);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.geo-chip:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.geo-chip i { font-size: 12px; }
.geo-chip.loading { opacity: 0.7; pointer-events: none; }

/* Dynamic map toggle (Abritel style) */
.map-dynamic-toggle {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-display);
    color: var(--text);
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
    border: 1.5px solid var(--gray-200);
}
.map-dynamic-toggle:hover { border-color: var(--primary); }
.map-dynamic-toggle.active { border-color: var(--primary); background: var(--primary-light); }
.map-dynamic-toggle .toggle-switch {
    position: relative;
    width: 36px;
    height: 20px;
    background: var(--gray-300);
    border-radius: 10px;
    transition: background 0.25s;
    flex-shrink: 0;
}
.map-dynamic-toggle.active .toggle-switch { background: var(--primary); }
.map-dynamic-toggle .toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: var(--bg-elevated);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(28,25,23,0.2);
    transition: transform 0.25s;
}
.map-dynamic-toggle.active .toggle-switch::after { transform: translateX(16px); }
.map-dynamic-loading {
    display: none;
    width: 14px; height: 14px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
.map-dynamic-toggle.loading .map-dynamic-loading { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════
   SIDEBAR FILTERS (desktop)
   ═══════════════════════════════════════════ */
.search-content {
    display: flex;
    max-width: 1800px;
    margin: 0 auto;
}
.filter-sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--bg-elevated);
    border-right: 1px solid var(--gray-200);
    padding: 0;
    flex-shrink: 0;
    overflow-y: auto;
}
.filter-sidebar::-webkit-scrollbar { width: 4px; }
.filter-sidebar::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 4px; }
.filter-sidebar::-webkit-scrollbar-thumb:hover { background: var(--gray-300); }

.sb-section {
    border-bottom: 1px solid var(--gray-100);
    padding: 0;
}
.sb-section:last-child { border-bottom: none; }
.sb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    transition: background 0.1s;
}
.sb-header:hover { background: var(--gray-100); }
.sb-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sb-title i { font-size: 12px; color: var(--primary); width: 16px; text-align: center; }
.sb-arrow {
    font-size: 11px;
    color: var(--gray-400);
    transition: transform 0.2s;
}
.sb-section.open .sb-arrow { transform: rotate(180deg); }
.sb-body {
    padding: 0 18px 14px;
    display: none;
}
.sb-section.open .sb-body { display: block; }

/* Geo section */
.sb-geo-options { display: flex; flex-direction: column; gap: 4px; }
.sb-geo-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--gray-700);
    cursor: pointer;
    transition: background 0.1s;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    font-family: var(--font-display);
}
.sb-geo-opt:hover { background: var(--gray-100); }
.sb-geo-opt.active {
    background: #ecfdf5;
    color: var(--primary);
    font-weight: 600;
}
.sb-geo-opt i { width: 16px; text-align: center; font-size: 13px; }
.sb-geo-context {
    padding: 8px 12px;
    background: #f0fdf4;
    border-radius: 8px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Radius trigger button in sidebar */
.sb-radius-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 9px 10px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    background: var(--bg-elevated);
    color: var(--gray-700);
    font-size: 12px;
    font-family: var(--font-display);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.sb-radius-trigger:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,99,90,0.08);
}
.sb-radius-trigger i:first-child { color: var(--primary); font-size: 14px; }
.sb-radius-trigger strong { color: var(--primary); font-weight: 700; }
.sb-radius-chevron { margin-left: auto; font-size: 11px; color: var(--gray-300); }

/* ═══ Radius Popover ═══ */
.sb-radius-wrap { position: relative; }
.radius-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99998;
}
.radius-modal-overlay.open { display: block; }
.radius-modal {
    display: none;
    position: fixed;
    width: 380px;
    max-width: calc(100vw - 24px);
    background: var(--bg-elevated);
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(28,25,23,0.18);
    z-index: 99999;
    animation: rmFadeIn 0.18s ease-out;
}
.radius-modal.open { display: block; }
@keyframes rmFadeIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}
.rm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-200);
}
.rm-header h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
.rm-close {
    width: 28px; height: 28px;
    border: none; background: none;
    font-size: 16px; color: var(--gray-500);
    cursor: pointer; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.rm-close:hover { background: var(--gray-100); }
.rm-body { padding: 16px; }
.rm-map {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    margin-bottom: 16px;
}
.rm-slider-section { margin-bottom: 20px; }
.rm-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}
.rm-slider-label { font-size: 14px; color: var(--gray-700); }
.rm-slider-value { font-size: 18px; font-weight: 700; color: var(--primary); }
.rm-range-wrap { position: relative; padding: 0 2px; }
.rm-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--primary) 0%, var(--primary) var(--range-pct, 30%), var(--gray-200) var(--range-pct, 30%), var(--gray-200) 100%);
    outline: none;
    cursor: pointer;
}
.rm-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(28,25,23,0.2);
    transition: box-shadow 0.15s, transform 0.15s;
}
.rm-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.rm-range::-moz-range-thumb {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--primary);
    border: none; cursor: pointer;
    box-shadow: 0 2px 6px rgba(28,25,23,0.2);
}
.rm-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--gray-300);
}
.rm-actions {
    display: flex;
    gap: 10px;
}
.rm-clear {
    flex: 1;
    padding: 12px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    background: var(--bg-elevated);
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-display);
    text-align: center;
    text-decoration: none;
    transition: border-color 0.15s;
}
.rm-clear:hover { border-color: var(--gray-400); }
.rm-apply {
    flex: 1.5;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-display);
    transition: background 0.15s;
}
.rm-apply:hover { background: var(--primary-dark); }
.rm-apply .rm-count { font-weight: 400; opacity: 0.9; }

/* Cuisine list */
.sb-cuisine-list { display: flex; flex-direction: column; gap: 2px; }
.sb-cuisine-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--gray-700);
    cursor: pointer;
    transition: background 0.1s;
    text-decoration: none;
}
.sb-cuisine-item:hover { background: var(--gray-100); color: var(--text); }
.sb-cuisine-item.active { background: #ecfdf5; color: var(--primary); font-weight: 600; }
.sb-cuisine-item .sb-count {
    margin-left: auto;
    font-size: 11px;
    color: var(--gray-300);
}
.sb-show-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-display);
}
.sb-show-more:hover { text-decoration: underline; }

/* Price buttons */
.sb-price-btns {
    display: flex;
    gap: 8px;
}
.sb-price-btn {
    flex: 1;
    padding: 8px 4px;
    text-align: center;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid var(--gray-200);
    background: var(--bg-elevated);
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font-display);
    color: var(--gray-700);
    text-decoration: none;
}
.sb-price-btn:hover { border-color: var(--primary); color: var(--primary); }
.sb-price-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Open now button */
.sb-open-now-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid var(--gray-200);
    background: var(--bg-elevated);
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}
.sb-open-now-btn i { color: var(--success, #16a34a); }
.sb-open-now-btn:hover { border-color: var(--success, #16a34a); color: var(--success, #16a34a); }
.sb-open-now-btn.active {
    background: var(--success, #16a34a);
    color: #fff;
    border-color: var(--success, #16a34a);
}
.sb-open-now-btn.active i { color: #fff; }

/* Rating circles */
.sb-rating-options { display: flex; flex-direction: column; gap: 4px; }
.sb-rating-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--gray-700);
    cursor: pointer;
    transition: background 0.1s;
    text-decoration: none;
}
.sb-rating-opt:hover { background: var(--gray-100); }
.sb-rating-opt.active { background: #ecfdf5; color: var(--primary); font-weight: 600; }
.sb-rating-dots { display: flex; gap: 2px; }
.sb-rating-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 1.5px solid var(--primary);
}
.sb-rating-dot.empty {
    background: transparent;
    border-color: var(--gray-300);
}
.sb-rating-label { font-size: 12px; color: var(--gray-500); }
.sb-rating-opt.active .sb-rating-label { color: var(--primary); }

/* Checkbox items (services, equipements) */
.sb-check-list { display: flex; flex-direction: column; gap: 2px; }
.sb-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--gray-700);
    cursor: pointer;
    transition: background 0.1s;
}
.sb-check-item:hover { background: var(--gray-100); }
.sb-check-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}
.sb-check-item i { width: 16px; text-align: center; color: var(--primary); font-size: 13px; }
.sb-check-item span { flex: 1; }
.sb-apply-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-display);
    transition: background 0.15s;
}
.sb-apply-btn:hover { background: var(--primary-dark); }

/* Clear all */
.sb-clear-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 18px;
    font-size: 13px;
    color: #e74c3c;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    font-family: var(--font-display);
    border-top: 1px solid var(--gray-100);
    transition: background 0.1s;
}
.sb-clear-all:hover { background: #fef2f2; }

.search-main-content {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
}

/* ═══════════════════════════════════════════
   RESTAURANT CARDS — TRIPADVISOR STYLE
   ═══════════════════════════════════════════ */
.resto-list {
    background: var(--bg-elevated);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.resto-card {
    display: flex;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    transition: background 0.15s;
    background: var(--bg-elevated);
    color: inherit;
    text-decoration: none;
}
.resto-card:hover { background: #f8fffe; }
.resto-card.highlight {
    background: #ecfdf5;
    border-left: 3px solid var(--primary);
    animation: highlightPulse 0.4s ease;
}
@keyframes highlightPulse {
    0% { background: var(--bg-elevated); }
    50% { background: #d1fae5; }
    100% { background: #ecfdf5; }
}
.resto-card.hidden { display: none; }

/* ── Photo + Carousel ── */
.resto-photo {
    width: 250px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: var(--gray-100);
    margin: 16px;
    margin-right: 0;
    align-self: flex-start;
}
.photo-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}
.carousel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.carousel-img.active { opacity: 1; position: relative; }
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(28,25,23,0.15);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 11px;
    color: var(--text);
}
.resto-photo:hover .carousel-prev,
.resto-photo:hover .carousel-next { opacity: 1; }
.carousel-prev:hover, .carousel-next:hover { background: #fff; box-shadow: 0 2px 8px rgba(28,25,23,0.2); }
.carousel-prev { left: 6px; }
.carousel-next { right: 6px; }
.carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 3;
}
.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 1px 2px rgba(28,25,23,0.2);
}
.carousel-dot.active { background: #fff; transform: scale(1.2); }

/* Placeholders: see placeholders.css */

/* ── Photo overlay buttons ── */
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(28,25,23,0.12);
    transition: transform 0.15s, box-shadow 0.15s;
    z-index: 4;
}
.wishlist-btn:hover { transform: scale(1.12); box-shadow: 0 2px 8px rgba(28,25,23,0.18); }
.wishlist-btn i { color: var(--text); font-size: 14px; transition: color 0.15s; }
.wishlist-btn i.fas { color: #e74c3c; animation: heartBeat 0.4s ease; }
.wishlist-btn:hover i { color: #e74c3c; }

.photo-award {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.96);
    color: #b45309;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 4;
    box-shadow: 0 1px 4px rgba(28,25,23,0.1);
}
.photo-award i { font-size: 11px; color: var(--warning); }

/* ── Info section ── */
.resto-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

.resto-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
.resto-card:hover .resto-name { color: var(--primary); }

/* ── Rating — TripAdvisor circles ── */
.resto-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}
.rating-dots { display: flex; gap: 2px; align-items: center; }
.rating-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--primary);
    border: 1.5px solid var(--primary);
}
.rating-dot.empty {
    background: transparent;
    border-color: var(--gray-300);
}
.rating-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}
.reviews-count {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 400;
}
.resto-no-rating {
    font-size: 13px;
    color: var(--gray-400);
    font-style: italic;
}

/* ── Meta: cuisine, price, city ── */
.resto-meta {
    color: var(--gray-700);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    line-height: 1.5;
}
.meta-sep {
    color: var(--gray-300);
    margin: 0 5px;
}

/* ── Ranking badge ── */
.resto-rank {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #92400e;
    background: #fef3c7;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    width: fit-content;
}
.resto-rank i { font-size: 10px; }

/* ── Service tags (commande, reservation) ── */
.resto-service-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf5;
    color: #065f46;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    width: fit-content;
}
.resto-service-tag i { font-size: 10px; }
.resto-service-resa { background: #fffbeb; color: #92400e; }

/* ── Review excerpts ── */
.card-reviews { margin-top: 4px; }
.review-excerpt {
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.review-excerpt + .review-excerpt { margin-top: 1px; }

/* ═══════════════════════════════════════════
   GRID VIEW
   ═══════════════════════════════════════════ */
.resto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 16px 20px;
    background: var(--gray-100);
}
.resto-grid .resto-card {
    flex-direction: column;
    border: none;
    border-bottom: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(28,25,23,0.08);
    background: var(--bg-elevated);
    transition: box-shadow 0.2s, transform 0.2s;
}
.resto-grid .resto-card:hover {
    box-shadow: 0 4px 16px rgba(28,25,23,0.12);
    transform: translateY(-2px);
}
.resto-grid .resto-photo { width: 100%; height: 200px; border-radius: 0; margin: 0; }
.resto-grid .resto-info { padding: 12px 14px; }
.resto-grid .resto-name { font-size: 15px; white-space: normal; -webkit-line-clamp: 2; }
.resto-grid .resto-meta { font-size: 12px; }
.resto-grid .card-reviews { display: none; }
.resto-grid .resto-rank { display: none; }
.resto-grid .resto-service-tag { font-size: 10px; padding: 2px 7px; }

/* ═══════════════════════════════════════════
   HIDDEN MARKERS INDICATOR
   ═══════════════════════════════════════════ */
.fs-map-hidden-indicator {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50005;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-display);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}
.fs-map-hidden-indicator.visible { opacity: 1; }

/* ═══════════════════════════════════════════
   CUSTOM MAP MARKERS
   ═══════════════════════════════════════════ */
@keyframes markerFadeIn {
    from { opacity: 0; transform: scale(0.4); }
    to { opacity: 1; transform: scale(1); }
}
/* Full marker: cutlery icon (when zoomed in) */
.marker-icon {
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--bg-elevated);
    box-shadow: 0 2px 8px rgba(28,25,23,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    cursor: pointer;
    animation: markerFadeIn 0.3s ease-out both;
    position: relative;
}
.marker-icon svg {
    width: 16px;
    height: 16px;
    fill: var(--bg-elevated);
    transition: fill 0.15s ease;
}
.marker-icon.active,
.marker-icon:hover {
    background: var(--bg-elevated);
    border-color: var(--primary);
    transform: scale(1.2);
    z-index: 1000 !important;
}
.marker-icon.active svg,
.marker-icon:hover svg {
    fill: var(--primary);
}

/* Rating badge floating above marker (TripAdvisor-style) */
.marker-note {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1.3;
    box-shadow: 0 1px 4px rgba(28,25,23,0.2);
    pointer-events: none;
}
.marker-icon.active .marker-note,
.marker-icon:hover .marker-note {
    background: var(--bg-elevated);
    color: var(--primary);
    box-shadow: 0 1px 6px rgba(28,25,23,0.25);
}

/* Dot marker (when markers are dense / zoomed out) */
.marker-dot {
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--bg-elevated);
    box-shadow: 0 2px 6px rgba(28,25,23,0.25);
    transition: all 0.15s ease;
    cursor: pointer;
    animation: markerFadeIn 0.3s ease-out both;
}
.marker-dot.active,
.marker-dot:hover {
    background: var(--bg-elevated);
    border-color: var(--primary);
    transform: scale(1.3);
    z-index: 1000 !important;
}

/* Rated dot marker (shows note even when dot) */
.marker-rated-dot {
    background: var(--primary);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 12px;
    border: 2px solid var(--bg-elevated);
    box-shadow: 0 2px 6px rgba(28,25,23,0.25);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    min-width: 22px;
    line-height: 1.3;
    animation: markerFadeIn 0.3s ease-out both;
}
.marker-rated-dot.active,
.marker-rated-dot:hover {
    background: var(--bg-elevated);
    color: var(--primary);
    border-color: var(--primary);
    transform: scale(1.15);
    z-index: 1000 !important;
}

/* ── MAP POPUP — TripAdvisor style ── */
.mpop { display: flex; gap: 12px; min-width: 260px; max-width: 320px; font-family: var(--font-display); }
.mpop-photo { width: 90px; height: 90px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--gray-100); }
.mpop-photo-placeholder { width: 90px; height: 90px; border-radius: 8px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.mpop-info { flex: 1; min-width: 0; }
.mpop-name { font-weight: 700; font-size: 15px; color: var(--text); margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mpop-cuisine { font-size: 12px; color: var(--gray-500); margin: 0 0 6px; }
.mpop-rating { display: flex; align-items: center; gap: 3px; margin: 0 0 6px; flex-wrap: wrap; }
.mpop-dots { display: flex; gap: 2px; }
.mpop-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--primary); border: 1.5px solid var(--primary); display: inline-block; }
.mpop-dot.empty { background: transparent; border-color: var(--gray-300); }
.mpop-reviews { font-size: 11px; color: var(--gray-400); margin-left: 4px; }
.mpop-price { font-size: 12px; color: var(--gray-700); }
.mpop-link { display: inline-block; font-size: 12px; color: var(--primary); font-weight: 600; text-decoration: none; margin-top: 4px; }
.mpop-link:hover { text-decoration: underline; }
.mpop-popup .leaflet-popup-content-wrapper { border-radius: 12px; padding: 0; box-shadow: 0 4px 24px rgba(28,25,23,0.15); border: none; }
.mpop-popup .leaflet-popup-content { margin: 14px; }
.mpop-popup .leaflet-popup-tip { box-shadow: none; }

/* ═══════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════ */
.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    gap: 10px;
    background: var(--bg-elevated);
    border-top: 1px solid var(--gray-200);
}
.pagination-info { font-size: 13px; color: var(--gray-500); }
.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-display);
}
.pagination-btn:hover:not(.disabled):not(.active) {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.pagination-btn.active {
    background: var(--primary);
    color: var(--text-inverse);
    border-color: var(--primary);
}
.pagination-btn.disabled {
    color: var(--gray-300);
    cursor: not-allowed;
    background: var(--gray-100);
}
.pagination-ellipsis { padding: 0 6px; color: var(--gray-400); }

/* ═══════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════ */
.empty-state {
    padding: 80px 20px;
    text-align: center;
    color: var(--gray-400);
}
.empty-state i { font-size: 56px; margin-bottom: 20px; opacity: 0.2; display: block; }
.empty-state p { font-size: 16px; font-weight: 600; color: var(--gray-500); margin: 0 0 6px; }
.empty-state small { font-size: 13px; color: var(--gray-400); display: block; }
.expand-radius-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}
.expand-radius-btn:hover { background: var(--primary-dark); color: #fff; }

.hidden { display: none !important; }
.filtered-out { display: none !important; }

/* ═══════════════════════════════════════════
   MOBILE FILTER MODAL
   ═══════════════════════════════════════════ */
.filter-modal-btn {
    display: none; /* shown only on mobile */
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-display);
    background: var(--bg-elevated);
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}
.filter-modal-badge {
    position: absolute;
    top: -6px; right: -6px;
    width: 20px; height: 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}
/* ═══════════════════════════════════════════
   FILTER MODAL — Bottom sheet (mobile)
   Inspiré LeBonCoin : sections aérées, chips
   épurées, footer sticky propre
   ═══════════════════════════════════════════ */

/* Overlay */
.fm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1099;
    opacity: 0;
    transition: opacity 0.28s ease;
}
.fm-overlay.open { display: block; opacity: 1; }

/* Bottom sheet */
.fm-modal {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1100;
    background: #fff;
    border-radius: 20px 20px 0 0;
    max-height: 92dvh;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.36s cubic-bezier(0.25,0.85,0.25,1);
    box-shadow: 0 -4px 32px rgba(0,0,0,0.12);
}
.fm-modal.ready { display: flex; }
.fm-modal.active { display: flex; transform: translateY(0); }

/* Drag handle */
.fm-modal::before {
    content: '';
    display: block;
    width: 36px; height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
    margin: 12px auto 0;
    flex-shrink: 0;
}

/* Header */
.fm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 16px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.fm-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.3px;
}
.fm-close {
    width: 32px; height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    color: var(--gray-500);
    transition: background 0.15s;
    flex-shrink: 0;
}
.fm-close:hover { background: var(--gray-200); color: var(--gray-900); }

/* Body scrollable */
.fm-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

/* Section */
.fm-section {
    padding: 20px 20px 18px;
    border-bottom: 1px solid var(--gray-100);
}
.fm-section:last-child { border-bottom: none; }

/* Section label — discret, pas vert */
.fm-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}
.fm-label i {
    font-size: 13px;
    color: var(--gray-400);
    width: 16px;
    text-align: center;
}

/* Options row */
.fm-options {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.fm-options::-webkit-scrollbar { display: none; }
.fm-options-wrap { flex-wrap: wrap; overflow-x: visible; }

/* Chips épurées */
.fm-opt {
    padding: 9px 16px;
    min-height: 40px;
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-display);
    color: var(--gray-700);
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.fm-opt:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.fm-opt.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

/* Select cuisine */
.fm-select {
    width: 100%;
    padding: 11px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    font-size: 15px;
    font-family: var(--font-display);
    color: var(--gray-700);
    background: #fff;
    cursor: pointer;
    appearance: auto;
}
.fm-select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(0,99,90,0.08); }

/* Segmented control (prix, note) */
.fm-segment {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: var(--gray-100);
    border-radius: 12px;
    padding: 3px;
    gap: 2px;
}
/* Pour price : 5 options (Tous + 4 fourchettes), pour rating : 4 options */
.fm-segment[data-filter="rating"] { grid-template-columns: repeat(4, 1fr); }

.fm-seg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 9px 4px;
    min-height: 44px;
    border: none;
    border-radius: 9px;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-display);
    color: var(--gray-500);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.1;
}
.fm-seg:active { opacity: 0.8; }
.fm-seg.active {
    background: #fff;
    color: var(--gray-900);
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10), 0 0 0 0.5px rgba(0,0,0,0.04);
}

/* Prix : partie active en sombre, partie grisée en clair */
.seg-price { color: inherit; font-weight: inherit; }
.seg-price-dim { color: var(--gray-300); font-size: 11px; font-weight: 400; }
.fm-seg.active .seg-price-dim { color: var(--gray-300); }

/* Note : étoile */
.seg-star { font-size: 10px; color: var(--warning); margin-right: 1px; }
.fm-seg.active .seg-star { color: var(--warning); }

[data-theme="dark"] .fm-segment { background: #292524; }
[data-theme="dark"] .fm-seg { color: #78716c; }
[data-theme="dark"] .fm-seg.active { background: #44403c; color: #f5f5f4; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
[data-theme="dark"] .seg-price-dim { color: #57534e; }

/* Footer sticky */
.fm-footer {
    display: flex;
    align-items: center;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #f0f0f0;
    background: #fff;
    flex-shrink: 0;
    gap: 16px;
}
.fm-reset {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    text-decoration: underline;
    text-underline-offset: 2px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-display);
    padding: 10px 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.fm-reset:hover { color: var(--gray-900); }

.fm-apply {
    flex: 1;
    padding: 14px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-display);
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}
.fm-apply:hover { background: var(--primary-dark); }

/* Masquer rayon sur mobile (géré par le modal localisation) */
@media (max-width: 768px) {
    .fm-section-radius { display: none; }
}

/* ── Row trigger (cuisine) ── */
.fm-row-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: var(--gray-50);
    font-size: 15px;
    font-family: var(--font-display);
    color: var(--gray-700);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s;
}
.fm-row-trigger:active { border-color: var(--primary); background: #f0faf9; }
.fm-row-chevron { color: var(--gray-400); font-size: 12px; flex-shrink: 0; }

/* ── Sub-panel cuisine (slide depuis la droite dans le modal) ── */
.fm-subpanel {
    position: absolute;
    inset: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25,0.85,0.25,1);
    z-index: 10;
    overflow: hidden;
}
.fm-subpanel.open { transform: translateX(0); }
.fm-subpanel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    flex-shrink: 0;
}
.fm-subpanel-back {
    width: 32px; height: 32px;
    border: none; background: var(--gray-100);
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: var(--gray-700);
    flex-shrink: 0;
}
.fm-subpanel-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.fm-row-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    font-size: 15px;
    font-family: var(--font-display);
    color: var(--gray-700);
    cursor: pointer;
    border-bottom: 1px solid var(--gray-50);
    text-decoration: none;
    min-height: 50px;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.1s;
}
.fm-row-opt:active { background: var(--gray-50); }
.fm-row-opt.active { color: var(--primary); font-weight: 600; }
.fm-row-check { color: var(--primary); font-size: 14px; }

/* Assurer position:relative sur le modal pour que subpanel absolute fonctionne */
.fm-modal { position: fixed; overflow: hidden; }

/* ── Toggle rows (services & équipements) ── */
.fm-toggle-list { display: flex; flex-direction: column; gap: 0; }
.fm-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
    border-bottom: 1px solid var(--gray-50);
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.1s;
}
.fm-toggle-row:last-child { border-bottom: none; }
.fm-toggle-row:active { opacity: 0.7; }

.fm-toggle-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--gray-100);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    color: var(--gray-500);
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}
.fm-toggle-row.on .fm-toggle-icon {
    background: #e6f4f3;
    color: var(--primary);
}
.fm-toggle-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.fm-toggle-label {
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-display);
    color: var(--gray-900);
}
.fm-toggle-desc {
    font-size: 12px;
    color: var(--gray-400);
}

/* Toggle switch iOS */
.fm-toggle-switch {
    width: 44px; height: 26px;
    border-radius: 13px;
    background: var(--gray-300);
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s;
}
.fm-toggle-switch.on { background: var(--primary); }
.fm-toggle-thumb {
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.2s cubic-bezier(0.34,1.2,0.64,1);
}
.fm-toggle-switch.on .fm-toggle-thumb { transform: translateX(18px); }

/* Dark mode toggles */
[data-theme="dark"] .fm-toggle-icon { background: #292524; color: #78716c; }
[data-theme="dark"] .fm-toggle-row.on .fm-toggle-icon { background: #134e4a; color: #4ade80; }
[data-theme="dark"] .fm-toggle-label { color: #f5f5f4; }
[data-theme="dark"] .fm-toggle-desc { color: #57534e; }
[data-theme="dark"] .fm-toggle-switch { background: #44403c; }
[data-theme="dark"] .fm-toggle-switch.on { background: #00635a; }
[data-theme="dark"] .fm-row-trigger { background: #292524; border-color: #44403c; color: #d6d3d1; }
[data-theme="dark"] .fm-subpanel { background: #1c1917; }
[data-theme="dark"] .fm-subpanel-header { border-color: #292524; color: #f5f5f4; }
[data-theme="dark"] .fm-subpanel-back { background: #292524; color: #d6d3d1; }
[data-theme="dark"] .fm-row-opt { color: #d6d3d1; border-color: #292524; }
[data-theme="dark"] .fm-row-opt.active { color: #4ade80; }

/* ═══════════════════════════════════════════
   SORT BOTTOM SHEET (sm-*)
   ═══════════════════════════════════════════ */
.sm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1099;
    opacity: 0;
    transition: opacity 0.28s ease;
}
.sm-overlay.open { display: block; opacity: 1; }

.sm-modal {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1100;
    background: #fff;
    border-radius: 20px 20px 0 0;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.34s cubic-bezier(0.25,0.85,0.25,1);
    box-shadow: 0 -4px 32px rgba(0,0,0,0.12);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.sm-modal.ready { display: flex; }
.sm-modal.active { display: flex; transform: translateY(0); }

.sm-modal::before {
    content: '';
    display: block;
    width: 36px; height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
    margin: 12px auto 0;
    flex-shrink: 0;
}
.sm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 14px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.sm-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
}
.sm-close {
    width: 32px; height: 32px;
    border: none; background: var(--gray-100);
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: var(--gray-500);
    transition: background 0.15s;
}
.sm-close:hover { background: var(--gray-200); }

.sm-body { padding: 8px 0 4px; }

.sm-opt {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--gray-700);
    transition: background 0.12s;
    -webkit-tap-highlight-color: transparent;
    min-height: 56px;
}
.sm-opt:active { background: var(--gray-50); }
.sm-opt.active { color: var(--primary); }
.sm-opt.active .sm-opt-label { font-weight: 700; }

.sm-opt-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--gray-100);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    color: var(--gray-500);
    flex-shrink: 0;
}
.sm-opt.active .sm-opt-icon {
    background: #e6f4f3;
    color: var(--primary);
}

.sm-opt-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}
.sm-opt-label {
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-display);
}
.sm-opt-desc {
    font-size: 12px;
    color: var(--gray-400);
}
.sm-check {
    color: var(--primary);
    font-size: 14px;
    flex-shrink: 0;
}

[data-theme="dark"] .sm-modal,
[data-theme="dark"] .sm-header { background: #1c1917; }
[data-theme="dark"] .sm-modal::before { background: #44403c; }
[data-theme="dark"] .sm-title { color: #f5f5f4; }
[data-theme="dark"] .sm-close { background: #292524; color: #a8a29e; }
[data-theme="dark"] .sm-header { border-bottom-color: #292524; }
[data-theme="dark"] .sm-opt { color: #d6d3d1; }
[data-theme="dark"] .sm-opt-icon { background: #292524; color: #78716c; }
[data-theme="dark"] .sm-opt.active { color: #4ade80; }
[data-theme="dark"] .sm-opt.active .sm-opt-icon { background: #134e4a; color: #4ade80; }
[data-theme="dark"] .sm-opt-desc { color: #57534e; }

/* Filter bar dark */
[data-theme="dark"] .filter-bar { background: #1c1917; border-color: #292524; }
[data-theme="dark"] .mobile-loc-chip,
[data-theme="dark"] .filter-modal-btn,
[data-theme="dark"] .sort-modal-btn { background: #1c1917; border-color: #44403c; color: #d6d3d1; }
[data-theme="dark"] .mobile-loc-chip i:first-child { color: #4ade80; }
[data-theme="dark"] .sort-modal-btn.active { background: #134e4a; border-color: #4ade80; color: #4ade80; }

/* Dark mode */
[data-theme="dark"] .fm-modal,
[data-theme="dark"] .fm-footer,
[data-theme="dark"] .fm-header { background: #1c1917; }
[data-theme="dark"] .fm-modal::before { background: #44403c; }
[data-theme="dark"] .fm-title { color: #f5f5f4; }
[data-theme="dark"] .fm-section { border-bottom-color: #292524; }
[data-theme="dark"] .fm-header { border-bottom-color: #292524; }
[data-theme="dark"] .fm-footer { border-top-color: #292524; }
[data-theme="dark"] .fm-close { background: #292524; color: #a8a29e; }
[data-theme="dark"] .fm-label { color: #78716c; }
[data-theme="dark"] .fm-opt { background: #1c1917; border-color: #44403c; color: #d6d3d1; }
[data-theme="dark"] .fm-opt.active { background: #00635a; border-color: #00635a; color: #fff; }
[data-theme="dark"] .fm-select { background: #1c1917; border-color: #44403c; color: #d6d3d1; }
[data-theme="dark"] .fm-reset { color: #78716c; }

/* ═══════════════════════════════════════════
   DESKTOP >= 1025px
   ═══════════════════════════════════════════ */
@media (min-width: 1025px) {
    .fs-map-handle { display: none; }
}
@media (min-width: 769px) {
    .filter-bar { display: none; }
    .filter-modal-btn { display: none !important; }
}

/* ═══════════════════════════════════════════
   TABLET & MOBILE <= 1024px
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .filter-sidebar { width: 220px; min-width: 220px; }
    .resto-photo { width: 210px; height: 175px; margin: 14px; margin-right: 0; }
    .resto-name { font-size: 16px; }
    .resto-info { padding: 14px 16px; }
    .resto-grid { grid-template-columns: 1fr 1fr; padding: 12px; gap: 12px; }

    /* Fullscreen map: side panel becomes bottom sheet */
    .fs-map-side {
        position: absolute;
        bottom: 0; left: 0; right: 0;
        width: 100%;
        max-height: 45vh;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 20px rgba(28,25,23,0.12);
        z-index: 50005;
        border-right: none;
        order: 0;
    }
    .fs-map-handle { display: flex; }
    .fs-map-close { top: 12px; right: 12px; width: 38px; height: 38px; }
}

@media (max-width: 768px) {
    .filter-sidebar { display: none !important; }
    .desktop-filter { display: none !important; }
    .search-context-indicator { display: none !important; }
    .search-content { display: block; height: auto; }
    .search-main-content { overflow-y: visible; }
}

/* ═══════════════════════════════════════════
   TABLET 601-900px
   ═══════════════════════════════════════════ */
@media (max-width: 900px) and (min-width: 601px) {
    .resto-photo { width: 200px; height: 165px; margin: 12px; margin-right: 0; }
    .resto-name { font-size: 16px; }
    .resto-info { padding: 12px 14px; }
}

@media (max-width: 768px) {
    /* Header mobile : 1 seule ligne = barre de recherche */
    .search-header { padding: 8px 12px; }
    .header-row { flex-wrap: nowrap; gap: 0; }
    .search-bar { flex: 1; max-width: none; }
    .search-bar input { padding: 10px 14px 10px 36px; font-size: 15px; }
    /* Tout le reste du header masqué sur mobile — géré par la filter-bar */
    .view-toggles { display: none !important; }
    .sort-select { display: none !important; }
    .search-context-indicator { display: none !important; }
    /* Carte : icône seule, carré compact */
    .map-open-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        flex-shrink: 0;
        border-radius: 50%;
        margin-left: 8px;
        justify-content: center;
    }
    .map-open-btn i { font-size: 16px; }
    .map-open-btn .map-btn-label { display: none; }
}

@media (max-width: 600px) {

    /* Cards: VERTICAL layout — photo on top, full width */
    .resto-list {
        padding: 8px 12px;
        gap: 12px;
        background: var(--gray-100);
    }
    .resto-card {
        flex-direction: column;
        gap: 0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(28,25,23,0.08);
        border-bottom: none;
        background: var(--bg-elevated);
    }
    .resto-card.highlight {
        border-left: none;
        box-shadow: 0 0 0 2px var(--primary), 0 2px 8px rgba(0,99,90,0.15);
    }
    .resto-photo {
        width: 100%;
        height: 220px;
        min-height: auto;
        margin: 0;
        border-radius: 0;
        flex-shrink: 0;
    }
    .resto-info { padding: 12px 14px; gap: 4px; }
    .resto-name { font-size: 16px; -webkit-line-clamp: 2; }
    .resto-meta { font-size: 12px; }
    .rating-dot { width: 11px; height: 11px; }
    .reviews-count { font-size: 12px; }
    .resto-rank { font-size: 11px; padding: 1px 6px; }
    .wishlist-btn { width: 36px; height: 36px; top: 8px; right: 8px; }
    .wishlist-btn i { font-size: 15px; }
    .cw-card-btn { display: none; }
    .carousel-prev, .carousel-next { opacity: 0.7; }
    .resto-service-tag { font-size: 10px; padding: 2px 8px; }

    /* Grid mobile: 2 columns */
    .resto-grid { grid-template-columns: 1fr 1fr; gap: 10px; padding: 8px 12px; }
    .resto-grid .resto-photo { height: 150px; width: 100%; margin: 0; border-radius: 0; }
    .resto-grid .resto-card { flex-direction: column; }
    .resto-grid .resto-name { font-size: 13px; }
    .resto-grid .resto-info { padding: 10px; }

    /* Filter bar */
    .filter-bar-inner { padding: 8px 12px; }

    /* Results count */
    .results-count-bar { padding: 8px 12px; font-size: 12px; }

    /* Pagination */
    .pagination-btn { min-width: 34px; height: 34px; padding: 0 8px; font-size: 12px; }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 12px rgba(28,25,23,0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s, visibility .3s, transform .3s, background .2s;
    z-index: 9999;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(28,25,23,0.25);
}
@media (max-width: 600px) {
    .back-to-top { right: 16px; bottom: 20px; width: 40px; height: 40px; font-size: 16px; }
}

/* ═══════════════════════════════════════════
   DARK MODE
   ═══════════════════════════════════════════ */
[data-theme="dark"] .search-header { background: rgba(var(--gray-900), 0.95); border-color: var(--border); }
[data-theme="dark"] .search-bar input { background: var(--bg-elevated); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .search-bar input:focus { border-color: var(--primary); background: var(--bg-elevated); box-shadow: 0 0 0 3px rgba(0,99,90,0.2); }
[data-theme="dark"] .search-bar .icon { color: var(--text-muted); }
[data-theme="dark"] .search-autocomplete { background: var(--bg-elevated); border-color: var(--border); }
[data-theme="dark"] .ac-item { border-color: var(--border); }
[data-theme="dark"] .ac-item:hover, [data-theme="dark"] .ac-item.selected { background: var(--bg-subtle); }
[data-theme="dark"] .ac-title { color: var(--text); }
[data-theme="dark"] .ac-sub { color: var(--text-muted); }
[data-theme="dark"] .ac-icon { background: rgba(0,99,90,0.15); }
[data-theme="dark"] .ac-voir-tous { background: var(--bg-subtle); }
[data-theme="dark"] .view-toggles { background: var(--bg-elevated); }
[data-theme="dark"] .view-btn { color: var(--text-muted); }
[data-theme="dark"] .view-btn:hover { color: var(--text); }
[data-theme="dark"] .view-btn.active { background: var(--bg-subtle); color: var(--text); box-shadow: none; }
[data-theme="dark"] .sort-select { background: var(--bg-elevated); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .filter-bar { background: var(--bg); border-color: var(--border); }
[data-theme="dark"] .filter-chip { background: var(--bg-elevated); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .filter-chip:hover { border-color: var(--primary); color: var(--primary); }
[data-theme="dark"] .filter-chip.active { background: var(--primary); border-color: var(--primary); color: white; }
[data-theme="dark"] .filter-chip select { color: inherit; }
[data-theme="dark"] .filter-chip-clear { border-color: var(--border-strong); color: var(--text-muted); }
[data-theme="dark"] .filter-origin { background: rgba(0,99,90,0.15); border-color: rgba(0,99,90,0.3); }
[data-theme="dark"] .fdd-panel { background: var(--bg-elevated); border-color: var(--border); }
[data-theme="dark"] .fdd-item { color: var(--text); }
[data-theme="dark"] .fdd-item:hover { background: var(--bg-subtle); }
[data-theme="dark"] .fdd-item.selected { background: rgba(0,99,90,0.15); color: var(--primary); }
[data-theme="dark"] .fdd-check { color: var(--text); }
[data-theme="dark"] .fdd-check:hover { background: var(--bg-subtle); }
[data-theme="dark"] .fdd-actions { border-color: var(--border); }
[data-theme="dark"] .occasion-banner { background: rgba(var(--occasion-color), 0.1); }
[data-theme="dark"] .results-count-bar { background: var(--bg-elevated); border-color: var(--border); color: var(--text-secondary); }
[data-theme="dark"] .results-panel { background: var(--bg); }
[data-theme="dark"] .filter-sidebar { background: var(--bg); border-color: var(--border); }
[data-theme="dark"] .filter-sidebar::-webkit-scrollbar-thumb { background: var(--border-strong); }
[data-theme="dark"] .sb-section { border-color: var(--border); }
[data-theme="dark"] .sb-header { color: var(--text); }
[data-theme="dark"] .sb-header:hover { background: var(--bg-elevated); }
[data-theme="dark"] .sb-label { color: var(--text); }
[data-theme="dark"] .sb-count { color: var(--text-muted); }
[data-theme="dark"] .sb-geo-opt { color: var(--text); }
[data-theme="dark"] .sb-geo-opt:hover { background: var(--bg-elevated); }
[data-theme="dark"] .sb-cuisine-item { color: var(--text); }
[data-theme="dark"] .sb-cuisine-item:hover { background: var(--bg-elevated); color: var(--text); }
[data-theme="dark"] .sb-cuisine-count { color: var(--text-muted); }
[data-theme="dark"] .sb-rating-opt { border-color: var(--border); color: var(--text); }
[data-theme="dark"] .sb-rating-opt:hover { background: var(--bg-elevated); }
[data-theme="dark"] .sb-rating-opt.active { border-color: var(--primary); background: rgba(0,99,90,0.15); }
[data-theme="dark"] .sb-rating-label { color: var(--text-muted); }
[data-theme="dark"] .sb-check-item { color: var(--text); }
[data-theme="dark"] .sb-check-item:hover { background: var(--bg-elevated); }
[data-theme="dark"] .rm-overlay { background: rgba(0,0,0,0.7); }
[data-theme="dark"] .rm-modal { background: var(--bg-elevated); border-color: var(--border); }
[data-theme="dark"] .rm-title { color: var(--text); }
[data-theme="dark"] .rm-close { color: var(--text-muted); }
[data-theme="dark"] .rm-close:hover { background: var(--bg-subtle); }
[data-theme="dark"] .rm-slider-container { border-color: var(--border); }
[data-theme="dark"] .rm-slider-label { color: var(--text); }
[data-theme="dark"] .rm-preset-btn { border-color: var(--border); color: var(--text); }
[data-theme="dark"] .rm-preset-btn:hover { background: var(--bg-subtle); }
[data-theme="dark"] .rm-preset-btn.active { border-color: var(--primary); background: rgba(0,99,90,0.15); }
[data-theme="dark"] .rm-clear { border-color: var(--border); color: var(--text); }
[data-theme="dark"] .fs-card { background: var(--bg-elevated); border-color: var(--border); }
[data-theme="dark"] .fs-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
[data-theme="dark"] .fs-card-name { color: var(--text); }
[data-theme="dark"] .fs-card-meta { color: var(--text-muted); }
[data-theme="dark"] .fs-card-badge { color: var(--text); }
[data-theme="dark"] .fs-card-reviews { color: var(--text-muted); }
[data-theme="dark"] .fs-card-photo { background: var(--bg-subtle); }
[data-theme="dark"] .wishlist-btn { background: rgba(28,25,23,0.9); }
[data-theme="dark"] .wishlist-btn i { color: var(--text); }
[data-theme="dark"] .card-list-item { background: var(--bg-elevated); border-color: var(--border); }
[data-theme="dark"] .card-list-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
[data-theme="dark"] .card-list-info h3 a { color: var(--text); }
[data-theme="dark"] .card-list-info h3 a:hover { color: var(--primary); }
[data-theme="dark"] .card-list-subtitle { color: var(--text-muted); }
[data-theme="dark"] .card-list-desc { color: var(--text-secondary); }
[data-theme="dark"] .card-list-badges span { color: var(--text-muted); }
[data-theme="dark"] .map-panel { background: var(--bg-elevated); }
[data-theme="dark"] .mpop-name { color: var(--text); }
[data-theme="dark"] .mpop-cuisine { color: var(--text-muted); }
[data-theme="dark"] .mpop-price { color: var(--text-secondary); }
[data-theme="dark"] .mpop-reviews { color: var(--text-muted); }
[data-theme="dark"] .mpop-photo, [data-theme="dark"] .mpop-photo-placeholder { background: var(--bg-subtle); }
[data-theme="dark"] .pagination { background: var(--bg-elevated); border-color: var(--border); }
[data-theme="dark"] .page-link { color: var(--text); background: transparent; border-color: var(--border); }
[data-theme="dark"] .page-link:hover { background: var(--bg-subtle); }
[data-theme="dark"] .page-link.active { background: var(--primary); border-color: var(--primary); color: white; }
[data-theme="dark"] .no-results { color: var(--text-muted); }
[data-theme="dark"] .map-open-btn { background: var(--bg-elevated); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }

/* ═══════════════════════════════════════════
   MICRO-INTERACTIONS
   ═══════════════════════════════════════════ */

/* Image blur-up fade-in */
.resto-photo img {
    opacity: 0;
    transition: opacity 0.4s ease;
}
.resto-photo img.loaded {
    opacity: 1;
}

/* ═══════════════════════════════════════════
   MOBILE LOCATION MODAL — bottom sheet
   ═══════════════════════════════════════════ */

/* Overlay backdrop */
.lm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, 0.6);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.28s ease;
}
.lm-overlay.open {
    display: block;
    opacity: 1;
}

/* Bottom sheet */
.lm-modal {
    display: none;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1101;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
    max-height: 88dvh;
    max-height: 88vh;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.25, 0.85, 0.25, 1);
}
/* .ready = display:flex mais pas encore translateY(0) → permet l'animation */
.lm-modal.ready {
    display: flex;
}
.lm-modal.open {
    display: flex;
    transform: translateY(0);
}

/* Drag handle */
.lm-handle {
    width: 40px;
    height: 5px;
    background: #e2e8f0;
    border-radius: 3px;
    margin: 12px auto 0;
    flex-shrink: 0;
}

/* Header */
.lm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 16px;
    flex-shrink: 0;
}
.lm-title {
    font-size: 18px;
    font-weight: 800;
    font-family: var(--font-display, 'DM Sans', sans-serif);
    color: var(--gray-900);
    letter-spacing: -0.02em;
}
.lm-close {
    width: 38px;
    height: 38px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}
.lm-close:active { background: #e2e8f0; color: #1e293b; }

/* Scrollable body */
.lm-body {
    overflow-y: auto;
    overflow-x: visible;
    flex: 1;
    padding: 0 20px 8px;
    -webkit-overflow-scrolling: touch;
}

/* Section */
.lm-section { margin-bottom: 0; }

.lm-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 10px;
}

/* Search input */
.lm-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.lm-search-icon {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
    z-index: 1;
}
.lm-search-input {
    width: 100%;
    padding: 14px 48px 14px 46px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 16px;
    font-family: var(--font-display, 'DM Sans', sans-serif);
    font-weight: 500;
    background: #f8fafc;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
    outline: none;
    box-sizing: border-box;
}
.lm-search-input:focus {
    border-color: var(--primary, #00635a);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0,99,90,0.08);
}
.lm-search-input::placeholder { color: #cbd5e1; font-weight: 400; }
.lm-search-clear {
    position: absolute;
    right: 12px;
    width: 30px;
    height: 30px;
    border: none;
    background: #e2e8f0;
    border-radius: 50%;
    color: #64748b;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s;
    -webkit-tap-highlight-color: transparent;
}
.lm-search-clear:active { background: #cbd5e1; }

/* Autocomplete */
.lm-autocomplete {
    margin-top: 8px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid #f1f5f9;
}
.lm-autocomplete:empty { display: none; }

.lm-ac-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f8fafc;
    -webkit-tap-highlight-color: transparent;
    text-align: left;
    font-family: inherit;
    min-height: 60px;
    box-sizing: border-box;
}
.lm-ac-item:last-child { border-bottom: none; }
.lm-ac-item:active { background: #f0fdf9; }

.lm-ac-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #ecfdf5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary, #00635a);
    font-size: 16px;
}
.lm-ac-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    font-family: var(--font-display, 'DM Sans', sans-serif);
    display: block;
}
.lm-ac-name mark {
    background: none;
    color: var(--primary, #00635a);
    font-weight: 800;
}
.lm-ac-sub {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
    display: block;
}
.lm-ac-loading,
.lm-ac-empty {
    padding: 20px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    font-family: var(--font-display, 'DM Sans', sans-serif);
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.lm-ac-loading i { animation: spin 0.7s linear infinite; margin-right: 6px; }

/* Divider */
.lm-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.lm-divider::before,
.lm-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #f1f5f9;
}

/* GPS button — carte style */
.lm-geo-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
    text-align: left;
    font-family: inherit;
}
.lm-geo-btn:active {
    border-color: var(--primary, #00635a);
    background: #f0fdf9;
    box-shadow: 0 0 0 4px rgba(0,99,90,0.08);
}
/* Icône GPS — badge coloré */
.lm-geo-btn > i:first-child {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, #00635a 0%, #008577 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,99,90,0.25);
}
.lm-geo-btn > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.lm-geo-btn > div strong {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    font-family: var(--font-display, 'DM Sans', sans-serif);
}
.lm-geo-btn > div span {
    font-size: 12px;
    color: #94a3b8;
}
.lm-chevron {
    color: #cbd5e1;
    font-size: 13px;
    flex-shrink: 0;
    transition: transform 0.18s, color 0.18s;
}
.lm-geo-btn:active .lm-chevron {
    transform: translateX(3px);
    color: var(--primary, #00635a);
}

/* Radius section */
.lm-radius-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 18px;
    border: 1px solid #f1f5f9;
    animation: fadeSlideDown 0.22s ease;
}
@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.lm-radius-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.lm-radius-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-700);
    font-family: var(--font-display, 'DM Sans', sans-serif);
}
.lm-radius-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary, #00635a);
    font-family: var(--font-display, 'DM Sans', sans-serif);
    background: rgba(0,99,90,0.1);
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: -0.02em;
}

/* Range slider */
.lm-range-wrap { padding: 8px 4px; margin-bottom: 4px; }
.lm-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(
        to right,
        var(--primary, #00635a) 0%,
        var(--primary, #00635a) var(--range-pct, 15%),
        #e2e8f0 var(--range-pct, 15%),
        #e2e8f0 100%
    );
    outline: none;
    cursor: pointer;
}
.lm-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--primary, #00635a);
    box-shadow: 0 2px 8px rgba(0,99,90,0.25);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.lm-range::-webkit-slider-thumb:active {
    transform: scale(1.18);
    box-shadow: 0 3px 12px rgba(0,99,90,0.35);
}
.lm-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--primary, #00635a);
    box-shadow: 0 2px 8px rgba(0,99,90,0.2);
    cursor: pointer;
}
.lm-range::-moz-range-track { height: 6px; border-radius: 3px; background: #e2e8f0; }
.lm-range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--primary, #00635a); }
.lm-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 6px;
}

/* Leaflet mini map */
.lm-map {
    height: 170px;
    border-radius: 14px;
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f0f4f8;
    position: relative;
}

/* Footer CTA */
.lm-footer {
    display: flex;
    gap: 10px;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #f1f5f9;
    flex-shrink: 0;
}
.lm-reset {
    flex: 0 0 auto;
    padding: 0 22px;
    height: 52px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-display, 'DM Sans', sans-serif);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}
.lm-reset:active { border-color: #94a3b8; color: var(--gray-700); }

.lm-apply {
    flex: 1;
    height: 52px;
    padding: 0 24px;
    background: var(--primary, #00635a);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-display, 'DM Sans', sans-serif);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 16px rgba(0,99,90,0.28);
    letter-spacing: -0.01em;
}
.lm-apply:active {
    background: var(--primary-dark);
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(0,99,90,0.2);
}

/* ── Dark mode ── */
[data-theme="dark"] .lm-modal { background: #1a1f2e; box-shadow: 0 -8px 40px rgba(0,0,0,0.5); }
[data-theme="dark"] .lm-handle { background: rgba(255,255,255,0.15); }
[data-theme="dark"] .lm-header { border-bottom-color: transparent; }
[data-theme="dark"] .lm-title { color: #f1f5f9; }
[data-theme="dark"] .lm-close { background: rgba(255,255,255,0.08); color: #94a3b8; }
[data-theme="dark"] .lm-close:active { background: rgba(255,255,255,0.14); }
[data-theme="dark"] .lm-search-input { background: #0f172a; border-color: rgba(255,255,255,0.1); color: #f1f5f9; }
[data-theme="dark"] .lm-search-input:focus { background: #1e293b; border-color: var(--primary, #00635a); }
[data-theme="dark"] .lm-autocomplete { background: #1e293b; border-color: rgba(255,255,255,0.05); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
[data-theme="dark"] .lm-ac-item { border-bottom-color: rgba(255,255,255,0.04); }
[data-theme="dark"] .lm-ac-item:active { background: rgba(0,99,90,0.15); }
[data-theme="dark"] .lm-ac-icon { background: rgba(0,99,90,0.25); }
[data-theme="dark"] .lm-ac-name { color: #f1f5f9; }
[data-theme="dark"] .lm-geo-btn { background: #0f172a; border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .lm-geo-btn:active { background: rgba(0,99,90,0.2); border-color: var(--primary, #00635a); }
[data-theme="dark"] .lm-geo-btn > div strong { color: #f1f5f9; }
[data-theme="dark"] .lm-radius-section { background: #0f172a; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .lm-radius-label { color: #94a3b8; }
[data-theme="dark"] .lm-range { background: linear-gradient(to right, var(--primary,#00635a) 0%, var(--primary,#00635a) var(--range-pct,15%), rgba(255,255,255,0.12) var(--range-pct,15%), rgba(255,255,255,0.12) 100%); }
[data-theme="dark"] .lm-range::-webkit-slider-thumb { background: #1e293b; }
[data-theme="dark"] .lm-map { border-color: rgba(255,255,255,0.08); background: #0f172a; }
[data-theme="dark"] .lm-footer { background: #1a1f2e; border-top-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .lm-reset { border-color: rgba(255,255,255,0.12); color: #64748b; }
[data-theme="dark"] .lm-reset:active { border-color: rgba(255,255,255,0.25); color: #94a3b8; }
