@import url("https://fonts.googleapis.com/css2?family=Sarabun:wght@400;500;600;700&family=Noto+Sans+Thai:wght@400;500;600;700&display=swap");

/* =========================
   MALI TRIP
   Clean Thailand-first design
========================= */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #fffaf3;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --border: #e8e1da;
  --orange: #ff9f43;
  --orange-dark: #f47c12;
  --orange-soft: #fff0df;
  --gold: #ffbd6b;
  --danger: #d94a4a;

  --shadow: 0 24px 70px rgba(255, 159, 67, 0.14);
  --shadow-soft: 0 14px 34px rgba(29, 29, 31, 0.08);

  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;

  --max-width: 1180px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 5%, rgba(255, 159, 67, 0.18), transparent 28rem),
    radial-gradient(circle at 90% 20%, rgba(255, 189, 107, 0.16), transparent 24rem),
    var(--bg);
  font-family: var(--font-main);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 14px 15px;
  outline: none;
  font-size: 15px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 159, 67, 0.75);
  box-shadow: 0 0 0 4px rgba(255, 159, 67, 0.13);
  background: #fff;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.hidden {
  display: none !important;
}

/* =========================
   NAVIGATION
========================= */
.site-nav {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(232, 225, 218, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;

  /* Fix overlap */
  position: relative;
  top: auto;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  box-shadow: 0 12px 28px rgba(255, 159, 67, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a,
.nav-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover,
.nav-button:hover {
  color: var(--orange-dark);
}

/* =========================
   BUTTONS
========================= */
.btn {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 650;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.btn:hover,
.round-btn:hover,
.icon-btn:hover,
.small-button:hover,
.text-button:hover,
.idea-card:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  box-shadow: 0 16px 34px rgba(255, 159, 67, 0.28);
}

.btn-soft {
  color: var(--orange-dark);
  background: var(--orange-soft);
}

.btn-white {
  color: var(--text);
  background: white;
}

.full-width {
  width: 100%;
}

.round-btn,
.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 18px;
  font-weight: 700;
}

.icon-btn.danger {
  color: var(--danger);
  background: rgba(217, 74, 74, 0.1);
}

.small-button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 14px;
  font-weight: 650;
}

.text-button {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--orange-dark);
  font-size: 14px;
  font-weight: 700;
}

.danger-text {
  color: var(--danger);
}

/* =========================
   TYPE
========================= */
.eyebrow {
  margin-bottom: 12px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.82);
}

.muted {
  color: var(--muted);
  font-size: 15px;
}

.two-cols,
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* =========================
   HOME HERO
========================= */
.hero {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 680px;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.065em;
  font-weight: 720;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================
   PHOTO COLLAGE
========================= */
.photo-collage {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 16px;
  min-height: 520px;
}

.photo-collage img {
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.photo-main {
  min-height: 520px;
}

.photo-stack {
  display: grid;
  gap: 16px;
}

.photo-stack img {
  min-height: 252px;
}

/* =========================
   SECTIONS
========================= */
.section {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 92px auto 0;
}

.section-heading.compact {
  margin-bottom: 26px;
}

.section-heading h2,
.create-copy h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 720;
}

/* =========================
   DESTINATIONS
========================= */
.destination-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.destination-card {
  overflow: hidden;
  border: 1px solid rgba(232, 225, 218, 0.92);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
}

.destination-card img {
  height: 230px;
  object-fit: cover;
}

.destination-card div {
  padding: 18px;
}

.destination-card h3 {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.destination-card p {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   FEATURE STRIP
========================= */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-strip div {
  padding: 22px;
  border: 1px solid rgba(232, 225, 218, 0.92);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 10px;
}

.feature-strip span {
  font-size: 28px;
}

.feature-strip strong {
  font-size: 18px;
  letter-spacing: -0.03em;
}

/* =========================
   CREATE SECTION
========================= */
.create-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.form-stack {
  display: grid;
  gap: 16px;
}

.form-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(232, 225, 218, 0.92);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
}

.compact-card {
  padding: 20px;
}

.form-status {
  min-height: 22px;
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 86px auto 32px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

/* =========================
   PLANNER HERO
========================= */
.planner-shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 28px auto 80px;
}

.planner-cover {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.planner-cover img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.15)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.32), transparent);
}

.cover-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  min-height: 420px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.title-input {
  width: 100%;
  border: 0;
  background: transparent;
  box-shadow: none !important;
  padding: 0;
  border-radius: 0;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.065em;
  font-weight: 730;
}

.title-input.light {
  color: white;
}

.title-input.light::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.cover-subtitle {
  margin: 12px 0 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.sync-mode {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

/* =========================
   PLANNER GRID
========================= */
.planner-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.sidebar,
.main-planner {
  display: grid;
  gap: 24px;
}

.panel {
  padding: 22px;
  border: 1px solid rgba(232, 225, 218, 0.92);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
}

.panel h2 {
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 720;
}

.panel > label,
.panel .two-cols,
.panel textarea {
  margin-top: 14px;
}

.panel-header,
.summary-row,
.day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.stack-list,
.days-list {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.accent-panel {
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--gold));
}

.accent-panel h2 {
  color: white;
}

.summary-row {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row strong {
  font-size: 24px;
  letter-spacing: -0.04em;
}

/* =========================
   IDEAS
========================= */
.idea-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.idea-card {
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow-soft);
  text-align: left;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.idea-card img {
  height: 130px;
  object-fit: cover;
}

.idea-card span {
  display: block;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
}

/* =========================
   PLANNER ITEMS
========================= */
.member-row {
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 10px;
}

.day-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
}

.day-title-fields {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 172px;
  gap: 10px;
}

.day-label {
  font-weight: 700;
}

.day-actions {
  display: flex;
  gap: 10px;
}

.plan-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.plan-item {
  display: grid;
  grid-template-columns: 104px 1fr 40px;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 20px;
  background: var(--bg);
}

.time-input {
  color: var(--orange-dark);
  font-weight: 650;
}

.plan-fields {
  display: grid;
  gap: 10px;
}

.plan-fields textarea {
  min-height: 72px;
}

.place-row {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
}

.place-row textarea {
  min-height: 78px;
}

.budget-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 40px;
  gap: 10px;
  align-items: center;
}

.check-row {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 10px;
  align-items: center;
}

.check-label {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}

.check-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-label span {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: white;
}

.check-label input:checked + span {
  border-color: var(--orange);
  background: linear-gradient(135deg, var(--orange), var(--gold));
}

.check-label input:checked + span::after {
  content: "✓";
  height: 100%;
  color: white;
  font-weight: 750;
  display: grid;
  place-items: center;
}

/* =========================
   STATES
========================= */
.empty-state {
  padding: 18px;
  border-radius: 18px;
  background: var(--bg);
  color: var(--muted);
  font-size: 15px;
}

.error-box {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(217, 74, 74, 0.22);
  border-radius: var(--radius-md);
  background: rgba(217, 74, 74, 0.08);
  color: var(--danger);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  transform: translate(-50%, 22px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border-radius: 999px;
  background: #1d1d1f;
  color: white;
  font-size: 14px;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px) {
  .hero,
  .create-section,
  .planner-grid {
    grid-template-columns: 1fr;
  }

  .photo-collage {
    min-height: auto;
  }

  .destination-grid,
  .feature-strip,
  .idea-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .site-nav {
    border-radius: 24px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    margin-top: 48px;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

  .photo-collage {
    grid-template-columns: 1fr;
  }

  .photo-main,
  .photo-stack img {
    min-height: 260px;
  }

  .destination-grid,
  .feature-strip,
  .idea-grid,
  .two-cols,
  .grid-2,
  .day-title-fields,
  .plan-item,
  .budget-row {
    grid-template-columns: 1fr;
  }

  .planner-cover,
  .cover-content {
    min-height: 430px;
  }

  .cover-content {
    padding: 24px;
  }

  .day-header {
    align-items: stretch;
    flex-direction: column;
  }

  .day-actions {
    justify-content: space-between;
  }

  .member-row,
  .check-row {
    grid-template-columns: 1fr 44px;
  }

  .check-row {
    grid-template-columns: 44px 1fr 44px;
  }
}

/* =========================
   LANGUAGE SWITCH
========================= */
.language-toggle {
  min-width: 42px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.language-toggle:hover {
  transform: translateY(-1px);
  background: #ffe4c4;
  box-shadow: 0 10px 22px rgba(255, 159, 67, 0.18);
}

.language-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 159, 67, 0.18);
}

/* =========================
   THAI FONT SMOOTHING
========================= */
body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans Thai",
    "Noto Sans",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

/* =========================
   MOBILE NAV FIX
   Keep language switch visible on mobile
========================= */
@media (max-width: 680px) {
  .site-nav {
    align-items: center;
  }

  .nav-links {
    display: flex;
    gap: 8px;
  }

  .nav-links a,
  .nav-button {
    display: none;
  }

  .language-toggle {
    display: inline-grid;
  }
}

/* =========================
   FRIENDLY THAI FONT
========================= */
html[lang="th"] body {
  font-family:
    "Mali",
    "Noto Sans Thai",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

/* Make Thai headings softer and friendlier */
html[lang="th"] h1,
html[lang="th"] h2,
html[lang="th"] h3,
html[lang="th"] .brand,
html[lang="th"] .btn,
html[lang="th"] .nav-links,
html[lang="th"] .language-toggle {
  font-family:
    "Mali",
    "Noto Sans Thai",
    sans-serif;
}

/* Thai text needs a little more breathing room */
html[lang="th"] body {
  line-height: 1.65;
  letter-spacing: -0.01em;
}

/* Thai hero title looks better slightly less tight */
html[lang="th"] .hero-copy h1,
html[lang="th"] .title-input {
  letter-spacing: -0.035em;
  line-height: 1.08;
}

/* Thai card text */
html[lang="th"] .destination-card h3,
html[lang="th"] .feature-strip strong,
html[lang="th"] .panel h2 {
  letter-spacing: -0.02em;
}

/* Thai form text */
html[lang="th"] input,
html[lang="th"] textarea,
html[lang="th"] select,
html[lang="th"] label {
  font-family:
    "Noto Sans Thai",
    "Mali",
    sans-serif;
}

/* =========================
   FRIENDLY + POLITE THAI FONT
========================= */
html[lang="th"] body {
  font-family:
    "Sarabun",
    "Noto Sans Thai",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.68;
  letter-spacing: -0.005em;
}

/* Thai headings */
html[lang="th"] h1,
html[lang="th"] h2,
html[lang="th"] h3,
html[lang="th"] .brand,
html[lang="th"] .panel h2,
html[lang="th"] .destination-card h3,
html[lang="th"] .feature-strip strong {
  font-family:
    "Sarabun",
    "Noto Sans Thai",
    sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Thai buttons and navigation */
html[lang="th"] .btn,
html[lang="th"] .nav-links,
html[lang="th"] .language-toggle,
html[lang="th"] .small-button,
html[lang="th"] .text-button {
  font-family:
    "Sarabun",
    "Noto Sans Thai",
    sans-serif;
  font-weight: 600;
}

/* Thai form text */
html[lang="th"] input,
html[lang="th"] textarea,
html[lang="th"] select,
html[lang="th"] label {
  font-family:
    "Sarabun",
    "Noto Sans Thai",
    sans-serif;
}

/* Thai hero title needs more breathing room */
html[lang="th"] .hero-copy h1,
html[lang="th"] .title-input {
  line-height: 1.08;
  letter-spacing: -0.025em;
}

/* =========================
   LAYOUT POLISH
========================= */
.panel {
  overflow: hidden;
}

.main-planner,
.sidebar {
  min-width: 0;
}

/* =========================
   CLEARER IMAGES
========================= */
img {
  image-rendering: auto;
  backface-visibility: hidden;
}

.idea-card img,
.destination-card img,
.photo-collage img,
.planner-cover img {
  object-fit: cover;
  object-position: center;
  transform: translateZ(0);
}

/* Make idea card photos a bit taller and clearer */
.idea-card img {
  height: 150px;
}

/* Better cover image positioning */
.planner-cover img {
  object-position: center center;
}

/* =========================
   CLEANER SIDEBAR DATE LAYOUT
========================= */
.sidebar .two-cols {
  grid-template-columns: 1fr;
  gap: 14px;
}

.sidebar input[type="date"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

/* =========================
   LANGUAGE SWITCH
========================= */
.language-toggle {
  min-width: 42px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.language-toggle:hover {
  transform: translateY(-1px);
  background: #ffe4c4;
  box-shadow: 0 10px 22px rgba(255, 159, 67, 0.18);
}

.language-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 159, 67, 0.18);
}

/* =========================
   SAVE BUTTON + STATUS
========================= */
.cover-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.save-nav-button {
  color: var(--orange-dark);
  font-weight: 700;
}

#saveStatus {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
}

/* =========================
   FRIENDLY + POLITE THAI FONT
========================= */
html[lang="th"] body {
  font-family:
    "Sarabun",
    "Noto Sans Thai",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.68;
  letter-spacing: -0.005em;
}

html[lang="th"] h1,
html[lang="th"] h2,
html[lang="th"] h3,
html[lang="th"] .brand,
html[lang="th"] .panel h2,
html[lang="th"] .destination-card h3,
html[lang="th"] .feature-strip strong {
  font-family:
    "Sarabun",
    "Noto Sans Thai",
    sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

html[lang="th"] .btn,
html[lang="th"] .nav-links,
html[lang="th"] .language-toggle,
html[lang="th"] .small-button,
html[lang="th"] .text-button {
  font-family:
    "Sarabun",
    "Noto Sans Thai",
    sans-serif;
  font-weight: 600;
}

html[lang="th"] input,
html[lang="th"] textarea,
html[lang="th"] select,
html[lang="th"] label {
  font-family:
    "Sarabun",
    "Noto Sans Thai",
    sans-serif;
}

/* Thai hero title needs more breathing room */
html[lang="th"] .hero-copy h1,
html[lang="th"] .title-input {
  line-height: 1.08;
  letter-spacing: -0.025em;
}

/* =========================
   FIX DATE INPUT ALIGNMENT
========================= */
.sidebar .two-cols {
  grid-template-columns: 1fr;
  gap: 14px;
}

.sidebar input[type="date"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

/* =========================
   CLEARER IMAGES
========================= */
img {
  image-rendering: auto;
  backface-visibility: hidden;
}

.idea-card img,
.destination-card img,
.photo-collage img,
.planner-cover img {
  object-fit: cover;
  object-position: center;
  transform: translateZ(0);
}

.idea-card img {
  height: 150px;
}

.planner-cover img {
  object-position: center center;
}

/* =========================
   LAYOUT POLISH
========================= */
.panel {
  overflow: hidden;
}

.main-planner,
.sidebar {
  min-width: 0;
}

/* =========================
   MOBILE POLISH
========================= */
@media (max-width: 680px) {
  .site-nav {
    align-items: center;
  }

  .nav-links {
    display: flex;
    gap: 8px;
  }

  .nav-links a,
  .nav-button {
    display: none;
  }

  .language-toggle {
    display: inline-grid;
  }

  .cover-actions {
    width: 100%;
  }

  .cover-actions .btn {
    width: 100%;
  }
}