:root {
  --ink: #163c38;
  --ink-soft: #45635f;
  --paper: #f7f2e8;
  --cream: #fffaf0;
  --orange: #e76f3f;
  --orange-soft: #f8d4bf;
  --yellow: #f0c75e;
  --green: #9bbf9b;
  --line: rgba(22, 60, 56, 0.16);
  --shadow: 0 22px 60px rgba(36, 67, 61, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 20%, rgba(240, 199, 94, 0.16), transparent 28rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: var(--cream);
  background:
    linear-gradient(90deg, rgba(10, 39, 35, .94) 0%, rgba(10, 39, 35, .72) 42%, rgba(10, 39, 35, .08) 76%),
    linear-gradient(0deg, rgba(10, 39, 35, .42), transparent 48%),
    url("assets/penang-coast-hero.jpg") center / cover no-repeat;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
}
.hero::before { width: 540px; height: 540px; right: -180px; top: 45px; box-shadow: inset 0 0 0 80px rgba(255,255,255,.02), inset 0 0 0 160px rgba(255,255,255,.015); }
.hero::after { width: 310px; height: 310px; left: -120px; bottom: -160px; background: rgba(240,199,94,.08); }

.topbar, .hero-content, .route-line, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.topbar { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 24px 0; }
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; font-weight: 750; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: var(--yellow); font-family: Georgia, serif; }
.toolbar { display: flex; gap: 10px; }
.toolbar button { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 11px 16px; cursor: pointer; color: white; }
.ghost-button { background: transparent; }

.hero-content { position: relative; z-index: 1; padding: 112px 0 92px; }
.eyebrow, .section-label { margin: 0 0 14px; font-size: .74rem; font-weight: 850; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow { color: var(--yellow); }
h1 { max-width: 900px; margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(3.1rem, 7vw, 6.8rem); line-height: .96; font-weight: 500; letter-spacing: -.055em; }
h1 em { color: var(--orange-soft); font-weight: 400; }
.hero-copy { margin: 30px 0 0; color: rgba(255,255,255,.74); font-size: 1.04rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 54px; }
.hero-stats div { display: grid; gap: 4px; min-width: 105px; }
.hero-stats strong { color: white; font-size: 1.15rem; }
.hero-stats span { color: rgba(255,255,255,.58); font-size: .78rem; }
.route-line { position: relative; z-index: 1; display: flex; align-items: center; gap: 15px; padding: 20px 0 28px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.72); font-size: .78rem; white-space: nowrap; overflow-x: auto; }
.route-line { scrollbar-width: none; }
.route-line::-webkit-scrollbar { display: none; }
.route-line i { display: block; min-width: 28px; height: 1px; background: var(--yellow); }

main { padding: 64px 0 90px; }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; margin-bottom: 92px; padding: 26px 30px; border: 1px solid rgba(231,111,63,.28); border-radius: var(--radius); background: #fff4e8; box-shadow: 0 14px 34px rgba(91,58,36,.06); }
.notice-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: white; font-size: 1.25rem; font-weight: 900; }
.notice .section-label { color: var(--orange); margin-bottom: 5px; }
.notice h2 { margin: 0 0 5px; font-size: 1.22rem; }
.notice p:last-child { margin: 0; color: var(--ink-soft); line-height: 1.65; }

.planner, .stays { margin-bottom: 110px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 34px; }
.section-label { color: var(--orange); }
h2 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 500; letter-spacing: -.035em; }
.section-intro { max-width: 480px; margin: 0; color: var(--ink-soft); line-height: 1.7; }

.day-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 16px; scrollbar-width: thin; }
.day-tab { min-width: 92px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 17px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; transition: .18s ease; }
.day-tab strong, .day-tab span { display: block; }
.day-tab strong { margin-bottom: 3px; font-size: 1.05rem; }
.day-tab span { color: var(--ink-soft); font-size: .73rem; }
.day-tab:hover { transform: translateY(-2px); border-color: var(--orange); }
.day-tab.active { color: white; border-color: var(--ink); background: var(--ink); box-shadow: 0 9px 22px rgba(22,60,56,.17); }
.day-tab.active span { color: rgba(255,255,255,.62); }

.day-panel { min-height: 420px; margin-top: 14px; padding: 0 clamp(24px, 5vw, 52px) clamp(24px, 5vw, 52px); overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: rgba(255,250,240,.88); box-shadow: var(--shadow); }
.day-media { height: clamp(220px, 34vw, 390px); margin: 0 calc(clamp(24px, 5vw, 52px) * -1) 0; overflow: hidden; background: #dce4df; }
.day-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.day-header { display: flex; justify-content: space-between; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.day-media + .day-header { padding-top: clamp(26px, 4vw, 42px); }
.day-kicker { margin: 0 0 8px; color: var(--orange); font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.day-title { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 500; }
.day-location { display: inline-flex; align-items: center; height: fit-content; padding: 9px 13px; border-radius: 999px; background: #e6eee4; font-size: .82rem; white-space: nowrap; }
.activity-list { display: grid; gap: 0; margin-top: 16px; }
.activity-row { display: grid; grid-template-columns: 78px 1fr; gap: 20px; align-items: start; padding: 21px 0; border-bottom: 1px solid var(--line); }
.activity-row time { color: var(--orange); font-weight: 850; font-variant-numeric: tabular-nums; }
.activity-title, .activity-note { margin: 0; }
.activity-title { font-weight: 790; }
.activity-note { margin-top: 6px; color: var(--ink-soft); font-size: .9rem; line-height: 1.55; }
.day-notes { margin-top: 28px; padding: 18px 20px; border-left: 4px solid var(--yellow); border-radius: 0 12px 12px 0; background: rgba(240,199,94,.11); color: var(--ink-soft); line-height: 1.6; }
.stay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stay-card { position: relative; min-height: 520px; overflow: hidden; border-radius: 24px; color: white; background: var(--ink); box-shadow: 0 16px 42px rgba(22,60,56,.13); }
.stay-card:nth-child(2) { color: var(--ink); background: var(--yellow); }
.stay-card:nth-child(3) { background: var(--orange); }
.stay-image { display: block; width: 100%; height: 210px; object-fit: cover; }
.stay-content { position: relative; min-height: 310px; padding: 25px 30px 30px; }
.stay-card::after { content: attr(data-number); position: absolute; right: -8px; bottom: -42px; color: rgba(255,255,255,.08); font-family: Georgia, serif; font-size: 11rem; line-height: 1; }
.stay-card:nth-child(2)::after { color: rgba(22,60,56,.08); }
.stay-city { margin: 0 0 22px; font-size: .75rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; opacity: .72; }
.stay-name { position: relative; z-index: 1; margin: 0 0 12px; font-family: Georgia, "Noto Serif SC", serif; font-size: 1.7rem; font-weight: 500; }
.stay-copy { position: relative; z-index: 1; margin: 0; line-height: 1.65; opacity: .82; }
.stay-price { position: absolute; z-index: 1; left: 30px; bottom: 28px; font-size: .82rem; font-weight: 800; }
.stay-card.confirmed .stay-price { display: inline-flex; align-items: center; padding: 7px 11px; border-radius: 999px; color: var(--ink); background: var(--yellow); }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0 50px; color: var(--ink-soft); font-size: .78rem; }
.save-status { color: var(--orange); }

@media (max-width: 800px) {
  .hero { min-height: 660px; background-position: 58% center; }
  .topbar { align-items: flex-start; }
  .brand span:last-child { display: none; }
  .toolbar { flex-wrap: wrap; justify-content: flex-end; }
  .toolbar button { padding: 9px 12px; font-size: .77rem; }
  .hero-content { padding-top: 80px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .section-heading { display: block; }
  .section-intro { margin-top: 16px; }
  .stay-grid { grid-template-columns: 1fr; }
  .stay-card { min-height: 0; }
  .stay-image { height: min(54vw, 330px); }
  .stay-content { min-height: 260px; }
}

@media (max-width: 540px) {
  .topbar, .hero-content, .route-line, main, footer { width: min(100% - 24px, 1180px); }
  h1 { font-size: 3.15rem; }
  .hero-copy { max-width: 260px; }
  .notice { grid-template-columns: 1fr; padding: 22px; }
  .planner, .stays { margin-bottom: 80px; }
  .day-panel { border-radius: 22px; }
  .day-media { height: 220px; }
  .day-header { display: block; }
  .day-location { margin-top: 13px; }
  .activity-row { grid-template-columns: 58px 1fr; gap: 12px; }
  .activity-row time { font-size: .82rem; }
  footer { display: block; }
}

@media print {
  body { background: white; }
  .hero { min-height: auto; color: var(--ink); background: white; }
  .hero::before, .hero::after, .toolbar, .route-line, .day-tabs, footer { display: none; }
  .hero-content { padding: 30px 0; }
  h1, h1 em, .hero-copy, .eyebrow { color: var(--ink); }
  .hero-stats span { color: var(--ink-soft); }
  main { padding-top: 10px; }
  .notice { margin-bottom: 36px; box-shadow: none; }
  .day-panel { box-shadow: none; break-inside: avoid; }
  .stay-grid { grid-template-columns: 1fr 1fr 1fr; }
}
