/* --- OCULTAR BARRA DE SCROLL (NIVEL EXTREMO) --- */
html::-webkit-scrollbar,
body::-webkit-scrollbar, 
*::-webkit-scrollbar {
    display: none !important;
    width: 0px !important;
    height: 0px !important;
    background: transparent !important;
    -webkit-appearance: none !important;
}

html, body, * {
    -ms-overflow-style: none !important;  /* IE y Edge */
    scrollbar-width: none !important;     /* Firefox */
}
/* --- 0. CRITICAL FONT LOADING (Fix Google Speed) --- */
@font-face {
    font-family: 'Inter';
    /* Ajustamos la ruta asumiendo que la carpeta 'inter' está al lado de 'listing' */
    src: url('../inter/Inter-VariableFont_slnt,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap; /* ESTO ES LA CLAVE: Muestra texto inmediato */
}
/* --- RESET & BASE (Optimizado V6.5) --- */
.wp-site-blocks { padding-top: 0!important; padding-bottom:0!important;}

/* FUENTES: Agregado 'system-ui' para carga nativa instantánea en Android/Windows */
.nom-wrapper-all { 
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
    color: #1e293b; 
    background: #fff; 
    box-sizing: border-box; 
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased; /* Texto nítido */
} 
.nom-wrapper-all * { box-sizing: border-box; } 
a { text-decoration: none; color: inherit; } 

/* MENU USUARIO */
.nom-user-circle { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; border: 2px solid #f1f5f9; cursor: pointer; transition: 0.2s; display: block; }
.nom-user-circle:hover { border-color: #FF385C; transform: scale(1.05); }
.nom-user-circle img { width: 100%; height: 100%; object-fit: cover; }
.nom-login-pill { display: flex; align-items: center; gap: 8px; background: #1e293b; color: white; padding: 8px 16px; border-radius: 50px; font-size: 13px; font-weight: 600; transition: 0.2s; }
.nom-login-pill:hover { background: #000; transform: translateY(-1px); }

/* LAYOUT */ 
.nom-explore-wrap {  max-width: 1400px; margin: 0 auto;  } 
.nom-filter-bar { display: flex; flex-direction: column; align-items: center; margin-bottom: 40px; gap: 20px; } 

/* TABS DE TIPO */
.nom-explore-wrap {         padding: 15px 3px 0px 3px;overflow-x: hidden;  }
.nom-type-switch { display: inline-flex; background: #0f172a; padding: 8px; border-radius: 16px;  } 
.nom-tab-btn { padding: 10px 24px; border-radius: 12px; font-size: 14px; font-weight: 600; color: #ffffff; transition: 0.2s; display:flex; align-items:center; gap:6px; } 
.nom-tab-btn:hover { color: #333; } 
.nom-tab-btn.active { border-left: 10px solid transparent; border-right: 10px solid transparent; background: white; color: #0f172a; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05); font-weight: 700; } 

/* SEARCH BAR MEJORADA */
.nom-search-form { display: flex; align-items: center; background: white; border: 1px solid #e2e8f0; border-radius: 50px; padding: 6px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: 0.2s; width: 100%; max-width: 750px; position: relative; }
.nom-search-form:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.08); border-color: #cbd5e1; }

.nom-input-section { flex: 1; padding: 8px 24px; position: relative; border-right: 1px solid #e2e8f0; display: flex; flex-direction: column; justify-content: center; }
.nom-input-section:last-of-type { border-right: none; }

.nom-input-label { font-size: 10px;margin-left: 22px; font-weight: 800; color: #0f172a; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.nom-clean-input { border: none; outline: none; background: transparent; font-size: 14px; color: #475569; font-weight: 600; width: 100%; padding: 0; }
.nom-clean-input::placeholder { color: #94a3b8; font-weight: 400; }

.nom-btn-search { background: #FF385C; color: white; border: none; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; font-size: 20px; flex-shrink: 0; box-shadow: 0 4px 10px rgba(255, 56, 92, 0.3); margin-left: 5px; }
.nom-btn-search:hover { transform: scale(1.05); background: #e61e4d; }

/* --- GRID & CARDS (DISEÑO PRO + GPU ACCELERATION) --- */
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 30px; }

.st-card {
    background: #ffffff; border-radius: 20px; overflow: hidden; position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #f1f5f9; display: flex; flex-direction: column; height: 100%;
    text-decoration: none !important;
    /* GPU Hints para scroll suave */
    transform: translateZ(0);
    will-change: transform;
}
.st-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: #e2e8f0; }

/* IMAGEN */
.st-img-box { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #f3f4f6; }
.st-img { 
    width: 100%; height: 100%; object-fit: cover; 
    transition: transform 0.6s ease; 
    backface-visibility: hidden; /* Evita parpadeo en animación */
}
.st-card:hover .st-img { transform: scale(1.05); }

/* BADGES SOBRE IMAGEN */
.st-badges-top { position: absolute; top: 15px; left: 15px; right: 15px; display: flex; justify-content: space-between; align-items: start; z-index: 2; pointer-events: none; }

.st-cat-badge { 
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(4px); 
    padding: 5px 12px; border-radius: 30px; font-size: 11px; font-weight: 700; 
    color: #0f172a; text-transform: uppercase; box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
}

.st-rnt-badge { 
    background: #10b981; color: white; padding: 5px 10px; 
    border-radius: 30px; font-size: 10px; font-weight: 800; 
    display: flex; align-items: center; gap: 4px; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* CONTENIDO */
.st-content { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }

.st-header-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.st-title { font-size: 16px; font-weight: 800; color: #0f172a; line-height: 1.35; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-rating-star { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: #0f172a; }

.st-loc { font-size: 12px; color: #64748b; margin-bottom: 12px; display: block; }

/* INFO GRID MEJORADO */
.st-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.st-meta-pill { 
    font-size: 11px; font-weight: 600; color: #475569; 
    background: #f8fafc; padding: 4px 10px; border-radius: 6px; border: 1px solid #f1f5f9;
    display: flex; align-items: center; gap: 5px;
}

/* FOOTER PRECIO */
.st-footer { margin-top: auto; padding-top: 15px; border-top: 1px dashed #e2e8f0; display: flex; justify-content: space-between; align-items: center; }
.st-price-group { display: flex; flex-direction: column; }
.st-price-val { font-size: 18px; font-weight: 900; color: #0f172a; }
.st-price-lbl { font-size: 11px; color: #64748b; }

.st-btn-view { width: 36px; height: 36px; border-radius: 50%; background: #0f172a; color: white; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: 0.2s; }
.st-card:hover .st-btn-view { transform: scale(1.1); background: #FF385C; }
/* =========================================
   DISEÑO MÓVIL: STAYU PRO (OPTIMIZADO)
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. Contenedor Global */
    
    .nom-tab-btn { padding: 8px 12px; gap: 4px; font-size: 13px; } 
    .nom-filter-bar { gap: 15px; margin-bottom: 25px; }

    /* 2. FORMULARIO DE BÚSQUEDA HÍBRIDO */
    .nom-search-form { 
        border-radius: 24px; 
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        padding: 12px 14px;
        flex-wrap: wrap; 
        gap: 0; 
        align-items: center;
    }
    
    .nom-input-section:nth-of-type(1) {
        flex: 0 0 100% !important; 
        width: 100%;
        border-right: none; 
        border-bottom: 1px solid #f1f5f9; 
        padding: 0 0 10px 0; 
        margin-bottom: 8px; 
    }

    .nom-input-section:nth-of-type(2) {
        flex: 1 !important; 
        border-right: none;
        padding: 0; 
    }

    .nom-btn-search {margin-right: 10px;
        background: #FF385C; 
        border-radius: 18px; 
        height: 44px;
        width: 44px;
        font-size: 18px;
         
        box-shadow: 0 4px 12px rgba(255, 56, 92, 0.25);
        flex-shrink: 0; 
    }

    .nom-input-label { font-size: 9px; color: #64748b; margin-bottom: 2px;margin-left: 20px;}
    .nom-clean-input { font-size: 15px; height: auto;}

    /* --- GRID Y CARDS --- */
    .st-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

    .st-card { border-radius: 16px; border: none; box-shadow: 0 2px 10px rgba(0,0,0,0.05); background: #fff;}
    
    .st-img-box { 
        aspect-ratio: 1 / 1; 
        border-bottom: 1px solid #f1f5f9;
        /* Estabilidad visual móvil */
        contain: paint;
    }
    
    .st-badges-top { top: 8px; left: 8px; right: 8px; }
    
    .st-cat-badge { font-size: 9px; padding: 4px 8px; backdrop-filter: blur(8px); }
    
    .st-rating-star {
        position: absolute; top: 8px; right: 8px;
        background: #ffffff; color: #0f172a;
        font-size: 10px; font-weight: 800; padding: 4px 7px;
        border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        display: flex; align-items: center; gap: 3px;
    }
    .st-rating-star::before { content: '★'; color: #FF385C; font-size: 11px; }

    .st-content { padding: 10px; min-height: 80px; }

    .st-header-row { display: block; margin-bottom: 2px; }
    .st-title { font-size: 13px; line-height: 1.3; height: 34px; margin: 0; }
    
    .st-rnt-badge, .st-meta-row, .st-btn-view { display: none; }
    .st-header-row .st-rating-star { display: none; } 

    .st-loc { font-size: 10px; margin-bottom: 6px; }

    .st-footer { border: none; padding: 0; margin: 0; flex-direction: row; align-items: baseline; }
    .st-price-val { font-size: 14px; color: #FF385C; }
    .st-price-lbl { font-size: 10px; margin-left: 2px; }
}
/* =========================================
   PERSONALIZACIÓN DE FILTROS (V7)
   ========================================= */

/* A. Estilo "Solo Texto" (Restaurantes) */
.nom-search-form.mode-service {
    border-radius: 50px;
    padding: 8px 15px;
}
.nom-search-form.mode-service .nom-input-section {
    border-right: none;
}

/* B. Estilo "Híbrido" (Tours y Hospedaje) */
.nom-search-form.mode-tour, 
.nom-search-form.mode-lodging {
    border-radius: 16px; /* Más cuadrado estilo Airbnb */
    padding: 5px;
}

.nom-search-form.mode-tour .nom-input-section,
.nom-search-form.mode-lodging .nom-input-section {
    padding: 10px 0px;
}

/* Separador visual elegante para fechas */
.nom-separator {
    width: 1px;
    height: 30px;
    background: #e2e8f0;
    margin: 0 5px;
}

/* Iconos decorativos en inputs */
.nom-inp-icon { font-size: 16px; margin-right: 12px; color: #cbd5e1;margin-left: 16px; }

/* En Móvil: Adaptar los estilos */
@media (max-width: 768px) {
    .nom-search-form.mode-service { border-radius: 24px; }
    .nom-search-form.mode-tour, 
    .nom-search-form.mode-lodging { border-radius: 20px; }
    
    .nom-separator { display: none; } /* Ocultar separador en vertical */
}

/* ==========================================================================
   DISEÑO "BENTO COLLAGE" (ESTILO PREMIUM MEJORADO)
   ========================================================================== */

.st-bento-3 { 
    display: grid; 
    grid-template-columns: 2fr 1fr; /* Proporción más equilibrada */
    gap: 2px; /* Líneas finas estilo Instagram */
    width: 100%; 
    height: 100%; 
    background: #e2e8f0; /* Color gris de la línea divisoria */
}

.st-bento-main, .st-bento-side, .st-bento-top, .st-bento-bottom, .st-bento-half, .st-bento-1 { 
    position: relative; height: 100%; width: 100%; overflow: hidden; background: #f8fafc; 
}

.st-bento-main img, .st-bento-top img, .st-bento-bottom img, .st-bento-half img, .st-bento-1 img { 
    width: 100%; height: 100%; object-fit: cover; 
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); 
}

/* Animación suave de zoom al pasar el mouse o tocar */
.st-card:hover .st-bento-main img, 
.st-card:hover .st-bento-top img, 
.st-card:hover .st-bento-bottom img,
.st-card:hover .st-bento-half img,
.st-card:hover .st-bento-1 img { 
    transform: scale(1.08); 
}

/* Gradiente oscuro inferior para garantizar que la etiqueta siempre se lea bien */
.st-bento-main::after, .st-bento-1::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Etiqueta premium con efecto cristal oscuro (Glassmorphism) */
.st-bento-label {
    position: absolute; 
    bottom: 12px; left: 12px; right: 12px;
    background: rgba(15, 23, 42, 0.65); /* Azul oscuro casi negro translúcido */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 12px; 
    border-radius: 10px; 
    font-size: 13px; font-weight: 700;
    color: #ffffff; /* Texto blanco brillante */
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    border: 1px solid rgba(255, 255, 255, 0.15); /* Borde fino de cristal */
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    z-index: 2;
    letter-spacing: 0.3px;
}

/* Cuadrícula derecha */
.st-bento-side { display: grid; grid-template-rows: 1fr 1fr; gap: 2px; }

/* El recuadro oscuro de "Ver Menú" */
.st-bento-overlay {
    position: absolute; inset: 0; 
    background: rgba(0, 0, 0, 0.45);
    color: white; display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: all 0.3s ease;
    z-index: 2;
}

/* Efecto mágico: Se vuelve del color rojo de Stayu al hacer hover */
.st-card:hover .st-bento-overlay {
    background: rgba(255, 56, 92, 0.85);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.st-bento-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 100%; height: 100%; background: #e2e8f0; }
/* =========================================
   ESTILOS MOVIDOS DESDE LAS VISTAS PHP
   ========================================= */

/* --- Del Header / Buscador --- */
.nom-search-wrap { position: relative;  display: flex; align-items: center; }
.nom-clean-input { font-size: 15px; font-weight: 600; color: #0f172a; padding: 5px 0; width: 100%; border:none; outline:none; background:transparent; }
.nom-clean-input::placeholder { color: #94a3b8; font-weight: 400; }
.nom-suggestions-box { position: absolute; top: 120%; left: -20px; width: 120%; background: white; border-radius: 16px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); border: 1px solid #e2e8f0; z-index: 999; overflow: hidden; display: none; padding: 10px 0; }
.nom-sugg-item { padding: 12px 25px; cursor: pointer; font-size: 14px; color: #334155; display: flex; align-items: center; gap: 12px; transition: 0.1s; }
.nom-sugg-item:hover { background: #f1f5f9; color: #FF385C; font-weight: 600; }
.nom-icon-pin { background: #f1f5f9; color: #64748b; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; }
@media (max-width: 768px) { .nom-suggestions-box { width: 100%; left: 0; } }

/* --- Loader y GPS --- */
@keyframes st-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.st-infinite-loader { grid-column: 1 / -1; padding: 40px 20px; text-align: center; width: 100%; display: none; }
.st-spinner { display: inline-block; width: 40px; height: 40px; border: 4px solid #f1f5f9; border-top-color: #FF385C; border-radius: 50%; animation: st-spin 1s linear infinite; }
.st-btn-gps-manual { margin-right: 8px;background: #f1f5f9; color: #0f172a; border: 1px solid #e2e8f0; width: 36px; height: 36px; border-radius: 50%; font-size: 16px; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: all 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.st-btn-gps-manual:hover { background: #FF385C; color: white; border-color: #FF385C; }
.st-btn-gps-manual:active { transform: scale(0.9); }

/* --- Del Footer --- */
.nom-pro-footer { background-color: #0f172a; color: #94a3b8; padding: 80px 0 30px; margin-top: 80px; font-family: 'Inter', system-ui, sans-serif; font-size: 14px; border-top: 4px solid #FF385C; }
.nom-footer-container { width: 90%; max-width: 1200px; margin: 0 auto; }
.nom-footer-top { display: flex; flex-wrap: wrap; gap: 60px; margin-bottom: 60px; border-bottom: 1px solid #1e293b; padding-bottom: 60px; }
.nom-brand-area { flex: 1; min-width: 250px; max-width: 350px; }
.nom-footer-logo { font-size: 28px; font-weight: 900; color: #ffffff; margin: 0 0 20px 0; letter-spacing: -1px; }
.nom-footer-pitch { line-height: 1.6; margin-bottom: 30px; font-size: 15px; color: #cbd5e1; }
.nom-social-icons { display: flex; gap: 10px; }
.nom-soc-btn { width: 40px; height: 40px; border-radius: 50%; background: #1e293b; color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; text-decoration: none; transition: all 0.3s ease; }
.nom-soc-btn:hover { background: #FF385C; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(255, 56, 92, 0.4); color: white; }
.nom-links-area { flex: 2; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.nom-link-group { display: flex; flex-direction: column; gap: 12px; min-width: 140px; }
.nom-link-group h4 { color: #ffffff; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 10px 0; }
.nom-link-group a { color: #94a3b8; transition: 0.2s; text-decoration: none; }
.nom-link-group a:hover { color: #FF385C; padding-left: 5px; }
.nom-footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #64748b; }
.nom-legal { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.nom-legal a { color: #64748b; text-decoration: none; }
.nom-legal a:hover { color: #fff; text-decoration: underline; }
.nom-dot { margin: 0 5px; }

@media (max-width: 768px) {
    .nom-pro-footer { padding: 50px 0 30px; }
    .nom-footer-top { flex-direction: column; gap: 40px; padding-bottom: 40px; }
    .nom-links-area { flex-direction: column; gap: 40px; }
    .nom-footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}

/* 🔧 Corrección de la ruta de la fuente (ya que movimos el archivo a la carpeta /assets) */
@font-face {
    font-family: 'Inter';
    src: url('../../inter/Inter-VariableFont_slnt,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}