.temples-page {
  --temples-ink: #193a31;
  --temples-muted: #64746e;
  --temples-green: #24674f;
  --temples-green-deep: #174c3d;
  --temples-gold: #e7c56e;
  --temples-cream: #f7f6ef;
  color: var(--temples-ink);
}

.temples-container {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}

.temples-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-block: 0.85rem;
  color: var(--temples-muted);
  font-size: 0.82rem;
}

.temples-breadcrumbs a {
  color: var(--temples-green);
  text-decoration: none;
}

.temples-breadcrumbs a:hover {
  text-decoration: underline;
}

.temples-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(31rem, 54vw, 43rem);
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #102b25;
}

.temples-hero-image,
.temples-hero-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.temples-hero-image {
  object-fit: cover;
  object-position: center 46%;
  animation: temples-hero-image-in 900ms ease-out both;
}

.temples-hero-shade {
  background:
    linear-gradient(90deg, rgb(8 28 24 / 88%) 0%, rgb(10 34 29 / 68%) 48%, rgb(13 38 32 / 15%) 100%),
    linear-gradient(0deg, rgb(8 28 24 / 32%), transparent 58%);
}

.temples-hero-content {
  position: relative;
  padding-block: clamp(4rem, 8vw, 7rem);
}

.temples-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: #f4d889;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.temples-eyebrow span {
  color: var(--temples-gold);
  font-size: 1.15rem;
}

.temples-hero h1 {
  max-width: 13ch;
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.99;
  text-wrap: balance;
}

.temples-hero-intro {
  max-width: 38rem;
  margin: 1.4rem 0 0;
  color: rgb(255 255 255 / 84%);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.75;
}

.temples-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.temples-button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.temples-button:hover {
  transform: translateY(-2px);
}

.temples-button:focus-visible,
.temples-text-link:focus-visible,
.temple-map-link:focus-visible,
.temples-clear-route:focus-visible {
  outline: 3px solid var(--temples-gold);
  outline-offset: 3px;
}

.temples-button--light {
  color: #183c30;
  background: #fff;
}

.temples-button--light:hover {
  background: #f2e7c4;
}

.temples-button--outline {
  border-color: rgb(255 255 255 / 65%);
  color: #fff;
  background: rgb(255 255 255 / 6%);
}

.temples-button--outline:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 15%);
}

.temples-button--dark {
  color: #fff;
  background: var(--temples-green-deep);
}

.temples-button--dark:hover {
  background: #0f3e30;
}

.temples-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.8rem;
  color: rgb(255 255 255 / 76%);
  font-size: 0.78rem;
}

.temples-hero-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}

.temples-hero-stats strong {
  color: #fff;
  font-size: 1.2rem;
}

.temples-hero-caption {
  position: absolute;
  right: max(1rem, calc((100vw - 1200px) / 2));
  bottom: 1rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 99px;
  color: rgb(255 255 255 / 82%);
  background: rgb(9 29 24 / 45%);
  font-size: 0.68rem;
}

.temples-explorer {
  padding-block: clamp(4rem, 8vw, 7rem);
  scroll-margin-top: 5.5rem;
}

.temples-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.temples-section-heading h2 {
  margin: 0;
  color: var(--temples-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.temples-section-heading p:not(.temples-eyebrow) {
  max-width: 42rem;
  margin: 0.85rem 0 0;
  color: var(--temples-muted);
  line-height: 1.7;
}

.temples-eyebrow--dark {
  margin-bottom: 0.7rem;
  color: var(--temples-green);
}

.temples-text-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
  color: var(--temples-green-deep);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.temples-text-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.temples-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-block: 2rem 0.75rem;
  padding: 1rem;
  border: 1px solid #e8eee9;
  border-radius: 1rem;
  background: #f8faf8;
}

.temples-controls[hidden],
.temple-card[hidden],
.temples-empty-state[hidden],
.temple-route-actions [hidden] {
  display: none !important;
}

.temples-search {
  display: grid;
  flex: 1 1 17rem;
  gap: 0.45rem;
}

.temples-search-label {
  color: var(--temples-ink);
  font-size: 0.78rem;
  font-weight: 750;
}

.temples-search-field {
  display: flex;
  min-height: 2.9rem;
  align-items: center;
  gap: 0.65rem;
  padding-inline: 0.8rem;
  border: 1px solid #dfe7e1;
  border-radius: 0.7rem;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.temples-search-field:focus-within {
  border-color: var(--temples-green);
  box-shadow: 0 0 0 3px rgb(36 103 79 / 12%);
}

.temples-search-field svg {
  width: 1.1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: #6a7e73;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.temples-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--temples-ink);
  background: transparent;
  font: inherit;
}

.temples-search-field input::placeholder {
  color: #8a9891;
}

.temples-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.temples-filter {
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid #dfe7e1;
  border-radius: 0.65rem;
  color: #50645a;
  background: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.temples-filter:hover {
  border-color: #a9c5b4;
  color: var(--temples-green-deep);
}

.temples-filter.is-selected {
  border-color: var(--temples-green-deep);
  color: #fff;
  background: var(--temples-green-deep);
}

.temples-filter:focus-visible,
.temple-route-toggle input:focus-visible,
.temples-search-field input:focus-visible,
.temple-faq-list summary:focus-visible {
  outline: 3px solid var(--temples-gold);
  outline-offset: 3px;
}

.temples-results {
  margin: 0 0 1rem;
  color: var(--temples-muted);
  font-size: 0.8rem;
}

.temples-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.temple-card {
  overflow: hidden;
  border: 1px solid #e5ebe6;
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 10px 30px rgb(27 68 49 / 5%);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  scroll-margin-top: 6rem;
}

.temple-card:hover {
  transform: translateY(-4px);
  border-color: #c5d8ca;
  box-shadow: 0 18px 38px rgb(27 68 49 / 11%);
}

.temple-card-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.58;
  margin: 0;
  background: #e7ece7;
}

.temple-card-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.temple-card:hover .temple-card-art img {
  transform: scale(1.035);
}

.temple-card-art figcaption {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 99px;
  color: #fff;
  background: rgb(10 31 25 / 58%);
  font-size: 0.62rem;
}

.temple-card-body {
  padding: 1.1rem;
}

.temple-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.temple-category {
  padding: 0.35rem 0.6rem;
  border: 1px solid #deebe1;
  border-radius: 99px;
  color: var(--temples-green-deep);
  background: #f2f7f3;
  font-size: 0.68rem;
  font-weight: 800;
}

.temple-card-number {
  color: #98a69e;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.temple-card h3 {
  margin: 0.85rem 0 0.15rem;
  color: var(--temples-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.temple-card-location {
  margin: 0;
  color: var(--temples-green);
  font-size: 0.76rem;
  font-weight: 700;
}

.temple-card-note {
  min-height: 3.2em;
  margin: 0.8rem 0 1.1rem;
  color: var(--temples-muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.temple-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 0.85rem;
  border-top: 1px solid #edf1ed;
}

.temple-route-toggle {
  display: inline-flex;
  min-height: 2.4rem;
  align-items: center;
  gap: 0.45rem;
  color: #53675c;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.temple-route-toggle input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--temples-green);
}

.temple-map-link {
  display: inline-flex;
  min-height: 2.4rem;
  align-items: center;
  gap: 0.35rem;
  color: var(--temples-green-deep);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.temple-map-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.temple-map-link svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.temples-empty-state {
  margin: 1rem 0;
  padding: 1.5rem;
  border: 1px dashed #cbd9ce;
  border-radius: 0.9rem;
  color: var(--temples-muted);
  background: #f8faf8;
  text-align: center;
}

.temple-route-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: clamp(1.1rem, 3vw, 1.8rem);
  border-radius: 1.1rem;
  color: #fff;
  background:
    radial-gradient(circle at 90% 15%, rgb(231 197 110 / 18%), transparent 30%),
    linear-gradient(120deg, #173f33, #245c45);
  box-shadow: 0 18px 40px rgb(27 68 49 / 13%);
}

.temple-route-copy {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.temple-route-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 0.75rem;
  color: #f4d889;
  background: rgb(255 255 255 / 8%);
  font-size: 1.25rem;
}

.temple-route-panel h2 {
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.temple-route-panel p {
  max-width: 40rem;
  margin: 0.4rem 0 0;
  color: rgb(255 255 255 / 78%);
  font-size: 0.82rem;
  line-height: 1.6;
}

.temple-route-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.6rem;
}

.temple-route-actions .temples-button {
  color: var(--temples-green-deep);
  background: #fff;
}

.temple-route-actions .temples-button:hover {
  background: #f2e7c4;
}

.temples-clear-route {
  min-height: 2.6rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 0.65rem;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.temples-clear-route:hover {
  background: rgb(255 255 255 / 12%);
}

.temple-visit-notes {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: var(--temples-cream);
  scroll-margin-top: 5rem;
}

.temples-section-heading--center {
  justify-content: center;
  margin-bottom: 1.7rem;
  text-align: center;
}

.temple-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.temple-note-card {
  padding: 1.35rem;
  border: 1px solid #e9e9dc;
  border-radius: 0.95rem;
  background: rgb(255 255 255 / 84%);
}

.temple-note-number {
  display: inline-flex;
  width: 2.2rem;
  height: 2.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  color: var(--temples-green-deep);
  background: #e8f0e9;
  font-size: 0.72rem;
  font-weight: 850;
}

.temple-note-card h3 {
  margin: 1rem 0 0.45rem;
  color: var(--temples-ink);
  font-size: 1rem;
}

.temple-note-card p {
  margin: 0;
  color: var(--temples-muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.temple-help-link {
  margin: 1.6rem 0 0;
  color: var(--temples-muted);
  font-size: 0.88rem;
  text-align: center;
}

.temple-help-link a {
  color: var(--temples-green-deep);
  font-weight: 750;
  text-underline-offset: 0.2rem;
}

.temple-faq {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.temple-faq-list {
  border-top: 1px solid #e4eae5;
}

.temple-faq-list details {
  border-bottom: 1px solid #e4eae5;
}

.temple-faq-list summary {
  display: flex;
  min-height: 3.6rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--temples-ink);
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.temple-faq-list summary::-webkit-details-marker {
  display: none;
}

.temple-faq-list summary::after {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border-right: 2px solid var(--temples-green);
  border-bottom: 2px solid var(--temples-green);
  content: "";
  transform: rotate(45deg) translateY(-0.15rem);
  transition: transform 160ms ease;
}

.temple-faq-list details[open] summary::after {
  transform: rotate(225deg) translate(-0.1rem, -0.05rem);
}

.temple-faq-list details p {
  max-width: 52rem;
  margin: 0;
  padding: 0 2rem 1.2rem 0;
  color: var(--temples-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

@keyframes temples-hero-image-in {
  from {
    opacity: 0.7;
    transform: scale(1.035);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .temples-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .temples-hero {
    min-height: 34rem;
    align-items: end;
  }

  .temples-hero-image {
    object-position: 58% center;
  }

  .temples-hero-shade {
    background:
      linear-gradient(0deg, rgb(8 28 24 / 92%) 0%, rgb(10 34 29 / 70%) 58%, rgb(13 38 32 / 12%) 100%),
      linear-gradient(90deg, rgb(8 28 24 / 25%), transparent);
  }

  .temples-hero-content {
    padding-block: 4rem 3rem;
  }

  .temples-hero h1 {
    max-width: 12ch;
    font-size: clamp(2.65rem, 12vw, 4rem);
  }

  .temples-hero-stats {
    gap: 0.8rem 1.1rem;
    margin-top: 2rem;
  }

  .temples-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .temples-filter-group {
    width: 100%;
  }

  .temples-filter {
    flex: 1 1 auto;
  }

  .temple-route-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .temple-route-actions {
    width: 100%;
  }

  .temple-route-actions .temples-button {
    flex: 1 1 auto;
  }

  .temple-note-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .temples-container {
    width: min(100% - 1.25rem, 1200px);
  }

  .temples-hero {
    min-height: 33rem;
  }

  .temples-hero-intro {
    font-size: 0.95rem;
  }

  .temples-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .temples-hero-actions .temples-button {
    width: 100%;
  }

  .temples-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .temple-card-note {
    min-height: 0;
  }

  .temple-card-body {
    padding: 1rem;
  }

  .temple-card-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .temples-hero-image,
  .temple-card-art img {
    animation: none;
    transition: none;
  }

  .temples-button,
  .temple-card,
  .temple-faq-list summary::after {
    transition: none;
  }
}
