/* ============================================================
   NichosYA VIP — Estilos Frontend para páginas de directorio
   Estos estilos aplican solo en páginas generadas por el plugin.
   ============================================================ */

/* ---- Botones principales ---- */
.boton-azul,
.boton-azul:visited {
    display: inline-block;
    background: #1e40af;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    margin: 8px 4px 4px 0;
    transition: background .2s;
    cursor: pointer;
    border: none;
    text-align: center;
}
.boton-azul:hover { background: #1e3a8a; }

.boton-rojo,
.boton-rojo:visited {
    display: inline-block;
    background: #c81026;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    margin: 8px 4px 4px 0;
    transition: background .2s;
    cursor: pointer;
    border: none;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
.boton-rojo:hover { background: #a00d1e; }

/* ---- Tabla de resumen de negocios ---- */
.negocios_scrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 18px 0 28px;
}

/* Tarjeta horizontal: imagen izquierda + datos derecha */
.negocio.ny-card-h {
    display: flex;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,.07);
    transition: box-shadow .22s, transform .18s;
}
.negocio.ny-card-h:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    transform: translateY(-2px);
}

/* Foto del negocio a la izquierda */
.ny-card-thumb {
    width: 130px;
    min-height: 130px;
    flex-shrink: 0;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
}
.ny-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 130px;
    border-radius: 0;
}
/* Placeholder cuando no hay foto */
.ny-card-thumb-ph {
    width: 100%;
    height: 100%;
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #93c5fd;
    font-size: 36px;
}

/* Columna derecha: datos */
.ny-card-info {
    flex: 1;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nombre-negocio {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
    line-height: 1.3;
}

.inferior {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #374151;
    margin-bottom: 10px;
}

/* Fila de icono + dato */
.ny-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    line-height: 1.4;
}
.ny-meta-item .fas,
.ny-meta-item .far {
    margin-top: 2px;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}
.ny-meta-addr  .fas { color: #c81026; }
.ny-meta-rating .fas,
.ny-meta-rating .far { color: #f59e0b; }
.ny-meta-phone .fas  { color: #16a34a; }
.ny-meta-web   .fas  { color: #2563eb; }

.ny-meta-item a {
    color: inherit;
    text-decoration: none;
}
.ny-meta-item a:hover { text-decoration: underline; }
.ny-meta-addr a  { color: #64748b; }
.ny-meta-web a   { color: #2563eb; font-weight: 500; }
.ny-rev-link     { color: #64748b; font-size: 12px; margin-left: 4px; }

/* Estrellas en la tabla de resumen */
.ny-star          { font-size: 12px; color: #f59e0b; }
.ny-star-empty    { color: #d1d5db; }
.rating           { color: #c81026; font-weight: 700; }

/* Teléfono: enlace de llamada directo — muy visible */
.ny-tel {
    color: #16a34a !important;
    font-weight: 700;
    text-decoration: none !important;
    letter-spacing: .3px;
}
.ny-tel:hover { text-decoration: underline !important; color: #15803d !important; }

/* ---- Tarjeta su_note: sección de reseña detallada ---- */
.su-note.moteles {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #fff !important;
    margin: 14px 0 24px !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.06) !important;
}
.su-note.moteles .su-note-inner {
    padding: 20px !important;
    background: transparent !important;
}
.su-note .title {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 14px 0 5px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}
.su-note .su-row .su-column-size-1-2 {
    padding: 0 12px;
}
.su-note img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 4px;
    display: block;
    object-fit: cover;
    max-height: 240px;
}
.su-note iframe {
    width: 100% !important;
    height: 200px !important;
    border: 0 !important;
    border-radius: 8px;
    margin: 6px 0 10px;
    display: block;
}

/* Teléfono como botón de llamada dentro de reseña */
.ny-tel-wrap { margin: 0 0 8px; }
.ny-tel-review {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    color: #15803d !important;
    font-weight: 700;
    font-size: 15px;
    padding: 7px 14px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background .18s, border-color .18s;
    margin: 4px 0 10px;
    letter-spacing: .2px;
}
.ny-tel-review .fas { color: #16a34a; font-size: 14px; }
.ny-tel-review:hover {
    background: #dcfce7;
    border-color: #4ade80;
    color: #14532d !important;
}

/* Estrellas en ficha de reseña */
.ny-rating-stars { font-size: 15px; margin: 4px 0 2px; }
.ny-rating-stars .ny-star      { font-size: 15px; color: #f59e0b; }
.ny-rating-stars .ny-star-empty { color: #d1d5db; }

/* Horario */
.ny-horario { line-height: 1.7; font-size: 13px; color: #374151; }
.ny-no-data { color: #94a3b8; font-style: italic; font-size: 13px; }

/* Botón web en reseña */
.ny-btn-web {
    margin-top: 4px !important;
    font-size: 13px !important;
    padding: 7px 14px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

/* Iconos Font Awesome en tarjetas */
.su-note .fas.fa-map-marker-alt { color: #c81026; }
.su-note .fas.fa-phone-alt      { color: #c81026; }
.su-note .fas.fa-star           { color: #c81026; }
.su-note .fas.fa-clock          { color: #c81026; }

/* H3 de negocio dentro de reseña */
.negocio-individual h3,
h3.ny-biz-h3 {
    font-size: 20px;
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 6px;
    margin: 28px 0 10px;
    color: #1e293b;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    /* Tarjeta resumen: apilar verticalmente en móvil */
    .negocio.ny-card-h { flex-direction: column; }
    .ny-card-thumb {
        width: 100%;
        min-height: 160px;
        border-radius: 0;
    }
    .ny-card-thumb img { min-height: 160px; }
    .ny-card-thumb-ph  { min-height: 100px; }

    .inferior { gap: 8px; }
    .su-note .su-row { flex-direction: column !important; }
    .su-note .su-column-size-1-2 {
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 16px;
    }
    .su-note iframe { height: 180px !important; }
    .boton-rojo,
    .boton-azul { display: block; text-align: center; }
    .ny-tel-review { width: 100%; justify-content: center; }
}
