/* --- 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 { width: 92%; 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-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; 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-explore-wrap { 
        width: 100%; 
        padding: 15px 10px; 
    }
    .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 {
        background: #FF385C; 
        border-radius: 18px; 
        height: 44px;
        width: 44px;
        font-size: 18px;
        margin: 0 0 0 10px; 
        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;}
    .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 20px;
}

/* 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: 8px; color: #cbd5e1; }

/* 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 */
}