/* Southern Thailand region hub */

.tl-south {
  --south-gold: #d4a04a;
  --south-gold-deep: #a87428;
  --south-gold-soft: #edd9a8;
  --south-sea: #0d5c68;
  --south-sea-deep: #062f36;
  --south-forest: #0d5c68;
  --south-forest-deep: #062f36;
  --south-mist: #3d7a88;
  --south-lagoon: #1a8a9a;
  --south-ink: #1a1f24;
  --south-muted: #5a6169;
  --south-cream: #faf8f4;
  --south-paper: #f1ebe0;
  --south-line: rgba(26, 31, 36, 0.1);
  --south-serif: "Cormorant Garamond", "Times New Roman", serif;
  --south-script: "Caveat", "Segoe Script", cursive;
  --south-sans: "Bricolage Grotesque", system-ui, sans-serif;
}

/* —— Hero —— */
.tl-south-hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background-color: var(--south-forest);
  background-image: var(--south-hero-image);
  background-position: center 42%;
  background-repeat: no-repeat;
  background-size: cover;
  padding: var(--tl-cover-pad-top, 80px) 0 var(--tl-cover-pad-bottom, 64px);
  overflow: hidden;
  min-height: var(--tl-cover-min-height, 420px);
  display: flex;
  align-items: flex-end;
}

.tl-south-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(6, 47, 54, 0.92) 0%,
    rgba(13, 92, 104, 0.55) 48%,
    rgba(13, 92, 104, 0.28) 100%
  );
}

.tl-south-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.tl-south-hero__copy {
  max-width: 40em;
}

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

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

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

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

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

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

.tl-south-hero__lead {
  margin: 0 0 16px;
  font-family: var(--south-serif);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
}

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

.tl-south-hero__script {
  position: absolute;
  top: calc(var(--tl-cover-pad-top, 80px) + 8px);
  right: max(24px, calc((100% - 1180px) / 2));
  z-index: 2;
  margin: 0;
  max-width: 10em;
  font-family: var(--south-script);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  text-align: right;
  color: #f3e7c8;
  pointer-events: none;
}

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

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

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

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

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

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

.tl-south-section--tight {
  padding-top: 56px;
}

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

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

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

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

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

.tl-south-section__lead {
  margin: 0 0 28px;
  max-width: 42em;
  font-size: 16px;
  line-height: 1.65;
  color: var(--south-muted);
}

/* Introduction */
.tl-south-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.95fr);
  gap: 40px 48px;
  align-items: start;
}

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

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

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

.tl-south-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.tl-south-pillar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 0;
  background: transparent;
  color: inherit;
  text-decoration: none !important;
}

.tl-south-pillar__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--south-gold);
  border-radius: 50%;
  color: var(--south-gold-deep);
}

.tl-south-pillar__icon svg {
  width: 22px;
  height: 22px;
}

.tl-south-pillar strong {
  display: block;
  font-family: var(--south-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--south-ink);
}

.tl-south-pillar span {
  font-size: 12px;
  line-height: 1.4;
  color: var(--south-muted);
}

.tl-south-map-card {
  position: relative;
  justify-self: end;
  width: min(100%, 440px);
  padding: 14px 14px 18px;
  background: linear-gradient(160deg, #eef6f7 0%, #d9e8ea 100%);
  border: 1px solid rgba(13, 92, 104, 0.18);
  box-shadow:
    0 18px 40px rgba(6, 47, 54, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  transform: rotate(1.2deg);
}

.tl-south-map-card__label {
  margin: 0 0 10px;
  font-family: var(--south-script);
  font-size: 28px;
  font-weight: 600;
  color: #0d5c68;
  line-height: 1.1;
  text-align: center;
}

.tl-south-map {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fff;
  border-radius: 2px;
}

.tl-south-map__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
}

.tl-south-map-card__note {
  margin: 12px 0 0;
  font-family: var(--south-script);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: #a87428;
}

/* Feature highlight rows */
.tl-south-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px 48px;
  align-items: center;
  margin-bottom: 56px;
}

.tl-south-feature:last-child {
  margin-bottom: 0;
}

.tl-south-feature--flip {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.tl-south-feature--flip .tl-south-feature__media {
  order: 2;
}

.tl-south-feature--flip .tl-south-feature__body {
  order: 1;
}

.tl-south-feature__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: #d8d2c4;
  opacity: 0;
  transform: translateY(16px);
  animation: tl-south-fade-up 0.7s ease forwards;
}

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

.tl-south-feature:hover .tl-south-feature__media img {
  transform: scale(1.03);
}

.tl-south-feature__body {
  opacity: 0;
  transform: translateY(16px);
  animation: tl-south-fade-up 0.7s ease forwards;
  animation-delay: 0.08s;
}

.tl-south-feature__list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tl-south-feature__list li {
  padding: 0 0 0 18px;
  border-left: 2px solid var(--south-gold);
}

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

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

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

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

.tl-south-card:nth-child(1) { animation-delay: 0.05s; }
.tl-south-card:nth-child(2) { animation-delay: 0.12s; }
.tl-south-card:nth-child(3) { animation-delay: 0.19s; }

.tl-south-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  margin-bottom: 14px;
  border-radius: 6px;
  background: #d8d2c4;
}

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

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

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

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

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

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

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

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

/* Tip + practical */
.tl-south-practical {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(220px, 0.85fr);
  gap: 28px 32px;
  align-items: start;
}

.tl-south-guide-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px 16px;
  align-items: start;
}

.tl-south-guide-item__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--south-gold);
  border-radius: 50%;
  color: var(--south-gold-deep);
}

.tl-south-guide-item__icon svg {
  width: 22px;
  height: 22px;
}

.tl-south-guide-item h3 {
  margin: 0 0 8px;
  font-family: var(--south-serif);
  font-size: 22px;
  font-weight: 600;
}

.tl-south-guide-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--south-muted);
}

.tl-south-tip {
  padding: 20px 18px;
  background: linear-gradient(165deg, #fff9ef 0%, #e8f4f5 100%);
  border: 1px solid rgba(13, 92, 104, 0.22);
  box-shadow: 0 10px 28px rgba(6, 47, 54, 0.08);
  transform: rotate(1.5deg);
}

.tl-south-tip__label {
  margin: 0 0 8px;
  font-family: var(--south-script);
  font-size: 24px;
  font-weight: 600;
  color: var(--south-gold-deep);
  line-height: 1.1;
}

.tl-south-tip p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--south-ink);
}

/* Closing CTA */
.tl-south-cta {
  position: relative;
  isolation: isolate;
  margin-top: 56px;
  padding: 96px 24px 88px;
  color: #fff;
  text-align: center;
  background-color: var(--south-forest-deep);
  background-image: var(--south-cta-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.tl-south-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(6, 47, 54, 0.88) 0%,
    rgba(6, 47, 54, 0.52) 55%,
    rgba(6, 47, 54, 0.4) 100%
  );
}

.tl-south-cta > * {
  position: relative;
  z-index: 1;
}

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

.tl-south-cta__sticky {
  position: absolute;
  right: max(24px, calc((100% - 1180px) / 2));
  top: 36px;
  width: min(100%, 180px);
  padding: 18px 14px 16px;
  background: rgba(255, 252, 245, 0.94);
  color: #4a3d1f;
  font-family: var(--south-script);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  transform: rotate(2.5deg);
  box-shadow: 2px 10px 22px rgba(0, 0, 0, 0.2);
}

.tl-south-cta__sticky ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tl-south-cta__sticky li {
  margin: 0 0 4px;
}

.tl-south-cta__quote {
  margin: 0 auto 28px;
  max-width: 22em;
  font-family: var(--south-serif);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
}

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

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

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

/* Share + newsletter strip */
.tl-south-engage {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 8px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px 48px;
  align-items: center;
}

.tl-south-share__label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--south-muted);
}

.tl-south-share__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tl-south-share__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--south-line);
  border-radius: 50%;
  background: #fff;
  color: var(--south-forest);
  font: inherit;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tl-south-share__btn:hover {
  background: var(--south-forest);
  border-color: var(--south-forest);
  color: #fff;
}

.tl-south-share__btn svg {
  width: 16px;
  height: 16px;
}

.tl-south-news {
  justify-self: end;
  width: min(100%, 420px);
}

.tl-south-news__label {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--south-ink);
}

.tl-south-news__form {
  display: flex;
  gap: 8px;
}

.tl-south-news__form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--south-line);
  border-radius: 6px;
  background: #fff;
  font-family: var(--south-sans);
  font-size: 14px;
  color: var(--south-ink);
}

.tl-south-news__form input[type="email"]::placeholder {
  color: #8a9199;
}

.tl-south-news__form button {
  flex-shrink: 0;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--south-forest);
  color: #fff;
  font-family: var(--south-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.tl-south-news__form button:hover {
  background: var(--south-forest-deep);
}

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

@media (prefers-reduced-motion: reduce) {
  .tl-south-card,
  .tl-south-feature__media,
  .tl-south-feature__body {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .tl-south-btn,
  .tl-south-card__media img,
  .tl-south-feature__media img,
  .tl-south-cta__sticky,
  .tl-south-tip {
    transition: none;
  }
}

@media (max-width: 1100px) {
  .tl-south-pillars,
  .tl-south-theme-grid {
    grid-template-columns: 1fr;
  }

  .tl-south-feature,
  .tl-south-feature--flip {
    grid-template-columns: 1fr;
  }

  .tl-south-feature--flip .tl-south-feature__media,
  .tl-south-feature--flip .tl-south-feature__body {
    order: unset;
  }

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

  .tl-south-tip {
    transform: none;
  }
}

@media (max-width: 860px) {
  .tl-south-hero {
    padding: var(--tl-cover-pad-top, 56px) 0 var(--tl-cover-pad-bottom, 48px);
    min-height: var(--tl-cover-min-height, 320px);
  }

  .tl-south-hero__script {
    position: static;
    display: block;
    margin: 0 0 18px;
    max-width: none;
    text-align: left;
  }

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

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

  .tl-south-engage {
    grid-template-columns: 1fr;
  }

  .tl-south-news {
    justify-self: stretch;
    width: 100%;
  }

  .tl-south-cta__script,
  .tl-south-cta__sticky {
    position: static;
    margin: 0 auto 20px;
    text-align: center;
    transform: none;
  }

  .tl-south-cta__sticky {
    width: min(100%, 220px);
  }
}

@media (max-width: 640px) {
  .tl-south-hero__inner,
  .tl-south-section,
  .tl-south-engage {
    width: min(100% - 32px, 1180px);
  }

  .tl-south-section {
    padding: 52px 0 16px;
  }

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

  .tl-south-news__form {
    flex-direction: column;
  }

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