﻿.ImageView-Open,
[data-image-view-index],
[data-image-view-index] img {
    cursor: pointer;
}




/* ==========================================
   TARJETA PRINCIPAL
   ========================================== */
.Sitio-business-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    min-height: auto;
    height: auto;
    /* Aumentamos el padding derecho para dar espacio a la flecha absoluta */
    padding: 12px 36px 12px 12px;
    border: 1px solid #e3e8ef;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(26, 51, 77, 0.06);
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    /* CAMBIO CLAVE 1: Cambiado de hidden a visible para no cortar el número (-6px) */
    overflow: visible;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}



    .Sitio-business-row:hover {
        transform: translateY(-2px);
        border-color: #a9d5ff;
        box-shadow: 0 7px 18px rgba(26, 92, 152, 0.12);
    }

    .Sitio-business-row:active {
        transform: scale(0.99);
    }


/* ==========================================
   CONTENIDO INTERNO
   ========================================== */
.Sitio-business-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    /* CAMBIO CLAVE 2: Mantiene los recortes de texto (ellipsis) dentro del contenedor */
    overflow: hidden;
}


/* ==========================================
   HEADER DE LA FILA
   ========================================== */

.Sitio-business-top {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    width: 100%;
    min-width: 0;
}

    .Sitio-business-top h3 {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: #172536;
        font-size: 17px;
        font-weight: 800;
        line-height: 1.2;
    }


/* ==========================================
   ESTADO
   ========================================== */

.Sitio-status {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

    .Sitio-status.abierto {
        color: #128447;
        background: #e1f6e9;
    }

    .Sitio-status.cerrado {
        color: #d05b16;
        background: #fff0df;
    }

    .Sitio-status.casi-abre {
        color: #8a5a00;
        background: #fff8e1;
    }

    .Sitio-status.casi-cierra {
        color: #b45309;
        background: #fff3e0;
    }


/* ==========================================
   DETALLES
   ========================================== */

.Sitio-business-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 5px;
    margin-top: 7px;
    min-width: 0;
    color: #758297;
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;
}

.Sitio-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #f59e0b;
    font-weight: 700;
}


/* ==========================================
   DESCRIPCIÓN
   ========================================== */

.Sitio-business-info p {
    width: 100%;
    min-width: 0;
    margin: 7px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #415066;
    font-size: 12px;
    line-height: 1.3;
}


/* ==========================================
   HORARIO / DISTANCIA
   ========================================== */
/* ==========================================
   HORARIO / DISTANCIA (EN UNA SOLA FILA)
   ========================================== */
.Sitio-business-bottom {
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* Fuerza a que no haga salto de línea */

    width: 100%;
    min-width: 0;
    gap: 14px;
    margin-top: auto; /* Empuja el contenedor al fondo de la tarjeta */

    color: #7385a0;
    font-size: 11px;
    font-weight: 600;
    overflow: hidden; /* Evita desbordamiento si el texto es muy largo */
}

    .Sitio-business-bottom > span {
        display: flex;
        align-items: center;
        gap: 4px;
        min-width: 0;
        line-height: 1.4;
        white-space: nowrap; /* Evita que "Domingo" y "Cerrado" se rompan en dos líneas */
    }

        /* Aplica puntos suspensivos solo al texto si no cabe en pantalla */
        .Sitio-business-bottom > span > span,
        .Sitio-business-bottom > span {
            overflow: hidden;
            text-overflow: ellipsis;
        }

    .Sitio-business-bottom i {
        flex: 0 0 auto;
    }




/* ==========================================
   FLECHA
   ========================================== */

.Sitio-business-arrow {
    position: absolute;
    top: 50%;
    right: 13px;
    color: #007bff;
    font-size: 14px;
    font-weight: 300;
    transform: translateY(-50%);
}


/* ==========================================
   IMAGEN Y NÚMERO
   ========================================== */

.Sitio-image-container {
    position: relative;
    flex: 0 0 82px;
    width: 82px;
    height: 82px;
    align-self: flex-start;
}

.Sitio-business-image-img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.business-number {
    position: absolute;
    top: -6px;
    left: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #007bff;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}


/* ==========================================
   TAGS
   ========================================== */

.Sitio-tags {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
    gap: 5px;
    margin: 6px 0;
    overflow: hidden;
}

.tag {
    max-width: 100%;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}

.tag-green {
    background-color: #e6f4ea;
    color: #1e7e34;
}

.tag-red {
    background-color: #fce8e6;
    color: #d93025;
}

.tag-yellow {
    background-color: #fef7e0;
    color: #b06000;
}

.tag-gray {
    background-color: #f1f3f4;
    color: #5f6368;
}


/* ==========================================
   VER MÁS RESULTADOS
   ========================================== */

.Sitio-more-results {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: #f8fafc;
    color: #007bff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-sizing: border-box;
}


/* ==========================================
   HEADER DE RESULTADOS
   ========================================== */

.Sitio-results-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 6px;
}

.bdr-span {
    display: inline-block;
    flex-shrink: 0;
    width: 3px;
    height: 16px;
    margin-right: 6px;
    background-color: #1e3a8a;
    border-radius: 4px;
}

.Sitio-results-title .title-left {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #1e3a8a;
    font-size: 14px;
    font-weight: 700;
}

.Sitio-results-title .sort-dropdown {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}


/* ==========================================
   CELULARES
   ========================================== */

@media (max-width: 599px) {

    .Sitio-window {
        width: 100%;
        max-width: 100%;
    }

    .Sitio-content {
        padding: 10px;
    }

    .Sitio-business-row {
        align-items: flex-start;
        min-height: auto; /* Permite que la tarjeta crezca si hay muchos tags o texto */
        height: auto;
        gap: 10px;
        padding: 10px 30px 10px 10px;
    }

    .Sitio-image-container {
        flex: 0 0 72px;
        width: 72px;
        height: 72px;
    }

    .Sitio-business-top h3 {
        font-size: 15px;
    }

    .Sitio-status {
        padding: 3px 7px;
        font-size: 9px;
    }

    .Sitio-business-details {
        gap: 3px 4px;
        margin-top: 5px;
        font-size: 11px;
    }

    .Sitio-business-info p {
        margin: 5px 0;
        font-size: 11px;
    }

    .Sitio-tags {
        gap: 4px;
        margin: 5px 0;
    }

    .tag {
        padding: 2px 6px;
        font-size: 9px;
    }

    .Sitio-business-bottom {
        gap: 5px 8px;
        font-size: 10px;
    }

    .Sitio-business-arrow {
        right: 10px;
        font-size: 13px;
    }
}
