:root {
  --paper: #f8f2e7;
  --paper-2: #efe6d5;
  --ink: #19231d;
  --green: #163b2e;
  --green-2: #1f4d3c;
  --accent: #c65a3a;
  --brass: #b78a4b;
  --muted: #6c746a;
  --line: rgba(25, 35, 29, .16);
  --white: #fffaf1;
  --sans: "DM Sans", system-ui, sans-serif;
  --display: "Archivo", system-ui, sans-serif;
  --thai: "Noto Sans Thai", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.demo-bar { background: var(--green); color: rgba(255, 250, 241, .78); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; text-align: center; padding: 7px 16px; }
.demo-bar a { color: var(--white); border-bottom: 1px solid rgba(255,255,255,.3); }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.site-head .brand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.site-head .brand strong { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.site-head .brand span { color: var(--muted); font-size: 11px; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 12px; color: var(--muted); }
.site-nav a:hover { color: var(--ink); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 17px; border: 1px solid var(--green); border-radius: 999px; background: var(--green); color: var(--white); font-size: 12px; font-weight: 500; cursor: pointer; }
.pill:hover { background: var(--accent); border-color: var(--accent); }
.pill.light { background: transparent; color: var(--green); }
.pill.light:hover { background: var(--green); color: var(--white); }
.hero { position: relative; height: min(620px, 72vh); min-height: 440px; overflow: hidden; background: var(--green); }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.85) brightness(.72); }
.hero:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 18, 13, .12), rgba(6, 18, 13, .72)); }
.hero-content { position: absolute; z-index: 2; left: 0; right: 0; bottom: 104px; color: var(--white); }
.hero-content .kicker { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,250,241,.7); margin: 0 0 12px; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(44px, 6vw, 76px); line-height: .95; letter-spacing: -.035em; max-width: 760px; }
.hero p { margin: 16px 0 0; max-width: 52ch; color: rgba(255,250,241,.78); font-size: 15px; }
.avail { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; padding: 7px 11px; border: 1px solid rgba(255,250,241,.35); border-radius: 999px; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--white); }
.avail i { width: 5px; height: 5px; border-radius: 50%; background: #9bd3a0; }
.booking-bar { position: relative; z-index: 3; margin-top: -54px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(25,35,29,.12); display: grid; grid-template-columns: 1.1fr 1.1fr .8fr 1.1fr; }
.booking-bar .field { padding: 16px 18px; border-right: 1px solid var(--line); }
.booking-bar .field:last-child { border: 0; padding: 0; }
.booking-bar label { display: block; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.booking-bar input, .booking-bar select { width: 100%; border: 0; background: transparent; color: var(--ink); font-size: 14px; outline: 0; padding: 0; }
.booking-bar .go { display: flex; align-items: center; justify-content: center; background: var(--green); color: var(--white); font-size: 12px; font-weight: 500; }
.booking-bar .go:hover { background: var(--accent); }
.section { padding: 64px 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; border-bottom: 1px solid var(--ink); padding-bottom: 10px; }
.section-head h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3.2vw, 38px); line-height: 1; letter-spacing: -.025em; }
.section-head p { margin: 0; color: var(--muted); font-size: 12px; }
.intro-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; padding: 24px 0 0; }
.intro-grid p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--muted); max-width: 58ch; }
.intro-grid p strong { color: var(--ink); font-weight: 500; }
.amenities { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.amenities span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; font-size: 10px; color: var(--muted); }
.rooms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 22px; }
.room { background: var(--white); padding: 24px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.keytag { width: 54px; height: 66px; border: 1px solid var(--brass); border-radius: 5px; background: var(--paper); position: relative; display: flex; align-items: center; justify-content: center; color: var(--green); }
.keytag:before { content: ""; position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; border: 1px solid var(--brass); border-radius: 50%; transform: translateX(-50%); background: var(--paper); }
.keytag b { font-family: var(--display); font-size: 24px; font-weight: 600; margin-top: 9px; }
.room h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 21px; letter-spacing: -.02em; }
.room .rate { margin: 4px 0 0; font-size: 15px; color: var(--green); font-weight: 500; }
.room .rate span { color: var(--muted); font-size: 11px; font-weight: 400; }
.room .meta { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.room .features { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.room .features span { font-size: 10px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.room .room-actions { grid-column: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.room .available { font-size: 10px; color: var(--green); }
.room .available.occupied { color: var(--muted); }
.room .reserve { border: 1px solid var(--ink); background: transparent; color: var(--ink); padding: 8px 12px; font-size: 10px; cursor: pointer; }
.room .reserve:hover { background: var(--ink); color: var(--white); }
.room .reserve:disabled { opacity: .35; cursor: not-allowed; }
.book-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; padding: 56px 0 64px; }
.book-copy h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(32px, 4vw, 46px); line-height: .98; letter-spacing: -.03em; }
.book-copy p { margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.book-copy .direct { margin-top: 22px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; color: var(--green); }
.book-form { background: var(--white); border: 1px solid var(--line); padding: 24px; }
.book-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.book-form label { display: block; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 5px; }
.book-form input, .book-form select, .book-form textarea { width: 100%; border: 1px solid var(--line); background: var(--paper); padding: 11px 12px; color: var(--ink); outline: 0; margin: 0 0 13px; }
.book-form input:focus, .book-form select:focus, .book-form textarea:focus { border-color: var(--green); }
.book-form textarea { resize: vertical; min-height: 64px; }
.book-form .total { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.book-form .total strong { font-family: var(--display); font-size: 22px; color: var(--ink); font-weight: 500; }
.book-form .submit { width: 100%; margin-top: 14px; }
.fine { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.contact-band { background: var(--green); color: var(--white); padding: 38px 0; }
.contact-inner { display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.contact-inner h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3.5vw, 40px); line-height: 1; letter-spacing: -.02em; }
.contact-inner p { margin: 8px 0 0; color: rgba(255,250,241,.65); font-size: 12px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-links a { border: 1px solid rgba(255,250,241,.3); border-radius: 999px; padding: 10px 14px; font-size: 11px; color: var(--white); }
.contact-links a:hover { background: rgba(255,250,241,.12); }
.foot { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0 28px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.foot a { border-bottom: 1px solid var(--line); }
.foot a:hover { color: var(--ink); }
.chat-button { position: fixed; right: 20px; bottom: 20px; z-index: 20; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(22,59,46,.3); cursor: pointer; }
.chat-button:hover { background: var(--accent); }
.chat-panel { position: fixed; right: 20px; bottom: 84px; z-index: 21; width: min(370px, calc(100% - 40px)); background: var(--white); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(25,35,29,.22); display: none; flex-direction: column; max-height: min(540px, calc(100vh - 120px)); }
.chat-panel.open { display: flex; }
.chat-head { padding: 13px 15px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.chat-head strong { font-family: var(--display); font-weight: 500; font-size: 16px; }
.chat-head span { font-size: 9px; color: var(--green); }
.chat-log { padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; min-height: 160px; }
.msg { max-width: 88%; padding: 9px 11px; font-size: 12px; line-height: 1.5; border: 1px solid var(--line); background: var(--paper); white-space: pre-wrap; }
.msg.guest { align-self: flex-end; background: var(--green); color: var(--white); border-color: var(--green); }
.chat-quick { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 14px 10px; }
.chat-quick button { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 5px 8px; font-size: 9px; cursor: pointer; }
.chat-quick button:hover { border-color: var(--green); color: var(--green); }
.chat-form { display: flex; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; border: 0; padding: 12px 14px; background: transparent; outline: 0; font-size: 12px; }
.chat-form button { border: 0; background: var(--green); color: var(--white); padding: 0 16px; cursor: pointer; }
.chat-note { padding: 6px 14px 10px; font-size: 9px; color: var(--muted); }
.start-page { padding: 48px 0 72px; }
.start-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.start-intro h1 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(42px, 5.4vw, 64px); line-height: .95; letter-spacing: -.04em; }
.start-intro p { margin: 18px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 39ch; }
.start-steps { list-style: none; padding: 0; margin: 30px 0 0; border-top: 1px solid var(--line); }
.start-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.start-steps b { color: var(--accent); font-family: var(--display); font-weight: 500; }
.start-form { background: var(--white); border: 1px solid var(--line); padding: 26px; }
.start-form h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: -.02em; }
.start-form .hint { margin: 0 0 20px; color: var(--muted); font-size: 11px; }
.start-form fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.start-form legend { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; padding: 0; }
.start-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.start-form label { display: block; font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.start-form input, .start-form select, .start-form textarea { width: 100%; border: 1px solid var(--line); background: var(--paper); padding: 10px 11px; color: var(--ink); margin-bottom: 11px; outline: 0; }
.start-form input:focus, .start-form select:focus, .start-form textarea:focus { border-color: var(--green); }
.start-form textarea { min-height: 60px; resize: vertical; }
.start-form .submit { width: 100%; margin-top: 4px; }
.start-form .example { border: 0; background: transparent; color: var(--green); font-size: 10px; text-decoration: underline; cursor: pointer; padding: 0; margin-top: 10px; }
.error { background: #fbe9e3; border: 1px solid #e2b4a4; color: #7a2f1d; padding: 10px 12px; font-size: 12px; margin-bottom: 14px; }
.created-banner { background: #e5efdf; border: 1px solid #b8d0ad; color: #284c2c; padding: 10px 12px; font-size: 12px; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; }
.created-banner a { text-decoration: underline; }
.confirm-page { padding: 54px 0 72px; max-width: 680px; }
.confirm-page h1 { font-family: var(--display); font-weight: 500; font-size: clamp(38px, 5vw, 56px); line-height: .96; letter-spacing: -.035em; margin: 0; }
.confirm-page p { color: var(--muted); font-size: 14px; }
.confirm-card { background: var(--white); border: 1px solid var(--line); padding: 22px; margin-top: 24px; }
.confirm-row { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.confirm-row:last-child { border: 0; }
.confirm-row span:first-child { color: var(--muted); }
.confirm-row strong { font-weight: 500; }
.admin-page { padding: 32px 0 64px; }
.admin-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; }
.admin-head h1 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(32px, 4vw, 44px); letter-spacing: -.03em; }
.admin-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 24px 0 0; }
.stat { background: var(--white); padding: 16px; }
.stat span { display: block; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat strong { display: block; font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1.1; margin-top: 6px; }
.admin-section { margin-top: 34px; }
.admin-section h2 { margin: 0 0 10px; font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -.02em; }
.table-wrap { background: var(--white); border: 1px solid var(--line); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 3px 6px; border: 1px solid var(--line); font-size: 8px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.badge.pending { color: var(--accent); border-color: #e2b4a4; }
.badge.confirmed { color: var(--green); border-color: #b8d0ad; }
.mini { border: 1px solid var(--ink); background: transparent; color: var(--ink); padding: 4px 7px; font-size: 9px; cursor: pointer; }
.mini:hover { background: var(--ink); color: var(--white); }
.messages { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.message-box { background: var(--white); border: 1px solid var(--line); padding: 14px; }
.message-box .who { font-size: 9px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.message-box p { margin: 0; font-size: 12px; }
.message-box .flag { color: var(--accent); font-size: 9px; margin-top: 6px; }
.empty { color: var(--muted); font-size: 12px; padding: 16px; }
.error-page { padding: 80px 0; max-width: 520px; }
.error-page h1 { font-family: var(--display); font-weight: 500; font-size: 48px; line-height: .95; letter-spacing: -.03em; margin: 0 0 16px; }
.error-page p { color: var(--muted); }
@media (max-width: 860px) {
  .wrap { width: calc(100% - 32px); }
  .site-head { align-items: flex-start; }
  .site-nav { gap: 12px; }
  .hero { height: 540px; }
  .hero-content { bottom: 92px; }
  .booking-bar { grid-template-columns: 1fr 1fr; }
  .booking-bar .field:nth-child(2) { border-right: 0; }
  .booking-bar .go { grid-column: 1 / -1; padding: 14px; }
  .intro-grid, .book-section, .start-grid { grid-template-columns: 1fr; gap: 26px; }
  .rooms { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .messages { grid-template-columns: 1fr; }
  .contact-inner { align-items: flex-start; flex-direction: column; }
  .start-form .row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .site-head .brand span { display: none; }
  .site-nav a:first-child { display: none; }
  .hero { height: 500px; }
  .hero h1 { font-size: 42px; }
  .hero p { font-size: 13px; }
  .hero-content { bottom: 86px; }
  .booking-bar { margin-top: -42px; }
  .booking-bar .field { padding: 12px 13px; }
  .section { padding-top: 46px; }
  .book-section { padding: 44px 0 50px; }
  .book-form { padding: 18px; }
  .book-form .row { grid-template-columns: 1fr; }
  .room { grid-template-columns: 44px 1fr; gap: 12px; padding: 18px; }
  .keytag { width: 44px; height: 56px; }
  .keytag b { font-size: 20px; }
  .room .room-actions { grid-column: 1 / -1; }
  .start-page { padding: 34px 0 54px; }
  .start-form { padding: 18px; }
  .foot { flex-direction: column; gap: 8px; }
  .admin-head { flex-direction: column; align-items: flex-start; }
  .admin-actions { width: 100%; }
}
