/* =====================================================================
   Unicon Hospitality - HOMEPAGE HERO (index.html only)
   One full-width, full-height video showcase + header that is transparent over it.
   Everything here is scoped to .un-hero / .un-header--hero, so internal pages are unaffected.
   ===================================================================== */

/* ---------- hero video ---------- */
.un-hero{position:relative;width:100%;max-width:100vw;height:100vh;height:100svh;height:100dvh;min-height:560px;overflow:hidden;background:#18130e;color:#fff}
.un-hero__video{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-webkit-transform:translate(-50%,-50%);min-width:100%;min-height:100%;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;object-position:center;display:block;pointer-events:none;will-change:transform;backface-visibility:hidden;-webkit-backface-visibility:hidden}
/* darkens the top (readable header) and the bottom (readable text + booking bar), crystal-clear center for pure video quality */
.un-hero__shade{position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,rgba(25,20,15,.55) 0%,rgba(25,20,15,.22) 16%,rgba(0,0,0,0) 32%,rgba(0,0,0,0) 62%,rgba(25,20,15,.38) 78%,rgba(25,20,15,.72) 100%)}

/* existing hero copy, single block, bottom-left above the booking bar */
.un-hero__content{position:absolute;left:0;right:0;bottom:0;z-index:2;margin:0 auto;padding-bottom:190px}
.un-hero__content h1{max-width:760px;margin:0 0 16px;color:#fff;font-size:clamp(34px,5vw,68px);line-height:1.1;text-shadow:0 2px 24px rgba(0,0,0,.35)}
.un-hero__content .sub__text{max-width:560px;margin:0 0 26px;color:rgba(255,255,255,.92);font-size:clamp(15px,1.4vw,18px);line-height:1.6}
.un-hero__content .theme-btn{margin:0}

/* ---------- booking bar: sits over the bottom edge of the hero ---------- */
.un-hero+.advance__search__section.is__home__one{position:relative;z-index:5;margin-top:-125px}
.un-hero+.advance__search__section .advance__search{box-shadow:0 24px 60px rgba(0,0,0,.25)}
/* desktop: the Check Now button fills the bar's full height on the right, so no white strip shows under it */
@media (min-width:993px){
  .un-hero+.advance__search__section .advance__search{padding:0 0 0 22px}
  .un-hero+.advance__search__section .advance__search__wrapper{align-items:stretch;min-height:88px}
  .un-hero+.advance__search__section .advance__search__wrapper .query__input{align-self:center}
  .un-hero+.advance__search__section .advance__search__wrapper .search__btn{height:auto;align-self:stretch;border-radius:0;padding-left:34px;padding-right:34px;width:auto;white-space:nowrap;flex-shrink:0}
}

/* ---------- header: transparent over the video, white after scrolling ---------- */
.un-header--hero{position:fixed;top:0;left:0;right:0;background:rgba(0,0,0,.18);border-bottom:1px solid transparent;
  -webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);
  transition:background-color .35s ease,box-shadow .35s ease,border-color .35s ease}
.un-header--hero.is-solid{background:#fff;border-bottom-color:var(--un-line);box-shadow:0 4px 18px rgba(0,0,0,.08);-webkit-backdrop-filter:none;backdrop-filter:none}
/* transparent state: light text shadow for legibility over the video */
.un-header--hero:not(.is-solid) .un-nav__link{text-shadow:0 1px 3px rgba(0,0,0,.35)}
/* transparent state: white text / logo (the header height never changes, so nothing jumps) */
.un-header--hero:not(.is-solid) .un-nav__link{color:#fff}
.un-header--hero:not(.is-solid) .un-nav__link:hover,
.un-header--hero:not(.is-solid) .un-nav__item.is-open>.un-nav__link,
.un-header--hero:not(.is-solid) .un-nav__link[aria-current="page"]{color:#fff}
.un-header--hero:not(.is-solid) .un-nav__link::after{background:#fff}
.un-header--hero:not(.is-solid) .un-book{border-color:#fff}

@media (max-width:1199px){
  .un-hero__content{padding-bottom:150px}
}
/* tablet / mobile: booking bar stacks, so it follows the hero with only a small overlap */
@media (max-width:992px){
  .un-hero+.advance__search__section.is__home__one{margin-top:-40px}
  .un-hero__content{padding-bottom:80px}
}
@media (max-width:576px){
  .un-hero{min-height:520px}
  .un-hero__content{padding-bottom:70px}
  .un-hero+.advance__search__section .advance__search{border-radius:12px}
  .un-hero+.advance__search__section>.container{padding-left:12px;padding-right:12px}
}

/* ---------- spacing: seamless transition from booking bar to About section with comfortable breathing room ---------- */
.un-hero+.advance__search__section+.about__area.is__home__main{position:relative;z-index:2;margin-top:-2px;padding-top:80px}
@media (max-width:1200px){.un-hero+.advance__search__section+.about__area.is__home__main{padding-top:65px}}
@media (max-width:992px){.un-hero+.advance__search__section+.about__area.is__home__main{margin-top:0;padding-top:50px}}
@media (max-width:768px){.un-hero+.advance__search__section+.about__area.is__home__main{margin-top:0;padding-top:40px}}

/* ---------- phones / small tablets: landscape video in a shorter hero so more of the frame shows ---------- */
@media (max-width:767px){
  .un-hero{height:62vh;height:62svh;min-height:440px;max-height:600px}
  .un-hero__video{object-position:50% 45%}
  /* stronger bottom fade so the heading stays readable on any frame; lighter top so the video stays vivid */
  .un-hero__shade{background:linear-gradient(180deg,rgba(25,20,15,.5) 0%,rgba(25,20,15,.12) 22%,rgba(0,0,0,0) 40%,rgba(25,20,15,.45) 66%,rgba(25,20,15,.82) 100%)}
  .un-hero__content{padding-bottom:64px}
  .un-hero__content h1{font-size:clamp(30px,8.4vw,38px);line-height:1.14;margin-bottom:0;max-width:92%}
}
@media (max-width:767px) and (orientation:landscape){
  .un-hero{height:auto;min-height:100svh;max-height:none}
}
@media (prefers-reduced-motion:reduce){.un-hero__video{display:none}.un-hero{background:#18130e url(../images/unicon/banner/1.jpg) center/cover no-repeat}}
