/* ==========================================================================
   MEDIA CARDS (Video 1, Video 2, Mapa)
   ========================================================================== */

.vxm-media-cards {
    padding: var(--vxm-space-md) 0;
}

.vxm-media-cards__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--vxm-space-lg);
}

@media (max-width: 768px) {
    .vxm-media-cards__grid {
        grid-template-columns: 1fr;
    }
}

.vxm-media-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    height: 300px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.vxm-media-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    filter: saturate(1.1) contrast(1.05) brightness(0.95);
}

.vxm-media-card:hover .vxm-media-card__img {
    transform: scale(1.08);
    filter: saturate(1.2) contrast(1.1) brightness(0.9);
}

.vxm-media-card__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        to top,
        rgba(27, 61, 90, 0.75) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(27, 61, 90, 0.1) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: background 0.4s ease;
}

.vxm-media-card:hover .vxm-media-card__overlay {
    background: linear-gradient(
        to top,
        rgba(27, 61, 90, 0.85) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        rgba(27, 61, 90, 0.15) 100%
    );
}

.vxm-media-card__play {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.vxm-media-card:hover .vxm-media-card__play {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--vxm-white);
    transform: scale(1.1);
}

.vxm-media-card__play svg {
    margin-left: 3px;
}

.vxm-media-card__label {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--vxm-white);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    white-space: nowrap;
}
/* ==========================================================================
   GALERÍA DE FOTOS (miniaturas + lightbox)
   ========================================================================== */

.vxm-tour-gallery {
    width: 100%;
    margin-top: 0;
    padding: 0 var(--vxm-space-md) var(--vxm-space-md);
}

.vxm-tour-gallery .vxm-container {
    max-width: 100%;
}

.vxm-tour-gallery__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--vxm-space-sm);
}

.vxm-tour-gallery__item {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 160px;
    height: 160px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--vxm-gray-200, #e5e5e5);
    box-shadow: var(--vxm-shadow-md);
}

.vxm-tour-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
    filter: saturate(1.1) contrast(1.05) brightness(0.95);
}

.vxm-tour-gallery__item:hover img {
    transform: scale(1.1);
    filter: saturate(1.2) contrast(1.1) brightness(0.9);
}

.vxm-tour-gallery__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        to top,
        rgba(27, 61, 90, 0.75) 0%,
        rgba(0, 0, 0, 0.1) 45%,
        rgba(27, 61, 90, 0.05) 100%
    );
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.35s ease;
}

.vxm-tour-gallery__item:hover .vxm-tour-gallery__overlay {
    opacity: 1;
}

.vxm-tour-gallery__zoom {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vxm-white);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    transform: scale(0.8);
    transition: transform 0.35s ease, border-color 0.3s, background 0.3s;
}

.vxm-tour-gallery__item:hover .vxm-tour-gallery__zoom {
    transform: scale(1);
    border-color: var(--vxm-white);
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
    .vxm-tour-gallery__grid {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: var(--vxm-space-sm);
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .vxm-tour-gallery__grid::-webkit-scrollbar {
        display: none;
    }

    .vxm-tour-gallery__item {
        width: 130px;
        height: 130px;
        scroll-snap-align: start;
    }
}

@media (max-width: 480px) {
    .vxm-tour-gallery__item {
        width: 110px;
        height: 110px;
    }
}

.vxm-video-modal__content--gallery {
    max-width: 1000px;
    text-align: center;
}

.vxm-video-modal__content--gallery img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    border-radius: 4px;
}

.vxm-gallery-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: var(--vxm-white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.vxm-gallery-modal__nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.vxm-gallery-modal__nav--prev {
    left: -10px;
}

.vxm-gallery-modal__nav--next {
    right: -10px;
}

@media (max-width: 640px) {
    .vxm-tour-gallery__grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .vxm-gallery-modal__nav {
        width: 36px;
        height: 36px;
    }
}

/* ==========================================================================
   DETALLES DEL TOUR (título + tabs)
   ========================================================================== */

.vxm-tour-details {
    padding: var(--vxm-space-md) 0 var(--vxm-space-lg);
}

.vxm-tour-details__title {
    text-align: center;
    font-family: var(--vxm-font-heading);
    font-size: 1.8rem;
    color: var(--vxm-primary);
    margin-bottom: var(--vxm-space-sm);
    position: relative;
    padding-bottom: var(--vxm-space-md);
}

.vxm-tour-details__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--vxm-secondary);
}

/* ==========================================================================
   VIDEO / MAPA MODAL (Popup)
   ========================================================================== */

.vxm-video-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vxm-video-modal.is-open {
    display: flex;
}

.vxm-video-modal__backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.vxm-video-modal__content {
    position: relative;
    width: 100%;
    max-width: 900px;
    z-index: 1;
}

.vxm-video-modal__content--map {
    max-width: 800px;
    text-align: center;
}

.vxm-video-modal__content--map img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

.vxm-video-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--vxm-white);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.3s;
}

.vxm-video-modal__close:hover {
    opacity: 0.7;
}

.vxm-video-modal__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.vxm-video-modal__wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}