/* ============================================================
   CarHireGibraltar.com — theme overrides
   Small patch-up layer that sits on top of theme.css (Front)
   to fix the things the Front vendor JS would normally handle.
   ============================================================ */

/* Hard white background everywhere — ensures no grey fallback even
   if another stylesheet leaks in. */
html, body {
  background-color: #fff !important;
}

/* The Front theme uses "header-abs-top" + "header-bg-transparent"
   which absolutely-positions the header over a hero image. We've
   dropped that in favour of a solid white header in normal flow,
   so neutralise any leftover absolute-positioning rules. */
#header.header {
  position: relative !important;
  background-color: #fff !important;
}
#header.header .header-section {
  background-color: #fff !important;
}

/* The theme expects JS to add a "body padding-top" to compensate
   for the absolute header — without JS the page would otherwise
   look squashed. Since we made the header relative, no compensation
   needed. */
body.has-header-abs-top-lg,
body.has-header-abs-top-md,
body.has-header-abs-top {
  padding-top: 0 !important;
}

/* Hide the "search push top" panel — it's a vendor JS animation
   that we're not loading, so it would otherwise flash on load. */
#searchPushTop {
  display: none !important;
}

/* Ensure main content sits on white, not whatever fallback bg */
main#content {
  background-color: #fff;
}

/* Polish: the nav links are already coloured #da000c inline in menu.php;
   ensure hover state picks up the darker red for feedback */
.navbar-nav-item a.nav-link:hover {
  color: #a00008 !important;
}

/* Mobile nav: when collapsed menu is expanded, give it a white bg
   instead of the theme's default transparent (which shows grey through) */
@media (max-width: 991.98px) {
  #navBar.navbar-collapse.show,
  #navBar.navbar-collapse.collapsing {
    background-color: #fff;
    padding: 1rem;
    border-top: 1px solid #eee;
  }
}
