/* ─── Discovery Map Layout ─── */

.uce-map-discovery {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--uce-bg-primary, #fdf6e6);
    border-radius: 12px;
    overflow: visible;
    border: 1px solid rgba(13,27,42,0.06);
}

.uce-map-discovery-body {
    display: flex;
    height: 570px;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
}

/* ─── Search Bar ─── */

.uce-map-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--uce-bg-secondary, #fdf6e6);
    border-bottom: 1px solid rgba(13,27,42,0.06);
    flex-wrap: nowrap;
}

.uce-map-search {
    position: relative;
    flex: 1;
    min-width: 200px;
    height: 40px;
    align-self: center;
}

.uce-map-search-inner {
    display: flex;
    background: rgba(13,27,42,0.06);
    border: 1px solid rgba(13,27,42,0.1);
    border-radius: 8px;
    height: 40px;
    box-sizing: border-box;
    position: relative;
    top: -8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.uce-map-search-inner:focus-within {
    border-color: var(--uce-gold, #b8922d);
    box-shadow: 0 0 0 2px rgba(184,146,45,0.12);
}

.uce-map-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: rgba(13,27,42,0.35);
}

#uce-map-search-input,
#uce-map-search-input:focus,
#uce-map-search-input:active {
    flex: 1;
    border: none !important;
    background: none !important;
    color: var(--uce-text-primary, #0d1b2a);
    font-size: 14px;
    padding: 0 12px 0 0;
    height: 100%;
    outline: none !important;
    box-shadow: none !important;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
}

#uce-map-search-input::placeholder {
    color: rgba(13,27,42,0.3);
}

#uce-map-search-clear {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: rgba(13,27,42,0.35);
    cursor: pointer;
    width: 32px;
    height: 40px;
    padding: 0;
    flex-shrink: 0;
    transition: color 0.2s;
}

#uce-map-search-clear.is-visible {
    display: flex;
}

#uce-map-search-clear:hover {
    color: var(--uce-text-primary, #0d1b2a);
}

#uce-map-search-btn {
    flex-shrink: 0;
    align-self: center;
    background: linear-gradient(135deg, #4a5568 0%, #3d4654 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0 28px;
    height: 40px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#uce-map-search-btn:hover {
    background: linear-gradient(135deg, #3d4654 0%, #2d3748 100%) !important;
}

/* Autocomplete */

#uce-map-autocomplete {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--uce-bg-secondary, #fdf6e6);
    border: 1px solid rgba(13,27,42,0.1);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(13,27,42,0.08);
    max-height: 320px;
    overflow-y: auto;
}

.uce-map-ac-item {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(13,27,42,0.04);
}

.uce-map-ac-item:last-child {
    border-bottom: none;
}

.uce-map-ac-item:hover {
    background: rgba(13,27,42,0.06);
}

.uce-map-ac-label {
    color: var(--uce-text-primary, #0d1b2a);
    font-size: 13px;
    font-weight: 500;
}

.uce-map-ac-sub {
    color: rgba(13,27,42,0.35);
    font-size: 11px;
    margin-top: 2px;
}

.uce-map-ac-item--location .uce-map-ac-label::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--uce-gold, #b8922d);
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

/* ─── Toolbar buttons ─── */

.uce-map-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

#uce-map-filters-toggle,
#uce-map-locate-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(74,85,104,0.08) !important;
    border: 1px solid rgba(74,85,104,0.18) !important;
    color: #4a5568 !important;
    border-radius: 8px !important;
    padding: 0 14px;
    height: 40px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
    box-sizing: border-box;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#uce-map-filters-toggle:hover,
#uce-map-locate-btn:hover {
    background: rgba(74,85,104,0.14) !important;
    color: #3d4654 !important;
}

#uce-map-filters-toggle.is-active {
    border-color: var(--uce-gold, #b8922d);
    color: var(--uce-gold, #b8922d);
}

#uce-map-locate-btn.is-active {
    border-color: var(--uce-gold, #b8922d);
    color: var(--uce-gold, #b8922d);
}

#uce-map-locate-btn.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ─── Filters Panel ─── */

#uce-map-filters {
    display: none;
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid rgba(13,27,42,0.09);
    border-top: 1px solid rgba(13,27,42,0.06);
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
    position: relative;
    z-index: 10;
}

#uce-map-filters.is-open {
    display: flex;
}

.uce-map-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.uce-map-filter-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #a0aec0;
}

/* Type toggle chips */

.uce-map-type-toggles {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.uce-map-type-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    height: 32px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid rgba(13,27,42,0.13);
    background: #f7f8fa;
    color: #5a6478;
    transition: all 0.18s;
    user-select: none;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.uce-map-type-chip input,
.uce-map-type-chip input[type="checkbox"] {
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    pointer-events: none;
}

.uce-map-type-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.35;
    transition: opacity 0.18s;
}

.uce-map-type-chip.is-checked {
    border-color: var(--chip-color, rgba(13,27,42,0.3));
    background: rgba(13,27,42,0.06);
    color: #1a202c;
}

@supports (color: color-mix(in srgb, red, blue)) {
    .uce-map-type-chip.is-checked {
        background: color-mix(in srgb, var(--chip-color, #4a5568) 10%, #fff);
        color: color-mix(in srgb, var(--chip-color, #4a5568) 75%, #000);
    }
}

.uce-map-type-chip.is-checked .uce-map-type-dot {
    opacity: 1;
}

/* Clean select dropdowns */

.uce-map-filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #f7f8fa 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='%23718096' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1.5px solid rgba(13,27,42,0.13);
    color: #2d3748;
    border-radius: 8px;
    padding: 0 32px 0 11px;
    height: 32px;
    font-size: 13px;
    font-weight: 500;
    min-width: 130px;
    cursor: pointer;
    transition: border-color 0.18s, box-shadow 0.18s;
    line-height: 32px;
    box-sizing: border-box;
}

.uce-map-filter-select:focus {
    outline: none;
    border-color: var(--uce-gold, #b8922d);
    box-shadow: 0 0 0 2px rgba(184,146,45,0.12);
}

.uce-map-filter-select option {
    background: #ffffff;
    color: #2d3748;
    padding: 0;
    margin: 0;
}

/* Featured toggle switch */

.uce-map-filter-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    padding-top: 2px;
    position: relative;
}

.uce-map-filter-switch input,
.uce-map-filter-switch input[type="checkbox"] {
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    pointer-events: none;
}

.uce-map-filter-switch-track {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    background: #e2e8f0;
    border-radius: 10px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.uce-map-filter-switch input:checked + .uce-map-filter-switch-track {
    background: var(--uce-gold, #b8922d);
}

.uce-map-filter-switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(13,27,42,0.2);
    transition: transform 0.2s;
}

.uce-map-filter-switch input:checked ~ .uce-map-filter-switch-track .uce-map-filter-switch-thumb,
.uce-map-filter-switch input:checked + .uce-map-filter-switch-track .uce-map-filter-switch-thumb {
    transform: translateX(16px);
}

.uce-map-filter-switch-label {
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
}

.uce-map-filter-switch:has(input:checked) .uce-map-filter-switch-label {
    color: #2d3748;
    font-weight: 600;
}

/* Radius group */

#uce-map-radius-group {
    flex-direction: column;
    align-items: flex-start;
}

#uce-map-radius {
    appearance: none;
    -webkit-appearance: none;
    background: #f7f8fa 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='%23718096' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1.5px solid rgba(13,27,42,0.13);
    color: #2d3748;
    border-radius: 8px;
    padding: 0 32px 0 11px;
    height: 32px;
    font-size: 13px;
    font-weight: 500;
    width: 100px;
    cursor: pointer;
    transition: border-color 0.18s, box-shadow 0.18s;
}

#uce-map-radius:focus {
    outline: none;
    border-color: var(--uce-gold, #b8922d);
    box-shadow: 0 0 0 2px rgba(184,146,45,0.12);
}

#uce-map-radius option {
    background: #ffffff;
    color: #2d3748;
    padding: 0;
}

/* Legacy — keep for backwards compat */
.uce-map-filter-check { display: none; }

/* ─── Map Container ─── */

.uce-map-container {
    flex: 1;
    min-width: 0;
    position: relative;
}

#uce-discovery-map {
    width: 100%;
    height: 100%;
    background: #0d1a2e;
}

/* ─── Zoom Slider Control ─── */

#uce-map-zoom-control {
    position: absolute;
    bottom: 12px;
    left: 8px;
    z-index: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: rgba(10,22,40,0.92);
    border: 1px solid rgba(253,246,230,0.12);
    border-radius: 6px;
    padding: 4px 3px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

#uce-map-zoom-in,
#uce-map-zoom-out {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    background: rgba(253,246,230,0.06) !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
    line-height: 1 !important;
    font-size: 0 !important;
    transition: background 0.15s ease !important;
    box-sizing: border-box !important;
}

#uce-map-zoom-in:hover,
#uce-map-zoom-out:hover {
    background: rgba(253,246,230,0.14) !important;
}

#uce-map-zoom-in svg,
#uce-map-zoom-out svg {
    width: 10px !important;
    height: 10px !important;
    display: block !important;
    stroke: #fdf6e6 !important;
    fill: none !important;
    pointer-events: none !important;
    flex-shrink: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.uce-map-zoom-track {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    width: 18px;
    position: relative;
}

#uce-map-zoom-slider-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 36px;
    height: 2px;
    transform: rotate(-90deg);
    cursor: pointer;
    background: rgba(253,246,230,0.2);
    border-radius: 1px;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    outline: none !important;
}

#uce-map-zoom-slider-input::-webkit-slider-runnable-track {
    height: 2px;
    background: rgba(253,246,230,0.2);
    border-radius: 1px;
}

#uce-map-zoom-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--uce-gold, #b8922d);
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
    margin-top: -3px;
    transition: transform 0.15s;
}

#uce-map-zoom-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

#uce-map-zoom-slider-input::-moz-range-track {
    height: 2px;
    background: rgba(253,246,230,0.2);
    border-radius: 1px;
}

#uce-map-zoom-slider-input::-moz-range-thumb {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--uce-gold, #b8922d);
    border: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* Loading overlay */

#uce-map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 800;
    display: none;
    align-items: center;
    gap: 10px;
    background: rgba(10,22,40,0.92);
    border: 1px solid rgba(253,246,230,0.1);
    border-radius: 8px;
    padding: 12px 20px;
    color: rgba(253,246,230,0.7);
    font-size: 13px;
}

#uce-map-loading.is-visible {
    display: flex;
}

.uce-map-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(13,27,42,0.15);
    border-top-color: var(--uce-gold, #b8922d);
    border-radius: 50%;
    animation: uceMapSpin 0.7s linear infinite;
}

@keyframes uceMapSpin {
    to { transform: rotate(360deg); }
}

/* Notice */

#uce-map-notice {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 800;
    background: rgba(10,22,40,0.95);
    border: 1px solid rgba(184,146,45,0.3);
    border-radius: 8px;
    padding: 10px 18px;
    color: var(--uce-gold, #b8922d);
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

#uce-map-notice.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ─── Custom Markers ─── */

.uce-map-marker {
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background: rgba(226,234,245,0.9);
    box-shadow: 0 2px 8px rgba(13,27,42,0.06);
    transition: transform 0.2s;
    border: none !important;
    overflow: visible !important;
}

.uce-map-marker:hover,
.uce-map-marker.is-hovered {
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(184,146,45,0.32), 0 8px 18px rgba(13,27,42,0.22);
    z-index: 900 !important;
}

.uce-map-marker svg {
    stroke: #fdf6e6;
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    flex-shrink: 0;
    overflow: visible !important;
}

.uce-map-marker--event {
    background: var(--uce-event-color, rgba(217,83,79,0.9));
}
.uce-map-marker--event svg { stroke: #fff; }

.uce-map-marker--dealer {
    background: var(--uce-dealer-color, rgba(232,146,58,0.9));
}
.uce-map-marker--dealer svg { stroke: #fff; }

.uce-map-marker--club {
    background: var(--uce-club-color, rgba(51,122,183,0.9));
}
.uce-map-marker--club svg { stroke: #fff; }

.uce-map-marker--shop {
    background: var(--uce-shop-color, rgba(92,184,92,0.9));
}
.uce-map-marker--shop svg { stroke: #fff; }

.uce-map-marker--featured {
    box-shadow: 0 0 0 3px rgba(184,146,45,0.6), 0 2px 10px rgba(13,27,42,0.08);
}

/* Leaflet divIcon resets — prevent default white-square appearance */
.leaflet-marker-icon.uce-map-marker,
.leaflet-marker-icon.uce-map-cluster,
.leaflet-marker-icon.uce-map-marker-user {
    background-clip: padding-box;
    border: none !important;
}

/* User location marker */

.uce-map-marker-user {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
}

.uce-map-marker-user span {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3a7bd5;
    box-shadow: 0 0 0 4px rgba(58,123,213,0.3), 0 0 12px rgba(58,123,213,0.4);
    animation: uceMapPulse 2s ease infinite;
}

@keyframes uceMapPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(58,123,213,0.3), 0 0 12px rgba(58,123,213,0.4); }
    50%      { box-shadow: 0 0 0 8px rgba(58,123,213,0.15), 0 0 20px rgba(58,123,213,0.2); }
}

/* Cluster markers */

.uce-map-cluster {
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    border: none !important;
    text-align: center;
    line-height: 1;
}

.uce-map-cluster span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.uce-map-cluster--sm {
    background: rgba(58,123,213,0.85);
    box-shadow: 0 0 0 4px rgba(58,123,213,0.25);
}

.uce-map-cluster--md {
    background: rgba(184,146,45,0.85);
    box-shadow: 0 0 0 4px rgba(184,146,45,0.25);
}

.uce-map-cluster--lg {
    background: rgba(232,146,58,0.85);
    box-shadow: 0 0 0 5px rgba(232,146,58,0.25);
}

/* Leaflet MarkerCluster default overrides — prevent square icons after spiderfy */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background: transparent !important;
    border: none !important;
}
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background: transparent !important;
}

/* ─── Popups ─── */

.uce-map-popup-wrap .leaflet-popup-content-wrapper {
    background: var(--uce-bg-secondary, #fdf6e6);
    border: 1px solid rgba(13,27,42,0.1);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(13,27,42,0.1);
    color: var(--uce-text-primary, #0d1b2a);
    padding: 0;
}

.uce-map-popup-wrap .leaflet-popup-tip {
    background: var(--uce-bg-secondary, #fdf6e6);
    border: 1px solid rgba(13,27,42,0.08);
}

.uce-map-popup-wrap .leaflet-popup-content {
    margin: 0;
    min-width: 220px;
}

.uce-map-popup {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.uce-map-popup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.uce-map-popup-type {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--type-color, #4a5568);
    background: rgba(13,27,42,0.06);
    padding: 2px 8px;
    border-radius: 4px;
}

.uce-map-popup-feat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--uce-gold, #b8922d);
    background: rgba(184,146,45,0.12);
    padding: 2px 8px;
    border-radius: 4px;
}

.uce-map-popup-thumb {
    border-radius: 6px;
    overflow: hidden;
    margin: 4px 0;
}

.uce-map-popup-thumb img {
    display: block;
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.uce-map-popup--dealer .uce-map-popup-thumb img {
    object-fit: contain;
    background: #ffffff;
}

.uce-map-popup-title {
    font-size: 14px;
    line-height: 1.3;
}

.uce-map-popup-title a {
    color: var(--uce-text-primary, #0d1b2a);
    text-decoration: none;
}

.uce-map-popup-title a:hover {
    color: var(--uce-gold, #b8922d);
}

.uce-map-popup-date,
.uce-map-popup-venue,
.uce-map-popup-meta,
.uce-map-popup-loc {
    font-size: 12px;
    color: rgba(13,27,42,0.5);
}

.uce-map-popup-date {
    color: var(--uce-gold, #b8922d);
    font-weight: 500;
}

.uce-map-popup-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--uce-gold, #b8922d);
    text-decoration: none;
    margin-top: 4px;
    transition: color 0.2s;
}

.uce-map-popup-link:hover {
    color: #d4a932;
}

/* ─── Listing Panel ─── */

.uce-map-listing {
    width: 360px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(13,27,42,0.06);
    background: var(--uce-bg-primary, #fdf6e6);
    max-height: 570px;
    overflow: hidden;
}

.uce-map-listing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(13,27,42,0.06);
}

.uce-map-listing-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--uce-text-primary, #0d1b2a);
}

#uce-map-result-count {
    font-size: 12px;
    color: var(--uce-text-dim, #718096);
}

#uce-map-listing-items {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

/* List items */

.uce-map-list-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    border: 1px solid transparent;
    color: #0d1b2a;
}

.uce-map-list-item:hover {
    filter: brightness(0.96);
}

.uce-map-list-item.is-hovered {
    background: rgba(184,146,45,0.08) !important;
    border-color: rgba(184,146,45,0.28);
    box-shadow: 0 4px 14px rgba(13,27,42,0.08);
}

.uce-map-list-item.is-selected {
    background: rgba(184,146,45,0.06);
    border-color: rgba(184,146,45,0.2);
}

.uce-map-list-thumb {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(13,27,42,0.04);
}

.uce-map-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uce-map-list-item--dealer .uce-map-list-thumb img {
    object-fit: contain;
    background: #ffffff;
}

.uce-map-list-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.uce-map-list-type-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.uce-map-list-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.uce-map-list-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.uce-map-list-type-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--type-color, #4a5568);
    background: rgba(13,27,42,0.06);
    padding: 1px 6px;
    border-radius: 3px;
}

.uce-map-list-feat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--uce-gold, #b8922d);
}

.uce-map-list-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--uce-text-primary, #0d1b2a);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uce-map-list-title:hover {
    color: var(--uce-gold, #b8922d);
}

.uce-map-list-date {
    font-size: 11px;
    color: var(--uce-gold, #b8922d);
    font-weight: 500;
}

.uce-map-list-venue,
.uce-map-list-spec,
.uce-map-list-sched,
.uce-map-list-loc {
    font-size: 11px;
    color: var(--uce-text-dim, #718096);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uce-map-list-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    color: rgba(13,27,42,0.3);
    font-size: 13px;
    text-align: center;
    padding: 20px;
}

.uce-map-list-more {
    display: block;
    width: 100%;
    margin-top: 8px;
}

/* Featured list items */

.uce-map-list-item--featured {
    border-left: 3px solid var(--uce-gold, #b8922d);
    background: rgba(184,146,45,0.04);
}

.uce-map-list-item--featured .uce-map-list-thumb {
    width: 72px;
    height: 72px;
}

.uce-map-list-item--featured .uce-map-list-thumb img {
    border-radius: 6px;
}

/* ─── Responsive ─── */

@media (max-width: 900px) {
    .uce-map-discovery-body {
        flex-direction: column;
        height: auto;
    }

    .uce-map-container {
        height: 350px;
        order: 1;
    }

    #uce-discovery-map {
        min-height: 350px;
    }

    .uce-map-listing {
        width: 100%;
        border-right: none;
        border-top: 1px solid rgba(13,27,42,0.06);
        max-height: 400px;
        order: 2;
    }

    #uce-map-listing-items {
        max-height: 320px;
    }
}

@media (max-width: 600px) {
    .uce-map-toolbar {
        padding: 10px 12px;
        gap: 8px;
    }

    .uce-map-search {
        min-width: 160px;
    }

    #uce-map-search-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    #uce-map-filters-toggle span,
    #uce-map-locate-btn span {
        display: none;
    }

    .uce-map-container {
        min-height: 280px;
    }

    #uce-discovery-map {
        min-height: 280px;
    }

    .uce-map-listing {
        max-height: 300px;
    }
}
