﻿
/* ==========================================
   CONTENEDOR DE SITIOS
   Etiqueta: <div id="tab1" class="tab-content">
   ========================================== */

#tab1[name="view-sitio"] {
    width: 100%;
    padding: 0 10px 20px;
    box-sizing: border-box;
}


/* ==========================================
   TARJETA DE SITIO
   Etiqueta: <article class="sitio-card">
   ========================================== */

.sitio-card {
    width: 100%;
    margin-top: 10px;
    background: #ffffff;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
}


/* ==========================================
   IMAGEN DEL NEGOCIO
   ========================================== */

.sitio-card__image-container {
    position: relative;
    width: 100%;
    height: 185px;
    overflow: hidden;
    background: #eeeeee;
}

.sitio-card__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}


/* ==========================================
   CATEGORÍA SOBRE LA IMAGEN
   ========================================== */

.sitio-card__category {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 11px;
    border-radius: 20px;
    background: rgba(20, 20, 20, 0.78);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


/* ==========================================
   CUERPO DE LA TARJETA
   ========================================== */

.sitio-card__body {
    padding: 14px;
    box-sizing: border-box;
}


/* ==========================================
   CABECERA DEL NEGOCIO
   ========================================== */

.sitio-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.sitio-card__title {
    margin: 0;
    color: #202124;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.sitio-card__location {
    margin: 4px 0 0;
    color: #85898f;
    font-size: 12px;
    line-height: 1.3;
}


/* ==========================================
   GRUPO META (ESTADO + UBICACIÓN / HORARIOS)
   ========================================== */

.sitio-card__meta-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px; 

}

.sitio-card__info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    min-width:40px;
    background: #f5f6f8;
    color: #444;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: .18s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
    cursor: pointer;
    user-select:none;
}

    .sitio-card__info-item i {
        font-size: 15px;
        color: #ff5a1f;
    }

    .sitio-card__info-item:hover {
        background: #fff3ed;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,.12);
    }

  
/* ==========================================
   ESTADO ABIERTO / CERRADO
   ========================================== */

.sitio-card__status {
    flex-shrink: 0;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.sitio-card__status--open {
    background: #e6f7ed;
    color: #18864b;
}

.sitio-card__status--closed {
    background: #fbe9e9;
    color: #c13f3f;
}


/* ==========================================
   DESCRIPCIÓN
   ========================================== */

.sitio-card__description {
    margin: 12px 0 14px;
    color: #62666c;
    font-size: 13px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}


/* ==========================================
   BOTONES DE CONTACTO
   ========================================== */

.sitio-card__actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.sitio-action {
    min-width: 0;
    min-height: 58px;
    margin-top: 12px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    transition: transform 0.16s ease, opacity 0.16s ease, background-color 0.16s ease;
}

    .sitio-action i {
        font-size: 19px;
    }

    .sitio-action:active {
        transform: scale(0.94);
        opacity: 0.85;
    }


/* ==========================================
   COLORES DE BOTONES
   ========================================== */

.sitio-action--whatsapp {
    background: #e8f8ee;
    color: #168b4c;
}

.sitio-action--facebook {
    background: #eaf1fd;
    color: #2563b8;
}

.sitio-action--phone {
    background: #fff3e3;
    color: #cf6b00;
}

.sitio-action--website {
    background: #f0ecfa;
    color: #6947a8;
}


/* ==========================================
   CELULARES MUY PEQUEÑOS
   ========================================== */

@media (max-width: 360px) {

    #tab1[name="view-sitio"] {
        padding-left: 7px;
        padding-right: 7px;
    }

    .sitio-card__image-container {
        height: 165px;
    }

    .sitio-card__body {
        padding: 12px;
    }

    .sitio-card__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sitio-action {
        min-height: 52px;
        flex-direction: row;
        gap: 7px;
        font-size: 11px;
    }

        .sitio-action i {
            font-size: 17px;
        }
}


/* ==========================================
   TABLET O PANTALLAS MÁS GRANDES
   ========================================== */

@media (min-width: 600px) {

    #tab1[name="view-sitio"] {
        max-width: 650px;
        margin: 0 auto;
    }

    .sitio-card__image-container {
        height: 240px;
    }
}