@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600&display=swap');
:root{
  --bg:#FFFDF6;
  --yellow:#FCD201;
  --yellow-soft:#FFF5C2;
  --blue:#A7D6E8;
  --blue-soft:#EAF7FB;
  --text:#30312D;
  --muted:#5E625C;
  --line:#E7E1D2;
  --white:#FFFFFF;
  --shadow:0 10px 28px rgba(48,49,45,.08);
  --radius:18px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text)}
body{min-height:100vh;font-family:'DM Sans',Arial,sans-serif;overflow-x:hidden}
.site-shell{min-height:100vh;display:flex;flex-direction:column;align-items:center}
#app{width:100%;max-width:430px;min-height:100vh;margin:0 auto;background:var(--bg);overflow:hidden}
.page{min-height:calc(100vh - 72px);padding:40px 22px 44px;position:relative;overflow:hidden;animation:pageIn .585s ease both}
@keyframes pageIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.page:before{content:'';position:absolute;left:22px;right:22px;top:20px;height:1px;background:var(--line)}
.page-title{margin:10px 0 0;color:var(--text);font-family:'Playfair Display',Georgia,serif;font-weight:600;font-size:clamp(50px,13vw,62px);line-height:.9;letter-spacing:-.035em;text-align:center}
.page-title:after{content:'';display:block;width:46px;height:4px;background:var(--yellow);border-radius:99px;margin:22px auto 0}
.page-subtitle{margin:24px 0 42px;color:var(--muted);font-family:'DM Sans',Arial,sans-serif;font-size:16px;font-weight:500;line-height:1.4;text-align:center;letter-spacing:.02em}
.home .page-title{margin-top:10px}
.home-buttons{width:100%;max-width:365px;margin:0 auto;display:grid;gap:12px}
.guide-button,.home-button{position:relative;width:100%;display:flex;align-items:center;justify-content:center;min-height:62px;padding:14px 48px 14px 22px;border:1px solid rgba(48,49,45,.08);border-radius:var(--radius);background:var(--blue);color:var(--text);font-family:'DM Sans',Arial,sans-serif;font-size:15.5px;font-weight:600;letter-spacing:.005em;line-height:1.25;text-align:center;text-decoration:none;cursor:pointer;box-shadow:0 3px 10px rgba(48,49,45,.035);transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
.guide-button:after,.home-button:after{content:'';position:absolute;right:20px;width:8px;height:8px;border-top:1.6px solid var(--text);border-right:1.6px solid var(--text);transform:rotate(45deg)}
.guide-button:hover,.home-button:hover{transform:translateY(-2px);box-shadow:var(--shadow);background:var(--yellow)}
.guide-button:active,.home-button:active{transform:translateY(0)}
.stagger>*{opacity:0;animation:itemIn .585s ease forwards}
.stagger>*:nth-child(1){animation-delay:.13s}.stagger>*:nth-child(2){animation-delay:.234s}.stagger>*:nth-child(3){animation-delay:.338s}.stagger>*:nth-child(4){animation-delay:.442s}.stagger>*:nth-child(5){animation-delay:.546s}.stagger>*:nth-child(6){animation-delay:.65s}
@keyframes itemIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
.footer{width:100%;max-width:430px;min-height:72px;display:flex;align-items:center;justify-content:center;padding:15px 22px 21px;background:var(--bg);color:var(--muted);font-size:13px;text-align:center}
.nav-row{display:flex;justify-content:center;margin-top:30px}.nav-button,.back-button{max-width:260px}
.host-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:center;margin:30px auto;max-width:380px}
.host-heading{margin:0;color:var(--text);font-family:'Playfair Display',Georgia,serif;font-size:clamp(40px,10vw,52px);font-weight:600;line-height:.95;letter-spacing:-.02em}
.host-photo{width:100%;aspect-ratio:4/5;object-fit:cover;display:block;background:var(--blue);border-radius:16px}.host-photo.placeholder{display:grid;place-items:center;color:var(--text);font-family:'Playfair Display',Georgia,serif;font-size:26px;text-align:center}
.welcome-copy{max-width:380px;margin:0 auto;color:var(--muted);font-size:16px;line-height:1.65;text-align:center}
.decorative-leaf{position:absolute;left:-25px;top:26%;width:120px;height:220px;opacity:.18;border:3px solid var(--blue);border-right:0;border-radius:60% 0 0 60%;transform:rotate(-25deg);pointer-events:none}
.hero-image,.hero-placeholder{width:calc(100% + 44px);margin-left:-22px;height:205px;object-fit:cover;display:block}.hero-placeholder{display:grid;place-items:center;background:var(--blue);color:var(--text);font-family:'Playfair Display',Georgia,serif;font-size:28px}
.section-title{margin:30px 0 30px;color:var(--text);font-family:'Playfair Display',Georgia,serif;font-size:clamp(38px,10vw,48px);font-weight:600;line-height:.98;text-align:center;letter-spacing:-.02em}
.contact-list{display:grid;gap:12px;max-width:380px;margin:0 auto}.contact-card{background:var(--blue-soft);border:1px solid rgba(48,49,45,.08);border-radius:14px;padding:18px 16px;text-align:center;box-shadow:0 3px 12px rgba(48,49,45,.03)}
.contact-label,.contact-value,.contact-value a{color:var(--text)}.contact-label{font-size:15px;font-weight:600;line-height:1.25;margin-bottom:7px}.contact-value,.contact-value a{font-size:17px;line-height:1.35;text-decoration:none}.contact-value a{color:#315E6E}
.back-row{margin-top:32px;display:flex;justify-content:center}
.back-row .home-button{background:var(--blue);border-color:transparent}.back-row .home-button:hover{background:#8FC8DC}
@media(max-width:430px){#app{box-shadow:none}.page{min-height:auto;padding:38px 22px 40px}.page:before{left:22px;right:22px}.home-buttons{gap:11px}.guide-button,.home-button{min-height:60px;padding:13px 44px 13px 18px;font-size:15px}.footer{font-size:12px}}
@media(max-width:360px){.page{padding-left:18px;padding-right:18px}.page:before{left:18px;right:18px}.page-title{font-size:48px}.page-subtitle{font-size:15px}.guide-button,.home-button{font-size:14.5px}.home-buttons{gap:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}


/* Haay-Nextag functional components */

/* Animated Call Host button */
.call-host-button {
  gap: 10px;
  background: var(--yellow);
  color: var(--text);
}
.call-host-button:hover { background: #e9c300; }
.call-host-icon {
  width: 44px; height: 44px; flex: 0 0 44px; min-width: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  animation: callIconBounce 1.5s ease-in-out infinite;
  transform-origin: center center;
}
.call-host-icon img {
  width: 100%; height: 100%; display: block;
  object-fit: contain;
}
@keyframes callIconBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  18% { transform: translateY(-6px) scale(1.03); }
  32% { transform: translateY(0) scale(.98); }
  48% { transform: translateY(-3px) scale(1.01); }
  62% { transform: translateY(0) scale(1); }
}
.call-host-button.disabled { opacity:.55; cursor:default; pointer-events:none; }

/* Flexible House Guide cards */
.guide-grid {
  width:100%; max-width:390px; margin:0 auto;
  display:grid; grid-template-columns:1fr; gap:14px;
}
.guide-card {
  min-height:96px; padding:18px 20px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:7px; border-radius:24px; background:var(--blue);
  color:var(--text); text-align:center; text-decoration:none;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.guide-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); background:#8fc8dc; }
.guide-card-title { font-family:'DM Sans',Arial,sans-serif; font-size:18px; font-weight:600; line-height:1.2; }
.guide-card-description { max-width:320px; font-size:13px; line-height:1.35; opacity:.82; }
.guide-card-action { margin-top:2px; color:#315e6e; font-size:12px; font-weight:600; }
.guide-placeholder { background:var(--blue-soft); border:1px dashed rgba(48,49,45,.25); }
.house-guide-page .page-subtitle { margin-bottom:30px; }
.house-guide-page .back-row { margin-top:28px; }

/* Host / welcome */
.host-layout { margin:30px auto; }
.host-heading { color:var(--text); }
.host-photo { background:var(--blue); border-radius:16px; }
.host-photo.placeholder { color:var(--text); }
.welcome-copy { color:var(--muted); }
.decorative-leaf { border-color:var(--blue); }

/* Emergency */
.hero-placeholder { background:var(--blue); color:var(--text); }
.section-title { color:var(--text); }
.contact-card { background:var(--blue-soft); border:1px solid rgba(48,49,45,.08); border-radius:14px; }
.contact-label,.contact-value,.contact-value a { color:var(--text); }
.contact-value a { color:#315e6e; }

/* House Rules & Extra Charges */
.rules-page { padding:18px 12px 34px; background:var(--bg); }
.rules-header {
  width:92%; margin:0 auto 16px; padding:9px 12px 12px;
  border-radius:40px; background:var(--yellow); color:var(--text);
  text-align:center; box-shadow:0 3px 0 rgba(0,0,0,.04);
}
.rules-header h1 {
  margin:0; font-family:'DM Sans',Arial,sans-serif;
  font-size:clamp(27px,7vw,38px); line-height:1; font-weight:700; letter-spacing:.02em;
}
.rules-header-zh { margin-top:5px; font-size:20px; line-height:1; font-weight:700; }
.rules-list { display:grid; gap:9px; }
.rules-empty { padding:42px 22px; border-radius:22px; background:var(--soft); text-align:center; }
.rules-empty-title { font-size:18px; font-weight:700; }
.rules-empty-text { max-width:310px; margin:8px auto 0; font-size:13px; line-height:1.4; opacity:.72; }
.rule-card {
  min-height:84px; display:grid; grid-template-columns:62px minmax(0,1fr) auto;
  align-items:center; gap:9px; padding:10px; border-radius:22px; background:var(--soft);
}
.rule-card-1,.rule-card-2,.rule-card-3 { background:#fff5c2; }
.rule-card-4 { background:#cfe9fb; }
.rule-card-5 { background:#dff1cf; }
.rule-card-6 { background:#e6dcfb; }
.rule-card-7 { background:#fbefbd; }
.rule-card-8 { background:#d5f0f2; }
.rule-card-9 { background:#f7d9e2; }
.rule-icon { width:58px; height:58px; display:flex; align-items:center; justify-content:center; font-size:42px; line-height:1; }
.rule-copy { min-width:0; }
.rule-title { font-size:15px; font-weight:700; line-height:1.15; }
.rule-ms { margin-top:3px; color:#315e6e; font-size:12px; font-weight:700; line-height:1.18; }
.rule-zh { margin-top:2px; color:#75422f; font-size:12px; font-weight:600; line-height:1.15; }
.rule-note { margin-top:4px; font-size:10px; font-weight:600; line-height:1.15; }
.rule-charge {
  align-self:center; min-width:78px; max-width:118px; padding:9px 11px;
  border-radius:22px; background:var(--yellow); color:var(--text);
  text-align:center; font-size:15px; font-weight:700; line-height:1.05;
  box-shadow:0 2px 0 rgba(0,0,0,.03);
}
.charge-value { display:block; }
.rules-thankyou {
  margin:18px 0 8px; color:#d49d00;
  font-family:'Playfair Display',Georgia,serif; font-size:28px; font-weight:600; text-align:center;
}
.rules-thankyou span { padding:0 5px; }
.rules-back { margin-top:8px; }
.rules-back .home-button { max-width:250px; }

/* Check-out guide */
.checkout-page { background:var(--bg); padding-top:22px; }
.checkout-header { display:flex; align-items:center; justify-content:center; gap:18px; margin:4px auto 22px; color:var(--text); }
.checkout-icon { font-size:64px; line-height:1; }
.checkout-header h1 {
  margin:0; font-family:'DM Sans',Arial,sans-serif; font-size:clamp(32px,8vw,48px);
  line-height:.98; letter-spacing:.08em; font-weight:700;
}
.checkout-info { max-width:390px; margin:0 auto 24px; text-align:center; }
.checkout-time-row,.checkout-fee-row { display:flex; align-items:baseline; justify-content:center; flex-wrap:wrap; gap:8px; }
.checkout-time-row { color:#315e6e; font-family:'DM Sans',Arial,sans-serif; font-size:22px; font-weight:700; }
.checkout-time-row strong { color:var(--text); font-size:clamp(34px,9vw,50px); line-height:1; }
.checkout-fee-row { margin-top:12px; color:#315e6e; font-family:'DM Sans',Arial,sans-serif; font-size:20px; font-weight:700; }
.checkout-fee-row strong { color:#d94848; }
.checkout-late-note { margin:12px auto 0; max-width:680px; text-align:center; font-size:14px; line-height:1.45; color:#315e6e; font-weight:600; }
.checkout-steps { display:grid; gap:16px; max-width:390px; margin:0 auto; }
.checkout-step {
  display:grid; grid-template-columns:34px minmax(0,1fr) 108px;
  gap:10px; align-items:center; padding:12px 8px; border-radius:18px; background:var(--white);
}
.checkout-step-number { color:#315e6e; font-size:20px; font-weight:700; text-align:center; }
.checkout-step-body h2 { margin:0; color:var(--text); font-family:'DM Sans',Arial,sans-serif; font-size:17px; line-height:1.2; }
.checkout-step-body p { margin:7px 0 0; color:#d94848; font-size:14px; line-height:1.4; }
.checkout-empty-text { opacity:.42; font-weight:500 !important; }
.checkout-step-image { width:108px; height:108px; object-fit:cover; display:block; background:var(--soft); border-radius:12px; }
.checkout-image-placeholder { display:grid; place-items:center; padding:8px; color:#315e6e; font-size:12px; text-align:center; }
.checkout-step-empty { min-height:110px; }
.checkout-page .back-row { margin-top:26px; }

@media (min-width:600px) { .guide-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:390px) {
  .rules-page { padding-left:9px; padding-right:9px; }
  .rule-card { grid-template-columns:52px minmax(0,1fr) auto; gap:7px; padding:9px 8px; }
  .rule-icon { width:50px; height:50px; font-size:35px; }
  .rule-title { font-size:14px; }
  .rule-ms,.rule-zh { font-size:11px; }
  .rule-charge { min-width:70px; max-width:102px; padding:8px; font-size:13px; }
  .checkout-header { gap:11px; }
  .checkout-icon { font-size:52px; }
  .checkout-header h1 { font-size:29px; }
  .checkout-step { grid-template-columns:28px minmax(0,1fr) 88px; gap:7px; padding:9px 4px; }
  .checkout-step-image { width:88px; height:88px; }
  .checkout-step-body h2 { font-size:15px; }
  .checkout-step-body p { font-size:12px; }
}
