/* Wat Phra Kaew — temple guide (ThailandLover) */
.tl-wpk {
  --wpk-gold: #b8954a;
  --wpk-gold-soft: #e8d9b0;
  --wpk-navy: #0d2e4d;
  --wpk-ink: #212121;
  --wpk-muted: #5c6570;
  --wpk-paper: #fbfaf7;
  --wpk-line: rgba(184, 149, 74, 0.35);
}

.tl-wpk-kicker {
  margin: 0 0 10px;
  color: var(--wpk-gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tl-wpk-script {
  margin: 0;
  font-family: Caveat, "Segoe Script", cursive;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--wpk-navy);
}

/* Hero */
.tl-wpk-hero {
  background: var(--wpk-paper);
  border-bottom: 1px solid rgba(13, 46, 77, 0.06);
}

.tl-wpk-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px 56px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 40px 64px;
}

.tl-wpk-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  color: var(--wpk-muted);
  font-size: 13px;
}

.tl-wpk-crumb li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: rgba(13, 46, 77, 0.35);
}

.tl-wpk-crumb a {
  color: var(--wpk-navy);
  text-decoration: none;
}

.tl-wpk-crumb a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tl-wpk-hero h1 {
  margin: 0 0 8px;
  color: var(--wpk-navy);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.tl-wpk-hero__sub {
  margin: 0 0 20px;
  color: var(--wpk-ink);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
}

.tl-wpk-hero__lead {
  margin: 0 0 14px;
  max-width: 36em;
  color: var(--wpk-muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
}

.tl-wpk-quote {
  position: relative;
  margin: 28px 0 0;
  padding: 18px 8px 8px;
  max-width: 28em;
  color: var(--wpk-navy);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(20px, 2.4vw, 26px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.tl-wpk-quote::before,
.tl-wpk-quote::after {
  content: "";
  display: block;
  width: 72px;
  height: 10px;
  margin: 0 auto;
  background:
    radial-gradient(circle at center, var(--wpk-gold) 1.5px, transparent 1.6px) center / 12px 10px repeat-x;
  opacity: 0.85;
}

.tl-wpk-quote::before {
  margin-bottom: 14px;
}

.tl-wpk-quote::after {
  margin-top: 14px;
}

.tl-wpk-hero__media {
  position: relative;
  overflow: hidden;
  border-radius: 4px 72px 4px 72px;
  box-shadow: 0 24px 60px rgba(13, 46, 77, 0.14);
}

.tl-wpk-hero__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.tl-wpk-hero__script {
  position: absolute;
  top: 18px;
  right: 20px;
  max-width: 10em;
  text-align: right;
  color: #fff;
  text-shadow: 0 4px 18px rgba(13, 46, 77, 0.45);
  font-family: Caveat, "Segoe Script", cursive;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1.2;
}

/* Highlights */
.tl-wpk-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 40px;
}

.tl-wpk-section__head {
  max-width: 40em;
  margin: 0 auto 36px;
  text-align: center;
}

.tl-wpk-section__head h2 {
  margin: 0 0 10px;
  color: var(--wpk-navy);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.15;
}

.tl-wpk-section__head p {
  margin: 0;
  color: var(--wpk-muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
}

.tl-wpk-hl-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.tl-wpk-hl {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  scroll-margin-top: 96px;
}

.tl-wpk-hl__media {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #ece8df;
  aspect-ratio: 1;
}

.tl-wpk-hl__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tl-wpk-hl:hover .tl-wpk-hl__media img {
  transform: scale(1.05);
}

.tl-wpk-hl__num {
  position: absolute;
  left: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--wpk-gold);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(13, 46, 77, 0.18);
}

.tl-wpk-hl.is-focus {
  border-radius: 12px;
  box-shadow: 0 0 0 3px rgba(184, 149, 74, 0.45);
}

.tl-wpk-hl h3 {
  margin: 0;
  color: var(--wpk-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.tl-wpk-hl p {
  margin: 0;
  color: var(--wpk-muted);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
}

/* Map */
.tl-wpk-map-section {
  background: linear-gradient(180deg, #f7f3ea 0%, #fbfaf7 100%);
  border-top: 1px solid var(--wpk-line);
  border-bottom: 1px solid var(--wpk-line);
}

.tl-wpk-map-wrap {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 200px;
  gap: 28px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 40px 72px;
}

.tl-wpk-map-legend {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 56px;
}

.tl-wpk-map-legend h3 {
  margin: 0 0 4px;
  color: var(--wpk-navy);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tl-wpk-map-legend__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--wpk-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

.tl-wpk-map-legend__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--wpk-gold);
}

.tl-wpk-map-legend__icon svg {
  width: 22px;
  height: 22px;
}

.tl-wpk-map-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.tl-wpk-map-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.tl-wpk-map-panel__head h2 {
  margin: 0;
  color: var(--wpk-navy);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  line-height: 1.15;
}

.tl-wpk-map-panel__head p {
  margin: 6px 0 0;
  color: var(--wpk-muted);
  font-size: 14px;
  font-weight: 300;
}

.tl-wpk-map-zoom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--wpk-navy);
  color: #fff !important;
  border: 0;
  border-radius: 80px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(13, 46, 77, 0.16);
}

.tl-wpk-map-zoom:hover {
  background: #10508e;
}

.tl-wpk-map-frame {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--wpk-line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(13, 46, 77, 0.08);
  cursor: zoom-in;
}

.tl-wpk-map-frame svg {
  display: block;
  width: 100%;
  height: auto;
}

.tl-wpk-map-pin {
  cursor: pointer;
  outline: none;
}

.tl-wpk-map-pin circle:first-child {
  fill: var(--wpk-gold);
  stroke: #fff;
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.tl-wpk-map-pin:hover circle:first-child,
.tl-wpk-map-pin:focus-visible circle:first-child,
.tl-wpk-map-pin.is-active circle:first-child {
  fill: var(--wpk-navy);
}

.tl-wpk-map-pin text {
  fill: #fff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.tl-wpk-map-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 56px;
}

.tl-wpk-map-aside .tl-wpk-script {
  color: var(--wpk-navy);
}

.tl-wpk-polaroid {
  align-self: flex-end;
  width: min(100%, 170px);
  padding: 10px 10px 28px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 12px 28px rgba(13, 46, 77, 0.12);
  transform: rotate(4deg);
}

.tl-wpk-polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.tl-wpk-polaroid span {
  display: block;
  margin-top: 8px;
  color: var(--wpk-navy);
  font-family: Caveat, "Segoe Script", cursive;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

/* Prepare */
.tl-wpk-prep {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.tl-wpk-prep__card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 22px 18px;
  background: #fff;
  border: 1px solid rgba(13, 46, 77, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(13, 46, 77, 0.04);
}

.tl-wpk-prep__card h3 {
  margin: 0;
  color: var(--wpk-navy);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.tl-wpk-prep__badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  padding: 4px 10px;
  background: #f3e6c8;
  color: #8a6a24;
  border-radius: 80px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tl-wpk-prep__card p,
.tl-wpk-prep__card li {
  color: var(--wpk-muted);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
}

.tl-wpk-prep__card p {
  margin: 0;
}

.tl-wpk-prep__card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tl-wpk-prep__card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.tl-wpk-prep__card li + li {
  margin-top: 10px;
}

.tl-wpk-prep__card li svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--wpk-gold);
}

.tl-wpk-dress {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tl-wpk-dress__col {
  padding: 12px 10px;
  border-radius: 12px;
  text-align: center;
}

.tl-wpk-dress__col--no {
  background: #fbebe9;
}

.tl-wpk-dress__col--yes {
  background: #eef6ea;
}

.tl-wpk-dress__label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tl-wpk-dress__col--no .tl-wpk-dress__label {
  color: #b42318;
}

.tl-wpk-dress__col--yes .tl-wpk-dress__label {
  color: #3f8f5a;
}

.tl-wpk-dress__figures {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.tl-wpk-dress__figures svg {
  width: 36px;
  height: 56px;
}

.tl-wpk-tip {
  margin-top: auto;
  padding: 12px 14px;
  background: #f7f3ea;
  border-left: 3px solid var(--wpk-gold);
  border-radius: 0 10px 10px 0;
  color: var(--wpk-ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

/* Closing CTA */
.tl-wpk-cta {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 64px 40px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(13, 46, 77, 0.72) 0%, rgba(13, 46, 77, 0.82) 100%),
    var(--tl-wpk-cta-image) center / cover no-repeat;
}

.tl-wpk-cta blockquote {
  margin: 0;
  max-width: 18em;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 42px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
}

.tl-wpk-cta .tl-wpk-script {
  position: absolute;
  right: 40px;
  bottom: 28px;
  color: rgba(255, 255, 255, 0.92);
  text-align: right;
}

/* Lightbox */
.tl-wpk-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 46, 77, 0.88);
}

.tl-wpk-lightbox.is-open {
  display: flex;
}

.tl-wpk-lightbox__dialog {
  position: relative;
  width: min(1100px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.tl-wpk-lightbox__close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 0 8px 8px;
  background: var(--wpk-navy);
  color: #fff;
  border: 0;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.tl-wpk-lightbox__dialog svg {
  display: block;
  width: 100%;
  height: auto;
}

.tl-wpk-lightbox__hint {
  margin: 12px 0 0;
  color: var(--wpk-muted);
  font-size: 13px;
  text-align: center;
}

body.tl-wpk-no-scroll {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .tl-wpk-hl__media img {
    transition: none;
  }

  .tl-wpk-hl:hover .tl-wpk-hl__media img {
    transform: none;
  }
}

@media (max-width: 1100px) {
  .tl-wpk-hl-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tl-wpk-map-wrap {
    grid-template-columns: 1fr;
  }

  .tl-wpk-map-legend,
  .tl-wpk-map-aside {
    padding-top: 0;
  }

  .tl-wpk-map-legend {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .tl-wpk-map-aside {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .tl-wpk-prep {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .tl-wpk-hero__inner,
  .tl-wpk-section,
  .tl-wpk-map-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .tl-wpk-hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 28px;
    padding-bottom: 40px;
  }

  .tl-wpk-hero__media {
    border-radius: 4px 48px 4px 48px;
    order: -1;
  }

  .tl-wpk-hero__media img {
    aspect-ratio: 16 / 11;
  }

  .tl-wpk-hl-row,
  .tl-wpk-prep {
    grid-template-columns: 1fr;
  }

  .tl-wpk-map-aside {
    flex-direction: column;
    align-items: flex-start;
  }

  .tl-wpk-cta .tl-wpk-script {
    position: static;
    margin-top: 24px;
    text-align: center;
  }
}

/* Map photo showcase */
.tl-wpk-map-showcase {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 40px 72px;
}

.tl-wpk-map-showcase__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: 28px;
}

.tl-wpk-map-showcase__head h2 {
  margin: 0;
  color: var(--wpk-navy);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.12;
}

.tl-wpk-map-showcase__head p:last-child {
  max-width: 40em;
  margin: 10px 0 0;
  color: var(--wpk-muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
}

.tl-wpk-map-showcase__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 28px;
  align-items: end;
}

.tl-wpk-map-photo {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--wpk-line);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(13, 46, 77, 0.1);
  cursor: zoom-in;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tl-wpk-map-photo:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 56px rgba(13, 46, 77, 0.14);
}

.tl-wpk-map-photo img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.tl-wpk-map-photo__hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(13, 46, 77, 0.88);
  color: #fff;
  border-radius: 80px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(13, 46, 77, 0.2);
  pointer-events: none;
}

.tl-wpk-map-showcase .tl-wpk-map-aside {
  padding-top: 0;
  justify-content: flex-end;
}

.tl-wpk-lightbox__dialog img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 1100px) {
  .tl-wpk-map-showcase__body {
    grid-template-columns: 1fr;
  }

  .tl-wpk-map-showcase .tl-wpk-map-aside {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 767px) {
  .tl-wpk-map-showcase {
    padding: 48px 20px 56px;
  }

  .tl-wpk-map-showcase .tl-wpk-map-aside {
    flex-direction: column;
    align-items: flex-start;
  }

  .tl-wpk-map-photo__hint {
    right: 12px;
    bottom: 12px;
    padding: 8px 12px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl-wpk-map-photo,
  .tl-wpk-map-photo:hover {
    transition: none;
    transform: none;
  }
}
