/* ============================================
   MOBILE HEADER STYLES - Appartements Horizon
   ============================================ */

/* Mobile Header Container */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  padding: 15px 0;
  transition: all 0.3s ease;
}

.mobile-header2 {
  background: #fff;
}

/* Mobile Header Elements */
.mobile-header-elements {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
}

/* Mobile Logo */
.mobile-logo {
  max-width: 150px;
}

.mobile-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile Navigation Icon (Hamburger) */
.mobile-nav-icon {
  cursor: pointer;
  font-size: 24px;
  color: var(--ztc-text-text-7, #262731);
  padding: 10px;
  transition: all 0.3s ease;
}

.mobile-nav-icon:hover {
  color: var(--ztc-bg-bg-4, #D4AF37);
}

.mobile-nav-icon i {
  font-size: 26px;
}

/* Mobile Sidebar Menu */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: #fff;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-sidebar.active {
  right: 0;
}

.mobile-sidebar2 {
  background: #fff;
}

/* Logo and Close Icon Area */
.logosicon-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
}

.logosicon-area .logos {
  max-width: 140px;
}

.logosicon-area .logos img {
  width: 100%;
  height: auto;
}

/* Close Button */
.menu-close {
  cursor: pointer;
  font-size: 24px;
  color: var(--ztc-text-text-7, #262731);
  padding: 8px;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
}

.menu-close:hover {
  color: var(--ztc-bg-bg-4, #D4AF37);
  transform: rotate(90deg);
}

.menu-close i {
  font-size: 26px;
}

/* Mobile Navigation */
.mobile-nav {
  padding: 0;
}

.mobile-nav1 {
  padding: 20px 0;
}

/* Mobile Navigation List */
.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list1 {
  padding: 0 20px;
}

.mobile-nav-list .nav-item {
  margin-bottom: 5px;
}

.mobile-nav-list .nav-item .nav-link {
  display: block;
  padding: 15px 20px;
  color: var(--ztc-text-text-7, #262731);
  font-family: var(--ztc-family-font2, "IBM Plex Sans", sans-serif);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 8px;
  position: relative;
}

.mobile-nav-list .nav-item .nav-link:hover,
.mobile-nav-list .nav-item .nav-link.active {
  text-decoration: underline;
  color: var(--ztc-bg-bg-4);
  padding-left: 25px;
}

.mobile-nav-list .nav-item .nav-link span {
  display: inline-block;
  transition: all 0.3s ease;
}

/* All Mobile Section (Button Area) */
.allmobilesection {
  padding: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

/* Mobile Button Styling */
.allmobilesection .header-btn2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: var(--ztc-bg-bg-4, #D4AF37);
  color: #fff;
  font-family: var(--ztc-family-font2, "IBM Plex Sans", sans-serif);
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--ztc-bg-bg-4, #D4AF37);
}

.allmobilesection .header-btn2:hover {
  background: var(--ztc-text-text-7, #262731);
  border-color: var(--ztc-text-text-7, #262731);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.allmobilesection .header-btn2 span {
  display: inline-flex;
  align-items: center;
}

.allmobilesection .header-btn2 i {
  font-size: 14px;
}

/* Overlay when mobile menu is open */
.body-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.body-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Smooth Scrolling for Mobile Navigation Links */
.mobile-nav-list .nav-item .nav-link[href^="#"] {
  scroll-behavior: smooth;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .mobile-sidebar {
    width: 280px;
  }
  
  .mobile-logo {
    max-width: 120px;
  }
  
  .logosicon-area .logos {
    max-width: 110px;
  }
  
  .mobile-nav-list .nav-item .nav-link {
    font-size: 15px;
    padding: 13px 18px;
  }
  
  .allmobilesection .header-btn2 {
    font-size: 15px;
    padding: 12px 20px;
  }
}

/* Animation for Menu Items */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-sidebar.active .mobile-nav-list .nav-item {
  animation: slideInRight 0.4s ease forwards;
}

.mobile-sidebar.active .mobile-nav-list .nav-item:nth-child(1) {
  animation-delay: 0.1s;
}

.mobile-sidebar.active .mobile-nav-list .nav-item:nth-child(2) {
  animation-delay: 0.2s;
}

.mobile-sidebar.active .mobile-nav-list .nav-item:nth-child(3) {
  animation-delay: 0.3s;
}

.mobile-sidebar.active .mobile-nav-list .nav-item:nth-child(4) {
  animation-delay: 0.4s;
}

.mobile-sidebar.active .allmobilesection {
  animation: slideInRight 0.4s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hide mobile header on desktop */
@media (min-width: 992px) {
  .mobile-header,
  .mobile-sidebar {
    display: none !important;
  }
}

/* Show mobile header only on mobile/tablet */
@media (max-width: 991px) {
  .mobile-header {
    display: block;
  }
  
  /* Add padding to body to account for fixed header */
  body {
    padding-top: 70px;
  }
}

/* Additional Mobile Menu Enhancements */
.mobile-nav-list .nav-item .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--ztc-bg-bg-4, #D4AF37);
  transition: all 0.3s ease;
  border-radius: 0 3px 3px 0;
}

.mobile-nav-list .nav-item .nav-link:hover::after,
.mobile-nav-list .nav-item .nav-link.active::after {
  height: 60%;
}

/* Scrollbar Styling for Mobile Sidebar */
.mobile-sidebar::-webkit-scrollbar {
  width: 6px;
}

.mobile-sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

.mobile-sidebar::-webkit-scrollbar-thumb {
  background: var(--ztc-bg-bg-4, #D4AF37);
  border-radius: 3px;
}

.mobile-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--ztc-text-text-7, #262731);
}