/* Shared SynApps content width + header + banner (home + nobat) */

:root {
  --abanteb-content-max: 1300px;
  --abanteb-content-pad: 15px;
  --abanteb-header-h: 100px;
  --abanteb-hero-min-h: calc(100dvh - var(--abanteb-header-h));
  --abanteb-header-btn-w: 142px;
  --abanteb-header-btn-h: 52px;
  --abanteb-logo-size: 72px;
  --abanteb-nav-fs: 15px;
  --abanteb-btn-fs: 15px;
  --abanteb-header-font: Estedad, "Vazir FD-WOL", Tahoma, sans-serif;
}

/* Keep content width identical even when one page shows a scrollbar */
html {
  scrollbar-gutter: stable;
}

/* Single content column for BOTH themes — beats Bootstrap breakpoint max-widths */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
  max-width: var(--abanteb-content-max) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--abanteb-content-pad) !important;
  padding-right: var(--abanteb-content-pad) !important;
  box-sizing: border-box !important;
}

.abanteb-site-header.main-header,
.abanteb-site-header .header-sticky,
.abanteb-site-header .navbar,
.abanteb-site-header .container,
.abanteb-site-header * {
  box-sizing: border-box;
}

.abanteb-site-header.main-header {
  position: relative !important;
  z-index: 100 !important;
  height: var(--abanteb-header-h) !important;
  min-height: var(--abanteb-header-h) !important;
  max-height: var(--abanteb-header-h) !important;
  background: #004050 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  font-family: var(--abanteb-header-font) !important;
}

.abanteb-site-header .header-sticky {
  position: relative !important;
  top: 0 !important;
  height: var(--abanteb-header-h) !important;
  min-height: var(--abanteb-header-h) !important;
  max-height: var(--abanteb-header-h) !important;
  transform: none !important;
  background: transparent !important;
  border: 0 !important;
}

.abanteb-site-header .navbar {
  padding: 0 !important;
  margin: 0 !important;
  align-items: center !important;
  height: var(--abanteb-header-h) !important;
  min-height: var(--abanteb-header-h) !important;
  max-height: var(--abanteb-header-h) !important;
}

/* Fixed 3-zone header: logo | menu | buttons — identical on both pages */
.abanteb-site-header .navbar > .container.abanteb-header-bar {
  display: grid !important;
  grid-template-columns: var(--abanteb-logo-size) minmax(0, 1fr) auto !important;
  align-items: center !important;
  column-gap: 16px !important;
  height: var(--abanteb-header-h) !important;
  max-width: var(--abanteb-content-max) !important;
  padding-left: var(--abanteb-content-pad) !important;
  padding-right: var(--abanteb-content-pad) !important;
}

.abanteb-site-header .navbar-brand {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 0 !important;
  width: var(--abanteb-logo-size) !important;
  max-width: var(--abanteb-logo-size) !important;
  height: var(--abanteb-logo-size) !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-column: 1 !important;
  justify-self: start !important;
}

.abanteb-site-header .navbar-brand img {
  display: block !important;
  width: var(--abanteb-logo-size) !important;
  height: var(--abanteb-logo-size) !important;
  max-width: var(--abanteb-logo-size) !important;
  max-height: var(--abanteb-logo-size) !important;
  object-fit: contain !important;
}

/* Flatten nested bootstrap collapse so children join the header grid */
.abanteb-site-header .main-menu.navbar-collapse {
  display: contents !important;
  flex: unset !important;
  margin: 0 !important;
  padding: 0 !important;
}

.abanteb-site-header .nav-menu-wrapper {
  grid-column: 2 !important;
  margin: 0 !important;
  text-align: center !important;
  min-width: 0 !important;
}

.abanteb-site-header .nav-menu-wrapper > ul,
.abanteb-site-header .nav-menu-wrapper > ul.navbar-nav {
  align-items: center !important;
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.abanteb-site-header .main-menu ul li {
  margin: 0 !important;
  padding: 0 !important;
}

.abanteb-site-header .main-menu ul li a.nav-link,
.abanteb-site-header .main-menu ul li a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--abanteb-header-font) !important;
  font-size: var(--abanteb-nav-fs) !important;
  font-weight: 700 !important;
  font-style: normal !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 8px 10px !important;
  margin: 0 !important;
  white-space: nowrap !important;
  opacity: 1 !important;
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.abanteb-site-header .main-menu ul li a.nav-link:hover,
.abanteb-site-header .main-menu ul li a:hover,
.abanteb-site-header .main-menu ul li a.nav-link:focus,
.abanteb-site-header .main-menu ul li a:focus {
  color: #00cc61 !important;
  opacity: 1 !important;
}

.abanteb-site-header .header-btn.header-cta-group,
.abanteb-site-header .header-cta-group {
  grid-column: 3 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
  justify-self: end !important;
}

.abanteb-site-header .header-cta-group .btn-default {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: var(--abanteb-header-btn-w) !important;
  min-width: var(--abanteb-header-btn-w) !important;
  max-width: var(--abanteb-header-btn-w) !important;
  height: var(--abanteb-header-btn-h) !important;
  min-height: var(--abanteb-header-btn-h) !important;
  max-height: var(--abanteb-header-btn-h) !important;
  padding: 0 14px !important;
  margin: 0 !important;
  font-family: var(--abanteb-header-font) !important;
  font-size: var(--abanteb-btn-fs) !important;
  font-weight: 700 !important;
  font-style: normal !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  transform: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, filter 0.2s ease !important;
}

.abanteb-site-header .header-cta-group .btn-default::before,
.abanteb-site-header .header-cta-group .btn-default::after {
  display: none !important;
  content: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}

.abanteb-site-header .header-cta-group .btn-header-ghost {
  background: transparent !important;
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.55) !important;
}

.abanteb-site-header .header-cta-group .btn-header-ghost:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
}

.abanteb-site-header .header-cta-group .btn-default.btn-highlighted {
  background: #00cc61 !important;
  color: #fff !important;
  border: 1.5px solid #00cc61 !important;
}

.abanteb-site-header .header-cta-group .btn-default.btn-highlighted:hover {
  filter: brightness(1.06);
  background: #00cc61 !important;
  color: #fff !important;
}

.abanteb-site-header .navbar-toggle {
  display: none !important;
}

/* Unified top banner height on home + nobat */
.hero,
.hero.nobat-hero {
  height: var(--abanteb-hero-min-h) !important;
  min-height: var(--abanteb-hero-min-h) !important;
  max-height: var(--abanteb-hero-min-h) !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
  overflow: hidden !important;
}

/* Nobat booking combos must escape the banner into the results strip */
.hero.nobat-hero {
  overflow: visible !important;
}

.hero > .container,
.hero.nobat-hero > .container {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 0 !important;
  width: 100% !important;
  max-width: var(--abanteb-content-max) !important;
}

.hero > .container > .row,
.hero.nobat-hero > .container > .row {
  align-items: center !important;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

@media (max-width: 991px) {
  .abanteb-site-header .header-cta-group,
  .abanteb-site-header .nav-menu-wrapper {
    display: none !important;
  }

  .abanteb-site-header .navbar > .container.abanteb-header-bar {
    grid-template-columns: var(--abanteb-logo-size) 1fr auto !important;
  }

  .abanteb-site-header .navbar-toggle {
    display: block !important;
    grid-column: 3 !important;
    justify-self: end !important;
  }

  .hero,
  .hero.nobat-hero {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    padding-top: 20px !important;
    padding-bottom: 28px !important;
    overflow: visible !important;
  }
}
