﻿.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
}

.modal-content {
    background: #fff;
    padding: 5px 5px 25px 25px;
    border-radius: 8px;
    width: 80%;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
    height: calc(100vh - 40px);
}

.modal-body {
    height: calc(100% - 100px);
    overflow-y: auto;
    padding-right:15px;
}

.close {
    position: absolute;
    top: 0px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .close { 
        top: -5px !important;  
    }
    .modal-title{padding-top:10px}
    .modal-content{
        width:90% !important;
    }
    #side-trip .col-3 {
        max-width: 100% !important;
        flex:none;
    }
}

    .close:hover {
        color: red;
    }

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
