/**
 * Ficha publica de un comercio (aicatalogvendor)
 */

.aicatalog-store-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    background: #fff;
}

.aicatalog-store-description {
    white-space: pre-line;
}

/* ---------------------------------------------------------------- galeria */

.aicatalog-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .5rem;
}

.aicatalog-gallery-item {
    padding: 0;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: .375rem;
    overflow: hidden;
    background: none;
    cursor: zoom-in;
    aspect-ratio: 4 / 3;
}

.aicatalog-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------------------------------------------------------------- visor */

.aicatalog-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(0, 0, 0, .85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/*
 * El [hidden] del navegador tiene MENOS especificidad que un selector de
 * clase, asi que sin esta linea el visor "cerrado" sigue tapando la pagina
 * entera y se come todos los clics.
 */
.aicatalog-lightbox[hidden] {
    display: none !important;
}

.aicatalog-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.aicatalog-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    line-height: 1;
    color: #fff;
    background: none;
    border: 0;
    cursor: pointer;
}

/* ---------------------------------------------------------------- modal web */

.aicatalog-modal {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(0, 0, 0, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.aicatalog-modal[hidden] {
    display: none !important;
}

.aicatalog-modal-dialog {
    width: 100%;
    max-width: 1100px;
    height: 85vh;
    max-height: 900px;
    display: flex;
}

.aicatalog-modal-content {
    width: 100%;
    background: #fff;
    border-radius: .5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.aicatalog-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.aicatalog-modal-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.aicatalog-modal-close {
    font-size: 1.75rem;
    line-height: 1;
    color: #6c757d;
    background: none;
    border: 0;
    padding: 0 .25rem;
    cursor: pointer;
}

.aicatalog-modal-close:hover {
    color: #000;
}

.aicatalog-modal-body {
    flex: 1;
    width: 100%;
    position: relative;
    background: #fff;
}

.aicatalog-website-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ---------------------------------------------------------------- videos */

.aicatalog-videos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.aicatalog-video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: .375rem;
    overflow: hidden;
    background: #1c1c1c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.aicatalog-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.aicatalog-video-play {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.aicatalog-video-triangle {
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 18px solid #1c1c1c;
}

.aicatalog-video-title {
    color: #fff;
    font-size: .9rem;
    text-align: center;
    margin-top: .75rem;
    padding: 0 .75rem;
}

.aicatalog-video-fallback {
    color: rgba(255, 255, 255, .7);
    font-size: .8rem;
    margin-top: .25rem;
}

.aicatalog-video-fallback:hover {
    color: #fff;
}

/* ---------------------------------------------------------------- mapa */

#aicatalog-store-map {
    height: 260px;
    width: 100%;
}

/* ---------------------------------------------------------------- horario */

.aicatalog-schedule th {
    width: 45%;
}

.aicatalog-exceptions li:last-child {
    margin-bottom: 0 !important;
}
