/* =================================================================
   MJASIRI HOMES - CLEAN MOBILE STYLESHEET
   Simple, working mobile design
   ================================================================= */

/* ========== MOBILE - ALL DEVICES ========== */
@media screen and (max-width: 991px) {

    /* Fixed navbar - sticks to top */
    /* Fixed navbar - Force Stick to Top with High Specificity */
    nav.navbar,
    .navbar.navbar-expand-lg {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 70px !important;
        padding: 0 !important;
        background: #8f1f21 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
        z-index: 99999 !important;
        /* Extra high z-index */
        transform: none !important;
        /* Prevent transform interference */
    }

    .navbar .container-fluid {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 70px !important;
        padding: 0 20px !important;
    }

    /* Hide booking dropdown in navbar */
    .navbar .booking-dropdown-wrapper {
        display: none !important;
    }

    /* Hide square logo */
    .logo-square-box {
        display: none !important;
    }

    /* Show regular logo aligned */
    .logo-wrapper {
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
        margin: 0 !important;
    }

    .logo-wrapper .logo {
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
    }

    .logo-wrapper .logo img {
        height: 50px !important;
        /* Balanced size */
        width: auto !important;
        max-height: 50px !important;
        object-fit: contain !important;
    }

    /* Menu toggle aligned */
    .navbar-toggler {
        padding: 0 !important;
        /* Remove internal padding */
        width: 42px !important;
        height: 40px !important;
        border: 1.5px solid #f7aa20 !important;
        background: rgba(247, 170, 32, 0.1) !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: center !important;
        /* Force vertical center */
        border-radius: 6px !important;
    }

    .navbar-toggler-icon i {
        color: #f7aa20 !important;
        font-size: 20px !important;
    }

    /* Mobile menu */
    .navbar-collapse {
        background: #2a2a2a !important;
        margin-top: 15px !important;
        padding: 20px !important;
        border-radius: 8px !important;
    }

    .navbar-nav .nav-link {
        color: #fff !important;
        padding: 12px 15px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .navbar-nav .nav-link:hover {
        color: #f7aa20 !important;
    }

    /* Header spacing - Applies to both main header and subpage banners */
    .header,
    .banner-header {
        margin-top: 70px !important;
    }

    .header {
        height: calc(100vh - 70px) !important;
    }
}

/* ========== MOBILE PHONES ========== */
@media screen and (max-width: 767px) {

    body {
        font-size: 15px !important;
        overflow-x: hidden !important;
    }

    /* Hero text */
    .header .caption h1 {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }

    .header .caption h4 {
        font-size: 11px !important;
    }

    .header .caption p {
        font-size: 14px !important;
    }

    /* Buttons - STRICT Horizontal Row Layout */
    .hero-buttons-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        width: 100% !important;
        margin-top: 25px !important;
        padding: 0 5px !important;
    }

    /* Target direct children specifically */
    .hero-buttons-wrapper>div,
    .hero-buttons-wrapper .butn-light,
    .hero-buttons-wrapper .butn-dark {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        /* Allow shrinking */
        margin: 0 !important;
        padding: 0 !important;
        max-width: none !important;
        background: transparent !important;
        /* Remove any container backgrounds */
    }

    /* Style the actual links */
    .hero-buttons-wrapper a,
    .hero-buttons-wrapper a:visited {
        background: #f7aa20 !important;
        /* Golden Yellow */
        color: #000000 !important;
        /* Black Text */
        border: none !important;
        font-weight: 700 !important;
        font-size: 11px !important;
        /* Smaller to fit single line */
        padding: 12px 2px !important;
        border-radius: 6px !important;
        text-transform: uppercase !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 10px rgba(247, 170, 32, 0.3) !important;
        height: 44px !important;
        white-space: nowrap !important;
        /* Prevent text wrapping */
        letter-spacing: 0.5px !important;
    }

    .hero-buttons-wrapper a:hover {
        background: #e59910 !important;
        color: #000000 !important;
        transform: translateY(-2px) !important;
    }

    .hero-buttons-wrapper a span {
        padding: 0 !important;
        margin: 0 !important;
    }

    .hero-buttons-wrapper a span {
        padding: 0 !important;
    }

    /* Sections */
    .section-padding {
        padding: 50px 0 !important;
    }

    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Cards */
    .rooms1-single {
        margin-bottom: 25px !important;
    }

    /* Forms */
    .form1 {
        flex-direction: column !important;
        gap: 12px !important;
    }


    .col-booking {
        width: 100% !important;
    }

    /* About Section - Tighter Image Layout */
    .about .row .g-3 {
        gap: 5px !important;
        justify-content: center !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .about .row .g-3>div {
        width: 48% !important;
        max-width: 48% !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: center !important;
    }

    .about .row .g-3 img {
        width: 100% !important;
        height: 120px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        margin: 0 !important;
    }

    .about .text-end,
    .about .text-start {
        text-align: center !important;
    }

    .about .ratting-point {
        margin: 20px 0 !important;
    }

    /* Hide large booking form on mobile */
    section.section-padding.bg-img.bg-fixed {
        display: none !important;
    }

    .booking-inner {
        display: none !important;
    }

    /* Footer - Remove bullets and improve styling */
    .footer ul {
        list-style: none !important;
        padding-left: 0 !important;
    }

    .footer ul li {
        list-style: none !important;
        padding-left: 0 !important;
    }

    .footer ul li::before {
        display: none !important;
    }

    .footer .footer-explore-list li {
        margin-bottom: 8px !important;
    }

    /* Hide decorative elements */
    .luxury-ornament {
        display: none !important;
    }
}

/* Prevent horizontal scroll */
@media screen and (max-width: 767px) {

    html,
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
}

/* ========== DESKTOP - RESTORE DEFAULTS ========== */
/* Ensure desktop styles aren't overridden by mobile-specific rules */
@media screen and (min-width: 992px) {

    /* Navbar - Desktop sticky/fixed (both initial and scrolled state) */
    nav.navbar,
    .navbar.navbar-expand-lg,
    .nav-scroll {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 120px !important;
        background: #8f1f21 !important;
        padding: 0 !important;
        z-index: 9999 !important;
        transform: translateY(0) !important;
    }

    /* Ensure nav-scroll also maintains height */
    .nav-scroll {
        height: 100px !important;
    }

    .navbar .container-fluid {
        height: auto !important;
        padding: 0 15px !important;
    }

    /* Hide square logo box on desktop - use regular logo instead */
    .logo-square-box {
        display: none !important;
    }

    /* Show regular logo wrapper on desktop */
    .navbar .logo-wrapper {
        display: flex !important;
        align-items: center !important;
    }

    /* Logo sizing for desktop */
    .navbar .logo-wrapper .logo img {
        height: 90px !important;
        width: auto !important;
        max-height: 90px !important;
    }

    /* Show booking dropdown on desktop */
    .navbar .booking-dropdown-wrapper {
        display: block !important;
    }

    /* Hero buttons - Desktop default styling */
    .hero-buttons-wrapper {
        display: flex !important;
        flex-direction: row !important;
        gap: 15px !important;
        width: auto !important;
        margin-top: 30px !important;
        padding: 0 !important;
    }

    .hero-buttons-wrapper>div,
    .hero-buttons-wrapper .butn-light,
    .hero-buttons-wrapper .butn-dark {
        flex: 0 0 auto !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    /* Reset hero button links to default theme styles */
    .hero-buttons-wrapper a,
    .hero-buttons-wrapper a:visited {
        background: transparent !important;
        color: #ffffff !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        font-weight: 500 !important;
        font-size: 14px !important;
        padding: 15px 35px !important;
        border-radius: 0 !important;
        text-transform: uppercase !important;
        width: auto !important;
        display: inline-block !important;
        box-shadow: none !important;
        height: auto !important;
        white-space: nowrap !important;
        letter-spacing: 2px !important;
        transition: all 0.3s ease !important;
    }

    .hero-buttons-wrapper a:hover {
        background: #f7aa20 !important;
        border-color: #f7aa20 !important;
        color: #ffffff !important;
        transform: none !important;
    }

    /* Show large booking form on desktop */
    section.section-padding.bg-img.bg-fixed {
        display: block !important;
    }

    .booking-inner {
        display: block !important;
    }

    /* Add margin to accommodate fixed navbar on desktop */
    .header,
    .banner-header {
        margin-top: 120px !important;
    }

    .header {
        height: calc(100vh - 120px) !important;
    }

    /* Show decorative elements on desktop */
    .luxury-ornament {
        display: block !important;
    }
}