/*
  Custom styles for Wine Voyage (RentalHive Child Theme)
  ------------------------------------------------------
  Add any site-specific or carousel-related CSS tweaks here.
*/

/* ---------------------------
  Header / Hero visual fixes
  --------------------------- */

/* Ensure header sits above hero */
/* .header-navbar {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0);
  transition: background 0.25s ease, color 0.25s ease;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
} */

/* Transparent header (default state) -> white links for contrast */
/* .header-navbar, .header-navbar * {
  color: inherit;
}
.header-navbar a,
.header-navbar .menu-item a,
.header-navbar .site-title,
.header-navbar .site-branding {
  color: #fff !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
} */

/* When scrolled, header becomes solid and text goes dark */
/* body.scrolled .header-navbar {
  background: rgba(255,255,255,0.95) !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.scrolled .header-navbar a,
body.scrolled .header-navbar .site-title,
body.scrolled .header-navbar .site-branding {
  color: #111 !important;
  text-shadow: none !important;
} */

/* Full-bleed hero baseline */
.header-hero {
  position: relative !important;
  width: 100vw !important;
  left: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: hidden;
  box-sizing: border-box;
  z-index: 1; /* stays below header */
}

/* Hero image sizing */
.header-hero img,
.header-hero picture,
.header-hero figure {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
}

/* IMPORTANT: force inner content to use the computed offset so H1 sits below header */
.header-hero .header-hero__content,
.header-hero .wp-block-cover__inner-container,
.header-hero .hero-content,
.header-hero .container {
  position: relative !important;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  /* the JS sets --header-offset dynamically — this ensures the H1 is pushed down */
  padding-top: var(--header-offset, 160px) !important;
  padding-bottom: 120px !important;
  box-sizing: border-box;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

/* If the theme was forcing grey links with higher specificity, add this */
/* .header-navbar .menu-item a,
.header-navbar .menu-toggle,
.header-navbar .site-title a {
  color: #fff !important;
} */

/* small screens */
@media (max-width: 768px) {
  :root { --header-offset: 120px; }
  .header-hero .header-hero__content,
  .header-hero .wp-block-cover__inner-container {
    padding-top: var(--header-offset) !important;
    padding-bottom: 80px !important;
  }
}

/* ==============================
   Slimmer header adjustments
   ============================== */
/* .header-navbar {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
  min-height: 70px !important; /* reduce overall height */
}

.header-navbar__middle .site-branding img {
  max-height: 50px !important; /* logo smaller if needed */
} */

/* Align dropdown menu closer to header bottom */
/* .header-navbar__middle .sub-menu {
  top: 100% !important;
  margin-top: 0 !important;
  padding-top: 0.5rem !important;
} */

/* ============================================================
   FULLSCREEN MEGA MENU — Final Version (Black Tomato style)
   ============================================================ */

/* Reset default dropdowns */
/* .header-navbar__middle .sub-menu {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  position: absolute;
  left: 0;
  top: 100%;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  z-index: 0;
} */

/* Make sure arrow and icons are white (for transparent header) */
/* .header-navbar__middle li.menu-item-has-children::after {
  color: #fff !important;
}
.header-navbar__middle .hp-icon.fas.fa-user {
  color: #fff !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
} */

/* When scrolled (solid header), make icons dark */
body.scrolled .header-navbar__middle .hp-icon.fas.fa-user {
  color: #111 !important;
  text-shadow: none !important;
}

/* ============================================================
   ACTIVE MEGA MENU STATE
   ============================================================ */

@media (min-width: 992px) {
/*   .header-navbar__middle li.menu-item-has-children.mega-menu-open > .sub-menu {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;

    position: fixed !important;
    inset: 0; /* full screen */
    width: 100vw;
    height: 100vh;
    background: #fff !important;
    z-index: 10000 !important;

    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start;

    padding: 140px 8vw 60px;
    overflow-y: auto;

    animation: fadeInMega 0.3s ease-in-out;
  }

  @keyframes fadeInMega {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  } */

  /* Top-level sub-menu items = big black headings */
/*   .header-navbar__middle li.menu-item-has-children.mega-menu-open > .sub-menu > li > a {
    font-size: 2rem;
    font-weight: 700;
    color: #000 !important;
    margin-bottom: 1rem;
    display: block;
    width: 100%;
  } */

  /* Nested links (second level) = smaller gray text */
/*   .header-navbar__middle .sub-menu .sub-menu li a {
    font-size: 1rem;
    color: #666 !important;
    font-weight: 400;
    margin: 0.3rem 0;
    display: block;
  } */

  /* No borders or underlines */
/*   .header-navbar__middle .sub-menu li {
    border: none !important;
  } */
}

/* Dim background behind the fullscreen menu */
/* body.mega-active {
  overflow: hidden;
}
body.mega-active::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 9999;
  pointer-events: none;
} */

/* Cut long listing titles */
.hp-listing__title {
	display: flex;
	flex-direction: row-reverse;
	justify-content: left;
	align-items: center;
	gap: 0.2em;
}

.hp-listing__title a {
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}

.nav-panels {
	padding-top: 98px;
	color: #000;
}

.nav-panel__close i {
	color: #000 !important;
}

.nav-panel__menu > .menu-item.is-active > .nav-panel__menu.submenu {
    height: 100vh;
}

.hp-listing__images .slick-slide img {
    height: 30rem;
    object-fit: cover;
}

.mega-menu .menu-item .hp-link:not(:hover) i {
    color: inherit;
}

.mega-menu .menu-item a:hover,
.mega-menu .menu-item a:hover i,
.mega-menu .menu-item.active a {
    color: inherit;
}

.header-navbar .mega-menu .menu-item:after {
    background-color: #6f2da8;
}

.hp-template--listing-view-page .site-content,
.archive .site-content,
.blog  .site-content {
    padding-top: 120px;
}

.home .header-hero__content {
	padding-top: 2rem !important;
	padding-bottom: 2rem !important;
}

@media (max-width: 781px) {
  .reverse-mobile {
    flex-direction: column-reverse;
  }
}