:root {
  --ink: #111817;
  --muted: #64706c;
  --line: #dfe6e1;
  --paper: #f8f6ef;
  --soft: #eef4ef;
  --mist: #eaf2f5;
  --forest: #0d352b;
  --teal: #16736a;
  --gold: #c9943d;
  --coral: #c65b47;
  --blue: #256f9c;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(17, 24, 23, 0.13);
  --strong-shadow: 0 28px 90px rgba(13, 53, 43, 0.22);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fbfaf5 0%, #f4f1e8 46%, #f9f9f4 100%);
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(248, 246, 239, 0.88);
  backdrop-filter: blur(22px) saturate(1.1);
  border-bottom: 1px solid rgba(223, 230, 225, 0.8);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  color: var(--white);
  background: linear-gradient(135deg, #0b2d25, #1a7b70 58%, #c9943d);
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(13, 53, 43, .24);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a:hover, .main-nav a.active { color: var(--forest); }

.header-cta, .btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--forest);
  color: var(--white);
  font-weight: 750;
  cursor: pointer;
}

.header-cta:hover, .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(13, 53, 43, .18);
}

.btn.secondary {
  color: var(--forest);
  background: var(--white);
  border-color: var(--line);
}

.btn.ghost {
  color: var(--forest);
  background: transparent;
  border-color: var(--line);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 76px));
  display: grid;
  align-items: end;
  padding: clamp(32px, 7vw, 92px);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 18, 15, 0.9), rgba(8, 18, 15, 0.52), rgba(8, 18, 15, 0.12)),
    image-set(
      url("/assets/images/hero-kuala-lumpur.jpg") 1x
    );
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(248, 246, 239, .88));
}

.hero-inner {
  position: relative;
  max-width: 960px;
  padding-bottom: 42px;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
  color: #e9d6a7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 800;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  font-size: clamp(46px, 7.4vw, 96px);
  max-width: 980px;
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0;
  color: var(--muted);
}

.hero p {
  max-width: 680px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero .btn.secondary {
  background: rgba(255, 255, 255, 0.92);
}

.quick-panel {
  position: relative;
  margin: -40px auto 0;
  width: min(1120px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 3;
}

.field {
  display: grid;
  gap: 6px;
}

label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
}

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

.section {
  padding: clamp(42px, 7vw, 92px) clamp(18px, 4vw, 56px);
}

.section.alt { background: var(--soft); }

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

.section-head p { max-width: 680px; margin-top: 12px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset;
}

.card.featured {
  background: linear-gradient(145deg, #ffffff, #f1f7f4);
  box-shadow: var(--shadow);
}

.muted-panel {
  background: #eef4f1;
  border-style: dashed;
}

.card-media {
  min-height: 190px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(13,53,43,.24), rgba(37,111,156,.08)),
    var(--media, url("/assets/images/hero-kuala-lumpur.jpg"));
  background-size: cover;
  background-position: center;
}

.image-card {
  position: relative;
  gap: 0;
  min-height: 390px;
  padding: 0;
  overflow: hidden;
  background: #0d352b;
  color: var(--white);
}

.image-card .card-media {
  position: absolute;
  inset: 0;
  min-height: 100%;
  border-radius: 0;
  transition: transform .45s ease, filter .45s ease;
}

.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 18, 16, 0) 18%, rgba(9, 18, 16, .5) 54%, rgba(9, 18, 16, .92) 100%),
    linear-gradient(90deg, rgba(9, 18, 16, .45), rgba(9, 18, 16, 0));
}

.image-card .card-body {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: 390px;
  padding: 24px;
}

.image-card p,
.image-card .eyebrow {
  color: rgba(255,255,255,.86);
}

.image-card .pill {
  color: #10251f;
  background: rgba(255,255,255,.86);
}

.image-card:hover .card-media {
  transform: scale(1.055);
  filter: saturate(1.08) contrast(1.02);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--forest);
  background: var(--soft);
  font-size: 12px;
  font-weight: 750;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.cost-box {
  padding: 16px;
  border-radius: 8px;
  background: var(--soft);
}

.cost-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--forest);
}

.hotel-search {
  margin-bottom: 22px;
}

.hotel-results {
  display: grid;
  gap: 16px;
}

.hotel-card {
  display: grid;
  grid-template-columns: minmax(210px, .8fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: start;
}

.rate-list {
  display: grid;
  gap: 10px;
}

.rate-option {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 7px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  cursor: pointer;
}

.rate-option:hover {
  border-color: var(--forest);
  box-shadow: 0 10px 30px rgba(13, 53, 43, .12);
}

.rate-option small,
.microcopy {
  display: block;
  color: var(--muted);
  font-size: .85rem;
  margin-top: 4px;
}

.hotel-checkout {
  margin-top: 24px;
}

.page-hero {
  padding: clamp(42px, 7vw, 90px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(8, 18, 15, .88), rgba(13, 53, 43, .68), rgba(8, 18, 15, .18)),
    var(--media, url("/assets/images/hero-kuala-lumpur.jpg"));
  background-size: cover;
  background-position: center;
  color: var(--white);
  min-height: 420px;
  display: grid;
  align-content: end;
}

.page-hero p {
  max-width: 780px;
  margin-top: 16px;
  color: rgba(255,255,255,.86);
  font-size: 19px;
}

.editorial-media {
  min-height: 360px;
  justify-content: end;
  color: var(--white);
  padding: 28px;
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(8,18,15,.06), rgba(8,18,15,.82)),
    var(--media);
  background-size: cover;
  background-position: center;
}

.editorial-media p {
  color: rgba(255,255,255,.86);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.side-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
}

.detail-block {
  display: grid;
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.detail-block ul, .clean-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.clean-list li { margin: 6px 0; }

.wizard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.wizard-step {
  display: none;
  gap: 18px;
}

.wizard-step.active {
  display: grid;
}

.progress {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--teal));
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.choice input { width: auto; min-height: auto; }

.itinerary-output {
  display: grid;
  gap: 16px;
}

.day {
  border-left: 4px solid var(--teal);
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
}

.notice {
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: #fff8e8;
  color: #66512a;
}

.admin-login {
  width: min(560px, 100%);
  margin: 0 auto;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

th, td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--forest);
  font-size: 13px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 56px) 84px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-links {
  display: flex;
  gap: 16px;
  color: var(--muted);
}

.mobile-bar {
  display: none;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    padding: 16px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: grid;
    justify-items: start;
  }

  .header-cta {
    justify-self: end;
  }

  .quick-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-panel .btn {
    grid-column: span 2;
  }

  .grid, .grid.four {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-layout, .wizard {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 700px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 68px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .main-nav {
    top: 68px;
  }

  .hero {
    min-height: 620px;
    padding: 28px 18px 76px;
  }

  h1 {
    font-size: 44px;
  }

  .quick-panel, .grid, .grid.two, .grid.four, .cost-grid, .choice-grid, .hotel-card {
    grid-template-columns: 1fr;
  }

  .rate-option {
    display: grid;
  }

  .quick-panel .btn {
    grid-column: auto;
  }

  .section-head, .site-footer {
    display: grid;
  }

  .footer-links {
    display: grid;
  }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
  }

  .mobile-bar a {
    display: grid;
    place-items: center;
    min-height: 58px;
    color: var(--forest);
    font-size: 13px;
    font-weight: 800;
  }
}
