/* Thai Wellness & Retreats — page-specific styles */

.tl-main.tl-main--well {
  padding: 0;
  background: #fdfbf7;
}

.tl-well {
  --well-paper: #fdfbf7;
  --well-paper-soft: #f5f0e8;
  --well-ink: #4a3728;
  --well-muted: #6b5a4a;
  --well-olive: #4b5320;
  --well-olive-deep: #3a4118;
  --well-sand: #c4a574;
  --well-sand-soft: #f3e6d4;
  --well-note: #3d6b8a;
  --well-line: rgba(74, 55, 40, 0.12);
  --well-white: #fff;
  color: var(--well-ink);
  font-family: "Bricolage Grotesque", sans-serif;
}

.tl-well__wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.tl-well-note {
  margin: 0;
  color: var(--well-note);
  font-family: Caveat, "Segoe Script", cursive;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 600;
  line-height: 1.15;
  transform: rotate(-4deg);
}

.tl-well-note--right {
  transform: rotate(4deg);
  text-align: right;
}

/* —— Intro —— */
.tl-well-intro {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 45% at 95% 5%, rgba(75, 83, 32, 0.08), transparent 55%),
    radial-gradient(ellipse 40% 40% at 0% 90%, rgba(196, 165, 116, 0.14), transparent 50%),
    var(--well-paper);
}

.tl-well-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(200px, 0.75fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

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

.tl-well-intro h2 {
  margin: 0 0 16px;
  max-width: 18ch;
  color: var(--well-ink);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(32px, 4.2vw, 46px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tl-well-intro__lead {
  max-width: 42em;
  margin: 0 0 32px;
  color: var(--well-muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
}

.tl-well-goals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tl-well-goal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.tl-well-goal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--well-paper-soft);
  color: var(--well-olive);
  transition: transform 0.35s ease;
}

.tl-well-goal:hover .tl-well-goal__icon {
  transform: translateY(-3px);
}

.tl-well-goal__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tl-well-goal span {
  color: var(--well-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.tl-well-intro__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  padding-top: 12px;
}

/* —— Sections —— */
.tl-well-section {
  position: relative;
  padding: 64px 0;
  border-top: 1px solid var(--well-line);
}

.tl-well-section--soft {
  background: linear-gradient(180deg, var(--well-paper-soft) 0%, var(--well-paper) 70%);
}

.tl-well-head {
  position: relative;
  max-width: 42rem;
  margin: 0 0 36px;
}

.tl-well-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 32px;
  max-width: none;
}

.tl-well-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 10px 0 0;
  border-radius: 50%;
  background: var(--well-olive);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  vertical-align: middle;
}

.tl-well-head h2 {
  display: inline;
  margin: 0;
  color: var(--well-ink);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tl-well-head__sub {
  margin: 14px 0 0;
  color: var(--well-muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
}

.tl-well-head__note {
  flex: 0 1 220px;
  margin-top: 8px;
}

.tl-well-head__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.tl-well-viewall {
  color: var(--well-olive);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.tl-well-viewall:hover {
  text-decoration: underline;
}

/* —— Pillar cards —— */
.tl-well-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.tl-well-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--well-white);
  border: 1px solid var(--well-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(74, 55, 40, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  scroll-margin-top: 88px;
}

.tl-well-card:hover {
  box-shadow: 0 16px 36px rgba(74, 55, 40, 0.1);
  transform: translateY(-3px);
}

.tl-well-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--well-paper-soft);
}

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

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

.tl-well-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 18px 16px 20px;
}

.tl-well-card__body h3 {
  margin: 0;
  color: var(--well-ink);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.tl-well-card__body p {
  margin: 0;
  flex: 1;
  color: var(--well-muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
}

.tl-well-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--well-olive);
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.tl-well-btn:hover {
  background: var(--well-olive-deep);
}

.tl-well-btn--taupe { background: #8b7355; }
.tl-well-btn--taupe:hover { background: #6f5a42; }
.tl-well-btn--olive { background: var(--well-olive); }
.tl-well-btn--blue { background: #3d6b8a; }
.tl-well-btn--blue:hover { background: #2f5570; }
.tl-well-btn--deep { background: #3a4118; }
.tl-well-btn--deep:hover { background: #2a3012; }

.tl-well-btn--lg {
  padding: 14px 26px;
  font-size: 15px;
  border-radius: 10px;
}

/* —— Comparison —— */
.tl-well-compare {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(200px, 0.6fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.tl-well-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--well-line);
  background: var(--well-white);
}

.tl-well-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}

.tl-well-table th,
.tl-well-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--well-line);
  line-height: 1.5;
}

.tl-well-table thead th {
  background: var(--well-olive);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.tl-well-table thead th:first-child {
  border-radius: 11px 0 0 0;
}

.tl-well-table thead th:last-child {
  border-radius: 0 11px 0 0;
}

.tl-well-table tbody th {
  color: var(--well-ink);
  font-weight: 600;
  width: 22%;
  background: var(--well-paper-soft);
}

.tl-well-table td {
  color: var(--well-muted);
  font-weight: 300;
}

.tl-well-table tbody tr:last-child th,
.tl-well-table tbody tr:last-child td {
  border-bottom: none;
}

.tl-well-summary {
  margin: 20px 0 0;
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--well-sand-soft);
  color: var(--well-ink);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
}

.tl-well-summary strong {
  font-weight: 600;
}

.tl-well-polaroid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.tl-well-polaroid__frame {
  width: min(100%, 260px);
  padding: 12px 12px 36px;
  background: var(--well-white);
  box-shadow:
    0 2px 4px rgba(74, 55, 40, 0.08),
    0 14px 32px rgba(74, 55, 40, 0.12);
  transform: rotate(3deg);
  transition: transform 0.35s ease;
}

.tl-well-polaroid:hover .tl-well-polaroid__frame {
  transform: rotate(1deg) translateY(-4px);
}

.tl-well-polaroid__frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.tl-well-polaroid .tl-well-note {
  text-align: center;
  transform: rotate(2deg);
}

/* —— Recommendations —— */
.tl-well-recs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.tl-well-rec {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none !important;
  color: inherit;
  background: var(--well-white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--well-line);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.tl-well-rec:hover {
  box-shadow: 0 16px 36px rgba(74, 55, 40, 0.1);
  transform: translateY(-3px);
}

.tl-well-rec__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--well-paper-soft);
}

.tl-well-rec__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.tl-well-rec:hover .tl-well-rec__media img {
  transform: scale(1.05);
}

.tl-well-rec__pin {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(253, 251, 247, 0.92);
  color: var(--well-ink);
  font-size: 12px;
  font-weight: 600;
}

.tl-well-rec__pin svg {
  width: 14px;
  height: 14px;
  fill: var(--well-olive);
}

.tl-well-rec__body {
  padding: 16px;
}

.tl-well-rec__body h3 {
  margin: 0 0 8px;
  color: var(--well-ink);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

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

/* —— Tips —— */
.tl-well-tips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tl-well-tip {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tl-well-tip__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--well-sand-soft);
  color: var(--well-sand);
}

.tl-well-tip__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tl-well-tip h3 {
  margin: 0;
  color: var(--well-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.tl-well-tip p {
  margin: 0;
  color: var(--well-muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
}

.tl-well-tips-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 36px;
}

/* —— CTA —— */
.tl-well-cta {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(58, 65, 24, 0.88), rgba(75, 83, 32, 0.65)),
    var(--well-cta-image, none) center / cover no-repeat;
  color: #fff;
}

.tl-well-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.tl-well-cta .tl-well-num {
  background: rgba(255, 255, 255, 0.22);
}

.tl-well-cta h2 {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.1;
}

.tl-well-cta p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
}

.tl-well-cta .tl-well-btn {
  background: #fff;
  color: var(--well-olive-deep) !important;
}

.tl-well-cta .tl-well-btn:hover {
  background: #cee253;
  color: var(--well-ink) !important;
}

.tl-well-cta__note {
  position: absolute;
  right: max(24px, calc((100% - 1120px) / 2));
  bottom: 36px;
  z-index: 1;
  color: #fff;
  transform: rotate(5deg);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* —— Related —— */
.tl-well-related {
  padding: 56px 0 72px;
  border-top: 1px solid var(--well-line);
  background: var(--well-paper);
}

.tl-well-related h2 {
  margin: 0 0 20px;
  color: var(--well-ink);
  font-size: 28px;
  font-weight: 500;
}

/* —— Responsive —— */
@media (max-width: 1024px) {
  .tl-well-pillars,
  .tl-well-recs,
  .tl-well-tips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .tl-well-compare {
    grid-template-columns: 1fr;
  }

  .tl-well-polaroid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .tl-well__wrap {
    width: min(100% - 32px, 1120px);
  }

  .tl-well-intro,
  .tl-well-section {
    padding: 44px 0;
  }

  .tl-well-intro__grid {
    grid-template-columns: 1fr;
  }

  .tl-well-intro__aside {
    align-items: flex-start;
  }

  .tl-well-pillars,
  .tl-well-recs,
  .tl-well-tips {
    grid-template-columns: 1fr;
  }

  .tl-well-goals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .tl-well-cta {
    padding: 56px 0;
  }

  .tl-well-cta__note {
    position: static;
    margin-top: 28px;
    transform: rotate(-3deg);
  }

  .tl-well-polaroid__frame {
    transform: rotate(1deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl-well-card,
  .tl-well-card__media img,
  .tl-well-rec,
  .tl-well-rec__media img,
  .tl-well-goal__icon,
  .tl-well-polaroid__frame {
    animation: none;
    transition: none;
  }
}
