.surya-detail-page .temple-section {
  scroll-margin-top: 120px;
  margin-top: 28px;
}

.surya-detail-page .surya-surface {
  background: #fffdf8;
  border: 1px solid rgba(145, 97, 34, 0.18);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 40px);
  box-shadow: 0 12px 32px rgba(80, 49, 16, 0.06);
}

.surya-detail-page :is(#darshan-process, #worship-knowledge) .brahma-surface {
  background: #fffdf8;
  border: 1px solid rgba(145, 97, 34, 0.18);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 40px);
  box-shadow: 0 12px 32px rgba(80, 49, 16, 0.06);
}

.surya-detail-page .surya-grid,
.surya-detail-page .surya-reference-grid,
.surya-detail-page .surya-nearby-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.surya-detail-page .surya-card,
.surya-detail-page .surya-related-card {
  min-width: 0;
  height: 100%;
  padding: 22px;
  border: 1px solid rgba(145, 97, 34, 0.2);
  border-radius: 14px;
  background: #fff;
  overflow-wrap: anywhere;
}

.surya-detail-page .surya-card h3,
.surya-detail-page .surya-related-card h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.35;
}

.surya-detail-page .surya-facts,
.surya-detail-page .surya-safety {
  margin: 0;
  padding: 0;
  list-style: none;
}

.surya-detail-page .surya-facts li,
.surya-detail-page .surya-safety li {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(145, 97, 34, 0.13);
}

.surya-detail-page .surya-facts li:last-child,
.surya-detail-page .surya-safety li:last-child {
  border-bottom: 0;
}

.surya-detail-page .surya-facts strong,
.surya-detail-page .surya-safety strong {
  color: #6d4318;
}

.surya-detail-page .surya-route {
  counter-reset: route;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.surya-detail-page .surya-route li {
  counter-increment: route;
  position: relative;
  min-width: 0;
  padding: 22px 18px 18px 58px;
  border: 1px solid rgba(145, 97, 34, 0.2);
  border-radius: 14px;
  background: #fff;
}

.surya-detail-page .surya-route li::before {
  content: counter(route);
  position: absolute;
  top: 18px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #8a541c;
  color: #fff;
  font-weight: 700;
}

.surya-detail-page .surya-hub-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.surya-detail-page .surya-hub-grid .temple-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 58px;
  height: 100%;
  padding: 13px 18px;
  border: 2px solid #b87a24;
  border-radius: 10px;
  background: #fff9ed;
  color: #4b2e13;
  text-align: center;
  white-space: normal;
  line-height: 1.35;
}

.surya-detail-page .surya-hub-grid .temple-btn:hover,
.surya-detail-page .surya-hub-grid .temple-btn:focus-visible {
  background: #8a541c;
  color: #fff;
}

.surya-detail-page .brahma-hub-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.surya-detail-page .brahma-hub-grid .temple-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 58px;
  height: 100%;
  padding: 13px 18px;
  border: 2px solid #b87a24;
  border-radius: 10px;
  background: #fff9ed;
  color: #4b2e13;
  text-align: center;
  white-space: normal;
  line-height: 1.35;
}

.surya-detail-page .brahma-hub-grid .temple-btn:hover,
.surya-detail-page .brahma-hub-grid .temple-btn:focus-visible {
  background: #8a541c;
  color: #fff;
}

.surya-detail-page .surya-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 4px solid #b87a24;
  background: #fff8ea;
  color: #4d351f;
}

.surya-detail-page .surya-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  max-width: 100%;
  font-weight: 700;
  white-space: normal;
}

.surya-detail-page .surya-hero-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.surya-detail-page .temple-hero-pending-image {
  position: relative;
  overflow: hidden;
}

.surya-detail-page .surya-image-status {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(63, 37, 16, 0.88);
  color: #fffdf8;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

body.surya-detail-page [data-layout-section="hero"] :is(
  .temple-keyinfo-card .temple-info-row span,
  .temple-location-row span
) {
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  word-break: normal;
  overflow-wrap: normal;
}

body.surya-detail-page [data-layout-section="hero"] .temple-location-row {
  display: grid;
  grid-template-columns: minmax(110px, 132px) minmax(0, 1fr);
  align-items: start;
  gap: 8px 12px;
}

body.surya-detail-page [data-layout-section="hero"] :is(
  .temple-keyinfo-card .temple-info-row,
  .temple-location-row
) {
  grid-template-columns: minmax(104px, 124px) minmax(0, 1fr);
}

body.surya-detail-page [data-layout-section="hero"] :is(
  .temple-keyinfo-card .temple-info-row strong,
  .temple-location-row strong
) {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  text-align: left;
}

body.surya-detail-page [data-layout-section="hero"] .temple-keyinfo-card .temple-info-row strong {
  justify-self: start;
}

body.surya-detail-page [data-layout-section="hero"] .temple-live-strip {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
}

body.surya-detail-page [data-layout-section="hero"] .temple-side-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

body.surya-detail-page [data-layout-section="hero"] .temple-side-actions .temple-btn {
  width: 100%;
  min-width: 0;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  text-align: center;
}

body.surya-detail-page [data-layout-section="hero"] .temple-map-head {
  align-items: start;
  gap: 10px 12px;
  flex-wrap: wrap;
}

body.surya-detail-page [data-layout-section="hero"] .temple-map-head > div {
  flex: 1 1 180px;
  min-width: 0;
}

body.surya-detail-page [data-layout-section="hero"] .temple-map-link {
  flex: 0 0 auto;
  max-width: 100%;
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

body.surya-detail-page .temple-detail__process-timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.surya-detail-page .temple-detail__process-timeline .temple-detail__timeline-step:nth-child(4)::after {
  display: none;
}

@media (max-width: 1199.98px) {
  .surya-detail-page .surya-grid,
  .surya-detail-page .surya-reference-grid,
  .surya-detail-page .surya-nearby-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .surya-detail-page .surya-hub-grid,
  .surya-detail-page .brahma-hub-grid,
  body.surya-detail-page .temple-detail__process-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.surya-detail-page .temple-detail__process-timeline .temple-detail__timeline-step:nth-child(2n)::after {
    display: none;
  }
}

@media (max-width: 991.98px) {
  body.surya-detail-page [data-layout-section="hero"] .temple-map-head > div {
    flex: 0 1 auto;
  }
}

@media (min-width: 1200px) {
  .surya-detail-page [data-layout-section="hero"] .temple-hero-benefits {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .surya-detail-page .surya-grid,
  .surya-detail-page .surya-reference-grid,
  .surya-detail-page .surya-nearby-grid,
  .surya-detail-page .surya-route,
  .surya-detail-page .surya-hub-grid,
  .surya-detail-page .brahma-hub-grid,
  body.surya-detail-page .temple-detail__process-timeline {
    grid-template-columns: minmax(0, 1fr);
  }

  body.surya-detail-page .temple-detail__process-timeline .temple-detail__timeline-step::after {
    display: none;
  }

  .surya-detail-page .surya-facts li,
  .surya-detail-page .surya-safety li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  body.surya-detail-page [data-layout-section="hero"] :is(
    .temple-keyinfo-card .temple-info-row,
    .temple-location-row
  ) {
    grid-template-columns: minmax(0, 1fr);
  }

  .surya-detail-page .temple-page-jumpnav {
    overflow-x: auto;
  }
}
