/* DealDee Property — ธีมมรกตกลางคืน */
:root {
  --bg: #0E1D17; --bg2: #0B1813; --card: #142821; --card2: #1B342A;
  --ink: #F4EFE3; --sub: #C9D2CB; --mut: #A3B2AA;
  --gold: #D8B871; --gold2: #E6C77E; --gold-ink: #0E1D17;
  --line: rgba(216, 184, 113, .22); --line2: rgba(216, 184, 113, .45);
  --new: #34C27F; --booked: #FF4D4F; --drop: #F2B544;
  --head: #0B1813; --bar: #0B1813; --pri: #D8B871; --pri-ink: #0E1D17; --line3: rgba(216, 184, 113, .35);
  --field: #2C4A3E; --link: #D8B871; --link-h: #F1DCA0; --err: #FFB3B4; --story: #DDE3DF; --badge: rgba(14, 29, 23, .9);
  --toast-bg: #F4EFE3; --toast-ink: #0E1D17; --shadow: none; --photo-ink: #F4EFE3;
  color-scheme: dark;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 15px/1.5 'IBM Plex Sans Thai', 'Noto Sans SC', system-ui, -apple-system, sans-serif; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-h); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { flex: none; }
.serif { font-family: 'DM Serif Display', Georgia, serif; }
.h { font-family: 'Prompt', 'IBM Plex Sans Thai', sans-serif; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 12px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.top { background: var(--head); border-bottom: 1px solid var(--line2); position: sticky; top: 0; z-index: 30; }
.top .bar { display: flex; align-items: center; gap: 10px; height: 52px; }
.brand .tx { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.brand .mk { width: 30px; height: 30px; border-radius: 50%; border: 1.3px solid var(--gold); display: flex; align-items: center; justify-content: center; }
.brand .nm { font-family: 'DM Serif Display', serif; font-size: 21px; line-height: 1; }
.brand .nm b { color: var(--gold); font-weight: 400; }
.brand .pp { font-family: 'Prompt', sans-serif; font-size: 10.5px; letter-spacing: 1.8px; color: var(--gold); }
.nav { display: none; gap: 20px; margin-left: 18px; font-size: 15px; }
.nav a { color: var(--ink); }
.nav a:hover { color: var(--gold); }
.grow { flex: 1; }
.lang { display: flex; border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; font-size: 12.5px; }
.lang a { padding: 5px 9px; color: var(--ink); }
.lang a.on { background: var(--gold); color: var(--gold-ink); font-weight: 600; }
.cta-top { display: none; }
.stat { display: flex; align-items: center; gap: 8px; padding-top: 8px; padding-bottom: 8px; font-size: 12.5px; color: var(--mut); }
.stat #stat { display: flex; align-items: center; gap: 7px; min-width: 0; }
.stat .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.stat b { color: var(--ink); }
.refresh { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--gold); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.refresh.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* filter bar */
.fbar { border-bottom: 1px solid var(--line); position: sticky; top: 52px; z-index: 20; background: var(--bg); }
.fbar .fin { display: flex; align-items: center; gap: 6px; padding-top: 9px; padding-bottom: 9px; }
.chips { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { height: 32px; display: inline-flex; align-items: center; gap: 5px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line3); background: transparent; color: var(--ink); font-size: 13px; flex: none; cursor: pointer; }
.chip.on { background: var(--pri); border-color: var(--pri); color: var(--pri-ink); font-weight: 600; }
.chip .n { opacity: .75; font-size: 12px; }
.fbtn { flex: none; height: 32px; display: inline-flex; align-items: center; gap: 5px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--pri); background: transparent; color: var(--pri); font-weight: 600; font-size: 13px; cursor: pointer; }
.fbtn .cnt { min-width: 18px; height: 18px; border-radius: 9px; background: var(--pri); color: var(--pri-ink); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.reset { flex: none; height: 32px; display: inline-flex; align-items: center; gap: 4px; padding: 0 11px; border-radius: 999px; border: 1px dashed var(--line2); background: transparent; color: var(--sub); font-size: 13px; cursor: pointer; }

/* filter sheet */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet .bk { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.sheet .pn { position: relative; background: var(--bg); border-top: 1px solid var(--line2); border-radius: 18px 18px 0 0; max-height: 86vh; overflow: auto; padding: 16px 16px calc(16px + var(--safe-b)); width: 100%; max-width: 640px; margin: 0 auto; }
.sheet h3 { margin: 0 0 4px; font-family: 'Prompt', sans-serif; font-size: 18px; }
.fg { margin-top: 14px; }
.fg .lb { font-size: 13px; color: var(--mut); margin-bottom: 7px; }
.fg .ops { display: flex; flex-wrap: wrap; gap: 7px; }
.sheet .act { display: flex; gap: 10px; margin-top: 20px; position: sticky; bottom: 0; background: var(--bg); padding-top: 10px; }
.btn { min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1.3px solid var(--pri); background: transparent; color: var(--pri); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.btn.pri { background: var(--pri); color: var(--pri-ink); font-weight: 700; }
.btn.grow { flex: 1; }

/* groups + cards */
.grp { padding: 12px 0 4px; }
.grp .gh { padding: 0 2px 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line2); display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.grp h2 { margin: 0; font-family: 'Prompt', sans-serif; font-size: 17px; font-weight: 700; }
.grp h2 a { color: var(--ink); }
.grp .gs { font-size: 12px; color: var(--mut); }
.grp .gs a { color: var(--sub); text-decoration: underline; text-decoration-color: var(--line2); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.card { display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: var(--card); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); }
.card:hover { border-color: var(--line2); color: var(--ink); }
.ph { position: relative; aspect-ratio: 4 / 3; background: var(--card2); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; background: rgba(11,24,19,.84); color: #fff; font-family: 'Prompt', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: .5px; white-space: nowrap; }
.tag i { width: 5px; height: 5px; border-radius: 50%; }
.tag.new { top: 5px; left: 5px; }
.tag.new i { background: var(--new); box-shadow: 0 0 0 2px rgba(52,194,127,.35), 0 0 6px var(--new); }
.tag.drop { top: 5px; left: 5px; }
.tag.drop i { background: var(--drop); box-shadow: 0 0 0 2px rgba(242,181,68,.35), 0 0 6px var(--drop); }
.tag.new + .tag.drop { top: 22px; }
.tag.booked { top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 9.5px; }
.tag.booked i { background: var(--booked); box-shadow: 0 0 0 2px rgba(255,77,79,.35), 0 0 6px var(--booked); }
.pc { position: absolute; right: 4px; bottom: 4px; padding: 0 5px; border-radius: 999px; background: rgba(11,24,19,.75); font-size: 9px; display: flex; align-items: center; gap: 3px; }
.ci { padding: 5px 6px 6px; display: flex; flex-direction: column; gap: 1px; }
.ci .r1 { display: flex; justify-content: space-between; align-items: baseline; gap: 3px; }
.ci .cd { font-family: 'Prompt', sans-serif; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci .pr { font-family: 'Prompt', sans-serif; font-size: 13.5px; font-weight: 700; color: var(--gold2); white-space: nowrap; }
.ci .pv { font-size: 9px; color: var(--mut); text-decoration: line-through; }
.ci .mt { font-size: 9.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci .r3 { display: flex; justify-content: space-between; font-size: 9px; color: var(--mut); }
.ci .r3 span { display: inline-flex; align-items: center; gap: 2px; }
.more { margin: 6px 0 0; width: 100%; }
.empty { padding: 40px 12px; text-align: center; color: var(--sub); }

/* deals strip */
.sec { padding-top: 22px; padding-bottom: 6px; }
.sec .sh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.sec h2 { margin: 0; font-family: 'Prompt', sans-serif; font-size: 17px; }
.strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.dcard { flex: none; width: 170px; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.dcard .ph { aspect-ratio: auto; height: 112px; }
.dcard .ok { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: rgba(11,24,19,.85); border: 1px solid var(--gold); font-size: 10px; font-weight: 600; }
.dcard .t { padding: 7px 9px 9px; }
.dcard b { display: block; font-family: 'Prompt', sans-serif; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcard span { font-size: 11px; color: var(--mut); }

/* CTA boxes */
.ctas { display: grid; gap: 8px; padding-top: 18px; padding-bottom: 4px; }
.box { padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line2); display: flex; flex-direction: column; gap: 6px; }
.box.gold { border: 1.3px solid var(--pri); }
.box b { font-family: 'Prompt', sans-serif; font-size: 16.5px; }
.box span { font-size: 13px; color: var(--sub); }
.box .btn { align-self: flex-start; min-height: 42px; border-radius: 999px; }
.foot { padding-top: 18px; padding-bottom: 110px; font-size: 12.5px; color: var(--mut); display: flex; flex-direction: column; gap: 4px; }

/* bottom bar */
.bbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 9px 12px calc(12px + var(--safe-b)); background: var(--bar); border-top: 1px solid var(--line2); display: flex; gap: 8px; }
.bbar a { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; font-weight: 600; font-size: 14.5px; }
.bbar .l { flex: 2; background: var(--pri); color: var(--pri-ink); font-weight: 700; }
.bbar .t { flex: 1; border: 1.3px solid var(--pri); color: var(--pri); }
.bbar .s { flex: 1; border: 1.3px solid var(--line2); color: var(--ink); background: transparent; cursor: pointer; }

/* room page */
.gal { position: relative; }
.gal .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3; max-height: 70vh; background: #000; }
.gal .track::-webkit-scrollbar { display: none; }
.gal .track img { flex: none; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
.gal .count { position: absolute; right: 12px; bottom: 12px; padding: 3px 11px; border-radius: 999px; background: rgba(11,24,19,.85); font-size: 13px; }
.gal .back { position: absolute; top: 12px; left: 12px; width: 44px; height: 44px; border-radius: 50%; background: rgba(11,24,19,.85); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.gal .tag { font-size: 12px; padding: 4px 12px; gap: 6px; }
.gal .tag i { width: 8px; height: 8px; }
.gal .tag.new, .gal .tag.drop { top: 14px; left: 66px; }
.gal .tag.booked { top: 14px; left: auto; right: 12px; transform: none; }
.thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; padding: 6px 12px 0; }
.thumbs button { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 7px; overflow: hidden; aspect-ratio: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.rm { padding: 14px 12px 0; display: flex; flex-direction: column; gap: 10px; }
.rm .meta { font-size: 12.5px; color: var(--mut); }
.rm h1 { margin: 0; font-family: 'Prompt', sans-serif; font-size: 23px; line-height: 1.3; }
.rm .price { font-family: 'Prompt', sans-serif; font-size: 30px; font-weight: 700; color: var(--gold2); line-height: 1.1; }
.rm .price small { font-size: 16px; color: var(--sub); font-weight: 500; }
.rm .price s { font-size: 15px; color: var(--mut); font-weight: 500; margin-left: 6px; }
.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pill { padding: 5px 11px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; }
.pill.o { border-radius: 999px; background: transparent; }
.mv { padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1.3px solid var(--pri); display: flex; flex-direction: column; gap: 5px; }
.mv .ln { display: flex; justify-content: space-between; font-size: 14px; color: var(--sub); }
.mv .tt { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line2); padding-top: 6px; margin-top: 2px; }
.mv .tt b { font-family: 'Prompt', sans-serif; font-size: 22px; color: var(--gold2); }
.rm h2 { margin: 8px 0 0; font-family: 'Prompt', sans-serif; font-size: 17px; font-weight: 600; }
.tl { display: flex; flex-direction: column; gap: 6px; }
.tl div { display: flex; align-items: center; gap: 8px; }
.desc { white-space: pre-line; color: var(--sub); font-size: 14px; max-height: 9.5em; overflow: hidden; position: relative; }
.desc.open { max-height: none; }
.agent { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.agent .av { width: 52px; height: 52px; border-radius: 50%; border: 1.3px solid var(--gold); background: var(--card2); display: flex; align-items: center; justify-content: center; font-family: 'Prompt', sans-serif; font-size: 21px; color: var(--gold); flex: none; }
.agent b { font-family: 'Prompt', sans-serif; }
.agent span { display: block; font-size: 13px; color: var(--sub); }

/* forms + article */
.page { padding: 18px 12px 120px; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.page h1 { margin: 0; font-family: 'Prompt', sans-serif; font-size: 24px; line-height: 1.3; }
.page p { margin: 0; color: var(--sub); }
.fld { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--mut); }
.fld input, .fld select, .fld textarea { min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--field); background: var(--card); color: var(--ink); font-size: 16px; }
.fld textarea { min-height: 100px; resize: vertical; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.note { padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); color: var(--sub); }
.note.ok { border-color: var(--new); color: var(--ink); }
.note.err { border-color: var(--booked); color: var(--err); }
.dgal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dgal img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.dlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.dlist .dcard { width: auto; }
.dlist .dcard .ph { height: 160px; }

@media (min-width: 720px) {
  .wrap { padding: 0 20px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
  .ci { padding: 9px 11px 11px; gap: 3px; }
  .ci .cd { font-size: 15px; } .ci .pr { font-size: 18px; } .ci .mt { font-size: 13px; } .ci .r3 { font-size: 12px; } .ci .pv { font-size: 12px; }
  .tag { font-size: 11.5px; padding: 3px 10px; gap: 6px; } .tag i { width: 7px; height: 7px; }
  .tag.new, .tag.drop { top: 9px; left: 9px; } .tag.new + .tag.drop { top: 36px; }
  .pc { font-size: 11px; right: 8px; bottom: 8px; padding: 1px 8px; }
  .grp h2 { font-size: 22px; } .grp .gs { font-size: 14px; }
  .ctas { grid-template-columns: 1fr 1fr; }
  .rmwrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; max-width: 1280px; margin: 0 auto; padding: 16px 20px 0; }
  .rmwrap .gal .track { border-radius: 14px; }
  .rmwrap .thumbs { padding: 8px 0 0; }
  .rm { padding: 0; }
}
@media (min-width: 1000px) {
  .nav { display: flex; }
  .cta-top { display: inline-flex; min-height: 38px; padding: 0 16px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-weight: 600; align-items: center; gap: 6px; font-size: 14px; }
  .bbar { display: none; }
  .foot { padding-bottom: 40px; }
}

/* เพิ่มเติม */
body.lock { overflow: hidden; }
.crumbs { padding-top: 10px; font-size: 12.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs a { color: var(--sub); }
.chip.dim { opacity: .45; }
.shh { display: flex; align-items: center; justify-content: space-between; }
.shh .x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.small { font-size: 12.5px; color: var(--mut); margin: 0; }
.reset span { display: none; }
.grp h1 { margin: 0; font-family: 'Prompt', sans-serif; font-size: 21px; font-weight: 700; }
.grp h1 a { color: var(--ink); }
.noimg { width: 100%; display: flex; align-items: center; justify-content: center; color: var(--mut); font-family: 'DM Serif Display', serif; font-size: 22px; }
.gal .nav-a { display: none; position: absolute; top: 50%; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; border: 0; background: rgba(11,24,19,.8); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.gal .nav-a.prev { left: 12px; } .gal .nav-a.next { right: 12px; } .gal .nav-a.next svg { transform: rotate(180deg); }
.thumbs button { position: relative; }
.thumbs button span { position: absolute; inset: 0; background: rgba(11,24,19,.65); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.rm h1 .h1s { font-size: 17px; font-weight: 500; color: var(--sub); }
.rm .note { font-size: 14px; border-color: rgba(255,77,79,.6); }
.mv b { font-family: 'Prompt', sans-serif; }
.maps { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; margin-top: 4px; }
.linkbtn { align-self: flex-start; border: 0; background: none; color: var(--gold); padding: 0; cursor: pointer; font-weight: 600; }
.side-cta, .hint { display: none; }
.hint { font-size: 12.5px; color: var(--mut); text-align: center; }
.pill b.g { color: var(--gold2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
form.lead { display: flex; flex-direction: column; gap: 12px; }
form.lead .btn { width: 100%; }
.page.wide { max-width: 1280px; padding-bottom: 8px; }
.page.tight { padding-bottom: 8px; }
.page .meta { font-size: 12.5px; color: var(--mut); }
.page h2 { margin: 8px 0 0; font-family: 'Prompt', sans-serif; font-size: 17px; }
.story { white-space: pre-line; color: var(--story) !important; }
.dhero { position: relative; height: 280px; background: var(--card2); max-width: 720px; margin: 0 auto; }
.dhero img { width: 100%; height: 100%; object-fit: cover; }
.dhero .back { position: absolute; top: 12px; left: 12px; width: 44px; height: 44px; border-radius: 50%; background: rgba(11,24,19,.85); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.dhero .ok { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; background: rgba(11,24,19,.85); border: 1px solid var(--gold); font-family: 'Prompt', sans-serif; font-size: 12.5px; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: calc(86px + var(--safe-b)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 80; padding: 10px 16px; border-radius: 999px; background: var(--toast-bg); color: var(--toast-ink); font-weight: 600; font-size: 14px; transition: .2s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: #FFB3B4; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (min-width: 420px) { .reset span { display: inline; } }
@media (min-width: 720px) {
  .gal .nav-a { display: flex; }
  .side-cta { display: flex; margin-top: 6px; }
  .hint { display: block; }
  .dhero { height: 420px; border-radius: 0 0 14px 14px; overflow: hidden; }
  .grp h1 { font-size: 26px; }
}
@media (min-width: 1000px) { .rmwrap .galcol { position: sticky; top: 64px; align-self: start; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

.ph .nop { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'DM Serif Display', serif; font-size: 13px; color: var(--line2); }
.grid.cap .card:nth-child(n+10) { display: none; }
@media (min-width: 720px) { .grid.cap .card:nth-child(n+10) { display: flex; } .tag.booked { font-size: 12px; } .ph .nop { font-size: 18px; } }

/* ---------- ส่วนบนหน้าแรก (ชุด 1.1) ---------- */
.hero { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; }
.hero .htext { display: contents; }
.eyebrow { order: 1; display: flex; align-items: center; gap: 8px; font-family: 'Prompt', sans-serif; font-size: 10.5px; letter-spacing: 3px; color: var(--gold); font-weight: 500; }
.eyebrow i { width: 22px; height: 1px; background: var(--gold); }
.htitle { order: 2; margin: -4px 0 0; font-family: 'Prompt', sans-serif; font-weight: 700; font-size: 27px; line-height: 1.22; }
.htitle span { color: var(--gold); }
.hsub { display: none; order: 3; }
.hmedia { order: 3; min-width: 0; }
.hsearch { order: 4; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line3); display: flex; flex-direction: column; gap: 10px; }
.htabs { display: flex; gap: 6px; flex-wrap: wrap; }
.hrow { display: flex; gap: 6px; align-items: flex-end; }
.hrow .fld { gap: 4px; }
.hrow .fld input, .hrow .fld select { background: var(--bg); min-height: 44px; }
.hs-q { flex: 1; min-width: 0; }
.hs-q .hl, .hs-t, .hs-p { display: none !important; }
.hrow .btn { flex: none; min-height: 44px; padding: 0 16px; }
.hcar { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--card2); box-shadow: 0 16px 34px rgba(0,0,0,.5); }
.slide { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity .8s ease; pointer-events: none; color: var(--ink); }
.slide.on { opacity: 1; pointer-events: auto; }
.slide:hover { color: var(--ink); }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 56px 14px 16px; background: linear-gradient(180deg, rgba(11,24,19,0) 0, rgba(11,24,19,.86) 100%); display: flex; flex-direction: column; gap: 1px; }
.slide .cap > b { font-family: 'Prompt', sans-serif; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide .cap > span { font-size: 12px; color: var(--sub); }
.slide .cap b.g { font-family: 'Prompt', sans-serif; font-size: 16px; color: var(--gold2); font-weight: 700; }
.slide .tag { position: static; transform: none; align-self: flex-start; margin-bottom: 4px; font-size: 10px; padding: 1px 9px; }
.hframe { position: absolute; inset: 8px; border: 1px solid rgba(241,220,160,.5); border-radius: 10px; pointer-events: none; z-index: 1; }
.hnav { position: absolute; top: 50%; margin-top: -18px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(11,24,19,.72); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }
.hnav.prev { left: 8px; } .hnav.next { right: 8px; } .hnav.next svg { transform: rotate(180deg); }
.hbadge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 11px; border-radius: 12px; background: var(--badge); border: 1px solid var(--gold); display: flex; flex-direction: column; line-height: 1.2; }
.hbadge span { font-size: 10px; color: var(--mut); }
.hbadge b { font-family: 'Prompt', sans-serif; font-size: 16px; color: var(--gold); }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: var(--line3); cursor: pointer; transition: width .3s; }
.dots button.on { width: 18px; background: var(--gold); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding-top: 12px; }
.tile { padding: 9px 4px 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.tile:hover { color: var(--ink); border-color: var(--line2); }
.tile > span { display: flex; flex-direction: column; }
.tile b { font-family: 'Prompt', sans-serif; font-size: 12.5px; }
.tile > span > span { font-size: 10.5px; color: var(--mut); }
.tile.on { border-color: var(--pri); box-shadow: inset 0 0 0 1px var(--pri); }
.tile.dim { opacity: .55; }
.zones { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; padding-top: 12px; padding-bottom: 4px; }
.zones::-webkit-scrollbar { display: none; }
.zones .zl { flex: none; align-self: center; font-size: 12px; color: var(--mut); margin-right: 2px; }
#list + .stat { margin-top: 10px; border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .hero { flex-direction: row; align-items: center; gap: 44px; padding-top: 44px; }
  .hero .htext { display: flex; flex-direction: column; gap: 16px; flex: 1 1 520px; min-width: 0; }
  .hmedia { flex: 1 1 440px; }
  .eyebrow { font-size: 13px; letter-spacing: 4px; } .eyebrow i { width: 40px; }
  .htitle { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.15; margin: 0; }
  .hsub { display: block; margin: 0; font-size: 17px; color: var(--sub); max-width: 34em; }
  .hsearch { padding: 16px; border-radius: 18px; }
  .hrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; }
  .hs-q { grid-column: 1 / -1; } .hs-q .hl { display: block !important; }
  .hs-t, .hs-p { display: flex !important; }
  .hrow .btn { min-height: 46px; padding: 0 26px; }
  .hcar { aspect-ratio: 4 / 3; border-radius: 22px; }
  .hframe { inset: 12px; border-radius: 13px; }
  .hnav { width: 44px; height: 44px; margin-top: -22px; } .hnav.prev { left: 14px; } .hnav.next { right: 14px; }
  .hbadge { top: auto; bottom: 18px; right: 18px; left: auto; padding: 12px 18px; border-radius: 16px; }
  .hbadge span { font-size: 13px; } .hbadge b { font-size: 24px; }
  .slide .cap { padding: 60px 200px 22px 24px; }
  .slide .cap > b { font-size: 20px; } .slide .cap > span { font-size: 14px; } .slide .cap b.g { font-size: 20px; }
  .slide .tag { font-size: 12px; padding: 3px 11px; }
  .tiles { gap: 14px; padding-top: 28px; }
  .tile { flex-direction: row; padding: 18px; gap: 14px; text-align: left; }
  .tile svg { width: 34px; height: 34px; }
  .tile b { font-size: 18px; } .tile > span > span { font-size: 13px; }
  .zones { flex-wrap: wrap; padding-top: 20px; gap: 10px; }
  .zones .zl { font-size: 14px; }
  .zones .chip { height: 38px; font-size: 14.5px; }
  #list + .stat { margin-top: 26px; }
}

/* ---------- ธีมกลางวัน (ชุด 1.2): เซจอ่อน + หัวเว็บมรกต ---------- */
html[data-theme="day"] {
  --bg: #EEF2EE; --card: #FFFFFF; --card2: #E3EBE5;
  --ink: #14261E; --sub: #46544C; --mut: #5F6D66;
  --gold: #A9833A; --gold2: #0F5C40;
  --line: rgba(14, 42, 32, .12); --line2: rgba(14, 42, 32, .22); --line3: rgba(14, 42, 32, .2);
  --head: #0E1D17; --bar: #FFFFFF; --pri: #1E5A43; --pri-ink: #FFFFFF;
  --field: rgba(14, 42, 32, .2); --link: #0F5C40; --link-h: #1E5A43; --err: #B3261E; --story: #2E3B34; --badge: rgba(255, 255, 255, .94);
  --toast-bg: #14261E; --toast-ink: #FFFFFF; --shadow: 0 2px 8px rgba(14, 42, 32, .07);
  color-scheme: light;
}
/* หัวเว็บสีมรกตเข้มทั้งสองธีม */
html[data-theme="day"] .top {
  --ink: #F4EFE3; --sub: #C9D2CB; --mut: #A3B2AA; --gold: #D8B871; --gold-ink: #0E1D17;
  --line: rgba(216, 184, 113, .22); --line2: rgba(216, 184, 113, .45); --pri: #D8B871; --pri-ink: #0E1D17; --link: #D8B871; --link-h: #F1DCA0;
  color-scheme: dark;
}
html[data-theme="day"] .sheet .bk { background: rgba(14, 29, 23, .45); }
html[data-theme="day"] .hcar { box-shadow: 0 12px 28px rgba(14, 42, 32, .22); }
html[data-theme="day"] .hsearch, html[data-theme="day"] .tile, html[data-theme="day"] .box, html[data-theme="day"] .dcard, html[data-theme="day"] .agent, html[data-theme="day"] .mv { box-shadow: var(--shadow); }
/* ตัวหนังสือบนรูป ใช้สีอ่อนเสมอ */
.pc, .gal .count, .gal .back, .gal .nav-a, .thumbs button span, .dhero .back, .dhero .ok, .dcard .ok, .hnav, .slide, .slide:hover { color: var(--photo-ink); }
.slide .cap > span { color: #DDE3DF; }
.slide .cap b.g { color: #E6C77E; }
.tl svg, .maps svg, .tile svg { color: var(--gold); }
/* ปุ่มสลับธีม ☀ / ☾ */
.thm { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid var(--line2); background: transparent; color: var(--gold); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.thm .i-sun { display: none; }
html[data-theme="day"] .thm .i-sun { display: block; }
html[data-theme="day"] .thm .i-moon { display: none; }
