/*========Google Fonts=======*/
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Quattrocento:wght@400;700&display=swap');

body {
    background-image: url(/FantaTour/assets/img/bg.png);
    background-position: right;
    background-size: cover; /* Ảnh sẽ được mở rộng để bao phủ toàn bộ không gian */
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: "Lato", sans-serif;
    overflow: hidden;
}

html, body {
    overflow: auto; /* Cho phép cuộn */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Giữ nội dung luôn có đủ chiều cao */
}


/* Color Variables */
:root{
  --black-color: #000000;
  --white-color: #ffffff;
  --main-color: #1ca1a8;
  --dark-color: #148b94;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --h1-font: "Quattrocento", serif;;
}


/* Menu Icon Styles */
.menu-icon{
    font-size: 24px;
    cursor: pointer;
    display: none;
}

/* Main Styles */

.main-container{
    display: flex;
    margin-top: 150px;
    flex: 1; /* Đẩy footer xuống */
    margin-top: 115px;
}

/* Left Section Styles */

.left-section{
    width: 50%;
    padding: 50px 100px;
}

/* Content Section Styles */

.content h1{
    font-size: 35px;
    margin-bottom: 20px;
    color: var(--main-color);
    line-height: 1.5;
}

#bookingForm{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trip-type{
    display: flex;
    gap: 20px;
    font-size: 18px;
}

.input-group{
    display: flex;
    align-items: center;
    gap: 20px;
}

.input-wrapper{
    flex: 1;
}

#takeOff, #arrival, #departureDate, #returnDate{
    width: 100%;
    padding: 10px;
    border: 1px solid var(--black-color);
    border-radius: 5px;
    font-size: 16px;
    outline: none;
}

.icon{
    font-size: 24px;
    color: var(--main-color);
}

button[type="submit"]{
    padding: 12px 20px;
    font-size: 18px;
    color: var(--white-color);
    background-color: var(--main-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button[type="submit"]:hover{
    background-color: var(--dark-color);
}
/* Slider Styles */

.slider{
    margin-top: 40px;
}

.slider-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 30px;
}

.slider-buttons{
    display: flex;
    gap: 5px;
}

.slider-header h2{
    font-size: 2rem;
    font-weight: bold;
}

.slider-btn{
    color: var(--main-color);
    border: none;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.4s ease;
}

.slider-btn:hover{
    color: var(--dark-color);
}

.slider-container{
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
}

.slider-images{
    display: flex;
    transition: transform 0.3s ease;
    gap: 15px;
}

.slide{
    position: relative;
    width: 150px;
    height: 130px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.slide img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.info{
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-weight: bold; /* Làm chữ đậm hơn */
    color: var(--white-color);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9); /* Tạo bóng giúp chữ dễ đọc */
    font-size: 16px;
}

.location{
    font-weight: bold;
}

.sub-location{
    font-size: 14px;
    opacity: 0.9;
}

.price{
    font-size: 14px;
}

.slide-icon{
    margin-right: 4px;
}

#prev{
    left: 0;
}

#next{
    right: 0;
}
/* Right Section Styles */

.right-section{
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-section img{
    transform: rotate(20deg);
    width: 120%;
    border-radius: 10px;
    
}

/* Responsive Styles */

@media (max-width: 768px) {
    body {
        background: url(Assets/bg1.png) center center / cover no-repeat;
        overflow-x: hidden;
    }

    header {
        padding: 25px 5%;
        background-color: var(--white-color);
    }

    .menu-icon {
        display: block;
        font-size: 35px;
        cursor: pointer;
        position: absolute;
        right: 40px;
        top: 30px;
        color: var(--main-color);
        z-index: 10001; /* Ensures it’s on top of the navbar */
    }

    /* Main container adjustments */
    .main-container {
        flex-direction: column;
        position: relative;
        z-index: 1; /* Lower than navbar */
        overflow: hidden; /* Prevents overflow issues */
    }

    .right-section, .left-section {
        width: 100%;
        padding: 20px;
    }

    .right-section {
        order: -1;
        justify-content: center;
    }

    .right-section img {
        content: url(Assets/plane1.png);
        width: 100%;
        transform: none;
    }

    /* Prevents form and slider from overflowing */
    form, .slider {
        position: relative;
        z-index: 1;
        overflow: hidden;
    }
}
