@import url('/css/brand.css');

/* ===== Hero ===== */
#banner.hero-hpk {
  position: relative;
  min-height: min(92vh, 720px);
  height: auto;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(7, 20, 12, 0.88) 0%, rgba(20, 83, 45, 0.58) 45%, rgba(242, 140, 29, 0.42) 100%),
    url(../images/banner.jpg) center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#banner.hero-hpk::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 179, 71, 0.24), transparent 40%),
    linear-gradient(180deg, transparent 40%, rgba(7, 20, 12, 0.58) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 5.5rem 0 1.25rem;
  max-width: 760px;
  animation: hpkFadeUp 0.7s ease both;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.hero-tenant {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: rgba(255, 255, 255, 0.92);
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  color: #fff;
  margin: 0 0 0.65rem;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  max-width: 34rem;
  margin: 0;
}

#search-banner-trip {
  position: relative;
  z-index: 3;
  background: rgba(247, 251, 252, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 22px !important;
  box-shadow: var(--hpk-shadow);
  margin-bottom: 1.75rem;
  padding: 0.5rem 0.25rem 0.75rem;
  animation: hpkFadeUp 0.85s 0.12s ease both;
}

#search-banner-trip .form-select,
#search-banner-trip .form-control {
  background: #fff !important;
  border: 1px solid var(--hpk-line);
  border-radius: 12px;
  font-weight: 500;
  color: var(--hpk-ink);
}

#search-banner-trip .form-select:focus,
#search-banner-trip .form-control:focus {
  border-color: var(--hpk-teal);
  box-shadow: 0 0 0 0.2rem rgba(18, 138, 158, 0.18);
}

.border-item {
  border-right: none;
  align-items: center;
  gap: 0.35rem;
}

.border-item i {
  color: var(--hpk-coral);
}

.select-search {
  background-color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}

#search-banner-trip hr {
  opacity: 0.15;
  border-color: var(--hpk-ink);
}

.type-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--hpk-line);
  background: #fff;
  color: var(--hpk-deep);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.type-chip:hover {
  border-color: var(--hpk-teal);
  color: var(--hpk-teal);
}

.type-chip:has(input:checked),
.type-chip.is-active {
  background: linear-gradient(135deg, var(--hpk-coral), var(--hpk-coral-deep));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 77, 46, 0.28);
}

.type-chip input {
  display: none;
}

.type-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

#btn-search {
  background: linear-gradient(135deg, var(--hpk-coral) 0%, var(--hpk-coral-deep) 100%);
  color: #fff;
  border: none;
  border-radius: 16px;
  min-height: 3.4rem;
  box-shadow: 0 12px 26px rgba(255, 77, 46, 0.32);
  transition: transform 0.2s ease, filter 0.2s ease;
  animation: hpkPulseSoft 2.8s ease-in-out infinite;
}

#btn-search:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.06);
  animation: none;
}

/* ===== Sections ===== */
.home-section {
  padding: 3.25rem 0 1rem;
}

.home-section--tight {
  padding-top: 1.75rem;
}

.home-section--mist {
  background: linear-gradient(180deg, rgba(234, 246, 238, 0.75) 0%, transparent 100%);
  padding: 3.25rem 0 2.5rem;
  margin-top: 1rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hpk-coral-deep);
  margin: 0 0 0.35rem;
}

.section-kicker--light {
  color: var(--hpk-gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--hpk-ink);
  margin: 0;
}

.section-desc {
  color: rgba(5, 42, 51, 0.65);
  margin: 0.4rem 0 0;
  max-width: 34rem;
}

.section-link {
  font-weight: 700;
  color: var(--hpk-deep);
  white-space: nowrap;
}

.section-link:hover {
  color: var(--hpk-coral-deep);
}

/* Popular routes */
.route-card {
  display: block;
  background: #fff;
  border: 1px solid var(--hpk-line);
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  color: inherit;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  animation: hpkFadeUp 0.65s ease both;
}

.route-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hpk-shadow);
  border-color: rgba(242, 140, 29, 0.35);
  color: inherit;
}

.route-card__media {
  height: 11rem;
  overflow: hidden;
}

.route-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.route-card:hover .route-card__media img {
  transform: scale(1.06);
}

.route-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.route-card__body h3 {
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
  color: var(--hpk-ink);
}

.route-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  color: var(--hpk-coral-deep);
  font-weight: 700;
}

.route-card__cta {
  font-size: 0.85rem;
  color: var(--hpk-deep);
  font-weight: 600;
}

/* Destinations mosaic */
.dest-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 11.5rem;
  gap: 0.85rem;
}

.dest-tile {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  display: block;
  color: #fff;
  box-shadow: 0 10px 28px rgba(5, 42, 51, 0.12);
  transition: transform 0.28s ease;
}

.dest-tile--lg {
  grid-column: span 2;
  grid-row: span 2;
}

.dest-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dest-tile:hover {
  transform: translateY(-4px);
  color: #fff;
}

.dest-tile:hover img {
  transform: scale(1.07);
}

.dest-tile__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, transparent 28%, rgba(11, 31, 20, 0.78) 100%);
}

.dest-tile__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(242, 140, 29, 0.92);
  color: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.35rem;
}

.dest-tile h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0;
}

.dest-tile--lg h3 {
  font-size: 1.65rem;
}

/* Partners rail */
.partner-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.partner-card {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  height: 15rem;
  scroll-snap-align: start;
  color: #fff;
  box-shadow: 0 12px 28px rgba(11, 31, 20, 0.12);
  transition: transform 0.28s ease;
}

.partner-card:hover {
  transform: translateY(-4px);
  color: #fff;
}

.partner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.partner-card:hover img {
  transform: scale(1.05);
}

.partner-card__label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.1rem 1rem 0.95rem;
  background: linear-gradient(180deg, transparent, rgba(11, 31, 20, 0.88));
}

.partner-card__label h3 {
  font-size: 1rem;
  margin: 0 0 0.2rem;
}

.partner-card__label span {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* Promo / news */
.promo-banner,
.news-card {
  display: block;
  background: #fff;
  border: 1px solid var(--hpk-line);
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.promo-banner:hover,
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hpk-shadow);
  color: inherit;
}

.promo-banner img,
.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.promo-banner__body,
.news-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.promo-banner__body h3,
.news-card__body h3 {
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}

.promo-banner__body p,
.news-card__body p {
  margin: 0;
  color: rgba(5, 42, 51, 0.65);
  font-size: 0.92rem;
}

/* Why DATVE */
.why-panel {
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(11, 31, 20, 0.88) 0%, rgba(20, 83, 45, 0.72) 48%, rgba(224, 106, 0, 0.55) 100%),
    url(/images/home/travel.jpg) center / cover no-repeat;
  padding: 2rem 1.5rem 1.75rem;
  box-shadow: var(--hpk-shadow);
}

.why-panel__intro {
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.why-panel__sub {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.why-item {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 1.15rem 1rem;
  color: #fff;
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.why-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.18);
}

.why-item i {
  font-size: 1.35rem;
  color: var(--hpk-gold);
  margin-bottom: 0.65rem;
}

.why-item h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  color: #fff;
}

.why-item p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

/* Reviews */
.review-card {
  background: #fff;
  border: 1px solid var(--hpk-line);
  border-radius: 18px;
  padding: 1.2rem;
  height: 100%;
  box-shadow: 0 8px 22px rgba(11, 31, 20, 0.06);
  transition: transform 0.25s ease;
}

.review-card:hover {
  transform: translateY(-3px);
}

.review-card__top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.review-card__top img {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  object-fit: cover;
}

.review-card__top h3 {
  font-size: 1rem;
  margin: 0 0 0.2rem;
}

.review-card__stars {
  color: #e6a100;
  font-size: 0.85rem;
}

.review-card > p {
  margin: 0;
  color: rgba(5, 42, 51, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* legacy helpers still used elsewhere */
.popular-trip-item {
  background: #fff;
  border: 1px solid var(--hpk-line);
  border-radius: 18px;
  overflow: hidden;
}

/* Homepage rental promo */
.rental-home {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1.75rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--hpk-line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(11, 31, 20, 0.08);
}

.rental-home__media {
  min-height: 16rem;
}

.rental-home__media img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
  display: block;
}

.rental-home__body {
  padding: 1.5rem 1.5rem 1.5rem 0.25rem;
}

.rental-home__points {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
}

.rental-home__points li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
  color: rgba(11, 31, 20, 0.82);
  font-weight: 500;
}

.rental-home__points i {
  color: var(--hpk-teal);
  font-size: 0.85rem;
}

.rental-home__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (max-width: 991px) {
  #banner.hero-hpk {
    min-height: auto;
    padding-bottom: 0.5rem;
  }

  .hero-copy {
    padding-top: 3.5rem;
  }

  .border-item {
    margin-bottom: 0.25rem;
  }

  #btn-search {
    width: 100%;
    margin-bottom: 0.75rem;
  }

  .rental-home {
    grid-template-columns: 1fr;
  }

  .rental-home__body {
    padding: 0 1.15rem 1.35rem;
  }

  .rental-home__media img {
    min-height: 13rem;
  }

  .dest-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 10.5rem;
  }

  .dest-tile--lg {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 12rem;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  .dest-mosaic {
    grid-template-columns: 1fr;
  }

  .dest-tile--lg {
    grid-column: span 1;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .partner-rail {
    grid-auto-columns: 78vw;
  }
}
