/* Bikeley Homepage Overrides (Airbnb-ish polish)
   Loaded AFTER app.css. Keep changes scoped to homepage elements.
*/

/* 1) Header: readable on ALL backgrounds */
.site-header.site-header--overlay{
  background: rgba(255,255,255,0.86);
  border-bottom: 1px solid rgba(15,23,42,0.10);
  color: var(--text);
  backdrop-filter: blur(12px);
}
.site-header.site-header--overlay .nav__brand span,
.site-header.site-header--overlay .nav__links a{
  color: var(--text);
}
.site-header.site-header--overlay .btn--pill{
  background: rgba(255,255,255,0.90);
  border-color: rgba(15,23,42,0.14);
}
.site-header.site-header--overlay .btn--pill:hover{
  background: rgba(255,255,255,0.98);
}

/* Slightly more solid when scrolled (app.js toggles .is-solid) */
.site-header.site-header--overlay.is-solid{
  background: rgba(255,255,255,0.94);
}

/* 2) Hero search: tighter, clearer, consistent */
.home-search.searchbar{
  border: 1px solid rgba(15,23,42,0.14);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 10px 28px rgba(15,23,42,0.16);

  transition: box-shadow 220ms cubic-bezier(0.2,0,0,1), transform 220ms cubic-bezier(0.2,0,0,1);
  will-change: box-shadow, transform;
}


.home-search.searchbar.is-engaged{
  box-shadow: 0 16px 44px rgba(15,23,42,0.20);
  transform: translateY(-1px);
}

.home-search .searchbar__btn{
  transition: transform 220ms cubic-bezier(0.2,0,0,1), padding 220ms cubic-bezier(0.2,0,0,1), box-shadow 220ms cubic-bezier(0.2,0,0,1);
  transform-origin: right center;
}

@media (min-width: 981px){
  .home-search.searchbar.is-engaged .searchbar__btn{
    padding-left: 22px;
    padding-right: 22px;
    transform: scale(1.03);
    box-shadow: 0 14px 34px rgba(0,0,0,0.18);
  }
}

@media (prefers-reduced-motion: reduce){
  .home-search.searchbar,
  .home-search .searchbar__field,
  .home-search .dd-panel,
  .home-search .searchbar__btn{
    transition: none !important;
    transform: none !important;
  }
}
.home-search .searchbar__field{
  border-radius: 999px;
  transition: background 200ms cubic-bezier(0.2,0,0,1), box-shadow 200ms cubic-bezier(0.2,0,0,1);
}
.home-search .searchbar__field:hover{
  background: rgba(15,23,42,0.03);
}
.home-search .searchbar__field.is-active{
  background: #fff;
  box-shadow: 0 12px 26px rgba(15,23,42,0.18);
}

.home-search .searchbar__label{
  letter-spacing: .08em;
  color: rgba(15,23,42,0.62);
}

.home-search .searchbar__input,
.home-search .searchbar__control--btn{
  font-size: 15px;
}

.home-search .searchbar__input::placeholder{
  color: rgba(15,23,42,0.40);
}

/* 3) Dropdowns: same design language as cards */
.home-search .dd-panel{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.12);
  box-shadow: 0 18px 46px rgba(15,23,42,0.20);
  overflow: hidden;
  z-index: 80;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 220ms cubic-bezier(0.2,0,0,1), transform 220ms cubic-bezier(0.2,0,0,1);
}

.dd-panel.is-open{
  opacity: 1;
  transform: translateY(0);
}

.home-search .dd-panel__head{
  padding: 14px 14px 10px 14px;
  border-bottom: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.98);
}

.home-search .dd-item{
  border-radius: 14px;
}

.home-search .dd-item:hover{
  background: rgba(15,23,42,0.05);
}

/* 4) Subfilters row: make it feel like an “expanded” part of search */
.hero-filters{
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 26px rgba(15,23,42,0.14);
}

.hero-filters__label{
  color: rgba(15,23,42,0.72);
}

/* 5) Section rhythm (mobile especially) */
@media (max-width: 720px){
  .hero__content{ padding: 76px 16px 28px 16px; }

  .home-search.searchbar{
    border-radius: 24px;
    padding: 10px;
  }

  /* Stack fields nicely */
  .home-search .searchbar__field{
    padding: 14px 14px;
    background: rgba(15,23,42,0.03);
    border-radius: 18px;
  }

  .home-search .searchbar__divider{ display:none !important; }

  .home-search .searchbar__btn{
    width: 100%;
    justify-content: center;
    border-radius: 18px;
    margin: 10px 0 0 0;
    box-sizing: border-box;
  }

/* Mobile dropdowns: normal dropdown overlay (no bottom sheet) */
.home-search .dd-panel{
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: calc(100% + 10px) !important;
  bottom: auto !important;
  width: 100% !important;
  max-height: min(52vh, 360px) !important;
  overflow: auto !important;
}

  .section{ margin: 22px 0; }
  .section__title{ font-size: 20px; }
  .section__sub{ font-size: 13px; }
}

@media (max-width: 980px){
  .home-search .searchbar__input,
  .home-search .searchbar__control--btn{ font-size: 14px; }
}

/* 6) IMPORTANT: Desktop should feel emotional (full-bleed hero + image-driven sections)
   Some setups cached app.css without the hero--full helper.
   So we force full-bleed via .hero--home (homepage-only). */
.hero--home{
  width:100vw !important;
  margin-left:calc(50% - 50vw) !important;
  margin-right:calc(50% - 50vw) !important;
}

/* Make the hero image feel more "cinematic" on desktop */
@media (min-width: 980px){
  .hero--home{ min-height: 74vh; }
  .hero--home .hero__content{ max-width: min(1180px, calc(100vw - 64px)); padding: 120px 32px 64px 32px; }
  .hero--home .hero__title{ max-width: 760px; font-size: 56px; line-height: 1.04; }
  .hero--home .hero__lead{ max-width: 640px; font-size: 18px; }
  .home-search.searchbar{ max-width: 860px; }
}

/* 7) Categories as large image tiles (instead of small pills) */
.cat-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.cat-tile{
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  min-height: 178px;
  text-decoration: none;
  color: #fff;
  background: #0b1220;
  box-shadow: 0 16px 40px rgba(2,6,23,0.16);
  transform: translateZ(0);
}

.cat-tile::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(180deg, rgba(2,6,23,0.10) 0%, rgba(2,6,23,0.62) 72%, rgba(2,6,23,0.82) 100%),
    var(--cat-bg);
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 260ms ease;
}

.cat-tile::after{
  content:"";
  position:absolute;
  inset:0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}

.cat-tile:hover::before{ transform: scale(1.03); }

.cat-tile__inner{ position:relative; z-index:2; height:100%; padding:18px 18px 16px 18px; display:flex; }
.cat-tile__top{ display:flex; align-items:flex-end; gap:12px; width:100%; }

.cat-tile__icon{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.18);
  flex: 0 0 46px;
}

.cat-tile__icon img{ width: 24px; height: 24px; filter: invert(1); opacity: 0.95; }

.cat-tile__text{ flex:1; min-width:0; }
.cat-tile__title{ font-size: 18px; font-weight: 950; letter-spacing: -0.01em; line-height: 1.1; }
.cat-tile__meta{ margin-top: 6px; font-size: 13px; font-weight: 750; color: rgba(255,255,255,0.85); line-height: 1.25; max-width: 34ch; }

.cat-tile__arrow{ font-size: 18px; font-weight: 900; opacity: 0.92; padding-bottom: 2px; }

@media (max-width: 980px){
  .cat-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 720px){
  .cat-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .cat-tile{ min-height: 132px; border-radius: 22px; }
  .cat-tile__inner{ padding: 14px; }
  .cat-tile__title{ font-size: 14px; }
  .cat-tile__meta{ font-size: 12px; }
  .cat-tile__icon{ width: 38px; height: 38px; border-radius: 14px; flex: 0 0 38px; }
  .cat-tile__icon img{ width: 20px; height: 20px; }
}

@media (max-width: 420px){
  .cat-grid{ grid-template-columns: 1fr; }
}

/* 8) Regions: make cards more visual (use background cover if available) */
.region-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
  margin-top: 18px;
}
@media (max-width: 980px){
  .region-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px){
  .region-grid{ grid-template-columns: 1fr; gap: 12px; }
}

.region-card{
  position:relative;
  border-radius: 24px;
  overflow:hidden;
  min-height: 190px;
  text-decoration:none;
  color:#fff;
  background:#0b1220;
  box-shadow: 0 16px 40px rgba(2,6,23,0.14);
}

.region-card::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(180deg, rgba(2,6,23,0.08) 0%, rgba(2,6,23,0.58) 70%, rgba(2,6,23,0.82) 100%),
    var(--region-bg);
  background-size: cover;
  background-position: center;
}

.region-card__inner{ position:relative; z-index:2; height:100%; display:flex; flex-direction:column; justify-content:flex-end; padding:18px; }
.region-card__title{ font-size: 18px; font-weight: 950; letter-spacing:-0.01em; }
.region-card__meta{ margin-top: 6px; font-size: 13px; font-weight: 750; color: rgba(255,255,255,0.86); }

/* 9) Remove "blue link" feel in the homepage content */
.section a{ color: inherit; }
.section a:hover{ text-decoration:none; }



/* Near-me row */
.home-search .dd-item--near{
  background: rgba(255, 59, 92, 0.08);
}
.home-search .dd-item--near:hover{
  background: rgba(255, 59, 92, 0.12);
}

@media (max-width: 720px){
  /* Footer on mobile: keep it short (Airbnb does heavy footer mostly on desktop) */
  .site-footer__discover{ display: none; }
}
