.section-space {
  padding: 80px 0;
}

.munnar-hero {
  position: relative;
  height: min(62vh, 620px);
  min-height: 440px;
  overflow: hidden;
}

.munnar-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: munnarHeroZoom 10s ease-out both;
}

@keyframes munnarHeroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.munnar-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 31, 43, 0.82), rgba(2, 31, 43, 0.22) 68%);
}

.munnar-hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
}

.munnar-hero-content > span {
  color: #8ee3ff;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.munnar-hero-content h1 {
  margin: 8px 0 14px;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 1;
  text-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

.munnar-hero-content p {
  font-size: 14px;
}

.munnar-hero-content a:hover {
  color: #8ee3ff;
}

.hero-social-rail {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  transform: translateY(-50%);
  color: var(--white);
}

.hero-social-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-social-line {
  width: 1px;
  height: 42px;
  background: rgba(255, 255, 255, 0.55);
}

.hero-social-rail a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.hero-social-rail a:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateX(-5px);
}

.hero-social-rail svg {
  width: 18px;
  height: 18px;
}

.munnar-intro {
  background:
    radial-gradient(circle at 90% 10%, rgba(0, 146, 203, 0.12), transparent 32%),
    #f5fbfe;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 70px;
}

.intro-grid h2,
.content-heading h2,
.reach-copy h2,
.distance-section h2,
.activities-heading h2 {
  color: var(--text-dark);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.25;
}

.intro-copy {
  color: #4a5a68;
}

.intro-copy p + p {
  margin-top: 16px;
}

.intro-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.intro-facts div {
  padding: 22px 16px;
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 146, 203, 0.1);
}

.intro-facts strong,
.intro-facts span {
  display: block;
}

.intro-facts strong {
  color: var(--primary);
  font-size: 25px;
}

.intro-facts span {
  margin-top: 3px;
  color: #667986;
  font-size: 12px;
}

.munnar-guide {
  background: var(--white);
}

.guide-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.category-panel {
  position: sticky;
  top: 95px;
  overflow: hidden;
  background: #f4fbfe;
  border: 1px solid #dbeef6;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 146, 203, 0.1);
}

.category-title {
  padding: 24px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
}

.category-title span {
  color: #bdeeff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.category-title h2 {
  margin-top: 4px;
  font-size: 24px;
}

.category-panel nav {
  max-height: calc(100vh - 210px);
  overflow-y: auto;
  padding: 10px;
}

.category-panel nav::-webkit-scrollbar {
  width: 5px;
}

.category-panel nav::-webkit-scrollbar-thumb {
  background: #a5d8eb;
  border-radius: 5px;
}

.category-panel nav span {
  display: block;
  position: relative;
  padding: 10px 12px 10px 28px;
  color: #435763;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  cursor: default;
}

.category-panel nav span::before {
  content: "›";
  position: absolute;
  left: 12px;
  color: var(--primary);
  font-size: 18px;
  line-height: 1;
}

.content-heading {
  margin-bottom: 32px;
}

.content-heading p,
.activities-heading p {
  max-width: 720px;
  margin-top: 12px;
  color: #5a6d79;
}

.direction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.direction-card {
  position: relative;
  padding: 28px 24px 24px;
  overflow: hidden;
  background: #f7fcff;
  border: 1px solid #dceff7;
  border-radius: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.direction-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 146, 203, 0.14);
}

.route-number {
  position: absolute;
  top: -16px;
  right: 8px;
  color: rgba(0, 146, 203, 0.08);
  font-size: 80px;
  font-weight: 700;
}

.direction-card h3 {
  position: relative;
  margin-bottom: 15px;
  color: var(--primary-dark);
  font-size: 19px;
}

.direction-card ol {
  padding-left: 20px;
  color: #4d606c;
  font-size: 13.5px;
}

.direction-card li + li {
  margin-top: 5px;
}

.reach-section,
.distance-section,
.essentials {
  margin-top: 55px;
}

.reach-section {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 30px;
  align-items: center;
  padding: 30px;
  background: linear-gradient(135deg, #e9f7fd, #f7fcff);
  border-radius: 20px;
}

.transport-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.transport-grid article {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.transport-grid article > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  background: var(--primary);
  border-radius: 12px;
  font-size: 20px;
}

.transport-grid h3 {
  color: var(--text-dark);
  font-size: 15px;
}

.transport-grid p {
  color: #5b6e7a;
  font-size: 13px;
}

.map-card {
  position: relative;
  height: 260px;
  padding: 0;
  overflow: hidden;
  background: var(--white);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 146, 203, 0.15);
}

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

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

.map-card span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 9px;
  background: rgba(0, 103, 145, 0.9);
  color: var(--white);
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
}

.distance-section {
  padding: 32px;
  background: var(--primary-dark);
  color: var(--white);
  border-radius: 20px;
}

.distance-section h2 {
  margin-bottom: 24px;
  color: var(--white);
}

.distance-section .section-tag {
  background: rgba(255, 255, 255, 0.14);
  color: #bdeeff;
}

.distance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.distance-grid span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 13px;
}

.distance-grid strong {
  color: #8ee3ff;
  white-space: nowrap;
}

.essentials {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 20px;
}

.essentials article {
  padding: 26px;
  background: #f5fbfe;
  border-radius: 16px;
}

.essentials h3 {
  margin-bottom: 14px;
  color: var(--text-dark);
}

.essentials p {
  color: #566a76;
  font-size: 14px;
}

.essentials p + p {
  margin-top: 7px;
}

.emergency-card {
  background: #fff5f4 !important;
}

.emergency-card a {
  display: flex;
  justify-content: space-between;
  padding: 9px 12px;
  color: #65504e;
  border-radius: 8px;
}

.emergency-card a:hover {
  background: var(--white);
  color: #d63b32;
}

.emergency-card strong {
  color: #d63b32;
}

.activities-section {
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 146, 203, 0.1), transparent 28%),
    #edf8fd;
}

.activities-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.activities-heading p {
  margin-right: auto;
  margin-left: auto;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.activity-card {
  position: relative;
  height: 390px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(0, 100, 140, 0.16);
}

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

.activity-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(2, 29, 40, 0.92) 100%);
}

.activity-card > div {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px;
  color: var(--white);
  transform: translateY(48px);
  transition: transform 0.35s;
}

.activity-card:hover img {
  transform: scale(1.08);
}

.activity-card:hover > div {
  transform: translateY(0);
}

.activity-card span {
  color: #8ee3ff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.activity-card h3 {
  margin: 6px 0 8px;
  font-size: 23px;
}

.activity-card p {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.35s;
}

.activity-card:hover p {
  opacity: 0.88;
}

/* Taxi tariff table */
.table-scroll {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid #dceff7;
  box-shadow: 0 12px 30px rgba(0, 146, 203, 0.1);
  -webkit-overflow-scrolling: touch;
}

.taxi-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 14px;
}

@media (min-width: 769px) {
  .taxi-table {
    min-width: 560px;
  }
}

.taxi-table th {
  position: sticky;
  top: 0;
  padding: 15px 18px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  text-align: left;
  font-size: 14.5px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.taxi-table th:not(:first-child),
.taxi-table td:not(:first-child) {
  text-align: center;
}

.taxi-table td {
  padding: 11px 18px;
  border-bottom: 1px solid #eaf5fa;
  color: #435763;
}

.taxi-table td:first-child {
  font-weight: 500;
  color: var(--text-dark);
}

.taxi-table tbody tr:nth-child(even) {
  background: #f7fcff;
}

.taxi-table tbody tr:hover {
  background: var(--primary-light);
}

.taxi-table .taxi-extra {
  background: #fff9ec;
}

.taxi-table .taxi-extra td:first-child {
  color: #9a6b00;
}

/* Running Km row shows km rate, not rupees-only, keep symbol anyway */
.taxi-notes {
  margin-top: 22px;
  padding: 18px 22px;
  background: #fff5f4;
  border-left: 4px solid #d63b32;
  border-radius: 10px;
  color: #6a5350;
  font-size: 14px;
}

.taxi-notes strong {
  color: #d63b32;
}

.taxi-notes p + p {
  margin-top: 6px;
}

.taxi-book-btn {
  display: inline-flex;
  margin-top: 26px;
  padding: 14px 28px;
}

.about-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s;
}

.about-animate.about-visible {
  opacity: 1;
  transform: translateY(0);
}

.map-viewer {
  position: fixed;
  z-index: 2500;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(2, 25, 35, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.map-viewer.open {
  opacity: 1;
  visibility: visible;
}

.map-viewer img {
  max-width: min(1050px, 92vw);
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
}

.map-viewer button {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 992px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  /* On small screens show the main content first, categories after it */
  .guide-content {
    order: 1;
  }

  .category-panel {
    order: 2;
    position: static;
  }

  .category-panel nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: none;
  }

  .reach-section {
    grid-template-columns: 1fr;
  }

  .map-card {
    height: 380px;
  }

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

@media (max-width: 768px) {
  .section-space {
    padding: 60px 0;
  }

  /* Convert the wide tariff table into stacked destination cards */
  .table-scroll {
    overflow: visible;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .table-scroll::after {
    display: none;
  }

  .taxi-table,
  .taxi-table thead,
  .taxi-table tbody,
  .taxi-table th,
  .taxi-table td,
  .taxi-table tr {
    display: block;
    width: 100%;
  }

  .taxi-table thead {
    display: none;
  }

  .taxi-table tbody {
    display: grid;
    gap: 14px;
  }

  .taxi-table tr {
    margin: 0;
    padding: 16px;
    background: var(--white);
    border: 1px solid #dceff7;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 146, 203, 0.08);
  }

  .taxi-table tbody tr:nth-child(even),
  .taxi-table tbody tr:hover {
    background: var(--white);
  }

  .taxi-table .taxi-extra {
    background: #fff9ec;
    border-color: #f0dfb0;
  }

  .taxi-table td {
    padding: 0;
    border: none;
  }

  .taxi-table td:first-child {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5f1f7;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: left;
  }

  .taxi-table td:not(:first-child) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
    border-bottom: 1px dashed #e5f1f7;
  }

  .taxi-table td:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  /* Replace the ₹ prefix with clear vehicle labels on mobile */
  .taxi-table td:not(:first-child)::before {
    color: #5b6e7a;
    font-size: 13px;
    font-weight: 500;
  }

  .taxi-table td:nth-child(2)::before {
    content: "Sedan Cab";
  }

  .taxi-table td:nth-child(3)::before {
    content: "Tavera / Xylo";
  }

  .taxi-table td:nth-child(4)::before {
    content: "Innova";
  }

  .taxi-table td:nth-child(2),
  .taxi-table td:nth-child(3),
  .taxi-table td:nth-child(4) {
    font-variant-numeric: tabular-nums;
  }

  .taxi-notes {
    font-size: 13px;
  }

  .taxi-book-btn {
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .munnar-hero {
    height: 520px;
    min-height: 0;
  }

  .intro-facts,
  .direction-grid,
  .distance-grid {
    grid-template-columns: 1fr 1fr;
  }

  .category-panel nav {
    grid-template-columns: 1fr;
  }

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

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

  .activity-card > div {
    transform: translateY(0);
  }

  .activity-card p {
    opacity: 0.88;
  }
}

@media (max-width: 520px) {
  .munnar-hero-content {
    text-align: center;
  }

  .hero-social-rail {
    top: auto;
    right: 18px;
    bottom: 18px;
    flex-direction: row;
    transform: none;
  }

  .hero-social-label,
  .hero-social-line {
    display: none;
  }

  .intro-facts,
  .direction-grid,
  .distance-grid {
    grid-template-columns: 1fr;
  }

  .reach-section,
  .distance-section {
    padding: 22px 18px;
  }

  .map-card {
    height: 280px;
  }

  .activity-card {
    height: 420px;
  }
}
