/* ── Algarve Daily – Map Page ── */
/* Side-by-side: map left, info sidebar right (desktop) */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #f5f0e6;
    --page: #fdfaf5;
    --panel: #f8f5ee;
    --text: #1a1a1a;
    --muted: #666;
    --light: #888;
    --rule: #d8d0c4;
    --rule-light: #e0dace;
    --accent: #b33;
    --accent-deep: #8c2f1c;
    --sea: #2a7a5a;
    --shadow: 0 0 40px rgba(0,0,0,0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    background: var(--bg);
    color: var(--text);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

#map-app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
}

/* ── Header ── */
#map-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    background: var(--page);
    border-bottom: 2px solid var(--accent);
    flex-shrink: 0;
}

#map-header .logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.map-nav {
    display: flex;
    gap: 4px;
}

.map-nav a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.map-nav a:hover {
    color: var(--text);
    background: rgba(0,0,0,0.05);
}

.map-nav a.active {
    color: var(--accent);
    background: rgba(187,51,51,0.08);
    font-weight: 600;
}

#map-header h1 {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--muted);
    margin-left: auto;
}

/* ── Controls ── */
#controls {
    padding: 10px 20px;
    background: var(--panel);
    border-bottom: 1px solid var(--rule);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 350px;
}

.search-box input {
    width: 100%;
    padding: 8px 34px 8px 12px;
    border: 1px solid var(--rule);
    border-radius: 6px;
    background: var(--page);
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: var(--accent);
}

.search-box input::placeholder {
    color: var(--light);
}

#clear-search {
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
}

#clear-search.visible {
    display: block;
}

#locate-me {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

#locate-me:hover {
    color: var(--accent);
    background: rgba(0,0,0,0.05);
}

#locate-me.locating {
    color: var(--accent);
    animation: pulse-locate 1s infinite;
}

#locate-me.located {
    color: var(--sea);
}

@keyframes pulse-locate {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.filter-label {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    cursor: pointer;
    border: 1px solid var(--rule);
    background: var(--page);
    color: var(--muted);
    transition: all 0.2s;
    user-select: none;
}

.chip input { display: none; }

.chip.active { border-color: transparent; color: #fff; }
.chip-restaurant.active { background: #e65100; }
.chip-bar.active { background: #7b1fa2; }
.chip-cafe.active { background: #795548; }
.chip-beach_bar.active { background: #00838f; }
.chip-event.active { background: #1565c0; }
.chip-beach.active { background: #f9a825; color: #333; }

.chip:hover { border-color: var(--accent); }

.stats {
    font-size: 0.8rem;
    color: var(--light);
    margin-left: auto;
    white-space: nowrap;
}

/* ── Cuisine sub-filter ── */
.cuisine-bar {
    display: none; /* shown by JS when restaurants active */
    padding: 6px 20px;
    background: var(--page);
    border-bottom: 1px solid var(--rule-light);
    overflow-x: auto;
    white-space: nowrap;
    gap: 6px;
    flex-shrink: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.cuisine-bar::-webkit-scrollbar { display: none; }

.cuisine-bar.visible { display: flex; }

.cuisine-chip {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--rule);
    background: var(--page);
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
}

.cuisine-chip.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.cuisine-chip:hover { border-color: var(--accent); }

/* ── Map layout: side by side ── */
#map-layout {
    flex: 1;
    display: flex;
    min-height: 0;
}

#map {
    flex: 1;
    z-index: 1;
    min-height: 0;
}

/* ── Right sidebar (always visible on desktop) ── */
#info-sidebar {
    width: 360px;
    flex-shrink: 0;
    background: var(--page);
    border-left: 1px solid var(--rule);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Empty state */
#sidebar-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    color: var(--light);
}

#sidebar-empty .empty-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.5; }
#sidebar-empty h3 { font-size: 1.1rem; color: var(--muted); margin-bottom: 6px; }
#sidebar-empty p { font-size: 0.85rem; color: var(--light); }

/* ── Back button ── */
#back-to-list {
    padding: 10px 16px;
    background: var(--panel);
    border: none;
    border-bottom: 1px solid var(--rule);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

#back-to-list:hover { background: var(--rule-light); }

/* ── Sidebar toolbar ── */
.sidebar-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--rule-light);
    background: var(--panel);
    flex-shrink: 0;
}

#sidebar-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    flex-shrink: 0;
}

.open-now-toggle {
    font-size: 0.75rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.open-now-toggle input {
    accent-color: var(--sea);
}

#sort-select {
    font-size: 0.75rem;
    padding: 4px 6px;
    border: 1px solid var(--rule);
    border-radius: 4px;
    background: var(--page);
    color: var(--text);
    margin-left: auto;
}

/* ── List items ── */
#sidebar-list-items {
    flex: 1;
    overflow-y: auto;
}

.list-item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--rule-light);
    cursor: pointer;
    transition: background 0.15s;
    align-items: center;
}

.list-item:hover { background: var(--panel); }

.list-thumb {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.list-info { flex: 1; min-width: 0; }

.list-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-meta {
    font-size: 0.75rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.list-stars { color: #c87f00; font-weight: 700; }
.list-reviews { color: var(--light); font-weight: 400; }
.list-price { color: var(--sea); font-weight: 700; }

.list-open {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.open-yes { background: rgba(42,122,90,0.1); color: var(--sea); }
.open-no { background: rgba(179,51,51,0.08); color: var(--accent); }

.list-city {
    font-size: 0.7rem;
    color: var(--light);
    margin-top: 1px;
}

/* Open badge in detail */
.detail-open-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ── Reviews ── */
.review-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--rule-light);
}

.review-item:last-child { border-bottom: none; }

.review-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.review-stars {
    color: #c87f00;
    font-size: 0.8rem;
}

.review-author {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text);
}

.review-date {
    font-size: 0.7rem;
    color: var(--light);
    margin-left: auto;
}

.review-text {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ── Detail content (inside sidebar) ── */
#detail-body {
    padding: 0;
    flex: 1;
}

#detail-body.hidden {
    display: none;
}

/* Detail image */
.detail-image {
    overflow: hidden;
    max-height: 220px;
}

.detail-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Detail header */
.detail-header {
    padding: 16px 16px 8px;
}

.detail-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.detail-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
}

.badge-restaurant { background: #e65100; }
.badge-bar { background: #7b1fa2; }
.badge-cafe { background: #795548; }
.badge-beach_bar { background: #00838f; }
.badge-event { background: #1565c0; }
.badge-beach { background: #f9a825; color: #333; }

.detail-cuisine {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--panel);
    color: var(--muted);
    border: 1px solid var(--rule-light);
}

/* Rating + price */
.detail-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--rule-light);
}

.detail-stars {
    color: #c87f00;
    font-size: 1.1rem;
}

.detail-rating-num {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
}

.detail-price {
    font-weight: 700;
    color: var(--sea);
    font-size: 1rem;
    margin-left: auto;
}

/* Info section */
.detail-section {
    padding: 12px 16px;
    border-bottom: 1px solid var(--rule-light);
}

.detail-row {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.8;
}

.detail-row a {
    color: var(--accent);
    text-decoration: none;
}

.detail-row a:hover {
    text-decoration: underline;
}

.detail-reviews {
    font-size: 0.8rem;
    color: var(--light);
    font-weight: 400;
    margin-left: 2px;
}

/* Opening hours */
.detail-hours {
    padding: 12px 16px;
    border-bottom: 1px solid var(--rule-light);
}

.detail-hours-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 2px 0;
    color: var(--muted);
}

.hours-row.hours-today {
    font-weight: 700;
    color: var(--accent);
}

.hours-day {
    width: 36px;
    flex-shrink: 0;
}

.hours-time {
    text-align: right;
}

/* Tags */
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--rule-light);
}

.detail-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(42,122,90,0.08);
    color: var(--sea);
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Description */
.detail-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 12px 16px;
    padding: 10px;
    background: var(--panel);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

/* Event dates */
.detail-dates {
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid var(--rule-light);
}

/* Action buttons */
.detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px;
}

.detail-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    border: 1px solid var(--rule);
}

.btn-directions {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-directions:hover {
    background: var(--accent-deep);
}

.btn-tripadvisor {
    background: var(--page);
    color: #00aa6c;
    border-color: #00aa6c;
}

.btn-tripadvisor:hover {
    background: rgba(0,170,108,0.08);
}

.btn-website {
    background: var(--page);
    color: var(--accent);
}

.btn-website:hover {
    background: var(--panel);
}

.btn-gmaps {
    background: var(--page);
    color: #1a73e8;
    border-color: #1a73e8;
}

.btn-gmaps:hover {
    background: rgba(26,115,232,0.06);
}

/* ── Image slider ── */
.detail-slider {
    position: relative;
    overflow: hidden;
    max-height: 220px;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease;
}

.slider-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    flex-shrink: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.7);
}

.slider-prev { left: 8px; }
.slider-next { right: 8px; }

.slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
}

.slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: background 0.2s;
}

.slider-dot.active {
    background: #fff;
}

/* ── Expander sections ── */
.detail-expander {
    border-bottom: 1px solid var(--rule-light);
}

.expander-title {
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.expander-title::after {
    content: '▸';
    transition: transform 0.2s;
    font-size: 0.8rem;
    color: var(--light);
}

details[open] .expander-title::after {
    transform: rotate(90deg);
}

.expander-title::-webkit-details-marker {
    display: none;
}

.expander-body {
    padding: 0 16px 12px;
}

/* About sections */
.about-section {
    margin-bottom: 10px;
}

.about-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.about-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(42,122,90,0.06);
    color: var(--sea);
    border-radius: 10px;
    font-size: 0.7rem;
}

/* Busy times chart */
.busy-day-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 6px;
}

.busy-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 50px;
}

.busy-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.busy-bar {
    width: 100%;
    background: var(--sea);
    border-radius: 2px 2px 0 0;
    min-height: 2px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.busy-now .busy-bar {
    background: var(--accent);
    opacity: 1;
}

.busy-hour {
    font-size: 7px;
    color: var(--light);
    margin-top: 2px;
}

.busy-empty {
    font-size: 0.8rem;
    color: var(--light);
    font-style: italic;
}

/* ── Custom marker icons ── */
.marker-restaurant { background: #e65100; }
.marker-bar { background: #7b1fa2; }
.marker-cafe { background: #795548; }
.marker-beach_bar { background: #00838f; }
.marker-event { background: #1565c0; }
.marker-beach { background: #f9a825; }

.custom-marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    line-height: 1;
}

/* ── Cluster styles ── */
.marker-cluster-small {
    background-color: rgba(42,122,90,0.2);
}
.marker-cluster-small div {
    background-color: rgba(42,122,90,0.7);
    color: #fff;
    font-weight: 700;
}
.marker-cluster-medium {
    background-color: rgba(200,127,0,0.2);
}
.marker-cluster-medium div {
    background-color: rgba(200,127,0,0.7);
    color: #fff;
    font-weight: 700;
}
.marker-cluster-large {
    background-color: rgba(179,51,51,0.2);
}
.marker-cluster-large div {
    background-color: rgba(179,51,51,0.7);
    color: #fff;
    font-weight: 700;
}

/* ── Search results sidebar (overlays map on desktop) ── */
#search-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    height: 100%;
    background: var(--page);
    border-right: 1px solid var(--rule);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, visibility 0.3s;
}

#search-sidebar.hidden {
    transform: translateX(-100%);
    pointer-events: none;
    visibility: hidden;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--rule);
}

.sidebar-header h2 {
    font-size: 1rem;
    color: var(--accent);
}

#close-sidebar {
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.4rem;
    cursor: pointer;
}

#sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.sidebar-item {
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 4px;
}

.sidebar-item:hover {
    background: var(--panel);
}

.sidebar-item-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.sidebar-item-meta {
    font-size: 0.75rem;
    color: var(--light);
    margin-top: 2px;
}

/* ── Mobile detail panel (bottom sheet) ── */
#mobile-detail {
    display: none; /* only shown on mobile */
}

/* ── Mobile ── */
@media (max-width: 768px) {
    #map-header {
        padding: 8px 12px;
        gap: 10px;
    }
    #map-header .logo {
        font-size: 1rem;
    }
    .map-nav a { font-size: 0.7rem; padding: 3px 7px; }
    #map-header h1 { display: none; }

    #controls {
        padding: 6px 10px;
        gap: 6px;
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: none;
        min-width: 0;
        width: 100%;
    }
    .search-box input {
        padding: 10px 34px 10px 12px;
        font-size: 16px;
    }

    .filter-group {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }
    .filter-group::-webkit-scrollbar {
        display: none;
    }

    .filter-label { display: none; }

    .chip {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .stats { display: none; }

    /* Map takes full width, no right sidebar */
    #map-layout {
        flex-direction: column;
    }

    #info-sidebar {
        display: none;
    }

    /* Mobile detail bottom sheet */
    #mobile-detail {
        display: flex;
        flex-direction: column;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 60vh;
        background: var(--page);
        border-top: 2px solid var(--accent);
        border-radius: 14px 14px 0 0;
        z-index: 1002;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
        transition: transform 0.3s ease, visibility 0.3s;
        overflow-y: auto;
    }

    #mobile-detail.hidden {
        transform: translateY(100%);
        pointer-events: none;
        visibility: hidden;
    }

    .mobile-detail-header {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 16px 4px;
        position: relative;
        flex-shrink: 0;
    }

    .mobile-detail-handle {
        width: 40px;
        height: 4px;
        background: var(--rule);
        border-radius: 2px;
    }

    #close-mobile-detail {
        background: none;
        border: none;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--accent);
        cursor: pointer;
        padding: 6px 12px;
    }

    #close-mobile-x {
        position: absolute;
        right: 10px;
        top: 4px;
        background: var(--rule);
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        font-size: 1.2rem;
        color: var(--text);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #mobile-detail-body .detail-image {
        max-height: 160px;
    }

    #mobile-detail-body .detail-image img {
        height: 160px;
    }

    #mobile-detail-body .detail-name {
        font-size: 1.1rem;
    }

    #mobile-detail-body .detail-actions {
        gap: 6px;
    }

    #mobile-detail-body .detail-btn {
        padding: 8px 8px;
        font-size: 0.75rem;
    }

    /* Sidebar becomes bottom section on mobile */
    #info-sidebar {
        display: flex;
        width: 100%;
        height: 35vh;
        border-left: none;
        border-top: 1px solid var(--rule);
    }

    #map-layout {
        flex-direction: column;
    }

    #back-to-list {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .list-thumb {
        width: 48px;
        height: 48px;
    }

    .list-item {
        padding: 8px 10px;
    }

    /* Custom marker bigger touch targets */
    .custom-marker {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    /* Search sidebar as bottom sheet on mobile */
    #search-sidebar {
        width: 100%;
        height: 55vh;
        top: auto;
        bottom: 0;
        left: 0;
        border-right: none;
        border-top: 2px solid var(--accent);
        border-radius: 14px 14px 0 0;
    }
    #search-sidebar.hidden {
        transform: translateY(100%);
    }

    .leaflet-top.leaflet-left {
        top: 8px;
    }
}
