/*
 * Trip Tradition — homepage polish.
 * Loaded on the front page only, after tt-core and tt-global.
 * Keeps the existing design; fixes contrast and refines cards.
 */

.tt-scope {
  --tth-orange: var(--tt-color-brand-orange, #ff5e00);
  --tth-navy: var(--tt-color-deep-navy, #1a365d);
  --tth-ink: #12294a;
  --tth-line: rgb(26 54 93 / .1);
  --tth-shadow: 0 1px 2px rgb(18 41 74 / .06), 0 8px 24px rgb(18 41 74 / .08);
  --tth-shadow-lg: 0 2px 4px rgb(18 41 74 / .06), 0 22px 44px rgb(18 41 74 / .16);
}

/* ------------------------------------------------ section heads */

.tt-scope .tt-section .tt-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
}
.tt-scope .tt-section .tt-eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--tth-orange);
}
.tt-scope .tt-section--navy .tt-eyebrow::before { background: var(--tth-orange); }

/* ------------------------------------- where we operate: contrast */

/* The photo sat above the dark overlay, so text read against raw images.
   Stack order is now: photo (0) → overlay (1) → text (2). */
.tt-scope .tt-tile img { z-index: 0 !important; }
.tt-scope .tt-tile::after {
  z-index: 1;
  background: linear-gradient(180deg,
    rgb(12 30 56 / 0) 0%,
    rgb(12 30 56 / .18) 38%,
    rgb(12 30 56 / .72) 72%,
    rgb(12 30 56 / .92) 100%) !important;
}
.tt-scope .tt-tile > *:not(img) { position: relative; z-index: 2; }

.tt-scope .tt-tile .tt-tile__name {
  color: #fff !important;
  text-shadow: 0 2px 14px rgb(0 0 0 / .35);
  margin: 0 !important;
  line-height: 1.15;
}
.tt-scope .tt-tile .tt-tile__meta {
  align-self: flex-start;
  display: inline-flex; align-items: center;
  margin-top: 10px !important;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
  color: #fff !important;
  background: rgb(255 255 255 / .16);
  border: 1px solid rgb(255 255 255 / .24);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.tt-scope .tt-tile .tt-tile__desc {
  color: rgb(255 255 255 / .88) !important;
  text-shadow: 0 1px 8px rgb(0 0 0 / .3);
}
.tt-scope .tt-tile .tt-tile__link {
  align-self: flex-start;
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--tth-orange);
  font-size: 14px;
}
.tt-scope .tt-tile { box-shadow: var(--tth-shadow); }
.tt-scope .tt-tile:hover { box-shadow: var(--tth-shadow-lg); }

/* -------------------------------------------- activities section */

.tt-acts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tt-scope .tt-act {
  position: relative; display: flex; align-items: flex-end;
  min-height: 230px; padding: 22px;
  border-radius: 20px; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, var(--tth-navy), #0f2443);
  box-shadow: var(--tth-shadow);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s;
  text-decoration: none;
}
.tt-scope .tt-act:hover { transform: translateY(-5px); box-shadow: var(--tth-shadow-lg); }
.tt-scope .tt-act img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
}
.tt-scope .tt-act:hover img { transform: scale(1.05); }
.tt-scope .tt-act::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(12 30 56 / 0) 30%, rgb(12 30 56 / .85) 100%);
}
.tt-act__body { display: flex; flex-direction: column; gap: 6px; }
.tt-scope .tt-act__name {
  color: #fff; font-family: var(--tt-font-display, inherit);
  font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15;
  text-shadow: 0 2px 12px rgb(0 0 0 / .3);
}
.tt-scope .tt-act__meta { color: rgb(255 255 255 / .85); font-size: 14px; }
.tt-scope .tt-act__arrow {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 18px;
  background: rgb(255 255 255 / .18);
  border: 1px solid rgb(255 255 255 / .28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .25s, transform .25s;
}
.tt-scope .tt-act:hover .tt-act__arrow { background: var(--tth-orange); border-color: var(--tth-orange); transform: rotate(-45deg); }

/* ---------------------------------------------------- stay cards */

.tt-stays {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tt-scope .tt-stay {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--tth-line);
  box-shadow: var(--tth-shadow);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s;
}
.tt-scope .tt-stay:hover { transform: translateY(-5px); box-shadow: var(--tth-shadow-lg); }
.tt-scope .tt-stay__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }

.tt-stay__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e8edf3; }
.tt-scope .tt-stay__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
}
.tt-scope .tt-stay:hover .tt-stay__media img { transform: scale(1.05); }

.tt-stay__badge,
.tt-stay__rating {
  position: absolute; top: 12px;
  padding: 5px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1.2;
}
.tt-stay__badge { left: 12px; background: var(--tth-orange); color: #fff; }
.tt-stay__rating { right: 12px; background: rgb(255 255 255 / .94); color: var(--tth-ink); }

.tt-stay__body { display: flex; flex-direction: column; gap: 10px; padding: 18px; flex: 1; }

.tt-scope .tt-stay__loc {
  display: flex; align-items: center; gap: 6px;
  margin: 0 !important;
  font-size: 13px; font-weight: 500; color: #5b6b80;
}
.tt-scope .tt-stay__loc svg { color: var(--tth-orange); flex: none; }

.tt-scope .tt-stay__title {
  margin: 0 !important;
  font-size: 18px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em;
  color: var(--tth-ink) !important;
}
.tt-scope .tt-stay:hover .tt-stay__title { color: var(--tth-orange) !important; }

.tt-scope .tt-stay__chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 !important; padding: 0 !important; list-style: none !important;
}
.tt-scope .tt-stay__chips li {
  margin: 0 !important;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--tth-navy);
  background: #f1f4f8;
}

.tt-stay__foot {
  margin-top: auto; padding-top: 14px;
  border-top: 1px dashed var(--tth-line);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
}
.tt-stay__price { display: flex; flex-direction: column; line-height: 1.15; }
.tt-scope .tt-stay__price small { font-size: 11.5px; font-weight: 500; color: #6b7a8d; text-transform: uppercase; letter-spacing: .06em; }
.tt-scope .tt-stay__price strong { font-size: 21px; font-weight: 700; color: var(--tth-ink); }
.tt-scope .tt-stay__price strong.is-quote { font-size: 16px; color: var(--tth-navy); }
.tt-scope .tt-stay__cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  color: #fff; background: var(--tth-navy);
  transition: background .25s;
}
.tt-scope .tt-stay:hover .tt-stay__cta { background: var(--tth-orange); }

/* ------------------------------------- review platforms line */

.tt-rp { display: inline-flex; align-items: center; gap: 8px; line-height: 1.3; white-space: nowrap; }
.tt-rp__text strong { font-weight: 700; color: inherit; }
.tt-rp__list { display: inline-flex; align-items: center; }
.tt-scope .tt-rp__item {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgb(18 41 74 / .18);
  position: relative;
}
.tt-scope .tt-rp__item + .tt-rp__item { margin-left: -6px; }
.tt-rp__item:nth-child(1) { z-index: 3; }
.tt-rp__item:nth-child(2) { z-index: 2; }
.tt-rp__item:nth-child(3) { z-index: 1; }
.tt-rp__item svg { display: block; width: 16px; height: 16px; }
.tt-rp .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ------------------------------------------------ reviews slider */

.tt-revs__track {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 2px 18px;
  scrollbar-width: none;
}
.tt-revs__track::-webkit-scrollbar { display: none; }
.tt-revs__track:focus-visible { outline: 2px solid var(--tth-orange); outline-offset: 4px; border-radius: 12px; }

.tt-scope .tt-rev {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 16px;
  margin: 0 !important; padding: 26px;
  background: #fff; border-radius: 20px;
  border: 1px solid var(--tth-line);
  box-shadow: var(--tth-shadow);
}
.tt-rev__top { display: flex; align-items: center; justify-content: space-between; }
.tt-rev__mark { font-size: 56px; line-height: .6; font-weight: 700; color: var(--tth-orange); opacity: .25; font-family: Georgia, serif; }
.tt-rev__src ~ .tt-rev__mark { display: none; }
.tt-rev__top .tt-rev__src { order: 2; }
.tt-rev__src {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: #fff; box-shadow: 0 1px 4px rgb(18 41 74 / .16);
}
.tt-rev__src .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.tt-scope .tt-rev__quote {
  margin: 0 !important; padding: 0 !important; border: 0 !important;
  font-size: 16px; line-height: 1.65; color: #2c3e55; font-style: normal;
  flex: 1;
}
.tt-rev__who { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--tth-line); }
.tt-rev__avatar {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 17px; color: #fff;
  background: linear-gradient(135deg, var(--tth-orange), #ff8a3d);
}
.tt-rev__who strong { display: block; font-size: 15px; color: var(--tth-ink); }
.tt-rev__who small { display: block; font-size: 13px; color: #6b7a8d; margin-top: 2px; }

.tt-revs__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.tt-revs__slider.is-static .tt-revs__nav { display: none; }
/* Same as the slider arrows on the tour pages: orange when active, white when at the end. */
.tt-scope .tt-revs__btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; padding: 0;
  color: #fff; background: var(--tth-orange);
  border: 1px solid var(--tth-orange);
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.tt-scope .tt-revs__btn svg { display: block; }
.tt-scope .tt-revs__btn:hover:not(:disabled) { background: #e65400; border-color: #e65400; }
.tt-scope .tt-revs__btn:disabled { background: #fff; color: #9aa5b4; border-color: #e3e8ef; cursor: default; }

/* ------------------------------------------- buttons & hero text */

/* Orange buttons: white text (was a dark tone that clashed with the orange). */
.tt-scope .tt-btn--primary,
.tt-scope .tt-btn--primary:visited {
  color: #fff !important;
  background: var(--tth-orange) !important;
  border-color: var(--tth-orange) !important;
  font-weight: 600;
}
.tt-scope .tt-btn--primary:hover,
.tt-scope .tt-btn--primary:focus-visible {
  color: #fff !important;
  background: #e65400 !important;
  border-color: #e65400 !important;
}

/* Hero eyebrow: a light peach reads cleanly on the blue photo. */
.tt-scope .tt-hero .tt-eyebrow { color: #ffc49b !important; }
.tt-scope .tt-hero .tt-eyebrow::before { background: #ffc49b; }

/* Elevation strip: white figures, soft place names, orange tick only. */
.tt-scope .tt-ruler__alt { color: #fff !important; font-weight: 700; }
.tt-scope .tt-ruler__place { color: rgb(255 255 255 / .72) !important; }
.tt-scope .tt-ruler a:hover .tt-ruler__alt { color: #ffc49b !important; }
.tt-scope .tt-ruler__tick { background: var(--tth-orange) !important; }

/* -------------------------------------------------- calm motion */
/* No lifts or zooms on hover; only colour and shadow change. */
.tt-scope .tt-tile:hover,
.tt-scope .tt-act:hover,
.tt-scope .tt-stay:hover { transform: none; }
.tt-scope .tt-tile:hover img,
.tt-scope .tt-act:hover img,
.tt-scope .tt-stay:hover .tt-stay__media img { transform: none; }
.tt-scope .tt-tile:hover .tt-tile__link span,
.tt-scope .tt-act:hover .tt-act__arrow { transform: none; }

.tt-scope .tt-act__arrow svg,
.tt-scope .tt-tile__link svg,
.tt-scope .tt-stay__cta svg { display: block; flex: none; }

/* ------------------------------------------------------ tablet */

@media (max-width: 1024px) {
  .tt-acts__grid { grid-template-columns: repeat(2, 1fr); }
  .tt-stays { grid-template-columns: repeat(2, 1fr); }
  .tt-scope .tt-rev { flex-basis: calc((100% - 20px) / 2); }
}

/* ------------------------------------------------------ mobile */

@media (max-width: 767px) {
  /* Where we operate: big Rishikesh card, then 2-up small tiles. */
  .tt-scope .tt-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 12px; }
  .tt-scope .tt-tile--lg { grid-column: 1 / -1; grid-row: span 2; }
  .tt-scope .tt-tile { padding: 16px; border-radius: 16px; }
  .tt-scope .tt-tile .tt-tile__name { font-size: 19px; }
  .tt-scope .tt-tile--lg .tt-tile__name { font-size: 26px; }
  .tt-scope .tt-tile .tt-tile__meta { font-size: 11.5px; padding: 4px 9px; }
  .tt-scope .tt-tile .tt-tile__desc { font-size: 14px; }

  /* Activities and stays: horizontal swipe rows. */
  .tt-acts__grid,
  .tt-stays {
    display: flex; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -10px; padding: 4px 10px 14px;
    scrollbar-width: none;
  }
  .tt-acts__grid::-webkit-scrollbar,
  .tt-stays::-webkit-scrollbar { display: none; }

  .tt-scope .tt-act { flex: 0 0 72%; min-height: 220px; scroll-snap-align: start; }
  .tt-scope .tt-stay { flex: 0 0 80%; scroll-snap-align: start; }
  .tt-scope .tt-act__name { font-size: 20px; }

  .tt-revs__track { gap: 12px; margin-inline: -10px; padding-inline: 10px; }
  .tt-scope .tt-rev { flex-basis: 85%; padding: 20px; }
  .tt-scope .tt-rev__quote { font-size: 15px; }
  .tt-revs__nav { justify-content: center; }
}
