/* ===== CARD ===== */

.route-card__media {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.route-card__image {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== TITLE ===== */

.route-card__title {
    position: absolute;
    bottom: 12px;
    left: 12px;

    color: #fff;
    font-size: 16px;
    font-weight: 600;

    padding: 6px 12px;
    border-radius: 6px;

    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);

    z-index: 2;
}

/* ===== PLAY ===== */

.route-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 70px;
    height: 70px;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.7);
    border: none;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    z-index: 3;

    transition: 0.3s;
}

.route-card__play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0, 0, 0, 0.9);
}

.route-card__play-icon {
    width: 0;
    height: 0;
    border-left: 18px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

/* ===== MODAL ===== */

.video-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.video-modal--active {
    display: block;
}

.video-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
}

.video-modal__content {
    position: relative;
    z-index: 2;

    max-width: 420px;
    margin: 60px auto;
}

.video-modal__frame {
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-modal__frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal__close {
    position: absolute;
    top: -40px;
    right: 0;

    font-size: 32px;
    color: #fff;

    background: none;
    border: none;
    cursor: pointer;
}

/* ===== MOBILE ===== */

@media (max-width: 576px) {
    .route-card__play {
        width: 55px;
        height: 55px;
    }

    .route-card__play-icon {
        border-left: 14px solid #fff;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
    }

    .video-modal__content {
        max-width: 90%;
        margin: 40px auto;
    }
}