/* iPad Responsive Adjustments */

/* Header Adjustments */
@media screen and (max-width: 1200px) {
    .navigation__menu--item {
        margin: 0 8px !important;
    }

    .navigation__menu--item__link {
        font-size: 16px !important;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    .main__header .main__header__wrapper .main__logo img {
        max-width: 140px !important;
    }

    .main__right .theme-btn.sm-btn {
        padding: 10px 15px !important;
        font-size: 14px !important;
    }
}

@media screen and (max-width: 1024px) {
    .navigation {
        display: none !important;
        /* Force mobile menu below 1024px for iPad comfortably */
    }

    .main__right .menu__btn {
        display: flex !important;
    }

    .main__header .main__header__wrapper .main__logo img {
        max-width: 120px !important;
    }
}

/* Banner / Hero Section */
@media screen and (max-width: 1200px) {
    .banner__slide__content h1 {
        font-size: 55px !important;
        line-height: 1.2 !important;
    }

    .banner__area.banner__height,
    .banner__slider__image,
    .banner__slider__image img {
        height: 70vh !important;
        min-height: 500px !important;
    }

    .page__hero__content h1 {
        font-size: 40px !important;
    }
}

@media screen and (max-width: 992px) {
    .banner__slide__content h1 {
        font-size: 45px !important;
    }
}

/* Advance Search Adjustments for Tablet */
@media screen and (max-width: 1399px) {
    .advance__search__wrapper {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    .advance__search .query__input {
        flex: 0 0 calc(33.33% - 14px) !important;
        border-right: none !important;
        padding-right: 0 !important;
        margin-bottom: 10px;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }

    .advance__search .query__input:last-child {
        flex: 0 0 100% !important;
        border-bottom: none;
    }
}

@media screen and (max-width: 991px) {
    .advance__search__wrapper {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .advance__search .query__input {
        flex: none !important;
        width: 100% !important;
        margin-bottom: 0 !important;
        border-bottom: none !important;
        padding-bottom: 0 !important;
        border-right: 1px solid #eee !important;
        padding-right: 10px !important;
    }

    /* Special fix for room page booking form to not use grid when it's in a sidebar */
    .rts__booking__form .advance__search__wrapper {
        display: block !important;
    }

    .rts__booking__form .advance__search .query__input {
        border-right: none !important;
        padding-right: 0 !important;
        margin-bottom: 15px !important;
    }

    .advance__search .query__input:nth-child(2n) {
        border-right: none !important;
    }

    .advance__search .query__input:last-child {
        grid-column: span 2;
        border-right: none !important;
    }
}

/* Section Spacing for Tablet */
@media screen and (max-width: 1024px) {
    .section__padding {
        padding: 60px 0 !important;
    }

    .about.is__home__six .about__content {
        flex-direction: column-reverse;
    }

    .about.is__home__six .about__content .col-lg-5,
    .about.is__home__six .about__content .col-lg-7 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .about__image img {
        margin-top: 30px;
        width: 100% !important;
        height: auto !important;
    }

    .about__content__full {
        padding-left: 0 !important;
        text-align: center;
    }

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

    .section__content__right {
        max-width: 100% !important;
    }
}

/* Slider and Room Adjustments */
@media screen and (max-width: 1024px) {
    .room__slide__box .room__thumbnail img {
        height: 350px !important;
    }

    .room__details .room__title {
        font-size: 32px !important;
    }
}

/* Similar Rooms Grid */
@media screen and (max-width: 992px) {
    .pb-120 .row.g-30 .col-lg-6 {
        width: 50% !important;
    }
}

@media screen and (max-width: 768px) {
    .pb-120 .row.g-30 .col-lg-6 {
        width: 100% !important;
    }
}

/* Service / Event Section Adjustments */
@media screen and (max-width: 1024px) {
    .service.is__home__six .section__wrapper {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
    }

    .service.is__home__six .section__content__right {
        max-width: 100% !important;
    }

    .service.is__home__six .subtitle__icon__five {
        left: 0 !important;
        margin-bottom: 10px !important;
    }

    .service.is__home__six .subtitle__icon__five::before {
        display: none !important;
        /* Remove the side line if it pushes text */
    }

    .service.is__home__six .content__title {
        font-size: 36px !important;
        line-height: 1.2 !important;
    }

    .service__item__slide.if__is__home__six {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
    }

    .service__item__slide.if__is__home__six .service__thumb,
    .service__item__slide.if__is__home__six .service__thumb a,
    .service__item__slide.if__is__home__six .service__thumb img {
        width: 100% !important;
        border-radius: 10px 10px 0 0 !important;
    }

    .service__item__slide.if__is__home__six .service__thumb img {
        height: 250px !important;
    }

    .service__item__slide.if__is__home__six .service__meta {
        padding: 20px !important;
        text-align: left !important;
    }

    .service__item__slide.if__is__home__six .service__meta h5 {
        font-size: 22px !important;
        margin-bottom: 10px !important;
    }

    .service__item__slide.if__is__home__six .service__meta p {
        font-size: 15px !important;
        max-width: 100% !important;
        line-height: 1.5 !important;
    }

    .service__item__slide.if__is__home__six .theme-btn.sm-btn {
        margin-top: 10px !important;
    }
}

/* General Layout Fixes */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 95% !important;
    }
}

/* Footer Adjustments */
@media screen and (max-width: 1024px) {
    .footer__newsletter {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer__newsletter form {
        min-width: 100% !important;
    }

    .footer__widget__wrapper {
        flex-wrap: wrap !important;
        gap: 30px !important;
    }

    .rts__widget {
        flex: 0 0 calc(50% - 15px) !important;
    }
}

@media screen and (max-width: 576px) {
    .rts__widget {
        flex: 0 0 100% !important;
    }
}