/**
 * ============================================================================
 * CLICKMENU — DIRECTORIO DE RESTAURANTES AFILIADOS (ESTILOS NIVEL AAA)
 * ============================================================================
 * Hoja de estilos independiente y desacoplada: assets/css/restaurantes.css
 * Dark Luxury, acentos ámbar, microanimaciones fluidas, insignias de estado
 * (Verde para Abierto, Rojo para Cerrado) y responsividad total.
 * ============================================================================
 */

:root {
    --dir-bg-dark: #090b10;
    --dir-bg-card: #151923;
    --dir-bg-card-hover: #1c2130;
    --dir-bg-header: rgba(9, 11, 16, 0.95);
    --dir-accent: #f59e0b;
    --dir-accent-glow: rgba(245, 158, 11, 0.28);
    --dir-text-primary: #ffffff;
    --dir-text-muted: #94a3b8;
    --dir-border: rgba(255, 255, 255, 0.08);
    --dir-border-hover: rgba(245, 158, 11, 0.45);
    --dir-shadow-card: 0 4px 18px rgba(0, 0, 0, 0.45);
    --dir-radius: 18px;
    --dir-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
    --dir-bg-dark: #f8fafc;
    --dir-bg-card: #ffffff;
    --dir-bg-header: rgba(255, 255, 255, 0.92);
    --dir-text-primary: #0f172a;
    --dir-text-muted: #64748b;
    --dir-border: rgba(0, 0, 0, 0.08);
    --dir-border-hover: rgba(245, 158, 11, 0.6);
    --dir-shadow-card: 0 4px 18px rgba(0, 0, 0, 0.07);
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ── ESTILOS GLOBALES DEL BODY ── */
.directory-bg-glow {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, rgba(9, 11, 16, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="light"] .directory-bg-glow {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, rgba(248, 250, 252, 0) 70%);
}

.directory-body {
    background-color: var(--dir-bg-dark);
    color: var(--dir-text-primary);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* ── CABECERA SUPERIOR DE NAVEGACIÓN ── */
.directory-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--dir-bg-header);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--dir-border);
    padding: 12px 0;
    transition: var(--dir-transition);
}

.directory-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    justify-content: center;
}

.btn-back-marketplace {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dir-border);
    color: var(--dir-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--dir-transition);
}

[data-theme="light"] .btn-back-marketplace {
    background: rgba(0, 0, 0, 0.04);
}

.btn-back-marketplace:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--dir-accent);
    color: var(--dir-accent);
    transform: scale(1.05);
}

.directory-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.directory-brand-logo .logo-click {
    color: var(--dir-text-primary);
}

.directory-brand-logo .logo-menu {
    color: var(--dir-accent);
}

.header-right-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* ── Menú Hamburguesa Squircle Oficial de ClickMenu (Marketplace Standard) ── */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.08);
    border: 1.5px solid rgba(245, 158, 11, 0.2);
    color: var(--dir-accent);
    z-index: 10003;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    animation: menuPulseJump 4s infinite;
    flex-shrink: 0;
}

[data-theme="light"] .mobile-menu-btn {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
}

@keyframes menuPulseJump {
    0%, 90%, 100% { transform: translateY(0) scale(1); }
    93% { transform: translateY(-8px) scale(1.1); }
    97% { transform: translateY(2px) scale(0.95); }
}

.mobile-menu-btn::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    background-color: #ef4444; /* bright red */
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.6);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Mando/Icono Compacto y Proporcionado */
.mobile-menu-btn i {
    font-size: 0.95rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-menu-btn i.fa-gamepad {
    font-size: 0.9rem !important;
}

.mobile-menu-btn:hover {
    background: rgba(245, 158, 11, 0.15);
    transform: scale(1.05);
}

header.menu-open .mobile-menu-btn {
    opacity: 0;
    pointer-events: none;
}

/* ── Panel Lateral (Drawer Nav-Links Idéntico a Marketplace) ── */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -360px;
    width: 290px;
    max-width: 82vw;
    height: 100vh;
    box-sizing: border-box;
    background: rgba(18, 18, 18, 0.78);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px 0 0 24px;
    padding: 24px 18px 40px 18px;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.4);
    z-index: 10002 !important;
    gap: 14px;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1), background var(--dir-transition);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

[data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.08);
}

.nav-links.active {
    right: 0;
}

/* Barra superior interna del Drawer */
.drawer-top-bar {
    display: flex;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .drawer-top-bar {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.drawer-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dir-text-primary);
    display: flex;
    align-items: center;
}

.nav-links .admin-btn, 
.nav-links .lang-toggle, 
.nav-links .theme-toggle {
    width: 100%;
    justify-content: flex-start;
    box-sizing: border-box;
    padding: 16px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--dir-text-primary);
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    font-family: inherit;
}

.nav-links .admin-btn span, 
.nav-links .lang-toggle span, 
.nav-links .theme-toggle span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="light"] .nav-links .admin-btn, 
[data-theme="light"] .nav-links .lang-toggle, 
[data-theme="light"] .nav-links .theme-toggle {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #0f172a;
}

.nav-links .admin-btn:hover, 
.nav-links .lang-toggle:hover, 
.nav-links .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(0.98);
}

[data-theme="light"] .nav-links .admin-btn:hover, 
[data-theme="light"] .nav-links .lang-toggle:hover, 
[data-theme="light"] .nav-links .theme-toggle:hover {
    background: #f1f5f9;
}

.nav-links .admin-btn i, 
.nav-links .lang-toggle i, 
.nav-links .theme-toggle i {
    color: var(--dir-accent);
    background: rgba(245, 158, 11, 0.15);
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Badge NUEVO en Sala de Espera */
.sala-espera-btn {
    position: relative;
    overflow: visible;
}

.sala-espera-btn::after {
    content: 'NUEVO';
    position: absolute;
    top: -6px;
    right: 0px;
    background: #ef4444;
    color: #fff;
    font-size: 0.45rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    animation: newBadge 2s ease-in-out infinite;
}

@keyframes newBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ── CONTENIDO PRINCIPAL Y HERO ── */
.directory-main {
    flex-grow: 1;
    padding: 36px 0 60px;
}

.directory-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.directory-hero {
    text-align: center;
    margin-bottom: 34px;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dir-accent);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.directory-main-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin: 0 0 10px;
    color: var(--dir-text-primary);
}

.directory-main-subtitle {
    font-size: 1rem;
    color: var(--dir-text-muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ── BARRA DE HERRAMIENTAS: BUSCADOR Y CHIPS ── */
.directory-toolbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.search-box-wrap {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

.search-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dir-text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.search-input {
    width: 100%;
    padding: 14px 46px 14px 48px;
    background: var(--dir-bg-card);
    border: 1.5px solid var(--dir-border);
    border-radius: 16px;
    color: var(--dir-text-primary);
    font-family: inherit;
    font-size: 0.96rem;
    font-weight: 500;
    outline: none;
    box-sizing: border-box;
    transition: var(--dir-transition);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.search-input:focus {
    border-color: var(--dir-accent);
    box-shadow: 0 0 20px var(--dir-accent-glow);
}

.search-input:focus + .search-input-icon {
    color: var(--dir-accent);
}

.search-clear-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--dir-text-muted);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--dir-transition);
}

.search-clear-btn:hover {
    background: var(--dir-accent);
    color: #000000;
}

.filters-chips-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--dir-bg-card);
    border: 1px solid var(--dir-border);
    color: var(--dir-text-muted);
    padding: 8px 14px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.83rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: var(--dir-transition);
}

.filter-chip:hover {
    border-color: rgba(245, 158, 11, 0.4);
    color: var(--dir-text-primary);
}

.filter-chip.active {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--dir-accent);
    color: var(--dir-accent);
}

.chip-count {
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
}

.filter-chip.active .chip-count {
    background: var(--dir-accent);
    color: #000000;
}

.chip-dot-green {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

/* ── BOTÓN CONMUTADOR DE VISTA (CUADRÍCULA / LISTA) ── */
.view-toggle-chip {
    margin-left: 0;
    background: var(--dir-bg-card);
    border: 1px solid var(--dir-border);
    color: var(--dir-text-primary);
    position: relative;
    user-select: none;
}

[data-theme="light"] .view-toggle-chip {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

.view-toggle-chip:hover {
    border-color: var(--dir-accent);
    color: var(--dir-accent);
    transform: translateY(-2px);
}

.view-toggle-chip.active {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--dir-accent);
    color: var(--dir-accent);
    box-shadow: 0 0 14px var(--dir-accent-glow);
}

.view-toggle-chip i {
    font-size: 0.85rem;
    color: var(--dir-accent);
    transition: transform 0.25s ease;
}

.view-toggle-chip:hover i {
    transform: rotate(15deg);
}

/* Puntico de estado en el logo (Estilo Marketplace Oficial) */
.restaurant-logo-dot {
    display: none;
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2.5px solid var(--dir-bg-card);
    z-index: 5;
}

[data-theme="light"] .restaurant-logo-dot {
    border-color: #ffffff;
}

.restaurant-logo-dot.open {
    background: #10b981;
    box-shadow: 0 0 7px rgba(16, 185, 129, 0.9);
}

.restaurant-logo-dot.closed {
    background: #ef4444;
    box-shadow: 0 0 7px rgba(239, 68, 68, 0.9);
}

/* ── CUADRÍCULA DE RESTAURANTES ── */
.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.restaurant-card-item {
    background: var(--dir-bg-card);
    border: 1px solid var(--dir-border);
    border-radius: var(--dir-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--dir-shadow-card);
    transition: var(--dir-transition);
}

.restaurant-card-item:hover {
    transform: translateY(-6px);
    border-color: var(--dir-border-hover);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 22px var(--dir-accent-glow);
}

.restaurant-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.restaurant-card-header {
    position: relative;
    width: 100%;
    height: 130px;
    background: #11141d;
    overflow: hidden;
}

.restaurant-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.restaurant-card-item:hover .restaurant-cover-img {
    transform: scale(1.06);
}

.restaurant-cover-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #181c26 0%, #0d0f14 100%);
    position: relative;
}

.restaurant-cover-fallback::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image: radial-gradient(circle at 20% 30%, #f59e0b 0%, transparent 40%), radial-gradient(circle at 80% 70%, #38bdf8 0%, transparent 40%);
}

.restaurant-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(9, 11, 16, 0.85) 100%);
}

[data-theme="light"] .restaurant-cover-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(255, 255, 255, 0.75) 100%);
}

/* ── BADGES DE ESTADO (VERDE = ABIERTO / ROJO = CERRADO) ── */
.restaurant-badge-status {
    position: absolute;
    top: 10px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2;
}

/* Estado Abierto (Verde Neón Brillante) */
.restaurant-badge-status.open {
    background: rgba(16, 185, 129, 0.22);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
}

.restaurant-badge-status.open .status-indicator-dot {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulseDot 2s infinite ease-in-out;
}

/* Estado Cerrado (Rojo Rubí Elegante a solicitud del usuario) */
.restaurant-badge-status.closed {
    background: rgba(239, 68, 68, 0.22);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fca5a5;
}

.restaurant-badge-status.closed .status-indicator-dot {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.85);
}

.status-indicator-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

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

/* ── CUERPO DE LA TARJETA ── */
.restaurant-card-content {
    position: relative;
    padding: 0 18px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.restaurant-logo-wrap {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--dir-bg-card);
    border: 3.5px solid var(--dir-bg-card);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    margin-top: -31px;
    margin-bottom: 12px;
    overflow: hidden;
    z-index: 3;
    flex-shrink: 0;
}

.restaurant-logo-circle {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.restaurant-details {
    flex-grow: 1;
}

.restaurant-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dir-text-primary);
    margin: 0 0 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.restaurant-address {
    font-size: 0.8rem;
    color: var(--dir-text-muted);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.restaurant-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.restaurant-pill-service {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--dir-text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--dir-border);
    padding: 3px 8px;
    border-radius: 6px;
}

[data-theme="light"] .restaurant-pill-service {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.restaurant-action-row {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--dir-border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.btn-restaurant-explore {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--dir-accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--dir-transition);
}

.restaurant-card-item:hover .btn-restaurant-explore {
    gap: 10px;
    color: #fbbf24;
}

/* ── ESTADO VACÍO (SIN COINCIDENCIAS) ── */
.directory-no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--dir-bg-card);
    border: 1px dashed var(--dir-border);
    border-radius: 20px;
    margin-top: 20px;
}

.no-results-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.1);
    color: var(--dir-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 16px;
}

.no-results-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dir-text-primary);
    margin: 0 0 8px;
}

.no-results-desc {
    font-size: 0.92rem;
    color: var(--dir-text-muted);
    margin: 0 0 20px;
}

.btn-reset-filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dir-accent);
    color: #000000;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--dir-transition);
}

.btn-reset-filters:hover {
    background: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px var(--dir-accent-glow);
}

/* ── VISTA DE LISTA COMPACTA (ALTERNATIVA A — NIVEL AAA) ── */
.restaurants-grid.view-list {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 960px;
    margin: 0 auto;
}

.restaurants-grid.view-list .restaurant-card-item {
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.restaurants-grid.view-list .restaurant-card-item:hover {
    transform: translateX(4px);
    border-color: var(--dir-accent);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), 0 0 16px var(--dir-accent-glow);
}

.restaurants-grid.view-list .restaurant-card-link {
    flex-direction: row;
    align-items: center;
    padding: 12px 18px;
    gap: 16px;
    min-height: 80px;
}

.restaurants-grid.view-list .restaurant-card-header {
    display: none;
}

.restaurants-grid.view-list .restaurant-card-content {
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.restaurants-grid.view-list .restaurant-logo-wrap {
    margin-top: 0;
    margin-bottom: 0;
    width: 52px;
    height: 52px;
    border: 2px solid var(--dir-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    position: relative;
    overflow: visible;
}

.restaurants-grid.view-list .restaurant-logo-circle {
    border-radius: 50%;
}

.restaurants-grid.view-list .restaurant-logo-dot {
    display: block;
}

.restaurants-grid.view-list .restaurant-details {
    flex-grow: 1;
    min-width: 0;
}

.restaurants-grid.view-list .restaurant-title {
    font-size: 1.08rem;
    font-weight: 800;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.restaurants-grid.view-list .restaurant-address {
    margin: 0;
    font-size: 0.78rem;
    color: var(--dir-text-muted);
}

.restaurants-grid.view-list .restaurant-meta-row {
    display: none;
}

.restaurants-grid.view-list .restaurant-action-row {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    flex-shrink: 0;
    margin-left: auto;
}

.restaurants-grid.view-list .btn-restaurant-explore {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--dir-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    padding: 0;
    transition: var(--dir-transition);
}

.restaurants-grid.view-list .btn-restaurant-explore span {
    display: none;
}

.restaurants-grid.view-list .restaurant-card-item:hover .btn-restaurant-explore {
    background: var(--dir-accent);
    color: #000000;
    border-color: var(--dir-accent);
    transform: scale(1.08);
    box-shadow: 0 0 14px var(--dir-accent-glow);
}

@media (max-width: 640px) {
    .restaurants-grid.view-list {
        gap: 10px;
    }

    .restaurants-grid.view-list .restaurant-card-link {
        padding: 10px 14px;
        gap: 12px;
        min-height: 72px;
    }

    .restaurants-grid.view-list .restaurant-logo-wrap {
        width: 46px;
        height: 46px;
    }

    .restaurants-grid.view-list .restaurant-logo-dot {
        width: 12px;
        height: 12px;
        border-width: 2px;
    }

    .restaurants-grid.view-list .restaurant-title {
        font-size: 0.98rem;
    }

    .restaurants-grid.view-list .btn-restaurant-explore {
        width: 36px;
        height: 36px;
        font-size: 0.88rem;
    }
}

/* ── RESPONSIVIDAD (MÓVILES Y TABLETS) ── */
@media (max-width: 768px) {
    .nav-links {
        width: 280px !important;
        right: -320px !important;
        padding: 20px 16px 36px 16px;
        gap: 12px;
    }

    .nav-links.active {
        right: 0 !important;
    }

    .nav-links .admin-btn, 
    .nav-links .lang-toggle, 
    .nav-links .theme-toggle {
        padding: 13px 16px;
        border-radius: 16px;
        font-size: 0.9rem;
        gap: 12px;
    }

    .btn-text-desktop {
        display: none;
    }

    .directory-header-container {
        padding: 0 16px;
    }

    .directory-main-title {
        font-size: 1.8rem;
    }

    .directory-main-subtitle {
        font-size: 0.92rem;
    }

    .filters-chips-wrap {
        gap: 6px;
        flex-wrap: nowrap;
    }

    .filter-chip {
        padding: 7px 11px;
        font-size: 0.78rem;
        gap: 5px;
    }

    .chip-count {
        font-size: 0.68rem;
        padding: 2px 6px;
    }

    .restaurants-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 360px) {
    .nav-links {
        width: 260px !important;
        right: -300px !important;
        padding: 18px 12px 30px 12px;
        gap: 10px;
    }

    .nav-links .admin-btn, 
    .nav-links .lang-toggle, 
    .nav-links .theme-toggle {
        padding: 11px 12px;
        border-radius: 14px;
        font-size: 0.84rem;
        gap: 10px;
    }

    .nav-links .admin-btn i, 
    .nav-links .lang-toggle i, 
    .nav-links .theme-toggle i {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
}

/* ── NATIVE CROSS-DOCUMENT VIEW TRANSITIONS API (0 MS APP-LIKE FEEL) ── */
@view-transition {
    navigation: auto;
}

@keyframes cmDirFadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.992); }
}

@keyframes cmDirFadeIn {
    from { opacity: 0; transform: scale(1.008); }
    to { opacity: 1; transform: scale(1); }
}

::view-transition-old(root) {
    animation: 180ms cubic-bezier(0.22, 1, 0.36, 1) both cmDirFadeOut;
}

::view-transition-new(root) {
    animation: 210ms cubic-bezier(0.22, 1, 0.36, 1) both cmDirFadeIn;
}


