/* ==========================================================================
   SOVA NIBAS GUEST HOUSE – PURI
   Responsive Stylesheet
   Breakpoints: 320px, 375px, 390px, 414px, 768px, 1024px, 1280px
   ========================================================================== */

/* Mobile Bottom Fixed Booking CTA */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--primary-navy);
  padding: 0.75rem 1rem;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
  z-index: 99;
  border-top: 2px solid var(--gold-accent);
}

.mobile-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.mobile-bottom-price {
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.mobile-bottom-price .price-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-accent);
}

.mobile-bottom-price .price-sub {
  font-size: 0.75rem;
  color: #cbd5e1;
}

/* Off-canvas Navigation Drawer for Mobile */
.mobile-drawer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  backdrop-filter: blur(3px);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--primary-navy-dark);
  color: #ffffff;
  z-index: 999;
  padding: 2rem 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s ease, visibility 0.3s ease;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  visibility: hidden;
}

.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-drawer-close {
  color: #ffffff;
  font-size: 1.5rem;
  background: none;
  border: none;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e2e8f0;
  display: block;
}

.mobile-nav-link.active, .mobile-nav-link:hover {
  color: var(--gold-accent);
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Media Queries */

@media (max-width: 1180px) {
  .main-nav, .header-cta-wrap {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .booking-layout {
    grid-template-columns: 1fr;
  }
  
  .booking-summary-sidebar {
    position: static;
  }
}

@media (max-width: 868px) {
  .search-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .search-grid .btn {
    grid-column: span 2;
  }
  
  .top-bar-contacts {
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .logo-title {
    font-size: 1.15rem;
  }

  .logo-subtitle {
    font-size: 0.62rem;
  }

  .logo-img {
    width: 40px;
    height: 40px;
  }
  
  .top-bar-contacts .address-item {
    display: none;
  }
  
  .hero-section.pure-image-slider {
    height: 480px;
    min-height: 420px;
  }

  .hero-slide-overlay {
    padding: 2rem 1rem 3.5rem;
  }

  .hero-slide-title {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .hero-slide-subtitle {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 1.15rem;
  }

  .hero-slide-badge {
    font-size: 0.72rem;
    padding: 0.25rem 0.75rem;
  }

  .hero-slide-cta-wrap {
    gap: 0.5rem;
  }

  .hero-slide-btn, .hero-slide-wa-btn {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
  }

  .hero-nav-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }

  .hero-nav-prev {
    left: 0.5rem;
  }

  .hero-nav-next {
    right: 0.5rem;
  }

  .search-panel-container {
    margin-top: 1.5rem;
  }
  
  .booking-search-card {
    padding: 1.25rem;
  }
  
  .search-grid {
    grid-template-columns: 1fr;
  }
  
  .search-grid .btn {
    grid-column: span 1;
  }
  
  .rooms-grid {
    grid-template-columns: 1fr;
  }
  
  .highlights-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .voucher-grid {
    grid-template-columns: 1fr;
  }
  
  .booking-steps-bar {
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  
  .step-indicator {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }
  
  .mobile-bottom-bar {
    display: block;
  }
  
  body {
    padding-bottom: 70px;
  }

  .floating-contact-widget {
    bottom: 5rem;
    right: 1rem;
  }
  
  .floating-menu-card {
    width: 270px;
  }
  
  .inventory-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .highlights-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 1rem;
  }

  .rooms-grid,
  .photo-showcase-grid,
  .testimonial-grid,
  .gallery-grid,
  .search-grid {
    grid-template-columns: 1fr !important;
  }
  
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .top-bar-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .room-card-footer {
    flex-direction: column;
  }
  
  .voucher-card {
    padding: 1.5rem;
  }
}

/* ========================================================== */
/* DEDICATED BOOKING RESPONSIVE SUITE FOR MOBILE              */
/* ========================================================== */
@media (max-width: 868px) {
  .booking-layout {
    grid-template-columns: 1fr !important;
  }
  
  .booking-summary-sidebar {
    position: static !important;
  }
  
  .booking-steps-nav {
    display: flex !important;
    gap: 0.35rem !important;
    margin-bottom: 1.25rem !important;
    overflow: visible !important;
  }
  
  .step-indicator {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 0.45rem 0.4rem !important;
    border-radius: 8px !important;
  }

  .booking-card-box,
  .floor-group {
    padding: 1.15rem 0.85rem !important;
    border-radius: 10px !important;
    margin-bottom: 1.25rem !important;
    overflow: visible !important;
  }

  .booking-dates-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
    overflow: visible !important;
  }
  .booking-dates-grid .form-group {
    min-width: 0 !important;
    width: 100% !important;
  }
  .booking-dates-grid .form-group:first-child,
  .booking-dates-grid .form-group:nth-child(2),
  .booking-dates-grid .form-group:nth-child(3) {
    grid-column: 1 / -1 !important;
    max-width: 100% !important;
  }

  .physical-rooms-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
    width: 100% !important;
    overflow: visible !important;
  }
  .physical-room-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0.85rem 0.85rem !important;
    box-sizing: border-box !important;
  }
}
