/*====================================================
  responsive-fix.css – v2
  Berry Thai Spa & Saloon – Full Responsive Fixes
====================================================*/

/* =============================================
   GLOBAL — prevent horizontal overflow
   ============================================= */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
img {
  max-width: 100%;
  height: auto;
}
*, *::before, *::after {
  box-sizing: border-box;
}

/* =============================================
   HEADER / NAVBAR – DESKTOP (>= 992px)
   ============================================= */
/* =============================================
   HEADER / NAVBAR DROPDOWN STYLING
   ============================================= */
.header .navbar .dropdown {
  position: relative;
}

.header .navbar .dropdown-menu {
  min-width: 250px !important;
  width: auto !important;
  max-width: 320px;
  padding: 12px 0 !important;
  margin-top: 10px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
  background-color: #ffffff !important;
  overflow: hidden;
}

.header .navbar .dropdown-menu .dropdown-item {
  padding: 10px 20px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #333333 !important;
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.4 !important;
  transition: all 0.25s ease-in-out !important;
  display: block !important;
}

.header .navbar .dropdown-menu .dropdown-item:hover,
.header .navbar .dropdown-menu .dropdown-item:focus {
  background-color: #fcf1ed !important;
  color: #c78b73 !important;
  padding-left: 25px !important;
}

@media (min-width: 992px) {
  .header .navbar .navbar-nav > li > a.nav-link {
    white-space: nowrap;
  }
  .header .nav.navbar-nav {
    flex-wrap: nowrap;
    align-items: center;
  }
  .header .main-header.container-fluid {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0 20px;
  }
  .header .navbar-collapse {
    flex-grow: 1;
  }
  .header .add-listing {
    flex-shrink: 0;
  }
  
  .header .navbar .dropdown:hover > .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }
  
  .header .navbar .dropdown-menu {
    left: 0 !important;
    right: auto !important;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }
}

/* =============================================
   HEADER – TABLET (768px – 991px)
   ============================================= */
@media (max-width: 991px) {
  .header .main-header.container-fluid {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
    flex-wrap: nowrap;
    position: relative;
  }
  .header .logo-left.navbar-brand {
    display: flex !important;
    flex-shrink: 0;
    max-width: 130px;
    margin: 0;
    padding: 6px 0;
  }
  .header .main-header .menu-btn {
    display: none !important;
  }
  .header .navbar .navbar-toggler {
    position: static !important;
    right: auto !important;
    display: flex !important;
    flex-shrink: 0;
    order: 3;
    margin-left: auto;
    background: #F2A68D;
    border: none;
    color: #fff;
    padding: 10px 12px;
    height: 42px;
    width: 42px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    box-shadow: none !important;
  }
  .header .add-listing {
    display: none !important;
  }
  .header .navbar-collapse {
    order: 4;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    z-index: 9999;
    border-top: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  .header .navbar .navbar-nav > li > .nav-link {
    color: #131310 !important;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    white-space: nowrap;
  }
  .header .navbar .navbar-nav > li.logo-center {
    display: none !important;
  }
  .header .navbar .dropdown-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    border: none !important;
    background: #f9f9f9;
    padding: 5px 20px 10px 30px;
  }
}

/* =============================================
   HEADER – MOBILE (< 576px)
   ============================================= */
@media (max-width: 575px) {
  .header .logo-left.navbar-brand {
    max-width: 110px;
  }
  .header .navbar .navbar-toggler {
    height: 38px;
    width: 38px;
    padding: 8px 10px;
  }
  .header .add-listing {
    display: none !important;
  }
}

/* =============================================
   INNER PAGE BANNER (About, Service, Contact etc.)
   ============================================= */
.inner-header.bg-holder,
section.inner-header {
  background-size: cover !important;
  background-position: center !important;
}

@media (max-width: 767px) {
  .inner-header h1 {
    font-size: 32px !important;
  }
  .inner-header .breadcrumb {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .inner-header h1 {
    font-size: 26px !important;
  }
}

/* =============================================
   BANNER / HOME SLIDER – RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
  .slider-02.banner-02 .swiper-slide {
    min-height: 400px;
    padding: 120px 0 60px;
  }
  .slider-02 h1 {
    font-size: 42px !important;
    line-height: 1.1em;
  }
}

@media (max-width: 575px) {
  .slider-02.banner-02 .swiper-slide {
    min-height: 320px;
    padding: 100px 15px 50px;
  }
  .slider-02 h1 {
    font-size: 28px !important;
    line-height: 1.2em;
  }
  .slider-02 .sub-title-text {
    font-size: 13px;
  }
  .slider-02 .btn {
    font-size: 14px;
    padding: 10px 18px;
  }
  .swiper-button-prev,
  .swiper-button-next {
    display: none !important;
  }
}

/* Hide Swiper banner navigation arrows globally */
.swiper-button-prev,
.swiper-button-next,
.banner-02 .swiper-button-prev,
.banner-02 .swiper-button-next,
.slider-02 .swiper-button-prev,
.slider-02 .swiper-button-next {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* =============================================
   TYPOGRAPHY – RESPONSIVE
   ============================================= */
@media (max-width: 767px) {
  h1 { font-size: 36px !important; line-height: 1.2em; }
  h2 { font-size: 28px !important; line-height: 1.2em; }
  h3 { font-size: 22px !important; }
  h4 { font-size: 18px !important; }
  .section-title .title { font-size: 28px !important; }
}

@media (max-width: 575px) {
  h1 { font-size: 26px !important; }
  h2 { font-size: 22px !important; }
  h3 { font-size: 20px !important; }
  .section-title .title { font-size: 22px !important; }
  p { font-size: 14px; line-height: 22px; }
}

/* =============================================
   SPACING HELPERS – MOBILE
   ============================================= */
@media (max-width: 767px) {
  .space-ptb { padding-top: 60px !important; padding-bottom: 60px !important; }
  .space-pb  { padding-bottom: 60px !important; }
}
@media (max-width: 575px) {
  .space-ptb { padding-top: 40px !important; padding-bottom: 40px !important; }
  .space-pb  { padding-bottom: 40px !important; }
}

/* =============================================
   ABOUT SECTION
   ============================================= */
@media (max-width: 991px) {
  .about-02 .about-img {
    margin-bottom: 40px;
  }
  .about-02 .img-01 img,
  .about-02 .img-03 img {
    width: 100%;
    height: auto;
  }
}

/* =============================================
   FEATURES / SERVICE CARDS
   ============================================= */
@media (max-width: 767px) {
  .feature-box.feature-box-style-02 {
    border-right: none !important;
    margin-bottom: 30px;
  }
  .feature-box-style-02 .feature-img img {
    width: 100%;
    height: auto;
  }
  .feature-item.feature-box-style-03 {
    margin-bottom: 30px;
  }
}

/* =============================================
   GALLERY SECTION
   ============================================= */
@media (max-width: 767px) {
  .gallery-img.gallery-lg { height: 250px !important; }
  .gallery-img             { height: 180px !important; }
  .gallery                 { margin-bottom: 20px; }
}
@media (max-width: 575px) {
  .gallery-img.gallery-lg { height: 200px !important; }
  .gallery-img             { height: 150px !important; }
}

/* =============================================
   APPOINTMENT / BOOKING FORM
   ============================================= */
@media (max-width: 767px) {
  .appointment-form .col-md-6,
  .appointment-form .col-md-12 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .appointment-form .select-border {
    margin-bottom: 12px;
  }
}

/* =============================================
   SALON MENU GRID
   ============================================= */
@media (max-width: 991px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}
@media (max-width: 600px) {
  .menu-grid {
    grid-template-columns: 1fr !important;
  }
  .menu-card {
    padding: 25px !important;
  }
  .menu-section {
    padding: 60px 0 !important;
  }
  .card-actions {
    flex-direction: column !important;
  }
}

/* =============================================
   FAQ + MAP SECTION
   ============================================= */
@media (max-width: 767px) {
  .faq-map-section {
    flex-direction: column !important;
    margin: 40px auto !important;
    padding: 15px !important;
  }
  .faq-left,
  .map-right {
    width: 100% !important;
    flex: none !important;
  }
  .map-right iframe {
    height: 280px !important;
  }
}

/* =============================================
   BLOG SECTION
   ============================================= */
@media (max-width: 767px) {
  .blog-style-01 { margin-bottom: 30px; }
  .blog-img img  { width: 100%; height: auto; }
}

/* =============================================
   PACKAGES / PRICING
   ============================================= */
@media (max-width: 767px) {
  .pricing-plan { margin-bottom: 30px; }
}

/* =============================================
   CONTACT PAGE – FORM & MAP
   ============================================= */
@media (max-width: 767px) {
  .message-info { margin-bottom: 40px; }

  .contact-form .col-md-6,
  .contact-form .col-md-12 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .google-map iframe,
  .map-right iframe {
    width: 100% !important;
    height: 250px !important;
  }
}

/* =============================================
   SHOP BANNER / OFFER SECTION
   ============================================= */
@media (max-width: 767px) {
  .shop-banner-title h2 {
    font-size: 24px !important;
  }
}

/* =============================================
   FOOTER
   ============================================= */
@media (max-width: 767px) {
  .footer .min-footer .row > div {
    margin-bottom: 30px;
  }
  .footer-bottom .copyright {
    text-align: center !important;
    flex-direction: column;
  }
  .footer-bottom .col-12.col-md-6.text-end {
    text-align: center !important;
    margin-top: 8px;
  }
}

/* =============================================
   GENERAL CONTAINER – prevent horizontal scroll
   ============================================= */
.container,
.container-fluid {
  max-width: 100%;
}
@media (max-width: 575px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* =============================================
   ROW FIX – prevent negative margin overflow on mobile
   ============================================= */
@media (max-width: 575px) {
  .row {
    margin-left: 0;
    margin-right: 0;
  }
  .row > * {
    padding-left: 12px;
    padding-right: 12px;
  }
}
