@media (min-width: 1200px) and (max-width: 1342px) {}

@media (min-width: 992px) and (max-width: 1199px) {
    .book_room h1 {
        font-size: 28px;
    }
    .carousel-indicators {
        bottom: 17px;
    }
    .about_img {
        margin-right: 0px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .navigation.navbar-dark .navbar-nav .nav-link {
        margin: 0 10px;
    }
    .carousel-item img {
        min-height: 570px;
    }
    .book_room h1 {
        font-size: 19px;
    }
    .carousel-indicators {
        bottom: 27px;
    }
    .about_img {
        margin-right: 0px;
    }
    .book_btn {
        padding: 5px 0;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .header {
        height: 76px;
    }
    .carousel-item img {
        min-height: 570px;
    }
    .carousel-indicators {
        bottom: 27px;
    }
    .about .titlepage {
        max-width: inherit;
    }
    .about_img {
        margin-right: 0px;
        margin-top: 30px;
    }
    .main_form .send_btn {
        margin-bottom: 30px;
    }
    ul.link_menu {
        margin-bottom: 20px;
    }
    .navigation.navbar {
        float: right;
        display: inherit !important;
        padding: 0;
        width: 100%;
        padding-top: 5px !important;
    }
    .navigation .navbar-collapse {
        background: #0f1521;
        padding: 20px;
        margin-top: 56px;
        position: absolute;
        width: 100%;
        margin-right: 20px;
        z-index: 999;
    }
    .navigation.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        color: #fff;
    }
    .navigation.navbar-dark .navbar-toggler {
        border: inherit;
        float: right;
        padding-top: 9px;
    }
    .navigation.navbar-dark .navbar-toggler-icon {
        background: url(../images/menu_icon.png);
        background-repeat: no-repeat;
    }
    .d_none {
        display: none;
    }
}

@media (max-width: 575px) {
    .logo {
        text-align: center !important;
        padding-bottom: 6px;
        float: left;
    }
    .header {
        height: 84px;
    }
    .carousel-item img {
        min-height: 570px;
    }
    .book_room h1 {
        font-size: 20px;
        line-height: 25px;
        padding-bottom: 15px;
    }
    .book_now .online_book {
        margin-bottom: 20px;
    }
    .book_btn {
        padding: 5px 0;
    }
    .about .titlepage {
        max-width: inherit;
    }
    .about_img {
        margin-right: 0px;
        margin-top: 30px;
    }
    .main_form .send_btn {
        margin-bottom: 30px;
    }
    ul.link_menu {
        margin-bottom: 20px;
    }
    .navigation.navbar {
        float: right;
        display: inherit !important;
        padding: 0;
        width: 100%;
    }
    .navigation .navbar-collapse {
        background: #0f1521;
        padding: 20px;
        margin-top: -5px;
        position: absolute;
        width: 100%;
        margin-right: 20px;
        z-index: 999;
    }
    .navigation.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        color: #fff;
    }
    .navigation.navbar-dark .navbar-toggler {
        float: right;
        border: inherit;
        margin-top: -61px;
    }
    .testimonial_box {
        padding: 0px 19px 40px 20px;
    }
    .navigation.navbar-dark .navbar-toggler-icon {
        background: url(../images/menu_icon.png);
        background-repeat: no-repeat;
    }
    .d_none {
        display: none;
    }
}

/* =========================================================
   AURANIK HOMESTAY - MOBILE OVERRIDE & OVERLAP FIX
   ========================================================= */

@media (max-width: 767px) {

    /* Prevent website from overflowing horizontally */
    html, body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    * {
        box-sizing: border-box !important;
    }

    /* Force all overlapping text, titles, badges & buttons to stack naturally */
    .book_room,
    .book_room h1,
    .book_room p,
    .book_room a,
    .about_ta,
    .about_ta h1,
    .about_ta p,
    .about_ta a,
    .titlepage,
    .titlepage h2,
    .titlepage span,
    .banner_main h1,
    .banner_main p {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        display: block !important;
        float: none !important;
        margin-bottom: 12px !important;
        height: auto !important;
        min-height: auto !important;
        transform: none !important;
    }

    /* Fix Explore Rooms button & badges overlap */
    .book_room a, 
    .about_ta a,
    a.read_more,
    .explore_btn {
        display: inline-block !important;
        margin-top: 10px !important;
        margin-bottom: 20px !important;
        position: relative !important;
        z-index: 10 !important;
    }

    /* ================= HEADER ================= */

    .header {
        height: 85px !important;
        padding: 5px 0 !important;
    }

    .header .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .logo {
        padding: 0 !important;
        margin: 0 !important;
        float: left !important;
        text-align: left !important;
    }

    .logo img {
        width: 150px !important;
        max-width: 150px !important;
        height: auto !important;
    }

    /* ================= NAVBAR ================= */

    .navigation.navbar {
        padding: 0 !important;
        width: 100% !important;
    }

    .navigation.navbar-dark .navbar-toggler {
        position: absolute !important;
        right: 0 !important;
        top: -55px !important;
        margin: 0 !important;
        padding: 5px !important;
        border: none !important;
        z-index: 9999 !important;
    }

    .navigation .navbar-collapse {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        margin-top: 5px !important;
        padding: 20px !important;
        background: #0f1521 !important;
        z-index: 9998 !important;
    }

    .navigation.navbar-dark .navbar-nav .nav-link {
        color: white !important;
        padding: 10px 0 !important;
    }

    /* ================= HERO & BOOKING CARD ================= */

    .banner_main {
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background-size: cover !important;
        background-position: center !important;
    }

    .booking_ocline {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 30px 0 40px !important;
        transform: none !important;
        overflow: visible !important;
    }

    .booking_ocline .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Force hero columns to stack vertically */
    .booking_ocline .row {
        display: flex !important;
        flex-direction: column !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .booking_ocline .col-md-7,
    .booking_ocline .col-md-5 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        position: relative !important;
        clear: both !important;
    }

    .booking_ocline h1 {
        width: 100% !important;
        font-size: 32px !important;
        line-height: 1.2 !important;
        margin: 0 0 15px 0 !important;
        padding: 0 !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    .booking_ocline p {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 15px !important;
        line-height: 24px !important;
        margin-bottom: 20px !important;
    }

    .booking_ocline .col-md-5 {
        margin-top: 25px !important;
    }

    .booking_ocline .col-md-5 > div {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        margin: 0 !important;
        transform: none !important;
    }

    .booking_ocline input,
    .booking_ocline select {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* ================= IMAGES & SECTIONS ================= */

    img {
        max-width: 100% !important;
        height: auto !important;
    }

    .about,
    .our_room,
    .gallery,
    .contact {
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        margin-top: 0 !important;
        overflow: hidden !important;
    }

    .about {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .titlepage h2 {
        font-size: 28px !important;
        line-height: 1.25 !important;
    }

    .map-responsive iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: 300px !important;
    }
}

/* SMALL PHONES (< 480px) */
@media (max-width: 480px) {
    .booking_ocline h1 {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }

    .booking_ocline {
        padding-top: 25px !important;
        padding-bottom: 35px !important;
    }
}
/* HERO SECTION CUSTOM STYLING & RESPONSIVENESS */
.hero-content-wrapper {
    max-width: 620px;
    color: #ffffff;
    text-align: left;
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 30px;
    padding: 8px 16px;
    margin-bottom: 18px;
    backdrop-filter: blur(5px);
}

.hero-badge span {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
}

.hero-title {
    color: #ffffff;
    font-size: 52px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 18px;
    text-shadow: 0 3px 12px rgba(0,0,0,0.25);
}

.hero-highlight {
    color: #d9c2ff;
}

.hero-subtitle {
    color: #ffffff;
    font-size: 17px;
    line-height: 29px;
    max-width: 570px;
    margin-bottom: 26px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.hero-buttons {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #8254d6;
    color: #ffffff !important;
    padding: 13px 27px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid #ffffff;
    color: #ffffff !important;
    padding: 13px 27px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}

/* MOBILE RESPONSIVE OVERRIDES */
@media (max-width: 767px) {
    .hero-title {
        font-size: 28px !important;
        line-height: 1.2 !important;
        margin-top: 15px !important;
    }

    .hero-subtitle {
        font-size: 14px !important;
        line-height: 22px !important;
        margin-bottom: 18px !important;
    }

    .hero-badge {
        padding: 5px 12px !important;
        margin-bottom: 10px !important;
    }

    .hero-badge span {
        font-size: 11px !important;
    }

    .btn-explore, .btn-contact {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
}
/* FORCE ABOUT SECTION & BOOKING CARD TO STACK VERTICALLY ON MOBILE */
@media (max-width: 767px) {

    /* Reset booking overlay wrapper */
    .booking_ocline {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        margin: 0 !important;
        padding: 30px 15px !important;
        height: auto !important;
        min-height: auto !important;
    }

    /* Force row layout to stack */
    .booking_ocline .row {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Force columns to 100% width without absolute positioning */
    .booking_ocline .col-md-7,
    .booking_ocline .col-md-5,
    .booking_ocline .col-lg-7,
    .booking_ocline .col-lg-5,
    .booking_ocline [class*="col-"] {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        float: none !important;
        clear: both !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Fix white booking card container */
    .booking_ocline .col-md-5 > div,
    .booking_ocline .card,
    .booking_ocline .book_now {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 10px !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    }
}
/* FORCE ABOUT SECTION & BOOKING CARD TO STACK VERTICALLY ON MOBILE */
@media (max-width: 767px) {

    /* Reset booking overlay wrapper */
    .booking_ocline {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        margin: 0 !important;
        padding: 30px 15px !important;
        height: auto !important;
        min-height: auto !important;
    }

    /* Force row layout to stack */
    .booking_ocline .row {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Force columns to 100% width without absolute positioning */
    .booking_ocline .col-md-7,
    .booking_ocline .col-md-5,
    .booking_ocline .col-lg-7,
    .booking_ocline .col-lg-5,
    .booking_ocline [class*="col-"] {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        float: none !important;
        clear: both !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Fix white booking card container */
    .booking_ocline .col-md-5 > div,
    .booking_ocline .card,
    .booking_ocline .book_now {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 10px !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    }
}
/* MOBILE FIX FOR OVERLAPPING BOOKING CARD */
@media (max-width: 767px) {
    /* Prevent hero banner container from cutting off stacked elements */
    .banner_main {
        height: auto !important;
        min-height: 100vh !important;
        padding-bottom: 40px !important;
    }

    .booking_ocline {
        position: relative !important;
        top: 0 !important;
        transform: none !important;
        padding-top: 20px !important;
    }

    /* Force columns to stack cleanly */
    .booking_ocline .row {
        display: flex !important;
        flex-direction: column !important;
    }

    .booking_ocline .col-md-7,
    .booking_ocline .col-md-5 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* Clear inline positioning/margins on the white booking card */
    .booking_ocline .col-md-5 > div,
    .booking-card-wrapper {
        margin-top: 30px !important;
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
    }
}
/* KEEP BOOKING CARD OVERLAID ON BANNER IMAGE FOR MOBILE */
@media (max-width: 767px) {

    /* Keep the overlay positioned over the slider background */
    .booking_ocline {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 100% !important;
        padding: 10px 15px !important;
        z-index: 10 !important;
    }

    /* Stack left text and card inside the banner overlay */
    .booking_ocline .row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }

    /* Make text slightly smaller so everything fits over the image */
    .booking_ocline .hero-title {
        font-size: 26px !important;
        line-height: 1.2 !important;
        margin-bottom: 8px !important;
        text-align: center !important;
    }

    .booking_ocline .hero-subtitle {
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin-bottom: 12px !important;
        text-align: center !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .booking_ocline .hero-badge {
        font-size: 10px !important;
        padding: 4px 10px !important;
        margin-bottom: 8px !important;
    }

    .booking_ocline .hero-buttons {
        justify-content: center !important;
        margin-bottom: 10px !important;
    }

    .booking_ocline .btn-explore,
    .booking_ocline .btn-contact {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }

    /* Compact booking card so it fits neatly on top of the picture */
    .booking_ocline .col-md-5 > div {
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 16px 18px !important;
        border-radius: 18px !important;
        background: rgba(255, 255, 255, 0.95) !important;
    }

    .booking_ocline .col-md-5 h2 {
        font-size: 20px !important;
        margin-bottom: 4px !important;
    }

    .booking_ocline .col-md-5 p {
        font-size: 11px !important;
        margin-bottom: 12px !important;
    }

    .booking_ocline .col-md-5 input {
        height: 38px !important;
        margin-bottom: 10px !important;
        font-size: 12px !important;
    }

    .booking_ocline .col-md-5 a#homeBookBtn {
        padding: 10px 15px !important;
        font-size: 13px !important;
    }
}
@media (max-width: 767px) {
    /* Give the hero image section enough height to fit text + card */
    .banner_main, 
    .carousel, 
    .carousel-inner, 
    .carousel-item {
        min-height: 820px !important;
        height: 820px !important;
    }

    .carousel-item img {
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Position the overlay block over the hero image */
    .booking_ocline {
        position: absolute !important;
        top: 20px !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 100% !important;
        padding: 10px 15px !important;
        z-index: 10 !important;
    }

    /* Reduce spacing so text + card stack neatly over the image */
    .booking_ocline .hero-title {
        font-size: 24px !important;
        margin-bottom: 6px !important;
        text-align: center !important;
    }

    .booking_ocline .hero-subtitle {
        font-size: 12px !important;
        margin-bottom: 10px !important;
        text-align: center !important;
    }

    .booking_ocline .hero-badge {
        font-size: 10px !important;
        margin-bottom: 6px !important;
    }

    .booking_ocline .hero-buttons {
        justify-content: center !important;
        margin-bottom: 12px !important;
    }

    .booking_ocline .btn-explore,
    .booking_ocline .btn-contact {
        padding: 6px 14px !important;
        font-size: 11px !important;
    }

    /* Style card for compact mobile view */
    .booking_ocline .col-md-5 > div,
    .booking_ocline .col-12 > div {
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 16px 18px !important;
        border-radius: 18px !important;
        background: rgba(255, 255, 255, 0.96) !important;
    }

    .booking_ocline input {
        height: 40px !important;
        margin-bottom: 10px !important;
    }
}
/* ELEGANT DEEP NAVY CONTAINER FOR HERO CONTENT ON MOBILE */
@media (max-width: 767px) {
    .booking_ocline .hero-content-wrapper {
        background: linear-gradient(135deg, #1b2838 0%, #2a3d54 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 20px !important;
        padding: 22px 18px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
        margin-bottom: 12px !important;
    }

    /* Badge contrast tweak */
    .booking_ocline .hero-badge {
        background: rgba(139, 92, 246, 0.25) !important;
        border: 1px solid rgba(167, 139, 250, 0.4) !important;
        color: #e9d5ff !important;
    }

    /* Ensure title text is bright white */
    .booking_ocline .hero-title,
    .booking_ocline .hero-title span {
        color: #ffffff !important;
        text-shadow: none !important;
    }

    /* Crisp subtitle text */
    .booking_ocline .hero-subtitle {
        color: #cbd5e1 !important;
        text-shadow: none !important;
    }

    /* Secondary Contact Us button contrast fix */
    .booking_ocline .btn-contact {
        background: rgba(255, 255, 255, 0.12) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        color: #ffffff !important;
    }
}
/* MOBILE LOGIN PAGE FIXES */
@media (max-width: 767px) {

    /* Reduce vertical padding on login section */
    .login-section,
    .login-page,
    section.login {
        padding: 20px 15px !important;
    }

    /* Shrink the huge headline text */
    .login-section h1,
    .login-section .main-title,
    .login-section h2 {
        font-size: 26px !important;
        line-height: 1.25 !important;
        margin-bottom: 10px !important;
    }

    /* Subtitle text spacing */
    .login-section p,
    .login-section .sub-text {
        font-size: 13px !important;
        line-height: 1.4 !important;
        margin-bottom: 15px !important;
    }

    /* Stack or scale the 3 feature icons horizontally without overflow */
    .login-section .row.features,
    .login-section .features-wrapper {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 8px !important;
        margin-bottom: 20px !important;
    }

    .login-section .feature-item,
    .login-section .col-4 {
        padding: 0 4px !important;
        text-align: center !important;
    }

    .login-section .feature-item .icon-box,
    .login-section .feature-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
        margin: 0 auto 6px auto !important;
    }

    .login-section .feature-item h5,
    .login-section .feature-item strong {
        font-size: 11px !important;
        line-height: 1.2 !important;
        margin-bottom: 2px !important;
        display: block !important;
    }

    .login-section .feature-item p {
        font-size: 10px !important;
        line-height: 1.2 !important;
        margin-bottom: 0 !important;
    }

    /* Compact white login card */
    .login-card,
    .login-box {
        padding: 20px 18px !important;
        border-radius: 20px !important;
        margin-top: 10px !important;
    }

    .login-card h2,
    .login-card h3 {
        font-size: 22px !important;
        margin-bottom: 12px !important;
    }
}