/* Travel Guide pages: places-to-visit-in-kodaikanal, kodaikanal-weather-month-wise,
   how-to-reach-kodaikanal. Builds on css/styles.css tokens.
   Layout language: big headline + side copy, rounded photo hero with a floating
   fact bar, tall photo cards, a dark feature card beside icon rows. */

.tg-page {
  --tg-radius-xl: 28px;
  --tg-ink: #0f2e3a;
}

/* ---------- hero ---------- */
.tg-top {
  padding-top: var(--space-6);
}

.tg-top-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: end;
  margin-bottom: var(--space-5);
}

.tg-top-head h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--tg-ink);
}

.tg-top-side p {
  margin: 0 0 var(--space-3);
  color: var(--color-text-muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

.tg-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.tg-pill:hover {
  background: var(--color-primary-dark);
}

.tg-hero-card {
  position: relative;
  border-radius: var(--tg-radius-xl);
  overflow: visible;
  margin-bottom: 64px;
}

.tg-hero-card > img {
  display: block;
  width: 100%;
  height: clamp(280px, 42vw, 520px);
  object-fit: cover;
  border-radius: var(--tg-radius-xl);
}

.tg-facts {
  position: absolute;
  left: 50%;
  bottom: -46px;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 46, 58, 0.18);
}

.tg-fact {
  padding-left: var(--space-3);
  border-left: 1px solid var(--color-border);
}

.tg-fact:first-child {
  padding-left: 0;
  border-left: 0;
}

.tg-fact small {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tg-fact strong {
  display: block;
  margin-top: 2px;
  color: var(--tg-ink);
  font-size: 1.02rem;
  line-height: 1.25;
}

.tg-go {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

.tg-go svg,
.tg-circle svg {
  width: 20px;
  height: 20px;
}

/* ---------- section scaffolding ---------- */
.tg-section {
  padding-block: var(--space-7);
}

.tg-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 760px;
  margin-bottom: var(--space-5);
}

.tg-label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.tg-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--tg-ink);
}

.tg-head p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.tg-prose {
  max-width: 760px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ---------- tall photo cards ---------- */
.tg-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: start;
}

.tg-card {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(15, 46, 58, 0.07);
}

.tg-cards .tg-card:nth-child(3n + 2) {
  margin-top: var(--space-5);
}

.tg-card-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
}

.tg-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tg-card-media--text {
  display: grid;
  place-items: end start;
  padding: var(--space-3);
  color: rgba(255, 255, 255, 0.28);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
}

.tg-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--tg-ink);
  font-size: 0.75rem;
  font-weight: 700;
}

.tg-card-body {
  padding: var(--space-3) 10px 10px;
}

.tg-card h3 {
  margin: 0 0 var(--space-1);
  font-size: 1.15rem;
  color: var(--tg-ink);
}

.tg-card p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.tg-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.tg-meta {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.tg-meta strong {
  font-size: 1.05rem;
  color: var(--tg-ink);
}

.tg-btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.tg-btn:hover {
  background: var(--color-primary-dark);
}

/* ---------- feature card + icon rows ---------- */
.tg-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--space-5);
  align-items: stretch;
}

.tg-feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.tg-dark {
  position: relative;
  padding: var(--space-4);
  border-radius: 22px;
  background: var(--tg-ink);
  color: #fff;
}

.tg-dark h3 {
  margin: 0 0 var(--space-2);
  color: #fff;
  font-size: 1.15rem;
}

.tg-dark p {
  margin: 0;
  padding-right: 56px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.tg-circle {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.tg-feature-img {
  position: relative;
  flex: 1;
  min-height: 260px;
  border-radius: 22px;
  overflow: hidden;
}

.tg-feature-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tg-rows {
  display: grid;
  gap: 10px;
  align-content: start;
}

.tg-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 14px var(--space-3);
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--color-border);
}

.tg-row .tg-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.tg-row .tg-ic svg {
  width: 22px;
  height: 22px;
}

.tg-row h3,
.tg-row h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--tg-ink);
}

.tg-row p {
  margin: 4px 0 0;
  color: var(--color-text-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.tg-row--hot {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.tg-row--hot .tg-ic {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.tg-row--hot h3,
.tg-row--hot h4 {
  color: #fff;
}

.tg-row--hot p {
  color: rgba(255, 255, 255, 0.86);
}

.tg-rows--compact .tg-row {
  align-items: center;
  padding: 10px var(--space-3);
}

.tg-rows--compact .tg-row h3 {
  font-weight: 600;
}

/* ---------- season photo cards ---------- */
.tg-season-card .tg-temp {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--tg-ink);
}

.tg-season-card .tg-meta {
  font-size: 0.8rem;
}

.tg-season--best {
  border-color: var(--color-primary);
  box-shadow: 0 14px 36px rgba(20, 80, 102, 0.22);
}

/* ---------- staggered images ---------- */
.tg-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.tg-stack img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 20px;
}

/* ---------- FAQ ---------- */
.tg-faq {
  max-width: 820px;
}

.tg-faq details {
  margin-bottom: 10px;
  padding: var(--space-3) var(--space-4);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: #fff;
}

.tg-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--tg-ink);
}

.tg-faq details p {
  margin: var(--space-2) 0 0;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ---------- CTA band ---------- */
.tg-cta {
  margin-block: var(--space-6);
}

.tg-cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-6) var(--space-5);
  border-radius: var(--tg-radius-xl);
  background: var(--tg-ink);
  color: #fff;
}

.tg-cta-card h2 {
  margin: 0 0 var(--space-2);
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.tg-cta-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.tg-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tg-cta-actions .tg-pill--light {
  background: #fff;
  color: var(--tg-ink);
}

.tg-cta-actions .tg-pill--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .tg-top-head,
  .tg-head,
  .tg-split,
  .tg-cta-card {
    grid-template-columns: 1fr;
  }
  .tg-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tg-cards .tg-card:nth-child(3n + 2) {
    margin-top: 0;
  }
  .tg-cards .tg-card:nth-child(even) {
    margin-top: var(--space-4);
  }
  .tg-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    bottom: -88px;
  }
  .tg-fact:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .tg-go {
    display: none;
  }
  .tg-hero-card {
    margin-bottom: 110px;
  }
}

@media (max-width: 600px) {
  .tg-top {
    padding-top: var(--space-4);
  }
  .tg-cards,
  .tg-stack {
    grid-template-columns: 1fr;
  }
  .tg-cards .tg-card:nth-child(even) {
    margin-top: 0;
  }
  .tg-section {
    padding-block: var(--space-6);
  }
  .tg-cta-card {
    padding: var(--space-5) var(--space-4);
  }
}

/* ---------- long-form articles (kodaikanal-trip, water-falls-in-kodaikanal) ---------- */
.tg-articles {
  display: grid;
  gap: var(--space-4);
}

.tg-article {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: var(--space-4);
  align-items: stretch;
  padding: 10px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(15, 46, 58, 0.07);
}

.tg-article:nth-child(even) {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr);
}

.tg-article:nth-child(even) .tg-article-media {
  order: 2;
}

.tg-article-media {
  border-radius: 16px;
  overflow: hidden;
  min-height: 240px;
}

.tg-article-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tg-article-body {
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-2);
}

.tg-article-body h2,
.tg-article-body h3 {
  margin: 0 0 var(--space-2);
  font-size: 1.35rem;
  color: var(--tg-ink);
}

.tg-article-body p {
  margin: 0 0 var(--space-2);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.tg-article-body p:last-child {
  margin-bottom: 0;
}

.tg-article--text,
.tg-article--text:nth-child(even) {
  grid-template-columns: 1fr;
  border-left: 6px solid var(--color-primary);
}

.tg-article--text .tg-article-body {
  padding: var(--space-3) var(--space-4);
}

@media (max-width: 800px) {
  .tg-article,
  .tg-article:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .tg-article:nth-child(even) .tg-article-media {
    order: 0;
  }
  .tg-article-media {
    min-height: 200px;
  }
}

/* ---------- compact headings, labelled rows, article chips ---------- */
.tg-head--sm {
  margin-bottom: var(--space-4);
}

.tg-head--sm h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.2;
}

/* Row with a short bold label above the full sentence */
.tg-row--text {
  align-items: flex-start;
}

.tg-row--text h3 {
  font-size: 1rem;
  font-weight: 700;
}

.tg-row--text p {
  margin: 4px 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.tg-row--hot.tg-row--text p {
  color: rgba(255, 255, 255, 0.9);
}

.tg-article-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 var(--space-3);
}

.tg-article-chips span {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.tg-article-body p {
  max-width: 68ch;
}

.tg-top-side p {
  max-width: 52ch;
}

/* Section right under the hero: the fact bar already provides the spacing */
.tg-top + .tg-section {
  padding-top: var(--space-4);
}

/* ---------- kodaikanal-trip: jump nav, alt bands, plan cards, route cards, cost band ---------- */
html {
  scroll-padding-top: calc(var(--header-height) + 72px);
}

.tg-jump {
  position: sticky;
  top: var(--header-height);
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.tg-jump-inner {
  display: flex;
  gap: 8px;
  padding-block: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tg-jump-inner::-webkit-scrollbar {
  display: none;
}

.tg-jump a {
  flex: none;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.tg-jump a:hover {
  background: var(--color-primary);
  color: #fff;
}

.tg-section--alt {
  background: var(--color-bg-alt);
}

.tg-section--alt .tg-row,
.tg-section--alt .tg-card {
  border-color: transparent;
}

/* Two-column prose beside a stat panel */
.tg-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}

.tg-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tg-stat {
  padding: var(--space-3);
  border-radius: 18px;
  background: var(--tg-ink);
  color: #fff;
}

.tg-stat strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1.1;
}

.tg-stat span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

/* Place cards: image with a number badge */
.tg-place-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.tg-place {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 300px;
  background: var(--tg-ink);
  color: #fff;
}

.tg-place img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tg-place::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 46, 58, 0.88) 8%, rgba(15, 46, 58, 0.05) 65%);
}

.tg-place-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: var(--space-3);
}

.tg-place-body h3 {
  margin: 0 0 4px;
  font-size: 1.12rem;
  color: #fff;
}

.tg-place-body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.tg-place-no {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--tg-ink);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Itinerary: three day-plan cards with a timeline */
.tg-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: start;
}

.tg-plan {
  padding: var(--space-4);
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(15, 46, 58, 0.07);
}

.tg-plan--best {
  border-color: var(--color-primary);
  box-shadow: 0 14px 36px rgba(20, 80, 102, 0.22);
}

.tg-plan-tag {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
}

.tg-plan h3 {
  margin: 0 0 var(--space-3);
  font-size: 1.25rem;
  color: var(--tg-ink);
}

.tg-plan ol {
  position: relative;
  margin: 0 0 var(--space-3);
  padding: 0 0 0 22px;
  list-style: none;
  border-left: 2px solid var(--color-bg-alt);
}

.tg-plan li {
  position: relative;
  margin-bottom: 12px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.tg-plan li::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #fff;
}

.tg-plan li strong {
  display: block;
  color: var(--tg-ink);
}

.tg-plan .tg-btn {
  margin-top: 4px;
}

/* Route cards: city, distance, drive time */
.tg-routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.tg-route {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3);
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--color-border);
}

.tg-route-code {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--tg-ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.tg-route h3 {
  margin: 0;
  font-size: 1.02rem;
  color: var(--tg-ink);
}

.tg-route p {
  margin: 4px 0 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.tg-route-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tg-route-meta span {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Cost band */
.tg-cost {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-5);
  border-radius: var(--tg-radius-xl);
  background: var(--tg-ink);
  color: #fff;
}

.tg-cost h2 {
  margin: 0 0 var(--space-2);
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.tg-cost p {
  margin: 0 0 var(--space-3);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.tg-cost .tg-label {
  color: rgba(255, 255, 255, 0.7);
}

.tg-factors {
  order: -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tg-factor {
  padding: var(--space-3);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.tg-factor strong {
  display: block;
  color: #fff;
}

.tg-factor span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  line-height: 1.45;
}

/* FAQ: plus / minus marker */
.tg-faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.tg-faq summary::-webkit-details-marker {
  display: none;
}

.tg-faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 1.2rem;
  line-height: 1;
}

.tg-faq details[open] summary::after {
  content: "\2212";
  background: var(--color-primary);
  color: #fff;
}

@media (max-width: 960px) {
  .tg-intro,
  .tg-cost {
    grid-template-columns: 1fr;
  }
  .tg-factors {
    order: 0;
  }
  .tg-place-grid,
  .tg-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .tg-place-grid,
  .tg-plans,
  .tg-routes,
  .tg-factors {
    grid-template-columns: 1fr;
  }
  .tg-place {
    min-height: 260px;
  }
  .tg-cost {
    padding: var(--space-4);
  }
}

/* Package articles with short copy: image sized to the text, not stretched to a tall card */
.tg-articles--fit .tg-article,
.tg-articles--fit .tg-article:nth-child(even) {
  align-items: center;
}

.tg-articles--fit .tg-article-media {
  min-height: 0;
  aspect-ratio: 16 / 10;
}

@media (max-width: 800px) {
  .tg-articles--fit .tg-article-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

/* Quick-answer summary box */
.tg-summary {
  max-width: 820px;
  padding: var(--space-4);
  border-radius: 22px;
  background: var(--color-bg-alt);
  border-left: 6px solid var(--color-primary);
}

.tg-summary strong {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--tg-ink);
}

.tg-summary p {
  margin: 0 0 var(--space-2);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.tg-summary small {
  color: var(--color-text-muted);
}

/* ---------- comparison table (water-falls-in-kodaikanal) ---------- */
.tg-table-wrap {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background: #fff;
}

.tg-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.tg-table th {
  padding: 14px var(--space-3);
  background: var(--tg-ink);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.tg-table td {
  padding: 12px var(--space-3);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.tg-table td:first-child,
.tg-table td:first-child a {
  color: var(--tg-ink);
  font-weight: 700;
  text-decoration: none;
}

.tg-table tbody tr:hover {
  background: var(--color-bg-alt);
}

/* Places at-a-glance table */
.tg-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-steel);
  border-radius: 18px;
  background: #fff;
}

.tg-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.tg-table th,
.tg-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-steel);
}

.tg-table th {
  background: var(--tg-ink);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tg-table tbody tr:last-child td {
  border-bottom: 0;
}

.tg-table td:first-child {
  font-weight: 600;
}

.tg-table td:first-child a {
  color: var(--tg-ink);
}

/* Flip a single article so image and text alternate between sections */
.tg-articles--flip .tg-article {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr);
}

.tg-articles--flip .tg-article .tg-article-media {
  order: 2;
}

@media (max-width: 800px) {
  .tg-articles--flip .tg-article {
    grid-template-columns: 1fr;
  }
  .tg-articles--flip .tg-article .tg-article-media {
    order: 0;
  }
}

/* Spot cards: numbered photo, title inside the card, alternating sides */
.tg-kicker {
  margin: 6px 0 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--tg-ink);
}

.tg-spots {
  display: grid;
  gap: var(--space-4);
}

.tg-spot {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-3);
  border: 1px solid var(--color-steel);
  border-radius: 24px;
  background: #fff;
  scroll-margin-top: 150px;
}

.tg-spot:nth-child(even) {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
}

.tg-spot:nth-child(even) .tg-spot-media {
  order: 2;
}

.tg-spot-media {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 4 / 3;
}

.tg-spot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tg-spot-no {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--tg-ink);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tg-spot-title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--tg-ink);
}

.tg-spot-body p {
  margin: 12px 0 0;
}

.tg-spot-body .tg-article-chips {
  margin-bottom: 4px;
}

@media (max-width: 800px) {
  .tg-spot,
  .tg-spot:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .tg-spot:nth-child(even) .tg-spot-media {
    order: 0;
  }
  .tg-spot {
    padding: 12px;
  }
}

/* Table polish */
.tg-table tbody tr:nth-child(even) {
  background: rgba(205, 238, 242, 0.28);
}

.tg-table tbody tr:hover {
  background: rgba(205, 238, 242, 0.6);
}

.tg-table td:nth-child(3),
.tg-table td:nth-child(4) {
  white-space: nowrap;
  font-weight: 600;
  color: var(--color-primary);
}

/* ---------- waterfall cards + flow chart (water-falls-in-kodaikanal) ---------- */
.tg-jump-inner {
  -webkit-mask-image: linear-gradient(to right, #000 94%, transparent);
  mask-image: linear-gradient(to right, #000 94%, transparent);
}

.wf-list {
  display: grid;
  gap: var(--space-5);
}

.wf-fall {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: var(--space-5);
  align-items: start;
}

.wf-fall:nth-child(even) {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
}

.wf-fall:nth-child(even) .wf-visual {
  order: 2;
}

.wf-visual {
  position: sticky;
  top: calc(var(--header-height) + 84px);
  min-height: 340px;
  border-radius: 26px;
  overflow: hidden;
  background: var(--tg-ink);
}

.wf-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wf-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.94);
  color: var(--tg-ink);
  font-size: 0.78rem;
  font-weight: 700;
}

/* No photo yet: falling-water panel */
.wf-visual--water {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 22px),
    linear-gradient(170deg, var(--color-primary-light), var(--color-primary) 55%, var(--tg-ink));
}

.wf-visual--water svg {
  width: 64px;
  height: 64px;
  color: rgba(255, 255, 255, 0.9);
}

.wf-visual--water b {
  position: absolute;
  right: 18px;
  bottom: 4px;
  color: rgba(255, 255, 255, 0.16);
  font-size: 7rem;
  line-height: 1;
}

.wf-main h2 {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--tg-ink);
}

.wf-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 var(--space-3);
}

.wf-stats div {
  padding: 12px var(--space-3);
  border-radius: 16px;
  background: var(--color-bg-alt);
}

.wf-stats dt {
  color: var(--color-text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wf-stats dd {
  margin: 2px 0 0;
  color: var(--tg-ink);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.wf-main p {
  max-width: 64ch;
  margin: 0 0 var(--space-2);
  color: var(--color-text-muted);
  line-height: 1.75;
}

.wf-tip {
  margin-top: var(--space-3) !important;
  padding: 14px var(--space-3);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 14px 14px 0;
  background: var(--color-bg-alt);
  font-size: 0.93rem;
}

.wf-tip strong {
  display: block;
  margin-bottom: 2px;
  color: var(--color-primary);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Month-by-month flow chart */
.wf-chart {
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  border-radius: 24px;
  background: var(--tg-ink);
  color: #fff;
}

.wf-chart-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px var(--space-3);
  margin-bottom: var(--space-3);
}

.wf-chart-head span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.wf-months {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  height: 150px;
}

.wf-month {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  gap: 8px;
}

.wf-month i {
  display: block;
  width: 100%;
  height: var(--h);
  border-radius: 10px 10px 4px 4px;
  background: rgba(255, 255, 255, 0.28);
}

.wf-l4 i { background: rgba(255, 255, 255, 0.6); }
.wf-l5 i { background: #fff; }

.wf-month span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 600;
}

.wf-season-rows {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .wf-fall,
  .wf-fall:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .wf-fall:nth-child(even) .wf-visual {
    order: 0;
  }
  .wf-visual {
    position: relative;
    top: 0;
    min-height: 240px;
  }
  .wf-season-rows {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .wf-stats {
    grid-template-columns: 1fr;
  }
  .wf-months {
    gap: 4px;
    height: 120px;
  }
  .wf-chart {
    padding: var(--space-3);
  }
}

/* Long keyword H1 */
.tg-top-head h1.wf-h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
}

@media (max-width: 600px) {
  .wf-stats {
    gap: 6px;
  }
  .wf-stats div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-2);
    padding: 10px var(--space-3);
  }
  .wf-stats dd {
    text-align: right;
  }
  .wf-visual {
    min-height: 200px;
  }
}

/* kodaikanal-trip: hero H1 + copy sit on the image */
.tg-top--overlay .tg-hero-card > img {
  height: clamp(460px, 46vw, 580px);
}

.tg-top--overlay .tg-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--tg-radius-xl);
  background: linear-gradient(90deg, rgba(8, 28, 38, 0.78) 0%, rgba(8, 28, 38, 0.5) 55%, rgba(8, 28, 38, 0.15) 100%);
  pointer-events: none;
}

.tg-top--overlay .tg-top-head {
  position: absolute;
  inset: 0 0 56px 0;
  z-index: 1;
  margin: 0;
  padding: var(--space-5) clamp(20px, 4vw, 56px);
  align-items: center;
}

.tg-top--overlay .tg-top-head h1,
.tg-top--overlay .tg-top-side p {
  color: #fff;
}

.tg-top--overlay .tg-top-head h1 {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.tg-top--overlay .tg-top-side p {
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 960px) {
  .tg-top--overlay .tg-hero-card > img {
    height: 620px;
  }
  .tg-top--overlay .tg-hero-card::before {
    background: linear-gradient(180deg, rgba(8, 28, 38, 0.7) 0%, rgba(8, 28, 38, 0.55) 100%);
  }
  .tg-top--overlay .tg-top-head {
    inset: 0 0 100px 0;
    align-content: center;
    gap: var(--space-3);
  }
  .tg-top--overlay .tg-top-head h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
  .tg-top--overlay .tg-top-side p {
    font-size: 0.95rem;
    line-height: 1.55;
  }
}

/* Long keyword H1 on the image */
.tg-top--overlay .tg-top-head h1.wf-h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
}

/* Centered section headings */
.tg-page .tg-head {
  align-items: center;
  margin-inline: auto;
  text-align: center;
}

.tg-page main h2,
.tg-page .tg-cost h2,
.tg-page .wf-main h2 {
  text-align: center;
}

.tg-page .tg-cta-card h2 {
  text-align: inherit;
}

/* Hero enquiry form (replaces the fact bar) */
.tg-form {
  position: absolute;
  left: 50%;
  bottom: -46px;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: stretch;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 46, 58, 0.18);
  z-index: 2;
}

.tg-form label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-left: var(--space-3);
  border-left: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tg-form label:first-child {
  padding-left: 0;
  border-left: 0;
}

.tg-form input,
.tg-form select {
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 2px 0;
  color: var(--tg-ink);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  outline: none;
}

.tg-form input::placeholder {
  color: #8a9aa2;
  font-weight: 500;
}

.tg-form-btn {
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0 26px;
  min-height: 48px;
  background: var(--color-primary);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.tg-form-btn:hover {
  background: var(--color-primary-dark);
}

@media (max-width: 960px) {
  .tg-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    bottom: -150px;
  }
  .tg-form label:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .tg-form-btn {
    grid-column: 1 / -1;
  }
  .tg-hero-card {
    margin-bottom: 170px;
  }
  .tg-top--overlay .tg-top-head {
    inset: 0 0 160px 0;
  }
}

/* ---------- summary box: dark feature card ---------- */
.tg-page .tg-summary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: none;
  margin-inline: auto;
  padding: clamp(28px, 4vw, 52px) clamp(24px, 5vw, 64px);
  border: 0;
  border-radius: var(--tg-radius-xl);
  background: var(--tg-ink);
  box-shadow: 0 24px 54px rgba(15, 46, 58, 0.22);
  text-align: center;
}

.tg-page .tg-summary strong {
  display: inline-block;
  margin: 0 0 var(--space-3);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffc98a;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tg-page .tg-summary p {
  max-width: 860px;
  margin: 0 auto var(--space-3);
  color: #fff;
  font-size: clamp(1.08rem, 1.7vw, 1.4rem);
  font-weight: 500;
  line-height: 1.6;
}

.tg-page .tg-summary small {
  display: block;
  max-width: 760px;
  margin: 0 auto;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  line-height: 1.55;
}

.tg-page .tg-summary small a {
  color: #ffc98a;
}

/* opening quote mark when there is no label badge */
.tg-page .tg-summary:not(:has(strong))::before {
  content: "C";
  position: absolute;
  top: 6px;
  left: 28px;
  z-index: -1;
  color: rgba(255, 255, 255, 0.14);
  font: 700 7rem/1 Georgia, serif;
  pointer-events: none;
}
