/* ============================================================
   Visitor Guide — self-contained, vibrant theme
   (this page does NOT load chennai-guide.css, so all base
    guide styles live here)
   ============================================================ */

/* ---- Back pill in header ---- */
.site-header__back {
  display: inline-flex;
  align-items: center;
  min-block-size: 30px;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}

.site-header__back:hover {
  background: rgba(255, 255, 255, 0.22);
}

.guide-shell {
  padding-block-end: 72px;
}

/* ============================================================
   HERO — vibrant gradient wash over the skyline
   ============================================================ */
/* Text-only heading — no banner, elegant display font */
.guide-heading {
  text-align: left;
  max-inline-size: none;
  margin: 24px 0 4px;
  padding-inline: 4px;
  animation: headingRise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.guide-heading__kicker {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--brand-purple);
}

.guide-heading__title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.05;
  color: var(--brand-primary);
  letter-spacing: -0.01em;
}

.guide-heading__tagline {
  margin: 12px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--brand-accent);
}

.guide-heading__lede {
  margin: 18px 0 0;
  max-inline-size: 100%;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--muted);
}

@keyframes headingRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .guide-heading { animation: none; }
}

/* ============================================================
   TOC — sticky, colorful pills with active state
   ============================================================ */
.guide-toc {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 18px;
  padding: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.4) blur(10px);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.1);
}

.guide-toc a {
  --pill: var(--brand-purple);
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-graphite);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid var(--line);
  transition: color 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.guide-toc a:hover {
  color: #fff;
  background: var(--pill);
  border-color: var(--pill);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--pill) 35%, transparent);
}

.guide-toc a.is-active {
  color: #fff;
  background: var(--pill);
  border-color: var(--pill);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--pill) 35%, transparent);
}

/* per-pill accent colors */
.guide-toc a[href="#currency"]   { --pill: #059669; }
.guide-toc a[href="#weather"]    { --pill: #0284c7; }
.guide-toc a[href="#wear"]       { --pill: #7c3aed; }
.guide-toc a[href="#food"]       { --pill: #d97706; }
.guide-toc a[href="#culture"]    { --pill: #0d9488; }
.guide-toc a[href="#essentials"] { --pill: #4f46e5; }
.guide-toc a[href="#emergency"]  { --pill: #e11d48; }

/* ============================================================
   SECTIONS — each carries an --accent (set inline in HTML)
   ============================================================ */
.guide-section {
  --accent: var(--brand-purple);
  --accent-soft: color-mix(in srgb, var(--accent) 9%, #fff);
  --accent-line: color-mix(in srgb, var(--accent) 32%, #fff);
  position: relative;
  scroll-margin-top: 84px;
  margin-block-start: 26px;
  padding: 30px 30px 30px 34px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
  overflow: hidden;
}

/* colored accent bar down the left edge */
.guide-section::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: 6px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff));
}

.guide-section--tint {
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 55%);
}

/* ---- Full-width banner (culture) ---- */
.vg-banner {
  border-radius: 14px;
  overflow: hidden;
  margin-block-end: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 20%, transparent);
}

.vg-banner img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

/* ---- Plain section header (essentials, emergency, culture) ---- */
.vg-lead {
  margin-block-end: 22px;
  max-inline-size: 70ch;
}

.vg-lead .vg-intro:last-of-type {
  margin-block-end: 0;
}

/* ---- Feature row: image + copy ---- */
.vg-feature {
  display: flex;
  align-items: stretch;
  gap: 34px;
  margin-block-end: 24px;
}

.vg-feature--reverse {
  flex-direction: row-reverse;
}

.vg-feature__media {
  position: relative;
  flex: 0 0 40%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 22%, transparent);
}

.vg-feature__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 26%, transparent), transparent 55%);
  pointer-events: none;
}

.vg-feature__media img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  min-block-size: 240px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.vg-feature__media:hover img {
  transform: scale(1.05);
}

.vg-feature__body {
  flex: 1 1 auto;
  min-inline-size: 0;
  align-self: center;
}

.guide-section__kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent);
}

.vg-feature__body h2 {
  margin: 0 0 14px;
  font-size: 1.7rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--brand-navy);
}

.vg-intro {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.68;
  max-inline-size: 60ch;
}

.vg-intro:last-of-type {
  margin-block-end: 20px;
}

/* ---- Do / Don't tip cards ---- */
.tip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.vg-feature__body .tip-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tip-card {
  padding: 15px 17px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.tip-card p {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.tip-card__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px !important;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tip-card__label::before {
  font-size: 0.9rem;
  line-height: 1;
}

.tip-card--do {
  border-color: rgba(5, 150, 105, 0.35);
  background: rgba(5, 150, 105, 0.07);
}

.tip-card--do .tip-card__label {
  color: #047857;
}

.tip-card--do .tip-card__label::before {
  content: "\2713";
}

.tip-card--dont {
  border-color: rgba(225, 29, 72, 0.32);
  background: rgba(225, 29, 72, 0.06);
}

.tip-card--dont .tip-card__label {
  color: #be123c;
}

.tip-card--dont .tip-card__label::before {
  content: "\2715";
}

/* ---- Season cards ---- */
.season-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-block-end: 4px;
}

.season-card {
  padding: 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.season-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--accent) 22%, transparent);
}

.season-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--brand-navy);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.season-card h3 span {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.season-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ---- Plain listing cards (wear / food / emergency) ---- */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.vg-plain-grid {
  margin-block-end: 4px;
}

.listing-card {
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--accent);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--accent) 20%, transparent);
}

.listing-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--brand-navy);
}

.listing-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ---- Do's / Don'ts (culture) ---- */
.dodont-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.dodont-card {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.dodont-card--do {
  border-color: rgba(5, 150, 105, 0.35);
  background: rgba(5, 150, 105, 0.06);
}

.dodont-card--dont {
  border-color: rgba(225, 29, 72, 0.3);
  background: rgba(225, 29, 72, 0.05);
}

.dodont-card h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dodont-card--do h3 { color: #047857; }
.dodont-card--dont h3 { color: #be123c; }

.dodont-card--do h3::before { content: "\2713"; }
.dodont-card--dont h3::before { content: "\2715"; }

.dodont-card ul {
  margin: 0;
  padding-inline-start: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dodont-card li {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ---- Essentials list ---- */
.essentials-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.essential-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--accent);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.essential-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--accent) 18%, transparent);
}

.essential-row__label {
  margin: 0 !important;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.essential-row p:not(.essential-row__label) {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ---- Emergency contact cards ---- */
.listing-card--contact {
  text-align: center;
  border-inline-start: 4px solid var(--accent);
}

.listing-card--contact h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.vg-phone {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.01em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .season-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .essentials-list {
    grid-template-columns: 1fr;
  }

  .vg-feature,
  .vg-feature--reverse {
    flex-direction: column;
    align-items: stretch;
  }

  .vg-feature__media {
    flex-basis: auto;
  }

  .vg-feature__media img {
    block-size: auto;
    min-block-size: 0;
  }
}

@media (max-width: 640px) {
  .tip-grid,
  .vg-feature__body .tip-grid,
  .dodont-grid,
  .listing-grid {
    grid-template-columns: 1fr;
  }

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

  .guide-hero {
    min-block-size: 280px;
  }

  .guide-hero__overlay {
    padding: 26px 22px;
  }

  .guide-toc {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
