body.dattatreya-temple-detail-page {
  overflow-x: hidden;
}

body.dattatreya-temple-detail-page [data-layout-section="hero"] .dattatreya-hero-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

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

body.dattatreya-temple-detail-page [data-layout-section="hero"] .dattatreya-tech-row {
  display: grid;
  grid-template-columns: minmax(122px, 148px) minmax(0, 1fr);
  align-items: start;
  gap: 8px 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(145, 97, 34, .13);
}

body.dattatreya-temple-detail-page [data-layout-section="hero"] .dattatreya-tech-row:last-child {
  border-bottom: 0;
}

body.dattatreya-temple-detail-page [data-layout-section="hero"] .dattatreya-tech-row span {
  color: #6d4318;
  font-weight: 700;
}

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

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

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

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

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

body.dattatreya-temple-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.dattatreya-temple-detail-page [data-layout-section="hero"] .temple-map-head {
  align-items: start;
  gap: 10px 12px;
  flex-wrap: wrap;
}

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

body.dattatreya-temple-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.dattatreya-temple-detail-page .event .section__wrapper > .temple-section {
  margin: 0 !important;
  scroll-margin-top: 120px;
}

body.dattatreya-temple-detail-page.kashi-vishwanath-page .event.event-single.temple-detail-page > .container > .section__wrapper > .temple-page-jumpnav-shell + .temple-section,
body.dattatreya-temple-detail-page.kashi-vishwanath-page .event.event-single.temple-detail-page > .container > .section__wrapper > .temple-section + .temple-section {
  margin-top: 28px !important;
}

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

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

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

.dattatreya-temple-detail-page :is(.dattatreya-card, .dattatreya-reach-card, .dattatreya-related-card) h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.35;
}

.dattatreya-temple-detail-page :is(.dattatreya-facts, .dattatreya-safety) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dattatreya-temple-detail-page :is(.dattatreya-facts, .dattatreya-safety) li {
  display: grid;
  grid-template-columns: minmax(130px, .45fr) minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(145, 97, 34, .13);
}

.dattatreya-temple-detail-page :is(.dattatreya-facts, .dattatreya-safety) li:last-child {
  border-bottom: 0;
}

.dattatreya-temple-detail-page :is(.dattatreya-facts, .dattatreya-safety) strong {
  color: #6d4318;
}

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

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

.dattatreya-temple-detail-page .dattatreya-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;
}

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

.dattatreya-temple-detail-page .dattatreya-hub-grid .temple-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  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;
}

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

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

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

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

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

body.dattatreya-temple-detail-page [data-layout-section="hero"] .temple-detail__hero-map-preview iframe {
  width: 100%;
  border: 0;
}

@media (max-width: 1199.98px) {
  body.dattatreya-temple-detail-page.kashi-vishwanath-page .event.event-single.temple-detail-page > .container > .section__wrapper > .temple-page-jumpnav-shell + .temple-section,
  body.dattatreya-temple-detail-page.kashi-vishwanath-page .event.event-single.temple-detail-page > .container > .section__wrapper > .temple-section + .temple-section {
    margin-top: 18.42px !important;
  }

  .dattatreya-temple-detail-page :is(.dattatreya-grid, .dattatreya-nearby-grid, .dattatreya-reference-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

@media (max-width: 767.98px) {
  body.dattatreya-temple-detail-page.kashi-vishwanath-page .event.event-single.temple-detail-page > .container > .section__wrapper > .temple-page-jumpnav-shell + .temple-section,
  body.dattatreya-temple-detail-page.kashi-vishwanath-page .event.event-single.temple-detail-page > .container > .section__wrapper > .temple-section + .temple-section {
    margin-top: 22px !important;
  }

  .dattatreya-temple-detail-page :is(.dattatreya-grid, .dattatreya-nearby-grid, .dattatreya-reference-grid),
  .dattatreya-temple-detail-page .dattatreya-route,
  .dattatreya-temple-detail-page .dattatreya-hub-grid,
  body.dattatreya-temple-detail-page .temple-detail__process-timeline {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .dattatreya-temple-detail-page :is(.dattatreya-facts, .dattatreya-safety) li,
  body.dattatreya-temple-detail-page [data-layout-section="hero"] :is(.temple-keyinfo-card .temple-info-row, .dattatreya-tech-row) {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

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