body{

}

/*----------Header----------*/
#main-header{
    background-color: #f4f4f4;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.space{
    width: 100%;
    height: 50px;
}

/*----------Nav Bar----------*/
.nav-bar .logo img{
    width: 300px;
    display: flex;
    position: relative;
    
}

.nav-bar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    
}

.menu{
    display: flex;
    gap: 35px;
}

.menu a{
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-size: 20px;
    margin: 15px;
    padding: 8px 15px;
    font-weight: bold;
    background: #a2a1a1;
    border-radius: 4px;
}

.menu a:hover{
    color: blue;
}

.menu a.active{
    color: red;
}


/*----------Box_location----------*/
.title h2{
    font-size: 30px;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.box-search{
    align-items: center;
    justify-content: center;
    justify-items: center;
    display: flex;
}

.box-duong-di{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-end;
}
    .box-duong-di .icon{
        font-size: 30px;
        color: #0f1d0f;
        margin: 15px 15px 10px 15px;
    }

.dropdown{
    min-width: 10em;
    position: relative;
    margin: 2em;
}

    .dropdown *{
        box-sizing: border-box;
    }

#diemHienTaiDropdown, #diemDenDropdown{
    width: 100%;
    background: #0f1d0f;
    display: flex;
    color: white;
    justify-content: center;
    align-items: center;
    border: 2px solid rgb(255, 255, 255);
    border-radius: 15px;
    padding: 0.8em;
    cursor: pointer;
    font-size: 17px;
    height: 50px;
}

.diemHienTai, .diemDen{
    flex: 1;
}

.diemHienTai p, .diemDen p{
    font-size: 19px;
}

.diemHienTai i, .diemDen i{
    margin: 15px;
    font-size: 25px;
}

/*Btn*/

.box-btn{
    text-align: center;
    margin-left: 25px;
    display: flex;
    height: 50px;
}

    .box-btn button{
        background: #0f1d0f;
        color: white;
        border: none;
        padding: 10px 20px;
        font-size: 17px;
        border-radius: 10px;
        cursor: pointer;
    }

    .box-btn button:hover{
        background: #3e4b3e;
    }

/*----------Route Container----------*/
.route-container{
    display: flex;
    flex-direction: column;
    align-items: center;
}
    .route-container img{
        width: 50%;
    }

.image-display{
    text-align: center;
    margin: 10px 0 20px 0;
}

    .image-display img{
        max-width: 100%;
        height: auto;
        border: 2px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

        .image-display img:hover{
            cursor: grabbing;
        }

/*----------Hospital location----------*/
.map-frame iframe{
    width: 100%;
    display: block;
    height: 400px;
}

/* Responsive trên mobile */
@media (max-width: 768px) {
    .map-frame iframe {
        height: 300px; 
    }
}

/*----------Footer----------*/
#main-footer{
    background-color: #f4f4f4;
    padding: 20px;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

    #main-footer .address-contact{
        font-size: 16px;
    }

/*Responsive cho điện thoại*/
img, frame{
    max-width: 100%;
    height: auto;
}

@media screen and (max-width: 768px){
    .box-location, .hospital-location{
        width: 100%;
        padding: 0 15px;
    } 

    .box-duong-di{
        display: flex;
        flex-direction: wrap;
        gap: 15px;
    }

    .diemHienTai, .diemDen, .box-btn, .box-btn button{
        width: 100% !important;
    }

    .icon{
        text-align: center;
        margin: 10px 0;
    }

    .icon i{
        transform: rotate(90deg);
    }

    .box-btn button{
        height: 45px;
        font-size: 18px;
    }

    .image-display{
        width: 100%;
        overflow-x: hidden;
    }

    .nav-bar{
        flex-direction: column;
        text-align: center;
    }

    .menu{
        margin-top: 10px;
        display: flex;
        flex-direction: column; 
        gap: 10px;
    }
}