/* ===== CSS Variables - Paleta Elegante Gastronómica ===== */
:root {
    /* Colores principales */
    --primary: #E63946;
    --primary-dark: #C5303B;
    --primary-light: #EE5A65;
    --secondary: #F77F00;
    --secondary-light: #FF9A2E;

    /* Fondos */
    --background: #1D1D1D;
    --surface: #2A2A2A;
    --surface-light: #353535;
    --surface-lighter: #424242;

    /* Textos */
    --text: #FFFFFF;
    --text-secondary: #D4D4D4;
    --text-muted: #A0A0A0;

    /* Bordes y elementos */
    --border: #3F3F3F;
    --success: #06D6A0;
    --warning: #FFD60A;

    /* Gradientes actualizados */
    --gradient-primary: linear-gradient(135deg, #E63946 0%, #F77F00 100%);
    --gradient-secondary: linear-gradient(135deg, #F77F00 0%, #FFB347 100%);

    /* Sombras actualizadas */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(230, 57, 70, 0.3);

    /* Radios y transiciones */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #000000;
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 0.75rem 1.5rem;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

/* Legacy text logo styles (kept for reference) */
.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

.logo-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--surface-light);
    color: var(--text);
}

.nav-btn.active {
    background: var(--surface-light);
    border-color: var(--border);
    color: var(--text);
}

.favorites-count {
    background: var(--secondary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
}

.nav-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ===== Modo Favoritos ===== */
.mode-favorites .hero h1,
.mode-favorites #heroSubtitle {
    display: none;
}

.mode-favorites .hero {
    padding-top: 5rem;
    padding-bottom: 1rem;
}

.mode-favorites .filter-toggle-row,
.mode-favorites .filter-panel {
    display: none !important;
}

.mode-favorites #recommendationsSection {
    display: none !important;
}

/* ===== Hero Section ===== */
.hero {
    padding: 8rem 1.5rem 3rem;
    text-align: center;
    background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

/* ===== Search Bar ===== */
.search-container {
    max-width: 500px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--text-muted);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 1rem 3rem 1rem 3.5rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 50px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

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

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.search-clear {
    position: absolute;
    right: 1rem;
    background: var(--surface-light);
    border: none;
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-clear.visible {
    display: flex;
}

.search-clear:hover {
    background: var(--surface-lighter);
    color: var(--text);
}

/* ===== Main Content ===== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* ===== Filter Toggle Button ===== */
.filter-toggle-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

/* ===== Filter City Selector ===== */
.filter-city-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.filter-city-wrap:hover {
    border-color: var(--primary);
    color: var(--text);
}

.filter-city-wrap.dropdown-open {
    border-color: var(--primary);
    color: var(--text);
}

.filter-city-text {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-city-chevron {
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.filter-city-wrap.dropdown-open .filter-city-chevron {
    transform: rotate(180deg);
}

.filter-city-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: #111111;
    border: 1.5px solid #2a2a2a;
    border-radius: var(--radius-md);
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-height: 300px;
    overflow-y: auto;
}

.filter-city-dropdown.open {
    display: block;
}

.filter-city-item {
    padding: 0.6rem 1rem;
    color: var(--text);
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.15s;
}

.filter-city-item:hover,
.filter-city-item.active {
    background: rgba(230, 57, 70, 0.15);
    color: var(--primary);
}

.filter-city-group-label {
    padding: 0.4rem 1rem 0.2rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-top: 1px solid #2a2a2a;
}

.filter-city-group-label:first-child {
    border-top: none;
}

.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.filter-toggle-btn:hover {
    border-color: var(--primary);
    color: var(--text);
}

.filter-toggle-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.filter-count-badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 50px;
    padding: 0.1rem 0.45rem;
    min-width: 18px;
    text-align: center;
}

.filter-toggle-btn.active .filter-count-badge {
    background: rgba(255,255,255,0.25);
}

/* ===== Filter Panel ===== */
.filter-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fp-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 1.5rem;
    margin-bottom: 0.85rem;
}

.fp-section-title:first-child {
    margin-top: 0;
}

/* Tipo de comida chips */
.fp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fp-chip {
    padding: 0.55rem 1.1rem;
    background: var(--surface-light);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.fp-chip:hover {
    background: var(--surface-lighter);
    color: var(--text);
}

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

/* Precio & Rating tiles */
.fp-tiles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.fp-tiles-row {
    display: flex;
    gap: 0.75rem;
}

.fp-tile {
    background: var(--surface-light);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.fp-tile:hover {
    border-color: var(--text-muted);
}

.fp-tile.active {
    border-color: var(--primary);
    background: rgba(230, 57, 70, 0.1);
}

.fp-tile-flex {
    flex: 1;
}

.fp-tile-emoji {
    font-size: 1.5rem;
    line-height: 1;
}

.fp-tile-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 700;
}

.fp-tile.active .fp-tile-label {
    color: var(--text);
}

.fp-tile-desc {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Ambiente tags */
.fp-tag-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fp-tag {
    padding: 0.55rem 1.1rem;
    background: var(--surface-light);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.fp-tag:hover {
    background: var(--surface-lighter);
    color: var(--text);
}

.fp-tag.active {
    border-color: var(--primary);
    background: rgba(230, 57, 70, 0.1);
    color: var(--text);
}

/* 3-column food type grid */
.fp-tiles-3col {
    grid-template-columns: repeat(3, 1fr);
}

/* Distance slider */
.fp-slider-wrap {
    padding: 0.25rem 0;
}

.fp-range {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--surface-lighter);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.fp-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid var(--surface);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.fp-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid var(--surface);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.fp-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.fp-slider-labels span:last-child {
    font-weight: 700;
    color: var(--text-secondary);
}

/* Actions row */
.fp-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.fp-reset-btn {
    flex: 1;
    padding: 0.85rem;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.fp-reset-btn:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

.fp-apply-btn {
    flex: 2;
    padding: 0.85rem;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.fp-apply-btn:hover {
    background: var(--primary-dark);
}

/* ===== Results Info ===== */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.results-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.results-count {
    background: var(--surface);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* ===== Restaurant Grid ===== */
.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* ===== Restaurant Card ===== */
.restaurant-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.restaurant-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card-image {
    height: 175px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-img-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
    z-index: 1;
}

/* Name + rating overlay at bottom of image */
.card-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 0.75rem 0.65rem;
    z-index: 2;
}

.card-name {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.card-rating-chip {
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    z-index: 2;
}

/* Badge de visitas en favoritos */
.card-visit-badge {
    position: absolute;
    bottom: 2.8rem;
    right: 0.6rem;
    background: rgba(16, 185, 129, 0.92);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.card-visit-badge--pending {
    background: rgba(107, 114, 128, 0.85);
}

.card-favorite {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
    color: white;
}

.card-favorite:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.card-favorite.active {
    background: var(--secondary);
    color: white;
}

.card-favorite.active svg {
    fill: white;
}

.card-content {
    padding: 0.75rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

/* Card meta row: type icon + type + city */
.card-meta {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.35rem;
    flex-wrap: nowrap;
    overflow: hidden;
}
.card-type-icon { font-size: 0.9rem; flex-shrink: 0; }
.card-type { color: #999; font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-city  { color: #666; font-size: 0.8rem; white-space: nowrap; }
.card-description {
    color: #777;
    font-size: 0.78rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

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

.restaurant-type {
    color: var(--primary-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--warning);
    color: #1a1a2e;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.875rem;
}

.card-rating svg {
    width: 14px;
    height: 14px;
}

.card-address {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.card-address svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: var(--text-muted);
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

/* ===== Empty State ===== */
.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state.visible {
    display: flex;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--surface-lighter);
}

/* ===== Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.modal-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, var(--surface));
}

.modal-close,
.modal-favorite {
    position: absolute;
    top: 1rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
    color: white;
}

.modal-close {
    right: 1rem;
}

.modal-favorite {
    right: 4rem;
}

.modal-close:hover {
    background: var(--secondary);
}

.modal-favorite:hover {
    background: var(--secondary);
}

.modal-favorite.active {
    background: var(--secondary);
}

.modal-favorite.active svg {
    fill: white;
}

.modal-content {
    padding: 1.5rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.modal-type {
    color: var(--primary-light);
    font-weight: 500;
}

.modal-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--warning);
    color: #1a1a2e;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.modal-rating svg {
    fill: currentColor;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.detail-item svg {
    color: var(--primary-light);
    flex-shrink: 0;
}

.modal-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-chip {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 0.8rem;
    color: #ccc;
}

/* Ambiente & Música tags */
.modal-tags-section {
    margin-bottom: 1.25rem;
}

.modal-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.modal-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.modal-tag-chip {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 0.8rem;
    color: #ccc;
}

.modal-music-chip {
    background: rgba(230,57,70,0.08);
    border: 1px solid rgba(230,57,70,0.3);
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 0.8rem;
    color: #ccc;
}

/* Price badge */
.modal-price-badge {
    background: rgba(255,190,11,0.15);
    border: 1px solid rgba(255,190,11,0.3);
    border-radius: 20px;
    padding: 0.25rem 0.65rem;
    font-size: 0.78rem;
    color: var(--warning);
    font-weight: 600;
}

/* Open/closed badge */
.modal-open-badge {
    border-radius: 20px;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
}
.modal-open-badge.is-open  { background: rgba(34,197,94,0.15); color: #22c55e; }
.modal-open-badge.is-closed { background: rgba(239,68,68,0.15); color: #ef4444; }

/* Hours expandable */
.modal-hours-section {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 1rem;
}
.modal-hours-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    user-select: none;
}
.modal-hours-header:hover { background: rgba(255,255,255,0.03); }
.modal-hours-label { font-size: 0.9rem; color: var(--text-primary); font-weight: 500; }
.modal-current-hours { font-size: 0.82rem; color: #888; margin-left: 2px; }
.modal-is-open-badge {
    border-radius: 20px;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}
.modal-is-open-badge.is-open  { background: rgba(34,197,94,0.15); color: #22c55e; }
.modal-is-open-badge.is-closed { background: rgba(239,68,68,0.15); color: #ef4444; }
.modal-hours-grid { padding: 0 1rem 0.75rem; }
.modal-hours-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.85rem;
}
.modal-hours-row:last-child { border-bottom: none; }
.modal-hours-day { color: #888; }
.modal-hours-time { color: var(--text-primary); }
.modal-hours-row.today .modal-hours-day,
.modal-hours-row.today .modal-hours-time { color: #E63946; font-weight: 700; }

/* Live Status card */
.modal-live-card {
    background: linear-gradient(135deg, rgba(34,197,94,0.1), rgba(34,197,94,0.03));
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    margin-bottom: 1.25rem;
}
.modal-live-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}
.modal-live-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #22c55e;
    animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.modal-live-title { font-size: 0.82rem; font-weight: 700; color: #22c55e; text-transform: uppercase; letter-spacing: 0.06em; }
.modal-live-count {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
    border-radius: 20px;
    padding: 0.15rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
}
.modal-live-occ {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 3px solid #22c55e;
    padding-left: 0.75rem;
    margin-bottom: 0.75rem;
}
.modal-live-occ-emoji { font-size: 1.3rem; }
.modal-live-occ-label { font-size: 0.75rem; color: #888; margin: 0; }
.modal-live-occ-value { font-size: 0.95rem; font-weight: 700; margin: 0; }
.modal-live-music { margin-top: 0.5rem; }
.modal-live-subtitle { font-size: 0.78rem; color: #888; margin: 0 0 0.4rem; }
.modal-live-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.modal-live-chip {
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.25);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.78rem;
    color: #ccc;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.modal-live-chip--special {
    background: rgba(250,204,21,0.08);
    border-color: rgba(250,204,21,0.25);
}
.modal-live-pct {
    background: rgba(34,197,94,0.2);
    border-radius: 10px;
    padding: 0 5px;
    font-size: 0.7rem;
    color: #22c55e;
    margin-left: 3px;
}
.modal-live-empty { font-size: 0.82rem; color: #666; margin: 0; text-align: center; }

/* Menu & Web action buttons */
.modal-action-btns {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.modal-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: filter 0.2s;
}
.modal-action-btn:hover { filter: brightness(1.15); }
.modal-menu-btn { background: rgba(230,57,70,0.12); border: 1px solid rgba(230,57,70,0.3); color: #E63946; }
.modal-web-btn  { background: rgba(74,144,226,0.12); border: 1px solid rgba(74,144,226,0.3);  color: #4A90E2; }

/* Star badge */
.modal-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,214,10,0.1);
    border: 1px solid rgba(255,214,10,0.25);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    color: var(--warning);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.modal-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Social Links - Premium Buttons */
.modal-social-links {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.02em;
}

.social-btn:hover {
    transform: translateY(-2px) scale(1.03);
    filter: brightness(1.1);
}

.social-btn:active {
    transform: translateY(0) scale(0.98);
}

.social-btn svg {
    flex-shrink: 0;
}

.social-btn--instagram {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    box-shadow: 0 4px 15px rgba(131, 58, 180, 0.35);
}

.social-btn--instagram:hover {
    box-shadow: 0 6px 20px rgba(131, 58, 180, 0.5);
}

.social-btn--facebook {
    background: #1877F2;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.35);
}

.social-btn--facebook:hover {
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.5);
}

@media (max-width: 480px) {
    .modal-social-links {
        flex-direction: column;
    }
    .social-btn {
        justify-content: center;
        width: 100%;
    }
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.modal-actions .btn-secondary {
    flex: 1;
}

.modal-actions .btn-primary {
    flex: 2;
    justify-content: center;
}

/* ===== Footer ===== */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 3rem 1.5rem;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-logo .logo-text {
    font-size: 1.25rem;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-divider {
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    margin: 1.5rem auto;
    border-radius: 2px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.restaurant-card {
    animation: slideUp 0.4s ease backwards;
}

.restaurant-card:nth-child(1) { animation-delay: 0.05s; }
.restaurant-card:nth-child(2) { animation-delay: 0.1s; }
.restaurant-card:nth-child(3) { animation-delay: 0.15s; }
.restaurant-card:nth-child(4) { animation-delay: 0.2s; }
.restaurant-card:nth-child(5) { animation-delay: 0.25s; }

/* ===== City Selector ===== */
.city-selector-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.city-selector-container:hover {
    background: var(--surface-lighter);
    border-color: var(--primary);
}

.city-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.city-select {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    padding: 0;
    min-width: 140px;
}

.city-select:focus {
    outline: none;
}

.city-select option {
    background: var(--surface);
    color: var(--text);
    padding: 0.5rem;
}

/* ===== Custom Location Dropdown ===== */
.location-selector-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    min-width: 160px;
}

.location-select-text {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
}

.location-chevron {
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.location-selector-wrap.dropdown-open .location-chevron {
    transform: rotate(180deg);
}

.location-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: -1rem;
    min-width: 200px;
    background: #111111;
    border: 1.5px solid #2a2a2a;
    border-radius: var(--radius-md);
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-height: 320px;
    overflow-y: auto;
}

.location-dropdown.open {
    display: block;
}

.location-dropdown-item {
    padding: 0.6rem 1rem;
    color: var(--text);
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.15s;
}

.location-dropdown-item:hover,
.location-dropdown-item.active {
    background: rgba(230, 57, 70, 0.15);
    color: var(--primary);
}

.location-dropdown-group-label {
    padding: 0.4rem 1rem 0.2rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-top: 1px solid #2a2a2a;
    margin-top: 0.25rem;
}

.location-dropdown-group-label:first-child {
    border-top: none;
    margin-top: 0;
}

/* ===== Web Promo Cards ===== */
.restaurant-promos-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.promos-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.promo-web-card {
    display: flex;
    background: rgba(255, 214, 10, 0.05);
    border: 1px solid rgba(255, 214, 10, 0.2);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.promo-web-img {
    width: 110px;
    flex-shrink: 0;
    object-fit: cover;
}

.promo-web-info {
    padding: 0.85rem 1rem;
    flex: 1;
}

.promo-web-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.promo-web-discount {
    color: #FFD60A;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.promo-web-dates {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-bottom: 0.4rem;
}

.promo-web-code {
    display: inline-block;
    background: rgba(255, 214, 10, 0.15);
    color: #FFD60A;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.promos-empty {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

/* ===== Pagination Styles ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 3rem auto;
    padding: 1.5rem;
    max-width: 1400px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--surface-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-number {
    min-width: 44px;
    height: 44px;
    padding: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-number:hover {
    background: var(--surface-light);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-number.active {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
    cursor: default;
}

.pagination-dots {
    color: var(--text-muted);
    padding: 0 0.5rem;
    font-weight: 600;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-location {
        order: -1;
        width: 100%;
        justify-content: center;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--border);
        margin-bottom: 0.5rem;
    }

    .city-selector-container {
        padding: 0.4rem 0.8rem;
    }

    .city-select {
        font-size: 0.85rem;
        min-width: 120px;
    }

    .city-icon {
        width: 14px;
        height: 14px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .filters-container {
        padding: 1rem;
    }

    .restaurant-grid {
        grid-template-columns: 1fr;
    }

    .results-info {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .modal {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }

    .modal-image {
        height: 200px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn-secondary,
    .modal-actions .btn-primary {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem 1rem;
    }

    .logo-img {
        height: 35px;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .nav-btn span {
        display: none;
    }

    .nav-btn {
        padding: 0.5rem;
    }

    .city-selector-container {
        padding: 0.4rem 0.6rem;
    }

    .city-select {
        font-size: 0.8rem;
        min-width: 100px;
    }

    .hero {
        padding: 7rem 1rem 2rem;
    }

    .footer-logo-img {
        height: 32px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .main-content {
        padding: 0 1rem 2rem;
    }

    .fp-chip,
    .fp-tag {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .fp-tiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fp-tiles-3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-lighter);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border);
}

/* ===== Loading State ===== */
.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    gap: 1.5rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--surface-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ===== Error State ===== */
.error-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.error-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.error-state p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.error-state code {
    background: var(--surface-light);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--primary-light);
}

.error-detail {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.error-state .btn-primary {
    margin-top: 1rem;
}

/* ===== Connection Status ===== */
.connection-status {
    display: flex;
    align-items: center;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.offline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(244, 63, 94, 0.15);
    color: var(--secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== Add Button ===== */
.nav-btn.add-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.nav-btn.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ===== Add Restaurant Modal ===== */
.add-modal {
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
}

.add-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 10;
}

.add-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close-btn {
    background: var(--surface-light);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

/* ===== Form Styles ===== */
.add-form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    background: var(--surface-light);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

.form-group input.error,
.form-group select.error {
    border-color: var(--secondary);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-error {
    font-size: 0.8rem;
    color: var(--secondary);
    display: none;
}

.form-error.visible {
    display: block;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== Rating Selector ===== */
.rating-selector {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.star-btn {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--border);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    line-height: 1;
}

.star-btn:hover,
.star-btn.active {
    color: var(--warning);
    transform: scale(1.1);
}

.rating-value {
    margin-left: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 2rem;
}

/* ===== Form Actions ===== */
.form-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
}

.form-actions .btn-secondary {
    flex: 1;
    justify-content: center;
}

.form-actions .btn-primary {
    flex: 2;
    justify-content: center;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== Notifications ===== */
.notifications-container {
    position: fixed;
    top: 5rem;
    right: 1.5rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
}

.notification {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification.success {
    border-color: var(--success);
    background: linear-gradient(135deg, var(--surface) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.notification.error {
    border-color: var(--secondary);
    background: linear-gradient(135deg, var(--surface) 0%, rgba(244, 63, 94, 0.1) 100%);
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.notification-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.notification-close:hover {
    color: var(--text);
}

.notification.hiding {
    animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ===== Responsive Form ===== */
@media (max-width: 600px) {
    .add-modal {
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn-secondary,
    .form-actions .btn-primary {
        flex: 1;
    }

    .notifications-container {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}
/* ===== Status Indicator ===== */
.status-indicator {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(40, 40, 40, 0.95);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 900;
    transition: all 0.3s ease;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: statusPulse 2s ease-in-out infinite;
}

.status-indicator.offline .status-dot {
    background: #ef4444;
    animation: none;
}

.status-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}

@media (max-width: 768px) {
    .status-indicator {
        bottom: 16px;
        right: 16px;
        padding: 10px 16px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 1rem;
    }

    .pagination-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .pagination-number {
        min-width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .pagination-numbers {
        gap: 0.25rem;
    }

    .pagination-number {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .pagination-dots {
        padding: 0 0.25rem;
    }
}
/* ===== GEOLOCALIZACIÓN Y MAPA - CSS ===== */
/* Agregar al final de styles.css */

/* Badge de distancia en cards */
.distance-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.4rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    z-index: 2;
}

.distance-badge svg {
    color: var(--primary);
}

/* Botón flotante de mapa */
.floating-map-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(230, 57, 70, 0.4);
    transition: var(--transition);
    z-index: 100;
}

.floating-map-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(230, 57, 70, 0.5);
}

.floating-map-btn svg {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Modal de Mapa */
.map-modal {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 95vw;
    height: 90vh;
    max-width: 1400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease;
}

.map-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    z-index: 10;
}

.map-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.map-container {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Estilos del mapa Leaflet */
.leaflet-container {
    width: 100%;
    height: 100%;
    background: var(--surface-light);
}

/* Marcador de usuario personalizado */
.user-location-marker {
    background: transparent;
    border: none;
}

.user-marker-dot {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.5);
    animation: pulse-marker 2s ease-in-out infinite;
}

@keyframes pulse-marker {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Popup del mapa */
.leaflet-popup-content-wrapper {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.leaflet-popup-tip {
    background: var(--surface);
    border: 1px solid var(--border);
}

.map-popup {
    padding: 0.5rem;
    min-width: 200px;
}

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

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

.popup-btn {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

/* Leyenda del mapa */
.map-legend {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    z-index: 1000;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
}

.legend-marker.user-marker {
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.4);
}

.legend-marker.restaurant-marker {
    background: #3388ff;
    box-shadow: 0 2px 8px rgba(51, 136, 255, 0.4);
}

.legend-item span {
    font-size: 0.875rem;
    color: var(--text);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-map-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.875rem 1.25rem;
    }

    .floating-map-btn span {
        display: none;
    }

    .map-modal {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    .map-modal-header {
        padding: 1rem;
    }

    .map-modal-header h2 {
        font-size: 1.25rem;
    }

    .map-legend {
        bottom: 1rem;
        left: 1rem;
        padding: 0.75rem;
    }

    .legend-item {
        margin-bottom: 0.35rem;
    }

    .legend-item span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .distance-badge {
        bottom: 0.75rem;
        left: 0.75rem;
        padding: 0.35rem 0.6rem;
        font-size: 0.7rem;
    }

    .floating-map-btn {
        padding: 0.75rem;
    }

    .map-legend {
        scale: 0.9;
        transform-origin: bottom left;
    }
}

/* Fix para controles de Leaflet en dark mode */
.leaflet-control-zoom a,
.leaflet-control-layers-toggle {
    background-color: var(--surface) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.leaflet-control-zoom a:hover {
    background-color: var(--surface-light) !important;
}

.leaflet-bar a {
    color: var(--text) !important;
}

.leaflet-control-attribution {
    background: rgba(26, 26, 46, 0.8) !important;
    color: var(--text-secondary) !important;
}

.leaflet-control-attribution a {
    color: var(--primary) !important;
}

/* ===== AUTENTICACIÓN ===== */
.login-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.logout-btn:hover {
    color: var(--secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .user-name {
        display: none;
    }
}

/* ===== Recommendations Section ===== */
.recommendations-section {
    margin-top: 3rem;
    margin-bottom: 0;
}

.recommendations-header {
    text-align: center;
    margin-bottom: 2rem;
}

.recommendations-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.recommendations-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.recommendations-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.recommendation-card {
    position: relative;
    background: var(--surface);
    border: 2px solid var(--primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.recommendation-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.match-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.match-badge.high {
    background: var(--success);
}

.match-badge.medium {
    background: var(--warning);
}

.match-details {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    color: white;
    z-index: 2;
}

.match-details-grid {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.match-tag {
    background: rgba(99, 102, 241, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
}

/* ===== Reviews Section in Restaurant Modal ===== */

.restaurant-reviews-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.reviews-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.reviews-count-badge {
    background: var(--primary);
    color: white;
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.reviews-count-tab {
    background: var(--primary);
    color: white;
    padding: 0.1rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.25rem;
}

.btn-add-review {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem;
    background: var(--surface-light);
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.btn-add-review:hover {
    background: var(--surface-lighter);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-add-review svg {
    color: var(--warning);
}

.reviews-list,
.user-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: var(--transition);
}

.review-card:hover {
    border-color: var(--surface-lighter);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.review-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.review-user-info {
    flex: 1;
}

.review-user-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.review-user-level {
    font-size: 0.78rem;
    color: #d4af37;
    font-weight: 600;
    margin-top: 1px;
}

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

.review-rating {
    display: flex;
    gap: 0.15rem;
    font-size: 1rem;
}

.review-rating .star-filled {
    color: var(--warning);
}

.review-rating .star-empty {
    color: var(--border);
}

.review-comment {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.review-visit-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.review-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.review-action-btn {
    padding: 0.4rem 0.875rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.review-action-btn:hover {
    background: var(--surface);
    color: var(--text);
}

.review-action-btn.delete:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.review-action-btn.edit:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(230, 57, 70, 0.1);
}

.review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.review-votes {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.vote-btn:hover:not(:disabled) {
    background: var(--surface);
    color: var(--text);
}

.vote-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(230, 57, 70, 0.1);
}

.vote-btn.dislike.active {
    border-color: #6b7280;
    color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
}

.vote-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.reviews-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.reviews-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* User Review Card (profile page - with restaurant info) */
.user-review-card {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.user-review-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.user-review-restaurant {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.user-review-restaurant-img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.user-review-restaurant-name {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}

.user-review-restaurant-type {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== Review Modal ===== */

.review-modal {
    max-width: 550px;
    width: 90%;
}

.modal-header-review {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header-review h3 {
    font-size: 1.25rem;
    color: var(--text);
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: var(--transition);
}

.modal-close-btn:hover {
    color: var(--text);
}

.modal-body-review {
    padding: 1.5rem;
}

.review-restaurant-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.review-restaurant-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.review-restaurant-name {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}

.review-restaurant-type {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.review-stars {
    display: flex;
    gap: 0.5rem;
}

.star-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--border);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    line-height: 1;
}

.star-btn:hover,
.star-btn.active {
    color: var(--warning);
    transform: scale(1.15);
}

.star-btn.hover-preview {
    color: var(--warning);
    opacity: 0.7;
}

.review-input,
.review-textarea {
    padding: 0.875rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.review-input:focus,
.review-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.review-textarea {
    min-height: 120px;
    resize: vertical;
}

.char-count {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: -0.5rem;
}

.modal-footer-review {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

.modal-footer-review .btn-secondary {
    padding: 0.75rem 1.5rem;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.modal-footer-review .btn-secondary:hover {
    background: var(--surface-lighter);
    color: var(--text);
}

.modal-footer-review .btn-primary {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.modal-footer-review .btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.modal-footer-review .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Review Average Display */
.review-average {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border-radius: var(--radius-md);
}

.review-average-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--warning);
}

.review-average-stars {
    display: flex;
    gap: 0.1rem;
    font-size: 1.1rem;
}

.review-average-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive for reviews */
@media (max-width: 600px) {
    .review-modal {
        width: 95%;
        margin: 1rem;
    }

    .review-header {
        flex-wrap: wrap;
    }

    .review-restaurant-info {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== AUTH MODAL ===== */

.auth-modal {
    position: relative;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    margin: auto;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.auth-modal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin-bottom: 1rem;
}

.auth-header h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.auth-header p {
    color: #888;
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.auth-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.auth-input:focus {
    border-color: var(--primary);
}

.auth-input::placeholder {
    color: #555;
}

.auth-btn-primary {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.auth-btn-primary:hover {
    background: var(--primary-dark);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #2a2a2a;
}

.auth-divider span {
    color: #555;
    font-size: 0.8rem;
}

.auth-btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.auth-btn-google:hover {
    background: #222;
}

.auth-switch {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}
