/* ==========================================================================
   HOTEL CITY PRIDE — NATIVE-STYLE MOBILE APP STYLESHEET
   Transforms the mobile layout into a slick, fast, app-like experience
   ========================================================================== */

/* Touch optimization & iOS input zoom fix */
@media (max-width: 768px) {
  html, body {
    -webkit-tap-highlight-color: transparent;
    -webkit-overflow-scrolling: touch;
  }
  
  body {
    padding-bottom: 76px !important; /* Space for the bottom app bar */
  }

  /* Prevent iOS zoom on input focus */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* Mobile Top Navbar */
  .navbar {
    height: auto !important;
    min-height: 70px !important;
    padding: 0 !important;
  }
  .navbar-inner {
    min-height: 70px !important;
    height: 70px !important;
    padding: 0 16px !important;
  }
  .brand-logo-img {
    height: 60px !important;
    max-width: 200px !important;
  }
  
  /* Hide desktop menu in navbar */
  .nav-menu, .nav-links-menu, .top-bar {
    display: none !important;
  }

  /* Mobile App Header Controls (Call & Menu) */
  .mobile-app-header-actions {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }
  .btn-app-call-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #FDE8E9;
    color: #C5282F;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.95rem;
    border: 1px solid #FECDD3;
    transition: transform 0.15s ease;
  }
  .btn-app-call-icon:active {
    transform: scale(0.92);
  }
  .btn-app-menu-toggle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #F1F5F9;
    color: #0F172A;
    border: 1px solid #E2E8F0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.15s ease;
  }
  .btn-app-menu-toggle:active {
    transform: scale(0.92);
  }

  /* Horizontal Swipeable Filter Chips */
  .filter-chips-bar {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 4px 16px 12px !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    margin: 16px 0 20px !important;
  }
  .filter-chips-bar::-webkit-scrollbar {
    display: none;
  }
  .filter-chip-btn {
    flex-shrink: 0 !important;
    padding: 8px 16px !important;
    font-size: 0.82rem !important;
  }

  /* Touch App Cards */
  .room-card-box, .venue-card-box, .venue-card-large {
    border-radius: 18px !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06) !important;
    margin-bottom: 20px !important;
  }
  .room-card-box:active, .venue-card-box:active {
    transform: scale(0.99);
  }
  .btn-room-details-primary, .btn-search-hero, .btn-submit-booking-direct {
    width: 100% !important;
    justify-content: center !important;
    padding: 13px !important;
    font-size: 0.92rem !important;
    border-radius: 12px !important;
  }

  /* App Native Hero Card */
  .hero-banner {
    padding: 24px 0 60px !important;
  }
  .hero-banner h1, .hero-title {
    font-size: 1.7rem !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
  }
  .hero-banner p {
    font-size: 0.88rem !important;
    margin-bottom: 18px !important;
  }
  .booking-bar-wrapper {
    margin-top: -24px !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }
  .booking-nav-tabs {
    gap: 6px !important;
    margin-bottom: 14px !important;
  }
  .booking-tab-btn {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
  }
}

/* ==========================================================================
   FIXED BOTTOM APP NAVIGATION DOCK (App Bottom Bar)
   ========================================================================== */
.mobile-app-bottom-bar {
  display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
  .mobile-app-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: 62px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 -4px 22px rgba(0, 0, 0, 0.08);
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .app-bottom-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748B;
    height: 100%;
    gap: 3px;
    transition: all 0.15s ease;
    position: relative;
    user-select: none;
  }
  .app-bottom-tab:active {
    transform: scale(0.92);
  }
  .app-bottom-tab i {
    font-size: 1.25rem;
    transition: transform 0.15s ease;
  }
  .app-bottom-tab span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: -0.1px;
  }

  /* Active Tab */
  .app-bottom-tab.active {
    color: #C5282F;
  }
  .app-bottom-tab.active i {
    transform: translateY(-1px);
  }
  .app-bottom-tab.active::after {
    content: '';
    position: absolute;
    top: 4px;
    width: 20px;
    height: 3px;
    background: #C5282F;
    border-radius: 3px;
  }

  /* Highlight WhatsApp Tab */
  .app-bottom-tab.tab-wa {
    color: #16A34A;
  }
  .app-bottom-tab.tab-wa i {
    color: #25D366;
  }
}

/* ==========================================================================
   SLIDE-OUT MOBILE APP DRAWER MENU
   ========================================================================== */
.mobile-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 19, 32, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99998;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mobile-drawer-backdrop.is-open {
  display: block;
  opacity: 1;
}

.mobile-app-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 86%;
  max-width: 330px;
  background: #FFFFFF;
  z-index: 99999;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 35px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mobile-app-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  padding: 18px 20px;
  background: #0B1320;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.drawer-brand-img {
  height: 48px;
  width: auto;
  background: #FFFFFF;
  padding: 3px 6px;
  border-radius: 8px;
}
.drawer-brand-title strong {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  display: block;
  color: #FFFFFF;
}
.drawer-brand-title span {
  font-size: 0.70rem;
  color: #94A3B8;
  display: block;
}
.btn-drawer-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #FFFFFF;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-drawer-close:active {
  background: rgba(255, 255, 255, 0.25);
}

.drawer-nav-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.drawer-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #1E293B;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.15s ease;
}
.drawer-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.drawer-item-left i {
  font-size: 1.1rem;
  width: 22px;
  color: #64748B;
  text-align: center;
}
.drawer-nav-item.active {
  background: #FDE8E9;
  color: #C5282F;
}
.drawer-nav-item.active .drawer-item-left i {
  color: #C5282F;
}
.drawer-nav-item:active {
  background: #F1F5F9;
}
.drawer-chevron {
  font-size: 0.75rem;
  color: #94A3B8;
}

.drawer-timings-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 4px 6px;
  font-size: 0.78rem;
  color: #475569;
}
.drawer-timings-card strong {
  color: #0F172A;
  display: block;
  margin-bottom: 2px;
  font-size: 0.82rem;
}

.drawer-footer-actions {
  padding: 14px 16px;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  display: flex;
  gap: 10px;
}
.btn-drawer-action-call {
  flex: 1;
  background: #FDE8E9;
  color: #C5282F;
  border: 1px solid #FECDD3;
  padding: 11px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-drawer-action-wa {
  flex: 1;
  background: #25D366;
  color: #FFFFFF;
  padding: 11px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
