/* css/responsive-fixes.css
   Comprehensive Mobile Responsiveness Fixes for Solitairian City website */

/* =========================================
   MOBILE HEADER & NAVIGATION
   ========================================= */
@media (max-width: 991px) {
  .top-header .navbar {
    padding: 10px 15px !important;
  }
  .navbar-brand img {
    max-height: 50px !important;
    width: auto !important;
  }
  .navbar-collapse {
    background-color: #ffffff !important;
    border: 1px solid #ddd !important;
    border-radius: 6px;
    padding: 15px !important;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .navbar-nav {
    margin-top: 10px;
  }
  .navbar-nav .nav-item {
    margin-bottom: 8px;
  }
  .navbar-nav .nav-link {
    color: #333333 !important;
    padding: 8px 12px !important;
    border-radius: 4px;
  }
  .navbar-nav .nav-link.active {
    background-color: rgba(140, 13, 13, 0.1) !important;
    color: #8c0d0d !important;
  }
  .nav-phone-btn {
    background-color: #8c0d0d !important;
    color: #ffffff !important;
    display: inline-block !important;
    text-align: center;
    width: 100%;
    margin-top: 5px;
  }
  .nav-phone-btn:hover {
    background-color: #5c0008 !important;
    color: #ffffff !important;
  }
}

/* =========================================
   HERO BANNER & BANNER ENQUIRY FORM
   ========================================= */
@media (max-width: 991px) {
  .hero-section {
    padding-top: 70px !important;
    padding-bottom: 20px !important;
  }
  .banner-enquiry {
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-top: 25px;
  }
  .hero-section .form-block {
    margin-top: 20px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
  }
}

/* =========================================
   TABLE SCROLL WRAPPER
   ========================================= */
.table-fill-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
@media (max-width: 767px) {
  .table-fill {
    min-width: 600px; /* Force table to retain layout and scroll horizontally on small screens */
  }
}

/* =========================================
   POPUP MODALS RESPONSIVENESS
   ========================================= */
@media (max-width: 767px) {
  .popup {
    width: 90% !important;
    margin: 15% auto !important;
  }
  .modal-dialog {
    margin: 10px !important;
  }
  .modal-content {
    border-radius: 8px !important;
  }
}

/* =========================================
   FLOATING BUTTONS LAYOUT
   ========================================= */
.floating-call-btn, .floating-whatsapp-btn {
  position: fixed;
  bottom: 20px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: transform 0.3s ease, background 0.3s ease;
  text-decoration: none !important;
}
.floating-call-btn {
  left: 20px;
  background-color: #8c0d0d;
}
.floating-call-btn:hover {
  background-color: #5c0008;
  transform: scale(1.05);
}
.floating-whatsapp-btn {
  right: 20px;
  background-color: #25d366;
}
.floating-whatsapp-btn:hover {
  background-color: #128c7e;
  transform: scale(1.05);
}

@media (max-width: 767px) {
  .floating-call-btn, .floating-whatsapp-btn {
    width: 45px !important;
    height: 45px !important;
    font-size: 18px !important;
    bottom: 15px;
  }
  .floating-call-btn { left: 15px; }
  .floating-whatsapp-btn { right: 15px; }
}

/* =========================================
   SIDEBAR CONTACT PANEL
   ========================================= */
@media (max-width: 767px) {
  .sidebar-contact-2 {
    display: none !important; /* Hide fixed side panel on mobile to avoid overlapping and clutter */
  }
}

/* =========================================
   FAQ ACCORDION SPACING
   ========================================= */
.accordion_box {
  margin-bottom: 10px;
  border-radius: 6px;
  overflow: hidden;
}
.accordion_box .btn-primary {
  width: 100%;
  text-align: left;
  padding: 15px 20px !important;
  background: #f8f9fa !important;
  color: #333 !important;
  border: 1px solid #eee !important;
  border-radius: 6px !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}
.accordion_box .btn-primary:hover {
  background: #f1f3f5 !important;
}
.accordion_box .btn-primary p {
  margin: 0 !important;
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}
.accordion_box .card-body {
  border: 1px solid #eee;
  border-top: none;
  background-color: #fff;
  padding: 15px 20px;
  font-size: 14px;
  line-height: 1.6;
}

/* =========================================
   OWL CAROUSEL DOTS
   ========================================= */
@media (max-width: 767px) {
  .owl-carousel .owl-dots { margin: 10px 0 0; }
  .owl-carousel .owl-dots .owl-dot span { width: 12px; height: 12px; }
}

/* =========================================
   SECTION PADDING
   ========================================= */
@media (max-width: 767px) {
  section { padding-top: 15px !important; padding-bottom: 15px !important; }
  .ptb-80 { padding: 20px 0 !important; }
}
@media (max-width: 480px) {
  section { padding-top: 10px !important; padding-bottom: 10px !important; }
}
