/*--------------------------------------------------------------
# Mangat Farms Premium Tourism Navbar
# Uses your existing root variables
--------------------------------------------------------------*/

#header *,
#header *::before,
#header *::after,
.mobile-drawer *,
.mobile-drawer *::before,
.mobile-drawer *::after {
  box-sizing: border-box;
}

#header,
.mobile-drawer {
  --logo-blue: #2371b6;
  --logo-orange: #d46f14;
  --transition-fluid: all 0.3s ease;
}

/* Header */

.site-header {
  width: 100%;
  position: fixed;
  top: 20px;
  left: 0;
  z-index: 997;
  padding: 0 24px;
  transition: var(--transition-fluid);
}

.nav-shell {
  width: min(1380px, 100%);
  min-height: 82px;
  margin: 0 auto;
  padding: 8px 12px 8px 14px;

  display: flex;
  align-items: center;
  gap: 24px;

  background: rgba(8, 30, 41, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(5, 21, 30, 0.2);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  transition: var(--transition-fluid);
}

.site-header.header-scrolled {
  top: 8px;
}

.site-header.header-scrolled .nav-shell {
  min-height: 70px;
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(35, 113, 182, 0.1);
  box-shadow: 0 12px 35px rgba(13, 38, 50, 0.14);
}

/* Logo */

.brand-logo {
  flex: 0 0 auto;
  width: 138px;
  min-height: 64px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 15px;
}

.brand-logo img {
  width: auto;
  height: 54px;
  object-fit: contain;
  transition: var(--transition-fluid);
}

.header-scrolled .brand-logo {
  min-height: 54px;
}

.header-scrolled .brand-logo img {
  height: 45px;
}

/* Desktop menu */

.desktop-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav li {
  position: relative;
}

.desktop-nav > ul > li > a,
.nav-dropdown-toggle {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 13px;

  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.24);
  background: transparent;
  border: 0;
  border-radius: 10px;

  font-family: "Raleway", sans-serif;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;

  transition: 0.3s ease;
}

.header-scrolled .desktop-nav > ul > li > a,
.header-scrolled .nav-dropdown-toggle {
  color: #263944;
  text-shadow: none;
}

.desktop-nav > ul > li > a:hover,
.desktop-nav > ul > li > a.active,
.desktop-nav > ul > li > a:focus-visible,
.nav-dropdown-toggle:focus-visible,
.nav-dropdown:hover > .nav-dropdown-toggle {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.header-scrolled .desktop-nav > ul > li > a:hover,
.header-scrolled .desktop-nav > ul > li > a.active,
.header-scrolled .desktop-nav > ul > li > a:focus-visible,
.header-scrolled .nav-dropdown-toggle:focus-visible,
.header-scrolled .nav-dropdown:hover > .nav-dropdown-toggle {
  color: var(--logo-blue);
  background: rgba(35, 113, 182, 0.08);
}

.nav-dropdown-toggle i {
  font-size: 11px;
  transition: 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle i {
  transform: rotate(180deg);
}

/* Standard dropdown */

.nav-dropdown-menu {
  width: 270px;
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  z-index: 100;

  display: grid;
  gap: 6px;
  padding: 10px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);

  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(35, 113, 182, 0.1);
  border-radius: 16px;
  box-shadow: 0 22px 55px rgba(10, 31, 42, 0.18);

  transition: 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  top: calc(100% + 8px);
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;

  color: #293d48;
  border-radius: 11px;
  text-decoration: none;
  transition: 0.25s ease;
}

.nav-dropdown-menu a:hover {
  color: #293d48;
  background: rgba(35, 113, 182, 0.07);
}

.dropdown-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;

  display: grid;
  place-items: center;

  color: #fff;
  background: var(--logo-blue);
  border-radius: 10px;
  font-size: 18px;
}

.dropdown-icon.orange {
  background: var(--logo-orange);
}

.nav-dropdown-menu strong,
.nav-dropdown-menu small {
  display: block;
}

.nav-dropdown-menu strong {
  font-size: 14px;
}

.nav-dropdown-menu small {
  margin-top: 2px;
  color: #74818a;
  font-size: 11px;
}

/* Right actions */

.nav-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-socials {
  display: flex;
  gap: 7px;
}

.nav-socials a {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;

  text-decoration: none;
  transition: 0.3s ease;
}

.header-scrolled .nav-socials a {
  color: var(--logo-blue);
  background: rgba(35, 113, 182, 0.07);
  border-color: rgba(35, 113, 182, 0.1);
}

.nav-socials a:hover {
  color: #fff;
  background: var(--logo-blue);
  transform: translateY(-2px);
}

/* Keep each social mark in its recognizable brand colour. */
.nav-socials .bi-youtube {
  color: #ff0000;
}

.nav-socials .bi-facebook {
  color: #1877f2;
}

.nav-socials .bi-instagram {
  color: #e4405f;
}

/* Book button and scenic dropdown */

.booking-menu {
  position: relative;
}

.book-toggle {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 19px;

  color: #fff;
  background: var(--logo-orange);
  border: 0;
  border-radius: 12px;

  font-family: "Raleway", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;

  box-shadow: 0 12px 25px rgba(212, 111, 20, 0.26);
  transition: 0.3s ease;
}

.book-toggle:hover {
  background: #bb5d0d;
  transform: translateY(-2px);
}

.book-toggle i {
  font-size: 11px;
  transition: 0.3s ease;
}

.booking-menu.open .book-toggle i {
  transform: rotate(180deg);
}

.booking-dropdown {
  width: 390px;
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  z-index: 150;

  padding: 14px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);

  background: #fff;
  border: 1px solid rgba(35, 113, 182, 0.1);
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(7, 28, 39, 0.24);

  transition: 0.3s ease;
}

.booking-menu.open .booking-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.booking-heading {
  padding: 5px 4px 13px;
}

.booking-heading span {
  display: block;
  margin-bottom: 4px;
  color: var(--logo-orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.booking-heading strong {
  color: #18303d;
  font-family: "Raleway", sans-serif;
  font-size: 18px;
}

.booking-card {
  min-height: 118px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 9px;
  padding: 18px;
  overflow: hidden;

  color: #fff;
  background-position: center;
  background-size: cover;
  border-radius: 15px;
  text-decoration: none;
  isolation: isolate;

  transition: 0.3s ease;
}

.booking-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(7, 28, 40, 0.86),
    rgba(7, 28, 40, 0.26)
  );
}

.booking-card-kanatal {
  background-image:
    url("https://images.unsplash.com/photo-1464278533981-50106e6176b1?auto=format&fit=crop&w=900&q=82");
}

.booking-card-meerut {
  background-image:
    url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=900&q=82");
}

.booking-card:hover {
  color: #fff;
  transform: translateY(-3px);
}

.booking-card span,
.booking-card strong,
.booking-card small {
  display: block;
}

.booking-card span {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.booking-card strong {
  font-family: "Raleway", sans-serif;
  font-size: 22px;
}

.booking-card small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
}

.booking-card > i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  backdrop-filter: blur(8px);
}

.booking-help {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  padding: 10px 4px 2px;
  color: #667680;
  font-size: 12px;
  text-decoration: none;
}

.booking-help:hover {
  color: var(--logo-blue);
}

/* Mobile button */

.mobile-menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;

  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;

  font-size: 24px;
  cursor: pointer;
}

.header-scrolled .mobile-menu-toggle {
  color: var(--logo-blue);
  background: rgba(35, 113, 182, 0.08);
  border-color: rgba(35, 113, 182, 0.1);
}

/* Mobile drawer */

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 998;

  opacity: 0;
  visibility: hidden;
  background: rgba(5, 21, 30, 0.68);
  backdrop-filter: blur(6px);

  transition: 0.3s ease;
}

.mobile-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  width: min(410px, calc(100vw - 20px));
  height: calc(100dvh - 20px);

  position: fixed;
  top: 10px;
  right: -440px;
  z-index: 999;

  overflow-y: auto;

  background: #f7f9fa;
  border-radius: 24px 0 0 24px;
  box-shadow: -20px 0 60px rgba(5, 21, 30, 0.28);

  transition: 0.4s ease;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-hero {
  min-height: 190px;
  position: relative;
  padding: 18px;
  overflow: hidden;

  background:
    url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=900&q=82")
    center/cover no-repeat;

  border-radius: 24px 0 22px 22px;
}

.mobile-drawer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 24, 35, 0.34),
    rgba(6, 24, 35, 0.88)
  );
}

.mobile-drawer-top,
.mobile-drawer-title {
  position: relative;
  z-index: 2;
}

.mobile-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-logo {
  display: inline-flex;
  padding: 6px 10px;
  background: #fff;
  border-radius: 12px;
}

.mobile-logo img {
  width: auto;
  height: 47px;
}

.mobile-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;

  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;

  font-size: 18px;
  cursor: pointer;
}

.mobile-drawer-title {
  margin-top: 35px;
}

.mobile-drawer-title span,
.mobile-drawer-title strong {
  display: block;
}

.mobile-drawer-title span {
  color: var(--logo-orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.mobile-drawer-title strong {
  margin-top: 4px;
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-size: 24px;
}

.mobile-drawer-body {
  padding: 16px;
}

.mobile-nav {
  display: grid;
  gap: 7px;
}

.mobile-nav > a,
.mobile-dropdown-toggle {
  width: 100%;
  min-height: 50px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 14px;

  color: #2a3c46;
  background: #fff;
  border: 1px solid #e8edef;
  border-radius: 12px;

  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.mobile-nav > a span,
.mobile-dropdown-toggle span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-nav > a span i,
.mobile-dropdown-toggle span i {
  color: var(--logo-blue);
}

.mobile-nav > a.active {
  color: #fff;
  background: var(--logo-blue);
  border-color: var(--logo-blue);
}

.mobile-nav > a.active span i {
  color: #fff;
}

.mobile-dropdown-toggle {
  border: 1px solid #e8edef;
}

.mobile-dropdown-toggle > i {
  font-size: 12px;
  transition: 0.3s ease;
}

.mobile-nav-dropdown.open .mobile-dropdown-toggle > i {
  transform: rotate(180deg);
}

.mobile-submenu {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 7px 0 0;
}

.mobile-nav-dropdown.open .mobile-submenu {
  display: grid;
}

.mobile-submenu a {
  padding: 11px;
  color: #40515b;
  background: rgba(35, 113, 182, 0.07);
  border-radius: 10px;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
}

.mobile-booking {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid #e1e7e9;
}

.mobile-booking-label {
  display: block;
  margin-bottom: 9px;
  color: #73808a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.mobile-stay-card {
  min-height: 92px;
  position: relative;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  margin-top: 8px;
  padding: 15px;
  overflow: hidden;

  color: #fff;
  background-position: center;
  background-size: cover;
  border-radius: 14px;
  text-decoration: none;
  isolation: isolate;
}

.mobile-stay-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(6, 24, 35, 0.85),
    rgba(6, 24, 35, 0.25)
  );
}

.mobile-kanatal {
  background-image:
    url("https://images.unsplash.com/photo-1464278533981-50106e6176b1?auto=format&fit=crop&w=800&q=82");
}

.mobile-meerut {
  background-image:
    url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=800&q=82");
}

.mobile-stay-card small,
.mobile-stay-card strong {
  display: block;
}

.mobile-stay-card small {
  color: rgba(255, 255, 255, 0.72);
}

.mobile-stay-card strong {
  margin-top: 2px;
  font-size: 19px;
}

.mobile-drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e1e7e9;
}

.mobile-drawer-footer > a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #334854;
  font-size: 13px;
  font-weight: 700;
}

.mobile-drawer-footer > div {
  display: flex;
  gap: 7px;
}

.mobile-drawer-footer > div a {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;

  color: var(--logo-blue);
  background: rgba(35, 113, 182, 0.08);
  border-radius: 50%;
}

body.mobile-menu-open {
  overflow: hidden;
}

.book-now,
.floating-book-now,
.whatsapp-fixed,
.whatsapp-button,
.floating-whatsapp,
.back-to-top {
  z-index: 900 !important;
}

/* Responsive */

@media (max-width: 1199px) {
  .desktop-nav > ul > li > a,
  .nav-dropdown-toggle {
    padding: 11px 9px;
    font-size: 12px;
  }

  .nav-socials {
    display: none;
  }
}

@media (max-width: 991px) {
  .site-header {
    top: 10px;
    padding: 0 12px;
  }

  .site-header.header-scrolled {
    top: 6px;
  }

  .nav-shell {
    min-height: 68px;
    padding: 7px 9px 7px 10px;
    gap: 12px;
    border-radius: 17px;
  }

  .desktop-nav,
  .nav-actions {
    display: none;
  }

  .brand-logo {
    width: 112px;
    min-height: 54px;
    padding: 5px 9px;
    border-radius: 12px;
  }

  .brand-logo img,
  .header-scrolled .brand-logo img {
    height: 44px;
  }

  .mobile-menu-toggle {
    display: grid;
    margin-left: auto;
  }
}

@media (max-width: 575px) {
  .site-header {
    padding: 0 8px;
  }

  .nav-shell {
    min-height: 62px;
  }

  .brand-logo {
    width: 100px;
    min-height: 48px;
  }

  .brand-logo img,
  .header-scrolled .brand-logo img {
    height: 39px;
  }

  .mobile-menu-toggle {
    width: 40px;
    height: 40px;
  }

  .mobile-drawer {
    width: calc(100vw - 14px);
    height: calc(100dvh - 14px);
    top: 7px;
    right: -100vw;
    border-radius: 22px;
  }

  .mobile-drawer.open {
    right: 7px;
  }

  .mobile-drawer-hero {
    min-height: 175px;
    border-radius: 22px 22px 18px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #header *,
  .mobile-drawer *,
  .mobile-menu-backdrop {
    animation: none !important;
    transition: none !important;
  }
}

.desktop-nav a:focus-visible,
.nav-dropdown-toggle:focus-visible,
.book-toggle:focus-visible,
.mobile-menu-toggle:focus-visible {
  outline: 3px solid rgba(212, 111, 20, 0.48);
  outline-offset: 3px;
}
