/* ========================================
   MOBILE FIXES AND OPTIMIZATIONS
   Fixes black box issue and improves mobile UX
   ======================================== */

/* =========================
   FIX: Black Box Issue Below Header
   ========================= */

/* Remove any dark backgrounds from header elements */
@media (max-width: 991px) {
  .header-area,
  .header-area *,
  .main-header-area,
  .main-header-area *,
  .col-12,
  .row,
  .row.no-gutters,
  .mobile_menu,
  .slicknav_menu {
    background: transparent !important;
  }
  
  /* Exception: Keep slicknav_nav white */
  .slicknav_nav {
    background: #fff !important;
  }
}

/* =========================
   MOBILE MENU STYLING
   ========================= */

@media (max-width: 767px) {
  /* Mobile menu container */
  .mobile_menu {
    position: absolute;
    right: 0;
    width: 100%;
    z-index: 999;
    background: transparent !important;
    padding: 0;
  }
  
  /* Hamburger button */
  .slicknav_btn {
    background: transparent !important;
    border: none !important;
    padding: 10px;
    margin-top: -35px;
    position: relative;
    z-index: 1000;
  }
  
  /* Hamburger icon bars */
  .slicknav_icon-bar {
    background-color: #fff !important;
    height: 3px !important;
    width: 28px !important;
    display: block !important;
    margin: 5px 0 !important;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
  }
  
  /* Menu container */
  .slicknav_menu {
    background: transparent !important;
    margin-top: 10px;
    padding: 0 !important;
  }
  
  /* Navigation menu */
  .slicknav_nav {
    background: #fff !important;
    margin-top: 15px !important;
    padding: 8px 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
    width: 95% !important;
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  /* Menu links */
  .slicknav_nav a {
    color: #1F1F1F !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 14px 20px !important;
    border-bottom: 1px solid #f5f5f5 !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
  }
  
  .slicknav_nav a:hover {
    background-color: #f8f9fa !important;
    color: #C9A961 !important;
    padding-left: 28px !important;
    transform: translateX(2px);
  }
  
  .slicknav_nav a.active {
    color: #C9A961 !important;
    font-weight: 600 !important;
  }
  
  /* Remove border from last item */
  .slicknav_nav li:last-child a {
    border-bottom: none !important;
  }
  
  /* Submenu styling */
  .slicknav_nav .slicknav_item a {
    padding-left: 25px !important;
  }
  
  .slicknav_nav .slicknav_item .slicknav_item a {
    padding-left: 40px !important;
    font-size: 14px !important;
  }
  
  /* Arrow icons */
  .slicknav_arrow {
    color: #666 !important;
    font-size: 18px !important;
  }
}

/* =========================
   HEADER IMPROVEMENTS
   ========================= */

@media (max-width: 991px) {
  /* Header area */
  .header-area {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    background: transparent !important;
    transition: all 0.3s ease;
  }
  
  /* Sticky header on scroll */
  #sticky-header.sticky {
    background: rgba(0, 0, 0, 0.95) !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  }
  
  /* Logo sizing */
  .logo-img img {
    max-width: 75px !important;
    height: auto !important;
  }
  
  /* Hide desktop elements */
  .book_room,
  .socail_links {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .logo-img img {
    max-width: 65px !important;
  }
}

/* =========================
   SLIDER OPTIMIZATIONS - FULL SCREEN ON MOBILE
   ========================= */

@media (max-width: 991px) {
  .slider_area .single_slider {
    height: 100vh !important;
    min-height: 100vh !important;
  }
}

@media (max-width: 767px) {
  .slider_area .single_slider {
    height: 100vh !important;
    min-height: 100vh !important;
  }
  
  .slider_text {
    padding: 0 20px;
  }
  
  .slider_text h3 {
    font-size: 32px !important;
    line-height: 1.2 !important;
    margin-bottom: 12px !important;
    letter-spacing: 1px !important;
  }
  
  .slider_text p {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }
}

@media (max-width: 480px) {
  .slider_area .single_slider {
    height: 100vh !important;
    min-height: 100vh !important;
  }
  
  .slider_text h3 {
    font-size: 26px !important;
  }
  
  .slider_text p {
    font-size: 14px !important;
  }
}

/* =========================
   SCROLL INDICATOR
   ========================= */

@media (max-width: 767px) {
  .scroll-indicator {
    bottom: 30px !important;
    z-index: 100 !important;
  }
  
  .scroll-indicator svg {
    width: 28px !important;
    height: 28px !important;
  }
}

/* =========================
   CONTENT SECTIONS
   ========================= */

@media (max-width: 767px) {
  /* Section spacing */
  .about_area,
  .offers_area,
  .features_room {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }
  
  /* Section titles */
  .section_title {
    margin-bottom: 35px !important;
  }
  
  .section_title h3 {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }
  
  .section_title span {
    font-size: 12px !important;
  }
  
  /* Buttons */
  .line-button,
  .book_now,
  .boxed-btn3 {
    padding: 12px 28px !important;
    font-size: 14px !important;
    display: inline-block;
  }
  
  /* Images */
  .about_thumb img,
  .about_thumb2 img {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 20px;
  }
  
  /* Cards and offers */
  .single_offers {
    margin-bottom: 30px !important;
  }
  
  .single_offers h3 {
    font-size: 20px !important;
  }
}

/* =========================
   FORMS AND POPUPS
   ========================= */

@media (max-width: 767px) {
  .popup_box {
    width: 90% !important;
    padding: 30px 20px !important;
  }
  
  .popup_box h3 {
    font-size: 20px !important;
  }
  
  #test-form input,
  #test-form select,
  #test-form .nice-select {
    height: 45px !important;
    font-size: 14px !important;
  }
}

/* =========================
   FOOTER
   ========================= */

@media (max-width: 767px) {
  .footer .footer_top {
    padding-top: 50px !important;
    padding-bottom: 30px !important;
  }
  
  .footer_widget {
    margin-bottom: 30px !important;
    text-align: center;
  }
  
  .footer_widget .footer_title {
    font-size: 18px !important;
    margin-bottom: 20px !important;
  }
  
  .copy-right_text .copy_right {
    text-align: center !important;
    font-size: 13px !important;
  }
  
  .socail_links {
    text-align: center !important;
    margin-top: 20px !important;
  }
}

/* =========================
   UTILITY CLASSES
   ========================= */

@media (max-width: 767px) {
  .text-center-mobile {
    text-align: center !important;
  }
  
  .hide-mobile {
    display: none !important;
  }
  
  .full-width-mobile {
    width: 100% !important;
  }
  
  .no-padding-mobile {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* =========================
   PERFORMANCE OPTIMIZATIONS
   ========================= */

@media (max-width: 767px) {
  /* Smooth scrolling */
  html {
    scroll-behavior: smooth;
  }
  
  /* Optimize animations */
  * {
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Better touch targets */
  a, button, .slicknav_btn {
    min-height: 44px;
    min-width: 44px;
  }
}
