/* Northern Thailand region hub — mockup layout */

.tl-north {
  --north-forest: #4a7a3f;
  --north-forest-deep: #2f5528;
  --north-sand: #e8dfc8;
  --north-paper: #f4efe4;
  --north-ink: #1c2418;
  --north-muted: #5a6454;
  --north-gold: #c4a35a;
  --north-gold-deep: #8f6f2e;
  --north-cream: #faf8f3;
  --north-line: rgba(28, 36, 24, 0.1);
  --north-serif: "Cormorant Garamond", "Times New Roman", serif;
  --north-script: "Caveat", "Segoe Script", cursive;
  --north-sans: "Bricolage Grotesque", system-ui, sans-serif;
}

/* —— Hero —— */
.tl-north-hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background-color: var(--tl-navy, #0d2e4d);
  background-image: var(--north-hero-image);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: var(--tl-cover-pad-top, 80px) 0 0;
  overflow: hidden;
  min-height: var(--tl-cover-min-height, 420px);
}

/* Same navy photo filter as .tl-hero--photo on other pages */
.tl-north-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(13, 46, 77, 0.84) 0%,
    rgba(13, 46, 77, 0.46) 52%,
    rgba(13, 46, 77, 0.22) 100%
  );
}

.tl-north-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.75fr);
  gap: 24px 28px;
  align-items: center;
  padding-bottom: 24px;
}

.tl-north-hero h1,
.tl-north-hero__lead,
.tl-north-kicker,
.tl-north-hero .tl-crumb,
.tl-north-hero__intro,
.tl-north-script {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.tl-north-hero .tl-crumb {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.78);
}

.tl-north-hero .tl-crumb a {
  color: rgba(255, 255, 255, 0.9);
}

.tl-north-hero .tl-crumb a:hover {
  color: #fff;
}

.tl-north-kicker {
  margin: 0 0 10px;
  font-family: var(--north-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--north-gold);
}

.tl-north-hero h1 {
  margin: 0 0 12px;
  font-family: var(--north-serif);
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
}

.tl-north-hero__lead {
  margin: 0 0 16px;
  font-family: var(--north-sans);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.tl-north-hero__intro {
  margin: 0 0 22px;
  max-width: 36em;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.tl-north-script {
  margin: 0;
  font-family: var(--north-script);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  color: #f3e7c8;
}

.tl-north-script span {
  display: block;
}

/* Map card — Explore the North (north-02 art) */
.tl-north-map-card {
  position: relative;
  justify-self: end;
  width: min(100%, 280px);
  padding: 8px 8px 10px;
  background:
    linear-gradient(160deg, #f7f1e4 0%, #ebe2cf 100%);
  border: 1px solid rgba(90, 70, 40, 0.18);
  box-shadow:
    0 18px 40px rgba(8, 16, 10, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  transform: rotate(1.5deg);
}

.tl-north-map-card__label {
  position: absolute;
  top: auto;
  bottom: 10px;
  left: 50%;
  z-index: 2;
  margin: 0;
  transform: translateX(-50%);
  padding: 2px 10px;
  background: rgba(247, 241, 228, 0.94);
  border-radius: 4px;
  font-family: var(--north-script);
  font-size: 20px;
  font-weight: 600;
  color: #5a3d1f;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(40, 30, 10, 0.12);
}

.tl-north-map {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-top: 0;
}

.tl-north-map__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.tl-north-map__pin {
  position: absolute;
  z-index: 3;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c45c3a;
  box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
  text-decoration: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tl-north-map__pin:hover,
.tl-north-map__pin:focus-visible {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(0, 0, 0, 0.35);
}

.tl-north-map__pin::before,
.tl-north-map__pin span {
  display: none;
}

/* Pins aligned to north-02 province layout */
/* Pins aligned to north-02 province label centers */
.tl-north-map__pin--cr { left: 55%; top: 14%; }   /* Chiang Rai */
.tl-north-map__pin--py { left: 62%; top: 22%; }   /* Phayao */
.tl-north-map__pin--nan { left: 75%; top: 28%; }  /* Nan */
.tl-north-map__pin--mhs { left: 30%; top: 35%; }  /* Mae Hong Son */
.tl-north-map__pin--cm { left: 46%; top: 35%; }   /* Chiang Mai */
.tl-north-map__pin--lh { left: 49%; top: 43%; }   /* Lamphun */
.tl-north-map__pin--lp { left: 58%; top: 47%; }   /* Lampang */
.tl-north-map__pin--pr { left: 66%; top: 38%; }   /* Phrae */
.tl-north-map__pin--ut { left: 70%; top: 54%; }   /* Uttaradit */

/* Topics bar */
.tl-north-topics {
  position: relative;
  z-index: 1;
  background: rgba(250, 248, 243, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.tl-north-topics__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px 12px;
  padding: 18px 0 20px;
}

.tl-north-topic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  text-align: center;
  color: var(--north-ink);
  text-decoration: none !important;
}

.tl-north-topic__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--north-forest);
}

.tl-north-topic__icon svg {
  width: 28px;
  height: 28px;
}

.tl-north-topic__label {
  font-family: var(--north-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.tl-north-topic__desc {
  margin: 0;
  max-width: 14em;
  font-size: 11px;
  line-height: 1.35;
  color: var(--north-muted);
}

/* —— Main sections —— */
.tl-north-main {
  background: var(--north-cream);
  color: var(--north-ink);
}

.tl-north-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 24px;
}

.tl-north-section--tight {
  padding-top: 48px;
}

.tl-north-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.tl-north-section__kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--north-gold-deep);
}

.tl-north-section h2 {
  margin: 0;
  font-family: var(--north-serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--north-ink);
}

.tl-north-section__link {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--north-forest-deep);
  text-decoration: none !important;
  white-space: nowrap;
}

.tl-north-section__link:hover {
  color: var(--north-gold-deep);
}

.tl-north-section__lead {
  margin: -8px 0 22px;
  max-width: 46em;
  font-size: 16px;
  line-height: 1.65;
  color: var(--north-muted);
}

.tl-north-prov-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.tl-north-prov-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--north-line);
  border-radius: 999px;
  background: #fff;
  color: var(--north-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tl-north-prov-nav a:hover,
.tl-north-prov-nav a:focus-visible {
  border-color: var(--north-forest);
  background: var(--north-paper);
  color: var(--north-forest-deep);
}

.tl-north-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px 48px;
  align-items: start;
}

.tl-north-intro__body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--north-muted);
}

.tl-north-intro__body p {
  margin: 0 0 14px;
}

.tl-north-intro__body p:last-child {
  margin-bottom: 0;
}

.tl-north-pillars {
  display: grid;
  gap: 14px;
}

.tl-north-pillar {
  padding: 16px 18px;
  background: #fff;
  border-left: 3px solid var(--north-forest);
  box-shadow: 0 8px 20px rgba(28, 36, 24, 0.05);
}

.tl-north-pillar strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--north-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--north-ink);
}

.tl-north-pillar span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--north-muted);
}

/* Destination cards */
.tl-north-dest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
}

.tl-north-card {
  display: flex;
  flex-direction: column;
  scroll-margin-top: 96px;
  color: inherit;
  text-decoration: none !important;
  background: transparent;
  opacity: 0;
  transform: translateY(16px);
  animation: tl-north-fade-up 0.7s ease forwards;
}

.tl-north-card:nth-child(1) { animation-delay: 0.04s; }
.tl-north-card:nth-child(2) { animation-delay: 0.09s; }
.tl-north-card:nth-child(3) { animation-delay: 0.14s; }
.tl-north-card:nth-child(4) { animation-delay: 0.19s; }
.tl-north-card:nth-child(5) { animation-delay: 0.24s; }
.tl-north-card:nth-child(6) { animation-delay: 0.29s; }
.tl-north-card:nth-child(7) { animation-delay: 0.34s; }
.tl-north-card:nth-child(8) { animation-delay: 0.39s; }
.tl-north-card:nth-child(9) { animation-delay: 0.44s; }

.tl-north-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin-bottom: 14px;
  background: #d8d2c4;
}

.tl-north-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.tl-north-card:hover .tl-north-card__media img {
  transform: scale(1.04);
}

.tl-north-card__thai {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--north-gold-deep);
}

.tl-north-card h3 {
  margin: 0 0 4px;
  font-family: var(--north-serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
}

.tl-north-card h3 a {
  color: inherit;
  text-decoration: none;
}

.tl-north-card h3 a:hover {
  color: var(--north-gold-deep);
}

.tl-north-card__tag {
  margin: 0 0 8px !important;
  flex: 0 0 auto !important;
  font-family: var(--north-script);
  font-size: 18px !important;
  font-weight: 600;
  line-height: 1.25 !important;
  color: var(--north-forest-deep) !important;
}

.tl-north-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
}

.tl-north-card p {
  margin: 0 0 12px;
  flex: 1;
  font-size: 14px;
  line-height: 1.55;
  color: var(--north-muted);
}

.tl-north-card__more {
  font-size: 14px;
  font-weight: 600;
  color: var(--north-forest-deep);
}

.tl-north-card:hover .tl-north-card__more {
  color: var(--north-gold-deep);
}

/* Culture + Nature */
.tl-north-culture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.tl-north-culture-card {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px);
  animation: tl-north-fade-up 0.7s ease forwards;
}

.tl-north-culture-card:nth-child(1) { animation-delay: 0.08s; }
.tl-north-culture-card:nth-child(2) { animation-delay: 0.16s; }
.tl-north-culture-card:nth-child(3) { animation-delay: 0.24s; }

.tl-north-culture-card__media {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  margin-bottom: 14px;
  background: #d8d2c4;
}

.tl-north-culture-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.tl-north-culture-card:hover .tl-north-culture-card__media img {
  transform: scale(1.04);
}

.tl-north-culture-card h3 {
  margin: 0 0 8px;
  font-family: var(--north-serif);
  font-size: 22px;
  font-weight: 600;
}

.tl-north-culture-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--north-muted);
}

.tl-north-nature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.tl-north-nature-card {
  display: block;
  color: inherit;
  text-decoration: none !important;
  opacity: 0;
  transform: translateY(16px);
  animation: tl-north-fade-up 0.7s ease forwards;
}

.tl-north-nature-card:nth-child(1) { animation-delay: 0.1s; }
.tl-north-nature-card:nth-child(2) { animation-delay: 0.2s; }

.tl-north-nature-card__media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 14px;
  background: #d8d2c4;
}

.tl-north-nature-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.tl-north-nature-card:hover .tl-north-nature-card__media img {
  transform: scale(1.03);
}

.tl-north-nature-card h3 {
  margin: 0 0 8px;
  font-family: var(--north-serif);
  font-size: 26px;
  font-weight: 600;
}

.tl-north-nature-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--north-muted);
}

/* Practical guide */
.tl-north-practical {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(180px, 0.75fr);
  gap: 28px 24px;
  align-items: start;
}

.tl-north-guide-col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--north-serif);
  font-size: 22px;
  font-weight: 600;
}

.tl-north-guide-col__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--north-forest);
  flex-shrink: 0;
}

.tl-north-guide-col__icon svg {
  width: 24px;
  height: 24px;
}

.tl-north-guide-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tl-north-guide-col li {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--north-line);
  font-size: 14px;
  line-height: 1.5;
  color: var(--north-muted);
}

.tl-north-guide-col li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.tl-north-guide-col li strong {
  display: block;
  margin-bottom: 2px;
  color: var(--north-ink);
  font-weight: 600;
}

.tl-north-sticky {
  position: relative;
  justify-self: end;
  width: min(100%, 200px);
  padding: 24px 18px 22px;
  background: #f3e4a8;
  color: #4a3d1f;
  font-family: var(--north-script);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  transform: rotate(2.5deg);
  box-shadow: 2px 10px 22px rgba(28, 22, 18, 0.12);
  transition: transform 0.35s ease;
}

.tl-north-sticky:hover {
  transform: rotate(0.5deg) translateY(-2px);
}

.tl-north-sticky::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 52px;
  height: 16px;
  margin-left: -26px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  transform: rotate(-2deg);
}

.tl-north-sticky__title {
  margin: 0 0 10px;
  font-size: 26px;
}

.tl-north-sticky ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tl-north-sticky li {
  position: relative;
  margin: 0 0 6px;
  padding-left: 1.35em;
}

.tl-north-sticky li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #6a5520;
}

/* Closing CTA */
.tl-north-cta {
  position: relative;
  isolation: isolate;
  margin-top: 56px;
  padding: 88px 24px 72px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(18, 22, 16, 0.35) 0%, rgba(18, 22, 16, 0.55) 55%, rgba(18, 22, 16, 0.7) 100%),
    var(--north-cta-image) center / cover no-repeat;
}

.tl-north-cta__script {
  position: absolute;
  left: max(24px, calc((100% - 1180px) / 2));
  top: 28px;
  margin: 0;
  max-width: 10em;
  font-family: var(--north-script);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  color: #f5e9c8;
}

.tl-north-cta__quote {
  margin: 0 auto 28px;
  max-width: 16em;
  font-family: var(--north-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
}

.tl-north-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
  margin-bottom: 28px;
}

.tl-north-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--north-gold);
  color: #1c180c;
  font-family: var(--north-sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.tl-north-btn:hover {
  background: #d4b56a;
  transform: translateY(-1px);
}

.tl-north-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
}

.tl-north-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.tl-north-cta__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 0 0 36px;
  font-size: 14px;
}

.tl-north-cta__links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tl-north-cta__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  width: min(1180px, 100%);
  margin: 0 auto;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.tl-north-cta__brand strong {
  font-family: var(--north-serif);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

@keyframes tl-north-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl-north-card,
  .tl-north-culture-card,
  .tl-north-nature-card {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .tl-north-map__pin,
  .tl-north-sticky,
  .tl-north-btn,
  .tl-north-card__media img,
  .tl-north-culture-card__media img,
  .tl-north-nature-card__media img {
    transition: none;
  }
}

@media (max-width: 1100px) {
  .tl-north-dest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tl-north-practical {
    grid-template-columns: 1fr 1fr;
  }

  .tl-north-sticky {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

@media (max-width: 860px) {
  .tl-north-hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tl-north-map-card {
    justify-self: center;
    transform: none;
  }

  .tl-north-topics__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tl-north-intro {
    grid-template-columns: 1fr;
  }

  .tl-north-culture-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tl-north-cta__script {
    position: static;
    margin: 0 auto 20px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .tl-north-hero {
    padding-top: var(--tl-cover-pad-top, 56px);
    min-height: var(--tl-cover-min-height, 320px);
  }

  .tl-north-hero__inner {
    width: min(100% - 32px, 1180px);
  }

  .tl-north-section {
    width: min(100% - 32px, 1180px);
    padding: 52px 0 16px;
  }

  .tl-north-section__head {
    flex-direction: column;
    align-items: start;
  }

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

  .tl-north-topic:last-child {
    grid-column: 1 / -1;
  }

  .tl-north-dest-grid,
  .tl-north-culture-grid,
  .tl-north-nature-grid,
  .tl-north-practical {
    grid-template-columns: 1fr;
  }

  .tl-north-map__pin span {
    font-size: 9px;
  }

  .tl-north-cta {
    padding: 64px 16px 56px;
  }

  .tl-north-cta__brand {
    align-items: center;
  }
}
