/* Home page carousels & footer &mdash; itravel holidays */

:root {
  --home-green: #0d2818;
  --home-green-dot: #00a680;
  --home-footer-bg: #f2f5f0;
}

.home-below-search {
  background: #fff;
  border-bottom: 1px solid var(--border, #d1d9e6);
  /* Reserve space for tour rails before JS injects (CLS) */
  min-height: clamp(28rem, 70vw, 44rem);
}

.home-below-search[aria-busy="false"] {
  min-height: 0;
}

.home-cls-skeleton {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.75rem 1rem;
  display: grid;
  gap: 1.75rem;
}

.home-cls-skeleton__rail {
  height: clamp(12rem, 32vw, 18rem);
  border-radius: 14px;
  background: linear-gradient(90deg, #eef2f7 0%, #f7f9fc 50%, #eef2f7 100%);
  background-size: 200% 100%;
}

.home-below-search .home-section {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.home-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 1.5rem;
}

.home-section__title {
  margin: 0 0 0.25rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--home-green);
  letter-spacing: -0.02em;
}

.home-section__subtitle {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted, #5c6c84);
}

.home-carousel-wrap {
  position: relative;
}

.home-carousel {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.15rem 0 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.home-carousel > .home-card-wrap {
  flex: 0 0 min(280px, 78vw);
  scroll-snap-align: start;
  min-width: 0;
  display: flex;
  align-items: stretch;
}

.home-carousel-wrap--four {
  overflow: hidden;
  padding-right: 0.25rem;
}

.home-carousel--four {
  gap: 1rem;
}

.home-carousel--four > .home-card-wrap {
  flex: 0 0 calc((100% - 3rem) / 4);
  width: calc((100% - 3rem) / 4);
  max-width: calc((100% - 3rem) / 4);
  min-width: calc((100% - 3rem) / 4);
}

@media (max-width: 899px) {
  .home-carousel--four > .home-card-wrap {
    flex: 0 0 calc((100% - 1rem) / 2);
    width: calc((100% - 1rem) / 2);
    max-width: calc((100% - 1rem) / 2);
    min-width: calc((100% - 1rem) / 2);
  }
}

@media (max-width: 559px) {
  .home-carousel--four > .home-card-wrap {
    flex: 0 0 85%;
    width: 85%;
    max-width: 85%;
    min-width: 85%;
  }
}

.home-carousel::-webkit-scrollbar {
  display: none;
}

.home-carousel__next {
  position: absolute;
  top: 38%;
  right: 0.35rem;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border, #d1d9e6);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  color: var(--text, #1a2b49);
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Phones: keep horizontal carousels (card peek + next arrow), clip page overflow */
@media (max-width: 767px) {
  .home-section {
    overflow: visible;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .home-section__title {
    font-size: 1.35rem;
  }
  .home-section__subtitle {
    margin-bottom: 1rem;
  }
  .home-carousel-wrap,
  .home-carousel-wrap--four {
    overflow: visible;
    margin-right: -1rem;
    padding-right: 0;
  }
  .home-carousel,
  .home-carousel--four {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.85rem;
    padding: 0.15rem 1rem 0.65rem 0;
    -webkit-overflow-scrolling: touch;
  }
  .home-carousel > .home-card-wrap,
  .home-carousel--four > .home-card-wrap {
    flex: 0 0 min(78vw, 260px) !important;
    width: min(78vw, 260px) !important;
    max-width: min(78vw, 260px) !important;
    min-width: min(78vw, 260px) !important;
    scroll-snap-align: start;
  }
  .home-carousel__next {
    display: flex;
    right: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    top: 36%;
  }
  .home-card__title {
    font-size: 0.95rem;
    line-height: 1.35;
  }
}

.home-carousel__next:hover {
  background: #fafbfc;
  border-color: #b8c4d4;
}

.home-card {
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.home-card:hover {
  text-decoration: none;
}

.home-card:hover .home-card__title {
  color: var(--link, #1668e3);
}

.home-card__media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 4 / 3;
  height: auto;
  background: #e8ecf2;
}

.home-card--photo .home-card__media,
.home-card-wrap--photo .home-card__media {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
}

.home-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-card__badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
}

.home-card__badge--pkg {
  background: #2563eb;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.home-card__was {
  color: #94a3b8;
  font-weight: 500;
  margin-right: 0.25rem;
  font-size: 0.9em;
}

.home-card-wrap--sale .home-card__price strong {
  color: #b91c1c;
}

.home-card__save {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  font-size: 1.05rem;
  line-height: 1;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.home-card__save.is-saved {
  color: #e11d48;
  background: #fff;
}

.home-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.75rem 0.15rem 0;
  min-height: 7.5rem;
}

.home-card--photo .home-card__body {
  display: none;
}

.home-card__title {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--home-green);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.home-card__quote {
  margin: 0.35rem 0 0.45rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #5c6c84;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-card__rating {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.875rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-card__rating strong {
  font-weight: 700;
}

.home-card__dots {
  display: inline-flex;
  gap: 0.2rem;
}

.home-card__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #c5d4cb;
}

.home-card__dot--on {
  background: var(--home-green-dot);
}

.home-card__reviews {
  color: var(--muted, #5c6c84);
}

.home-card__price {
  margin: auto 0 0;
  padding-top: 0.45rem;
  font-size: 0.875rem;
  color: var(--text, #1a2b49);
  min-height: 1.35em;
}

.home-card__price strong {
  font-weight: 700;
}

/* Why Book With Us &mdash; homepage (above footer) */
.why-book {
  position: relative;
  margin-top: 2.5rem;
  padding: 3rem 1rem 2.75rem;
  color: #0f2744;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(37, 99, 235, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 20%, rgba(14, 165, 233, 0.1), transparent 50%),
    linear-gradient(180deg, #f4f8fd 0%, #eaf1fb 55%, #e3ecf8 100%);
  border-top: 1px solid rgba(37, 99, 235, 0.12);
  overflow: hidden;
}
.why-book::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.15));
  pointer-events: none;
}
.why-book__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}
.why-book__title {
  margin: 0 0 2rem;
  text-align: center;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #12365a;
}
.why-book__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem 2.5rem;
  /* Reserve height before deferred why-book.js fills cards */
  min-height: 42rem;
}
@media (min-width: 760px) {
  .why-book__grid {
    grid-template-columns: 1fr 1fr;
    min-height: 22rem;
  }
}
.why-book__item {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0.95rem;
  align-items: start;
}
.why-book__item--skeleton h3,
.why-book__item--skeleton p {
  background: rgba(37, 99, 235, 0.08);
  border-radius: 6px;
  color: transparent;
}
.why-book__item--skeleton h3 { height: 1.1rem; width: 70%; margin: 0 0 0.5rem; }
.why-book__item--skeleton p { height: 3.2rem; width: 100%; margin: 0; }
.why-book__item--skeleton .why-book__icon {
  background: rgba(37, 99, 235, 0.1);
  border-radius: 10px;
}
.why-book__icon {
  display: inline-flex;
  width: 3.1rem;
  height: 3.1rem;
  color: #2563eb;
  flex-shrink: 0;
}
.why-book__icon svg {
  width: 100%;
  height: 100%;
}
.why-book__item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f2744;
  line-height: 1.3;
}
.why-book__item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4b6280;
}

/* Site footer */
.site-footer {
  background: var(--home-footer-bg);
  color: var(--home-green);
  margin-top: 0;
  padding: 2.5rem 1rem 1.5rem;
  font-size: 0.875rem;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer__grid {
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .site-footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.site-footer__col h3 {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--home-green);
}

.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__col li + li {
  margin-top: 0.55rem;
}

.site-footer__col a {
  color: var(--home-green);
  text-decoration: none;
}

.site-footer__col a:hover {
  text-decoration: underline;
}

.site-footer__bottom {
  border-top: 1px solid #d4ddd0;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.site-footer__brand img {
  height: 28px;
  width: auto;
}

.site-footer__copy {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: #3d5248;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
}

.site-footer__legal a {
  color: var(--home-green);
  text-decoration: underline;
}

.site-footer__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .site-footer__aside {
    align-items: flex-end;
  }
}

.site-footer__selects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid #b8c4b0;
  border-radius: 999px;
  background: #fff;
  color: var(--home-green);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.site-footer__pill:hover {
  border-color: var(--home-green);
}

.site-footer__social {
  display: flex;
  gap: 0.65rem;
}

.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--home-green);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.75rem;
}

.site-footer__social a:hover {
  opacity: 0.75;
}

.site-footer__note {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: #5c6c84;
  max-width: 52rem;
}
