/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --text-primary: #000000;
    --text-secondary: #444444;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 12px;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: 90%;
    margin: 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Header */
header {
    text-align: center;
    margin: 0;
    padding: 0;
    border: none;
}

header h1 {
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Layout */
.main-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;
    height: 100vh;
    overflow-y: hidden;
    display: none;
    flex-direction: column;
    gap: 0;
    background: transparent;
    z-index: 1;
}
.main-content.show-sidebar {
    display: flex;
}

/* Category selector panel */
.category-selector {
    background: rgba(255, 255, 255, 0.75);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.category-type-options .filter-option {
    flex-shrink: 0;
}

/* Popup filters grid layout (after category selection) */
.popup-filters-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 55vh;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.popup-filter-minimize-shell {
    position: relative;
}

.popup-minimized-tray {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: end;
    gap: 0.35rem;
    max-width: 56%;
}

.popup-filter-minimize-shell:not(.has-minimized) .popup-minimized-tray {
    display: none;
}

.popup-minimized-chip {
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 999px;
    background: rgba(255,255,255,0.96);
    color: rgba(0,0,0,0.78);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.25rem 0.45rem;
    cursor: pointer;
}

.popup-filter-minimize-shell.has-minimized .popup-filters-grid {
    padding-top: calc((var(--popup-minimized-rows, 1) * 1.85rem) + 0.35rem);
}

.popup-filter-minimize-shell.has-minimized .category-accordion-list {
    padding-top: calc((var(--popup-minimized-rows, 1) * 1.85rem) + 0.35rem);
}

.popup-filter-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1.5rem;
    align-items: start;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.popup-filter-row:last-child {
    border-bottom: none;
}

.popup-filter-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(0,0,0,0.85);
    padding-top: 0.25rem;
}

.popup-filter-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.4rem;
}

.popup-category-minimize-btn {
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 999px;
    background: rgba(255,255,255,0.95);
    color: rgba(0,0,0,0.74);
    width: 1.2rem;
    height: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.popup-filter-empty {
    display: block;
    font-size: 0.9rem;
    color: rgba(0,0,0,0.65);
    border: 1px dashed rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 0.7rem;
}

.popup-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.popup-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
}

.popup-filter-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.popup-filter-checkbox span {
    color: rgba(0,0,0,0.75);
}

.popup-filter-checkbox:hover span {
    color: rgba(0,0,0,0.95);
}

/* Chip buttons for category selector */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0.25rem;
    overflow-y: auto;
    align-content: flex-start;
}
.category-type-options.chips.category-step {
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, max-content));
    gap: 0.6rem;
    align-content: start;
    justify-content: center;
}
.category-type-options.chips.category-step .chip-button {
    width: auto;
}
.category-type-options.chips.category-accordion-step {
    display: block;
    width: 100%;
    padding: 0.35rem 0.1rem;
    overflow-y: auto;
}
.category-type-options.chips.cuisine-step {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 0.6rem;
    align-content: start;
}
.category-type-options.chips.cuisine-step .chip-button {
    width: 100%;
}
.chip-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.45rem;
    border-radius: 999px;
    border: 2px solid #777;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 600;
    transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}
.chip-button:active {
    transform: scale(0.98);
    border-color: rgba(50, 135, 16, 0.95);
    box-shadow:
        inset 0 0 12px rgba(154, 207, 132, 0.55),
        inset 0 0 22px rgba(50, 135, 16, 0.35),
        0 0 0 4px rgba(50, 135, 16, 0.18),
        0 0 16px rgba(50, 135, 16, 0.45),
        0 0 30px rgba(50, 135, 16, 0.35);
}
.chip-button.selected {
    border-color: rgba(50, 135, 16, 0.95);
    box-shadow:
        inset 0 0 12px rgba(154, 207, 132, 0.55),
        inset 0 0 22px rgba(50, 135, 16, 0.35),
        0 0 0 4px rgba(50, 135, 16, 0.18),
        0 0 16px rgba(50, 135, 16, 0.45),
        0 0 30px rgba(50, 135, 16, 0.35);
    animation: pulseGold 2s ease-in-out infinite;
}
.chip-button.excluded {
    border-color: rgba(220, 38, 38, 0.95);
    box-shadow:
        inset 0 0 12px rgba(254, 202, 202, 0.45),
        inset 0 0 22px rgba(220, 38, 38, 0.3),
        0 0 0 4px rgba(220, 38, 38, 0.16),
        0 0 16px rgba(220, 38, 38, 0.42),
        0 0 30px rgba(220, 38, 38, 0.3);
    animation: pulseRed 2s ease-in-out infinite;
}

/* Centered modal-like selector */
.modal-centered {
    position: fixed;
    z-index: 999;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    /* tighter width so popup hugs content more */
    width: min(620px, 88%);
    max-width: 620px;
    max-height: 72vh;
    background: var(--card-bg);
    padding: 0.85rem 0.9rem;
    box-shadow: 0 18px 60px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-radius: 10px;
    overflow: hidden;
    transition: width 0.3s ease, max-width 0.3s ease;
}

/* Wider popup when showing filters */
.modal-centered.showing-filters {
    width: min(760px, 92%);
    max-width: 760px;
}

.modal-centered.hidden {
    display: none;
}

.modal-centered.minimized {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    transform: none;
    width: auto;
    max-width: none;
    max-height: none;
    padding: 0 0.75rem;
    margin-left: 0;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    min-height: 34px;
    max-height: 34px;
    line-height: 1;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.25);
    border-radius: 8px;
    background: #2B8A30;
    box-shadow: none;
    box-sizing: border-box;
    min-width: 74px;
}

.modal-centered.minimized .selector-header,
.modal-centered.minimized .selector-tabs,
.modal-centered.minimized .cuisine-mode-switch,
.modal-centered.minimized .category-type-options,
.modal-centered.minimized .selector-footer {
    display: none;
}

.modal-centered.minimized button:not(.minimize-btn) {
    display: none !important;
}

.modal-centered.minimized .minimize-btn {
    display: none;
}

.minimize-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.2);
    color: rgba(0,0,0,0.7);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.minimize-btn:hover {
    background: rgba(0,0,0,0.1);
    border-color: rgba(0,0,0,0.4);
}

.modal-centered.minimized::before {
    content: '⚙️ Filters';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    color: #ffffff;
    white-space: nowrap;
    transform: translateY(1px);
    pointer-events: none;
}

.map-location-btn {
    border: 1px solid rgba(0,0,0,0.25);
    border-radius: 8px;
    background: #96652F;
    color: #ffffff;
    padding: 0 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
    display: block;
    width: 150px;
    min-width: 150px;
    height: 34px;
    min-height: 34px;
    max-height: 34px;
    white-space: nowrap;
    flex: 0 0 auto;
    line-height: 1;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    transition: none;
}

.map-location-btn-text {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

.emoji-icon {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    line-height: 1;
    display: inline-block;
}

.button-icon {
    display: inline-flex;
    width: 0.9rem;
    height: 0.9rem;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.button-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.map-location-btn:disabled {
    opacity: 0.88;
    cursor: wait;
}

.map-location-btn:active,
.map-location-btn:focus,
.map-location-btn:disabled,
.map-location-btn.loading {
    transform: none !important;
}

.map-location-spinner {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #ffffff;
    display: block;
    position: absolute;
    right: 10px;
    top: 50%;
    margin-top: -6px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    animation: mapLocationSpin 0.8s linear infinite;
}

.map-location-btn.loading .map-location-spinner {
    visibility: visible;
    opacity: 1;
}

#mapUseLocationBtn,
#mapUseLocationBtn.loading,
#mapUseLocationBtn:active,
#mapUseLocationBtn:focus,
#mapUseLocationBtn:disabled {
    display: block !important;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding: 0 0.75rem !important;
    border-width: 1px !important;
    font-size: 0.85rem !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    transform: none !important;
    box-shadow: none !important;
    outline: none !important;
}

#mapUseLocationBtn::-moz-focus-inner {
    border: 0;
    padding: 0;
}

@keyframes mapLocationSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.selector-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-bottom: 0.25rem;
    cursor: move;
    user-select: none;
}
.modal-centered.dragging {
    transition: none;
}
.selector-titles {
    text-align: center;
}
.selector-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0 2rem 0 0.1rem;
}
.selector-tab {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.25);
    color: rgba(0,0,0,0.85);
    border-radius: 8px;
    padding: 0.35rem 0.8rem;
    font-size: 0.9rem;
    cursor: pointer;
}
.selector-tab.active {
    background: rgba(0,0,0,0.9);
    border-color: rgba(0,0,0,0.9);
    color: #fff;
}
.cuisine-mode-switch {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 0.1rem;
}
.cuisine-mode-toggle {
    width: 320px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.35);
    background: rgba(0,0,0,0.1);
    position: relative;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
.cuisine-mode-option {
    z-index: 1;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(0,0,0,0.7);
    user-select: none;
    pointer-events: auto;
}
.cuisine-mode-option.active {
    color: rgba(0,0,0,0.95);
    font-weight: 600;
}
.cuisine-mode-knob {
    width: calc(50% - 4px);
    height: calc(100% - 4px);
    border-radius: 8px;
    background: rgba(255,255,255,0.95);
    position: absolute;
    top: 2px;
    left: 2px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.22);
    transition: transform 0.2s ease;
    z-index: 0;
}
.cuisine-mode-switch.groups-mode .cuisine-mode-toggle {
    background: rgba(0,0,0,0.85);
    border-color: rgba(0,0,0,0.85);
}
.cuisine-mode-switch.groups-mode .cuisine-mode-knob {
    transform: translateX(calc(100% + 2px));
}
.cuisine-mode-switch.groups-mode .cuisine-mode-option {
    color: rgba(255,255,255,0.78);
}
.cuisine-mode-switch.groups-mode .cuisine-mode-option.active {
    color: rgba(0,0,0,0.95);
}
.selector-hint-inline {
    display: block;
    font-weight: 700;
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.category-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.category-accordion-item {
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 10px;
    background: rgba(255,255,255,0.7);
}

.category-accordion-toggle {
    width: 100%;
    border: none;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.7rem;
    font-size: 0.95rem;
    cursor: pointer;
}

.category-accordion-title-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.5rem 0.15rem;
}

.category-accordion-title-row .category-accordion-toggle {
    padding: 0.3rem 0.2rem;
}

.category-accordion-label {
    font-weight: 600;
    color: rgba(0,0,0,0.9);
}

.category-accordion-metrics .chip-button,
.popup-filter-options .popup-filter-checkbox span,
.review-chip span {
    font-size: 0.82rem;
}

.category-accordion-meta {
    font-size: 0.82rem;
    color: rgba(0,0,0,0.65);
}

.category-accordion-metrics {
    padding: 0 0.65rem 0.65rem;
}

.category-metric-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.results-sort {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    margin-right: 0.8rem;
    font-size: 0.9rem;
}
.results-sort select {
    border: 1px solid rgba(0,0,0,0.25);
    border-radius: 6px;
    padding: 0.25rem 0.4rem;
    background: #fff;
}
.popup-filter-checkbox.excluded {
    border-radius: 8px;
    box-shadow:
        inset 0 0 10px rgba(254, 202, 202, 0.4),
        0 0 0 3px rgba(220, 38, 38, 0.14),
        0 0 14px rgba(220, 38, 38, 0.35);
    padding: 0.2rem 0.35rem;
}
.popup-filter-checkbox.excluded span {
    color: rgba(153, 27, 27, 0.95);
}
.filter-option.excluded {
    border-radius: 8px;
    box-shadow:
        inset 0 0 10px rgba(254, 202, 202, 0.4),
        0 0 0 3px rgba(220, 38, 38, 0.14),
        0 0 14px rgba(220, 38, 38, 0.35);
    padding: 0.25rem 0.35rem;
}
.filter-option.excluded label {
    color: rgba(153, 27, 27, 0.95);
}
.selector-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}
.selector-footer.initial-step {
    justify-content: center;
}
.selector-header h2 {
    margin: 0;
    font-size: 1.4rem;
    text-align: center;
    flex: 1;
}
.done-btn {
    background: rgba(0,0,0,0.9);
    border: 2px solid rgba(0,0,0,0.9);
    color: #fff;
    padding: 0.65rem 2.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.back-btn {
    border: 1px solid rgba(0,0,0,0.25);
    background: rgba(255,255,255,0.9);
    color: rgba(0,0,0,0.85);
    padding: 0.65rem 1.2rem;
    border-radius: 8px;
}
.done-btn:hover {
    background: rgba(0,0,0,1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}
.done-btn:active,
.back-btn:active {
    box-shadow:
        inset 0 0 14px rgba(255, 230, 130, 0.55),
        inset 0 0 24px rgba(245, 197, 66, 0.38),
        0 0 0 4px rgba(245, 197, 66, 0.18),
        0 0 16px rgba(245, 197, 66, 0.45),
        0 0 30px rgba(245, 197, 66, 0.35);
    border-color: rgba(245, 197, 66, 0.95);
}

/* pulse animation for selected chips */
@keyframes pulseGold {
    0% {
        box-shadow:
            inset 0 0 10px rgba(154, 207, 132, 0.45),
            inset 0 0 18px rgba(50, 135, 16, 0.28),
            0 0 8px rgba(50, 135, 16, 0.2),
            0 0 16px rgba(50, 135, 16, 0.14);
    }
    50% {
        box-shadow:
            inset 0 0 14px rgba(154, 207, 132, 0.6),
            inset 0 0 24px rgba(50, 135, 16, 0.4),
            0 0 14px rgba(50, 135, 16, 0.32),
            0 0 30px rgba(50, 135, 16, 0.22);
    }
    100% {
        box-shadow:
            inset 0 0 10px rgba(154, 207, 132, 0.45),
            inset 0 0 18px rgba(50, 135, 16, 0.28),
            0 0 8px rgba(50, 135, 16, 0.2),
            0 0 16px rgba(50, 135, 16, 0.14);
    }
}

@keyframes pulseRed {
    0% {
        box-shadow:
            inset 0 0 10px rgba(254, 202, 202, 0.35),
            inset 0 0 18px rgba(220, 38, 38, 0.22),
            0 0 8px rgba(220, 38, 38, 0.2),
            0 0 16px rgba(220, 38, 38, 0.14);
    }
    50% {
        box-shadow:
            inset 0 0 14px rgba(254, 202, 202, 0.55),
            inset 0 0 24px rgba(220, 38, 38, 0.35),
            0 0 14px rgba(220, 38, 38, 0.3),
            0 0 30px rgba(220, 38, 38, 0.2);
    }
    100% {
        box-shadow:
            inset 0 0 10px rgba(254, 202, 202, 0.35),
            inset 0 0 18px rgba(220, 38, 38, 0.22),
            0 0 8px rgba(220, 38, 38, 0.2),
            0 0 16px rgba(220, 38, 38, 0.14);
    }
}

/* Collapsed filters state */
.filters.collapsed {
    height: 40px;
    overflow: hidden;
    transition: height 0.3s ease;
}

.filters.collapsed h3,
.filters.collapsed .filter-section,
.filters.collapsed .search-input,
.filters.collapsed .filter-actions {
    display: none;
}

.filters.collapsed::after {
    content: 'Filters applied';
    display: block;
    text-align: center;
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
}

/* Map background (fills entire viewport) */
.map-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

#map {
    width: 100%;
    height: 100%;
}

.map-search-bar {
    position: fixed;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    background: #BA3520;
    border: 1px solid rgba(0,0,0,0.18);
    border-radius: 10px;
    padding: 0.35rem 0.4rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.map-search-controls {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.map-search-buttons {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.map-search-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    gap: 0.2rem;
    position: relative;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 0.2rem 0.35rem;
    box-sizing: border-box;
}

.map-search-brand::after {
    content: "";
    position: absolute;
    inset: 2px;
    border: 1px solid #000;
    border-radius: 4px;
    pointer-events: none;
}

.map-search-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
}

.map-search-title {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-align: center;
    width: 100%;
    color: #000000;
}

.map-search-tagline {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f4dcc0;
    text-align: center;
    width: 100%;
}

.map-search-bar.preload-popup {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.map-search-bar.top-docked {
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
}

.map-search-bar.top-docked .map-search-brand {
    display: none;
}

.site-brand-corner {
    display: none;
}

.results-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
    position: relative;
    width: fit-content;
    max-width: 100%;
    background: #BA3520;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 0.35rem 0.35rem;
    box-sizing: border-box;
}

.results-brand::after {
    content: "";
    position: absolute;
    inset: 2px;
    border: 1px solid #000;
    border-radius: 4px;
    pointer-events: none;
}

.results-brand-title {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #000;
    line-height: 1;
}

.results-brand-tagline {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.66);
    line-height: 1.1;
    text-align: center;
}

.auth-panel {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 8;
    width: 220px;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.16);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    padding: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.auth-panel-minimize-btn {
    display: none;
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(0,0,0,0.25);
    border-radius: 6px;
    background: #fff;
    color: rgba(0,0,0,0.82);
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.auth-panel.focused .auth-panel-minimize-btn {
    display: inline-flex;
}

.auth-panel.minimized .auth-panel-minimize-btn {
    display: none !important;
}

.auth-panel.minimized {
    width: 78px;
    min-width: 78px;
    max-width: 78px;
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    padding: 0 0.35rem;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.25);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    cursor: pointer;
}

.auth-panel.minimized > * {
    display: none !important;
}

.auth-panel.minimized::before {
    content: '👤 Account';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0,0,0,0.82);
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1;
}

.auth-panel.focused {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    width: min(92vw, 320px);
    max-width: 320px;
    max-height: min(82vh, 560px);
    overflow-y: auto;
    z-index: 25;
    padding: 0.8rem;
    border-radius: 12px;
}

.auth-panel-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(0,0,0,0.82);
}

.auth-mode-row {
    display: flex;
    gap: 0.35rem;
    align-items: stretch;
}

.auth-mode-btn,
#authRequestTokenBtn,
#authSubmitBtn,
#authSignoutBtn {
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 7px;
    background: #fff;
    color: rgba(0,0,0,0.8);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
}

.auth-forgot-btn {
    width: 100%;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.05rem;
}

.auth-mode-btn.active {
    background: rgba(0,0,0,0.86);
    color: #fff;
    border-color: rgba(0,0,0,0.86);
}

 #authRequestTokenBtn,
 #authSubmitBtn,
 #authSignoutBtn {
    width: 100%;
}

#authUsernameInput,
#authPasswordInput,
#authEmailInput,
#authResetTokenInput,
#authSpamAnswerInput {
    width: 100%;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 7px;
    padding: 0.4rem 0.5rem;
    font-size: 0.82rem;
}

.auth-spam-label {
    font-size: 0.75rem;
    color: rgba(0,0,0,0.7);
}

.recaptcha-container {
    min-height: 78px;
}

.bot-trap {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.auth-message {
    min-height: 1rem;
    font-size: 0.74rem;
    color: rgba(0,0,0,0.62);
}

.auth-message.error {
    color: #b91c1c;
}

.auth-message.success {
    color: #166534;
}

.auth-request-notification {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: rgba(0,0,0,0.7);
    padding-left: 0.2rem;
}
.auth-request-notification.success {
    color: #166534;
}
.auth-request-notification.error {
    color: #b91c1c;
}

.auth-user-label {
    font-size: 0.8rem;
    color: rgba(0,0,0,0.8);
}

.auth-signed-in-tabs {
    margin-top: 0.1rem;
}

.auth-signed-in-view {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-history-list {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-right: 0.1rem;
}

.auth-history-item {
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 0.42rem 0.5rem;
    background: rgba(255,255,255,0.96);
    text-align: left;
    cursor: pointer;
}

.auth-history-restaurant {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(0,0,0,0.86);
}

.auth-history-item:hover {
    border-color: rgba(0,0,0,0.28);
    background: rgba(248,248,248,0.98);
}

.auth-history-popup {
    position: fixed;
    inset: 0;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.25);
}

.auth-history-popup.hidden {
    display: none;
}

.auth-history-popup-card {
    width: min(420px, calc(100vw - 24px));
    max-height: min(76vh, 620px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 10px;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.auth-history-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 0.55rem 0.65rem;
}

.auth-history-popup-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: rgba(0,0,0,0.88);
}

.auth-history-popup-close {
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 7px;
    background: #fff;
    color: rgba(0,0,0,0.8);
    width: 28px;
    height: 28px;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.auth-history-popup-content {
    overflow-y: auto;
    padding: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.auth-history-popup-restaurant {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(0,0,0,0.86);
}

.auth-history-popup-updated {
    font-size: 0.7rem;
    color: rgba(0,0,0,0.58);
}

.auth-history-popup-metric {
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    background: rgba(255,255,255,0.98);
    padding: 0.38rem 0.45rem;
    font-size: 0.74rem;
    color: rgba(0,0,0,0.8);
}

.auth-history-empty {
    font-size: 0.74rem;
    color: rgba(0,0,0,0.62);
    padding: 0.25rem 0;
}

#authRefreshHistoryBtn {
    width: 100%;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 7px;
    background: #fff;
    color: rgba(0,0,0,0.8);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
}

#mapAddressInput {
    width: 280px;
    max-width: 50vw;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 0.45rem 0.6rem;
    font-size: 0.92rem;
}

#mapAddressSearchBtn {
    border: 1px solid rgba(0,0,0,0.25);
    border-radius: 8px;
    background: #336E15;
    border-color: #295a11;
    color: #fff;
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
    cursor: pointer;
}

#mapUseLocationBtn,
#mapAccountBtn,
#mapFiltersBtn {
    border: 1px solid #295a11;
    border-radius: 8px;
    background: #336E15;
    color: #fff;
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
    cursor: pointer;
}

#mapUseLocationBtn {
    background: #96652F;
    border-color: #7E5528;
}

#mapFiltersBtn {
    background: #474747;
    border-color: #363636;
}

#mapAddressSearchBtn:hover,
#mapAccountBtn:hover {
    background: #336E15;
}

#mapUseLocationBtn:hover {
    background: #96652F;
}

#mapFiltersBtn:hover {
    background: #474747;
}

@media (min-width: 601px) {
    :root:not(.mobile-app) .map-search-bar {
        width: min(427px, calc(100vw - 2rem));
        max-width: calc(100vw - 2rem);
    }

    :root:not(.mobile-app) .site-brand-corner {
        position: fixed;
        top: 12px;
        left: 12px;
        right: auto;
        z-index: 10;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.06rem;
        background: #BA3520;
        border: 2px solid #000;
        border-radius: 12px;
        padding: 0.5cm 0.8cm 0.5cm;
        box-shadow: 0 6px 18px rgba(0,0,0,0.18);
        box-sizing: border-box;
        pointer-events: none;
    }

    :root:not(.mobile-app) body.results-sidebar-visible .site-brand-corner {
        display: none;
    }

    :root:not(.mobile-app) .site-brand-corner::after {
        content: "";
        position: absolute;
        inset: 3px;
        border: 1px solid #000;
        border-radius: 6px;
        pointer-events: none;
    }

    :root:not(.mobile-app) .results-brand {
        background: #BA3520;
        border: 2px solid #000;
        border-radius: 12px;
        padding: 0.5cm 0.8cm 0.5cm;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    :root:not(.mobile-app) .results-brand::after {
        inset: 3px;
        border-radius: 6px;
    }

    :root:not(.mobile-app) .map-search-brand {
        display: none;
    }

    :root:not(.mobile-app) .site-brand-title {
        font-family: "Playfair Display", Georgia, "Times New Roman", serif;
        font-size: 2rem;
        font-weight: 900;
        letter-spacing: 0.02em;
        color: #111;
        line-height: 1;
        text-shadow: 0 1px 0 rgba(255,255,255,0.6);
    }

    :root:not(.mobile-app) .site-brand-tagline {
        font-family: "Playfair Display", Georgia, "Times New Roman", serif;
        font-size: 0.92rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(0,0,0,0.7);
        line-height: 1.1;
        text-align: center;
        text-shadow: 0 1px 0 rgba(255,255,255,0.55);
    }

    :root:not(.mobile-app) .results-header h2 {
        display: none;
    }

    :root:not(.mobile-app) .map-search-controls {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    :root:not(.mobile-app) .map-search-input-wrap {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        width: 100%;
        position: relative;
    }

    :root:not(.mobile-app) .map-search-input-wrap #mapAddressSearchBtn {
        display: none;
    }

    :root:not(.mobile-app) .map-search-input-wrap::after {
        content: "\21B5";
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.9rem;
        font-weight: 700;
        color: rgba(0, 0, 0, 0.55);
        pointer-events: none;
        line-height: 1;
    }

    :root:not(.mobile-app) #mapAddressInput {
        width: 100%;
        max-width: none;
        padding-right: 1.8rem;
    }

    :root:not(.mobile-app) .map-search-buttons {
        justify-content: center;
    }

    :root:not(.mobile-app) #mapAccountBtn {
        display: none;
    }
}

#mapCenterSearchBtn {
    border: 1px solid rgba(0,0,0,0.25);
    border-radius: 8px;
    background: #ffffff;
    color: rgba(0,0,0,0.82);
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.map-center-floating-btn {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 7;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: left 0.2s ease;
}

body.center-near-results .map-center-floating-btn {
    left: 364px;
}

.address-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.18);
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.16);
    overflow: hidden;
    display: none;
    max-height: 220px;
    overflow-y: auto;
}

.address-suggestions.visible {
    display: block;
}

.address-suggestion-item {
    padding: 0.5rem 0.65rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: rgba(0,0,0,0.82);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

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

.address-suggestion-item:hover {
    background: rgba(241,245,249,0.9);
}

/* Filters Sidebar */
.filters {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    /* remove sticky - container scrolls instead */
    position: relative;
    top: auto;
}

.filter-section {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-section h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Search Input */
#searchInput {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.filter-option:hover {
    background-color: #f1f5f9;
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-option label {
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

.filter-option.checked {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
}

.filter-option.checked label {
    color: var(--primary-color);
    font-weight: 500;
}

/* category selector styles: reuse filter-option but slightly different colors */
.category-type-options .filter-option input[type="checkbox"]:checked + label {
    color: var(--primary-color);
    font-weight: 500;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Results Area */
.results {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 100%;
    background-color: #000000;
    padding: 0 1.5rem 1.5rem;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    /* ensure results panel stays on left */
    position: relative;
    z-index: 1;
}

.results-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    margin: 0 -1.5rem 0;
    padding: 0.85rem 1.5rem calc(0.85rem + 5mm);
    border: none;
    border-radius: 0;
    background-color: #30371b;
    background-image:
        linear-gradient(180deg, rgba(22, 28, 14, 0.58) 0%, rgba(36, 44, 20, 0.46) 100%),
        url("assets/sidebar-photo-portrait.png");
    background-size: 100% 100%, cover;
    background-position: 0 0, center top;
    background-repeat: no-repeat, no-repeat;
}

.results-header .results-brand {
    align-self: center;
}

.results-header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.8rem;
}

.results-header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

@media (min-width: 601px) {
    :root:not(.mobile-app) .results-header-left {
        margin-left: 0;
    }
}

.results-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.results-count {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.45);
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.results-sort-control {
    position: relative;
}

.results-sort-button {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.34rem;
    font-size: 0.92rem;
    color: rgba(0,0,0,0.78);
    font-weight: 600;
    padding: 0.4rem 0.52rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255,255,255,0.94);
    cursor: pointer;
}

.results-sort-prefix {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(0,0,0,0.82);
    text-transform: none;
    line-height: 1;
}

.results-sort-value-box {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    border: 2px solid #000;
    border-radius: 0;
    padding: 0.14rem 0.42rem;
    line-height: 1.1;
    background: #fff;
}

#sortByDisplay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 0.82rem;
    font-weight: 700;
}

.results-sort-value-box .sort-caret {
    font-size: 0.72rem;
    line-height: 1;
    color: #000;
}

.sort-caret {
    font-size: 0.75rem;
    line-height: 1;
}

.sort-by-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
    z-index: 12;
    overflow: hidden;
}

.sort-by-menu.hidden {
    display: none;
}

.sort-by-menu-item {
    border: none;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-primary);
    padding: 0.55rem 0.75rem;
    cursor: pointer;
}

.sort-by-menu-item:last-child {
    border-bottom: none;
}

.sort-by-menu-item:hover {
    background: #f8fafc;
}

/* Restaurant Grid */
.restaurants-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

#restaurantsGrid.is-loading {
    align-items: center;
}

.restaurant-name-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.result-name-item {
    width: 100%;
    text-align: left;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #F0E6AF;
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
    font-size: 0.95rem;
    font-weight: 400;
    padding: 0.72rem 1.15rem;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    position: relative;
    padding: 0;
}

.result-name-main-btn {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: 0.03em;
    text-shadow:
        0 -1px 0 rgba(255, 246, 198, 0.72),
        0 1px 0 rgba(112, 89, 19, 0.92),
        0 2px 2px rgba(0, 0, 0, 0.42);
    padding: 0.72rem 1.15rem;
    cursor: pointer;
    transition: text-shadow 0.16s ease, transform 0.12s ease;
}

.result-name-item + .result-name-item {
    border-top: 0;
}

.result-name-title {
    display: block;
    margin-bottom: 0.45rem;
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
    font-weight: 900;
    letter-spacing: 0.045em;
    padding-inline: 0.08rem;
    color: #F0E6AF;
    -webkit-text-stroke: 0.35px rgba(92, 73, 14, 0.75);
    text-shadow:
        0 -1px 0 rgba(255, 250, 216, 0.96),
        0 -2px 0 rgba(255, 244, 188, 0.68),
        0 1px 0 rgba(130, 106, 24, 0.98),
        0 2px 0 rgba(103, 84, 18, 0.94),
        0 3px 0 rgba(76, 62, 13, 0.9),
        0 4px 2px rgba(24, 18, 5, 0.44),
        0 9px 12px rgba(0, 0, 0, 0.3);
}

.result-name-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.result-name-metric-row {
    display: block;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 0.76rem;
    line-height: 1.25;
    color: #E5D707;
    font-weight: 500;
}

.result-name-metric-label {
    font-weight: 700;
    color: #E5D707;
}

.result-name-metric-value {
    font-weight: 500;
}

.result-name-metric-scales {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.result-name-item:hover {
    background: transparent;
}

.result-name-item:hover .result-name-main-btn {
    text-shadow:
        0 -1px 0 rgba(255, 250, 216, 0.9),
        0 1px 0 rgba(118, 94, 20, 0.96),
        0 3px 3px rgba(0, 0, 0, 0.48);
}

.result-name-main-btn:focus-visible {
    outline: 2px solid #d2b55b;
    outline-offset: 2px;
}

.result-name-item.active {
    border-color: var(--primary-color);
    background: transparent;
    color: #F0E6AF;
}

.result-name-item.active .result-name-main-btn {
    background: transparent;
    color: inherit;
    text-shadow:
        0 -1px 0 rgba(255, 248, 208, 0.95),
        0 1px 0 rgba(128, 103, 24, 0.98),
        0 4px 4px rgba(0, 0, 0, 0.52);
    transform: translateY(1px);
}

.report-restaurant-card {
    max-width: 28rem;
}

.report-restaurant-content {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.report-restaurant-name {
    font-size: 1rem;
    font-weight: 700;
}

.report-restaurant-copy {
    font-size: 0.88rem;
    color: #475569;
}

.report-restaurant-label {
    font-size: 0.8rem;
    font-weight: 600;
}

.report-restaurant-textarea {
    width: 100%;
    min-height: 3.2rem;
    resize: vertical;
    border: 1px solid #cbd5e1;
    padding: 0.5rem;
    border-radius: 0;
    font-family: inherit;
}

#reportSpamAnswerInput {
    min-height: 0;
}

.report-restaurant-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.restaurant-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
}

.restaurant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.restaurant-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #e2e8f0;
}

.restaurant-content {
    padding: 1.5rem;
}

.restaurant-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

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

.restaurant-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.restaurant-address {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.restaurant-address::before {
    content: "";
}

.restaurant-cuisine-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
    max-width: 50%;
}

.restaurant-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: #f1f5f9;
    color: var(--text-secondary);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}


/* Map background and panel layout */
.map-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #475569;
    transform: translateY(-1px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 1rem auto;
    padding: 2rem;
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close:hover,
.close:focus {
    color: black;
    background-color: #f1f5f9;
    text-decoration: none;
}

.report-restaurant-select {
    min-height: 2.35rem;
    resize: none;
}

.auth-report-item {
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    margin-bottom: 0.55rem;
    background: rgba(255,255,255,0.92);
}

.auth-report-title {
    font-size: 0.96rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: rgba(0,0,0,0.9);
}

.auth-report-meta {
    font-size: 0.8rem;
    color: rgba(0,0,0,0.72);
    margin-bottom: 0.14rem;
}

.auth-report-reason {
    font-size: 0.84rem;
    color: rgba(0,0,0,0.84);
    margin-top: 0.22rem;
    white-space: pre-wrap;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.add-restaurant-location-hint {
    margin-bottom: 0.9rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 8px;
    background: #f8fafc;
    color: rgba(0,0,0,0.75);
    font-size: 0.82rem;
}

.map-add-restaurant-popup-btn {
    border: 1px solid rgba(0,0,0,0.28);
    border-radius: 7px;
    background: #ffffff;
    color: rgba(0,0,0,0.86);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.3rem 0.55rem;
    cursor: pointer;
}

.map-add-restaurant-popup-btn:hover {
    background: #f8fafc;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

#addRestaurantModal .add-restaurant-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

#addRestaurantModal .category-groups {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.category-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

#addRestaurantModal .category-group {
    width: 100%;
}

.category-group {
    background: #f8fafc;
    padding: 0.65rem;
    border-radius: 0;
    border: 1px solid var(--border-color);
}

.category-group h4 {
    margin-bottom: 0.45rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.add-restaurant-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    padding: 0.22rem 0.45rem;
    min-height: 30px;
}

.add-restaurant-chip input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

#addRestaurantModal .chip-button.add-restaurant-chip {
    border-radius: 0;
    padding: 0.2rem 0.45rem;
}

#addRestaurantModal .hidden {
    display: none !important;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Floating Action Button */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
}

/* Map Styles */
.results-content {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    width: auto;
    margin: 0 -1.5rem;
    border-top: 0;
    padding: 1cm 0 0;
}


/* Map marker styles */
.leaflet-marker-icon {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Restaurant card highlighting */
.restaurant-card.highlighted {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Map Popup Styles */
.map-popup {
    min-width: 250px;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.map-popup-card {
    min-width: 700px;
    max-width: 896px;
}

.map-popup .map-popup-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
}

.map-popup h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.map-delete-restaurant-btn {
    border: 1px solid #b91c1c;
    background: #dc2626;
    color: #fff;
    border-radius: 7px;
    padding: 0.22rem 0.5rem;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.map-delete-restaurant-btn:hover {
    background: #b91c1c;
}

.map-report-flag-btn {
    border: 0;
    background: transparent;
    color: #cf0f0f;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.1rem 0.2rem;
    opacity: 0.9;
}

.map-report-flag-btn:hover {
    opacity: 1;
    transform: scale(1.08);
}

.map-popup p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.map-popup .popup-minimize-hint {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: rgba(0,0,0,0.66);
}

.map-popup .popup-categories {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.map-popup .popup-metric-list {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.map-popup .popup-filter-minimize-shell {
    position: relative;
}

.map-popup .popup-filter-minimize-shell.has-minimized .metric-scale-grid,
.map-popup .popup-filter-minimize-shell.has-minimized .popup-metric-list {
    padding-top: calc((var(--popup-minimized-rows, 1) * 1.8rem) + 0.3rem);
}

.map-popup .popup-filter-minimize-shell .popup-minimized-tray {
    max-width: 68%;
    right: -0.45rem;
    top: -0.45rem;
}

.map-popup .popup-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    font-size: 0.78rem;
    line-height: 1.25;
    color: rgba(0,0,0,0.78);
}

.map-popup .popup-metric-main {
    min-width: 0;
    flex: 1;
}

.map-popup .popup-metric-empty {
    display: block;
    border: 1px dashed rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 0.6rem;
}

.map-popup .popup-metric-label {
    font-weight: 700;
    color: rgba(0,0,0,0.88);
}

.map-popup .popup-metric-value {
    font-weight: 500;
}

.metric-scale-list {
    margin-top: 0.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.map-popup .metric-scale-list {
    gap: 0.55rem;
}

.map-popup .metric-scale-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 0.65rem;
}

.map-popup .metric-scale-row {
    min-width: 0;
}

.metric-scale-row {
    transition: opacity 0.2s ease;
}

.metric-scale-row.metric-scale-row-compact .metric-scale-heading {
    font-size: 0.68rem;
    margin-bottom: 0.12rem;
}

.metric-scale-row.metric-scale-row-compact .metric-scale-track {
    height: 5px;
}

.metric-scale-row.metric-scale-row-compact .metric-scale-marker {
    width: 8px;
    height: 8px;
}

.metric-scale-row.metric-scale-row-compact .metric-scale-ticks span {
    font-size: 0.58rem;
}

.metric-scale-visual {
    transition: opacity 0.2s ease;
}

.metric-scale-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.74rem;
    margin-bottom: 0.15rem;
}

.metric-scale-heading-left {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    min-width: 0;
}

.map-popup .metric-scale-heading {
    font-size: 0.84rem;
}

.metric-scale-label {
    font-weight: 600;
    color: rgba(0,0,0,0.85);
}

.map-popup .metric-scale-label {
    font-size: 0.9rem;
    font-weight: 700;
}

.metric-scale-votes {
    color: rgba(0,0,0,0.62);
}

.map-popup .metric-scale-votes {
    font-size: 0.86rem;
    font-weight: 700;
}

.metric-scale-track {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: rgba(0,0,0,0.14);
}

.metric-scale-marker {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.88);
    transform: translate(-50%, -50%);
}

.metric-scale-ticks {
    margin-top: 0.14rem;
    display: flex;
    justify-content: space-between;
    gap: 0.2rem;
}

.metric-scale-ticks span {
    font-size: 0.64rem;
    color: rgba(0,0,0,0.64);
    white-space: nowrap;
}

.map-popup .metric-scale-ticks span {
    font-weight: 600;
    font-size: 0.64rem;
}

.map-popup .category-tag {
    font-size: 0.7rem;
    padding: 0.125rem 0.375rem;
}

.map-review-open-btn,
.review-card-done-btn {
    margin-top: 0.55rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.3rem 0.55rem;
    cursor: pointer;
}

.review-card-modal {
    position: fixed;
    width: min(820px, 94%);
    max-width: 820px;
    max-height: min(84vh, calc(100vh - 1rem));
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.22);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 60px rgba(0,0,0,0.35);
    transform-origin: center top;
    isolation: isolate;
}

.review-card-close-btn {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 8px;
    background: #ffffff;
    color: rgba(0,0,0,0.82);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.review-card-close-btn:hover {
    background: rgba(245, 245, 245, 1);
    border-color: rgba(0,0,0,0.32);
}

.review-card-header {
    cursor: default;
    border-bottom: 1px solid rgba(0,0,0,0.12);
    padding-bottom: 0.6rem;
}

.review-card-header h1,
.review-card-header h2,
.review-card-header .selector-hint-inline {
    color: rgba(0,0,0,0.9);
}

.review-card-modal .selector-hint-inline {
    color: rgba(0,0,0,0.68);
}

.review-card-modal::before,
.review-card-modal::after {
    content: none;
}

.review-card-modal::before {
    top: auto;
}

.review-card-modal::after {
    bottom: auto;
}

.review-card-modal .selector-header,
.review-card-modal .review-card-options,
.review-card-modal .selector-footer {
    position: relative;
    z-index: 1;
}

.review-card-modal .category-accordion-item {
    background: rgba(255,255,255,0.85);
    border-color: rgba(0,0,0,0.15);
}

.review-card-modal .category-accordion-label {
    color: rgba(0,0,0,0.9);
}

.review-card-modal:not(.hidden) {
    animation: reviewCardUnroll 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.review-stamp-head {
    position: fixed;
    left: -200px;
    top: -200px;
    width: 92px;
    height: 118px;
    z-index: 1102;
    pointer-events: none;
    opacity: 0;
    transform: rotate(-18deg) scale(0.96);
    transform-origin: 50% 84%;
    --stamp-mid-x: 0px;
    --stamp-mid-y: 0px;
    --stamp-end-x: 0px;
    --stamp-end-y: 0px;
}

.review-stamp-head.is-active {
    opacity: 1;
}

.review-stamp-head.is-stamping {
    animation: none;
}

.review-stamp-head::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 22px;
    height: 38px;
    transform: translateX(-50%);
    border-radius: 10px;
    background: linear-gradient(180deg, #4b2410 0%, #2c1208 100%);
    box-shadow: inset 0 1px 2px rgba(255, 228, 180, 0.25);
}

.review-stamp-head::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 30px;
    width: 72px;
    height: 72px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, #7a3e1f 0%, #4a220f 62%, #2b1208 100%);
    box-shadow:
        inset 0 3px 8px rgba(255, 223, 177, 0.18),
        0 8px 14px rgba(14, 5, 3, 0.45);
}

.review-stamp-head-label {
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 66px;
    height: 26px;
    transform: translateX(-50%);
    border-radius: 999px;
    border: 2px solid rgba(85, 8, 8, 0.82);
    color: rgba(94, 8, 8, 0.88);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(247, 229, 205, 0.9);
    text-transform: uppercase;
}

.review-chip.review-chip-approved {
    position: relative;
    overflow: visible;
}

.review-chip.review-chip-approved::after {
    content: none;
    display: none;
}

.review-chip.review-chip-approved-fresh::after {
    content: none;
    animation: none;
    display: none;
}

.review-card-options {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 0.25rem;
}

.review-card-options .popup-filters-grid {
    max-height: none;
}

.review-accordion-list {
    max-height: none;
    overflow-y: auto;
}

.review-card-modal .selector-footer {
    flex-shrink: 0;
    padding-bottom: 0.25rem;
    border-top-color: rgba(0,0,0,0.12);
}

@keyframes reviewCardUnroll {
    0% {
        opacity: 0;
        transform: translate(-50%, -54%) scaleX(0.78) scaleY(0.12);
        filter: blur(1.6px);
    }
    55% {
        opacity: 1;
        transform: translate(-50%, -50%) scaleX(0.96) scaleY(1.05);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scaleX(1) scaleY(1);
    }
}

@keyframes reviewStampHeadStrike {
    0% {
        transform: translate(0, 0) rotate(-18deg) scale(0.96);
    }
    42% {
        transform: translate(var(--stamp-mid-x), var(--stamp-mid-y)) rotate(-9deg) scale(1.02);
    }
    64% {
        transform: translate(var(--stamp-end-x), var(--stamp-end-y)) rotate(-3deg) scale(0.84);
    }
    74% {
        transform: translate(var(--stamp-end-x), var(--stamp-end-y)) rotate(-2deg) scale(0.72);
    }
    84% {
        transform: translate(var(--stamp-end-x), var(--stamp-end-y)) rotate(-2deg) scale(0.9);
    }
    100% {
        transform: translate(0, 0) rotate(-18deg) scale(0.96);
    }
}

@keyframes reviewButtonApprovalMark {
    0% {
        opacity: 0;
        transform: translateY(-50%) rotate(-18deg) scale(0.2);
    }
    65% {
        opacity: 0.96;
        transform: translateY(-50%) rotate(-10deg) scale(1.08);
    }
    100% {
        opacity: 0.88;
        transform: translateY(-50%) rotate(-11deg) scale(1);
    }
}

.review-chip-group {
    gap: 0.5rem;
}

.review-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.review-chip input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.review-chip input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.review-chip span {
    color: var(--text-primary);
}

.leaflet-popup-content {
    overflow: visible;
}

/* Leaflet specific styles */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.leaflet-popup-tip {
    background: white;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab:hover {
    transform: scale(1.1);
    background-color: #1d4ed8;
}

.fab-small {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    background-color: var(--secondary-color);
}

.fab-small:hover {
    background-color: #475569;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 200px;
    color: var(--text-secondary);
    background: transparent;
}

.results-loading {
    flex-direction: column;
    gap: 0.65rem;
    font-weight: 600;
    color: #F0E6AF;
    background: transparent;
}

.results .loading.results-loading {
    height: auto;
    min-height: 0;
    padding: 0.75rem 0.5rem;
    text-align: center;
}

#restaurantsGrid > .loading.results-loading {
    width: fit-content;
    max-width: 100%;
    margin: 0;
}

.results-loading-spinner {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid currentColor;
    border-right-color: transparent;
    animation: resultsLoadingSpin 0.8s linear infinite;
}

@keyframes resultsLoadingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Global button shape override: force square corners across web and app UI */
button,
.btn,
.chip-button,
.selector-tab,
.results-sort-button,
.map-add-restaurant-popup-btn,
.review-card-close-btn,
.popup-minimized-chip,
.close {
    border-radius: 0 !important;
}

.text-center {
    text-align: center;
}

.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }