/* The Artisan, World Club Land. Off-black + warm white + one terracotta accent. Sharp corners throughout. */
:root {
  --ink: #161615;
  --ink-2: #3a3936;
  --stone: #66645e;
  --mute: #a9a69e;
  --paper: #f4f3ef;
  --paper-2: #ebe9e3;
  --line: #d3d0c8;
  --terra: #b04a2b;
  --terra-d: #93391e;
  --terra-tint: #ecd6cc;
  --night: #121211;

  --f-sans: "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-latin: "Cormorant Garamond", "Noto Serif Thai", Georgia, serif;
  --f-thai: "Noto Serif Thai", "Cormorant Garamond", Georgia, serif;
  --f-display: var(--f-thai);

  --g: 20px;
  --cg: 16px;
  --max: 1320px;
  --nav-h: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
html[lang="en"] { --f-display: var(--f-latin); }
@media (min-width: 900px) { :root { --g: clamp(32px, 4.5vw, 64px); --cg: 24px; --nav-h: 72px; } }

/* language switch: Thai first, English behind the TH | EN toggle */
html[lang="th"] [data-l="en"], html[lang="en"] [data-l="th"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-sans); font-weight: 400; font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html[lang="en"] body { line-height: 1.65; }
@media (min-width: 900px) { body { font-size: 17px; } }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
p, h1, h2, h3, dl, dd, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--g); }
.nw { white-space: nowrap; }

/* type */
.h2 {
  font-family: var(--f-display); font-weight: 300; letter-spacing: 0;
  font-size: clamp(2rem, 1.35rem + 2.4vw, 3.4rem); line-height: 1.3; text-wrap: balance;
}
html[lang="en"] .h2 { font-weight: 400; line-height: 1.08; letter-spacing: -.005em; font-size: clamp(2.3rem, 1.5rem + 2.9vw, 4rem); }
.h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.3rem, 1.05rem + .9vw, 1.85rem); line-height: 1.4; text-wrap: balance; }
html[lang="en"] .h3 { font-size: clamp(1.55rem, 1.2rem + 1.1vw, 2.2rem); line-height: 1.15; }
.h3 + p { margin-top: 14px; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 22px; border: 0; border-radius: 0; cursor: pointer;
  font-family: var(--f-sans); font-size: 15px; font-weight: 500; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; transition: background-color .25s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-terra { background: var(--terra); color: #fbfaf7; }
.btn-terra:hover { background: var(--terra-d); }
.btn[disabled] { background: #c9c5bc; color: #f6f5f2; cursor: not-allowed; }
.btn i { font-size: 20px; }
.btn-block { width: 100%; min-height: 54px; }

/* nav */
.sentinel { position: absolute; top: 0; left: 0; height: 90px; width: 1px; pointer-events: none; }
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; color: #f7f6f2; transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease); }
.nav.solid, .nav.open { background: rgba(244, 243, 239, .97); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(8px)) { .nav.solid { background: rgba(244, 243, 239, .9); backdrop-filter: blur(10px); } }
.nav-in { height: var(--nav-h); max-width: var(--max); margin: 0 auto; padding: 0 var(--g); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.mark { font-family: var(--f-latin); font-weight: 500; font-size: 1.05rem; letter-spacing: .34em; text-transform: uppercase; text-decoration: none; white-space: nowrap; line-height: 1; }
.nav-links { display: none; gap: clamp(20px, 2.4vw, 36px); font-size: 14px; }
.nav-links a, .menu a { text-decoration: none; }
.nav-links a { padding: 6px 0; white-space: nowrap; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.nav-links a:hover { background-size: 100% 1px; }
.nav-end { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; align-items: center; gap: 2px; font-size: 13px; letter-spacing: .08em; }
.lang span { opacity: .45; }
.lang button { background: none; border: 0; padding: 10px 6px; min-width: 32px; min-height: 44px; cursor: pointer; opacity: .55; }
.lang button[aria-pressed="true"] { opacity: 1; font-weight: 500; }
.nav-cta { display: none; }
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; font-size: 26px; }
.menu { position: fixed; inset: var(--nav-h) 0 0 0; background: var(--paper); padding: 32px var(--g); display: flex; flex-direction: column; gap: 6px; }
.menu[hidden] { display: none; }
.menu a { font-family: var(--f-display); font-size: 1.9rem; font-weight: 300; padding: 10px 0; color: var(--ink); }
@media (min-width: 1200px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-btn, .menu { display: none !important; }
}

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--night); color: #f7f6f2; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media picture { display: contents; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform-origin: 50% 45%; animation: kenburns 28s ease-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1) translate3d(-1%, -.6%, 0); } }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero::before { background: linear-gradient(to bottom, rgba(18, 18, 17, .55), rgba(18, 18, 17, 0) 24%); }
.hero::after { background: linear-gradient(to top, rgba(18, 18, 17, .86) 0%, rgba(18, 18, 17, .5) 34%, rgba(18, 18, 17, 0) 64%); }
.hero-in { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: calc(var(--nav-h) + 24px) var(--g) max(20px, env(safe-area-inset-bottom)); }
.hero-title { font-family: var(--f-latin); font-weight: 400; font-size: clamp(3.9rem, 2.2rem + 8vw, 9.5rem); line-height: .92; letter-spacing: -.012em; }
.hero-title em { font-style: italic; }
.hero-sub { margin-top: 14px; max-width: 30em; font-weight: 300; font-size: clamp(1.02rem, .92rem + .45vw, 1.3rem); line-height: 1.6; color: rgba(247, 246, 242, .92); text-wrap: balance; }
@media (min-aspect-ratio: 1/1) {
  .hero-media img { object-position: 50% 30%; }
}

/* booking bar */
.bookbar { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px -24px rgba(10, 10, 9, .55); }
.bb-field { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 16px; min-height: 66px; border-bottom: 1px solid var(--line); cursor: pointer; }
.bb-field:nth-child(odd) { border-right: 1px solid var(--line); }
.bb-label { font-size: 12px; color: var(--stone); line-height: 1.3; }
html[lang="en"] .bb-label, html[lang="en"] .amen-h, html[lang="en"] .titleblock dt, html[lang="en"] .sum-dl dt, html[lang="en"] .rules-list b { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }
.bb-field input, .bb-field select { width: 100%; min-height: 30px; padding: 0; border: 0; background: transparent; font-size: 16px; color: var(--ink); appearance: none; -webkit-appearance: none; border-radius: 0; cursor: pointer; }
.bb-field input::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
.bb-field input:invalid, .bb-field input:placeholder-shown { color: var(--stone); }
.bb-field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2366645e' stroke-width='1.2'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 2px center; padding-right: 22px; }
.bb-field:focus-within { box-shadow: inset 0 -2px 0 var(--terra); }
.bb-in { display: grid; align-items: center; }
.bb-in > * { grid-area: 1 / 1; }
.bb-ph { display: none; font-size: 16px; color: var(--stone); pointer-events: none; }
.bb-field:has(input:invalid):not(:focus-within) .bb-ph { display: block; }
.bb-field:has(input:invalid):not(:focus-within) input::-webkit-datetime-edit { color: transparent; }
.bb-go { min-height: 66px; font-size: 15px; }
@media (min-width: 900px) {
  .bookbar { grid-template-columns: 1fr 1fr .8fr auto; max-width: 1000px; margin-top: 40px; }
  .bb-field { border-bottom: 0; border-right: 1px solid var(--line); padding: 12px 24px; min-height: 76px; }
  .bb-go { min-height: 76px; padding: 0 36px; }
}

/* reveal: opacity + 12px, ease-out 600ms */
html.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

/* intro + title block (signature: an architect's drawing title block for the house) */
.intro { padding-top: clamp(80px, 11vw, 168px); padding-bottom: clamp(72px, 9vw, 128px); }
.lede { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.55rem, 1.05rem + 2.1vw, 2.85rem); line-height: 1.5; max-width: 22em; text-wrap: pretty; }
html[lang="en"] .lede { font-weight: 400; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.3rem); line-height: 1.22; }
.intro-body { margin-top: 36px; max-width: 34em; color: var(--ink-2); text-wrap: pretty; }
.direct { margin-top: 22px; color: var(--ink); font-weight: 500; font-size: 15px; display: flex; align-items: center; gap: 14px; }
.direct::before { content: ""; width: 28px; height: 1px; background: var(--terra); flex: none; }
.titleblock { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.titleblock > div { padding: 16px 14px 20px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.titleblock > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.titleblock dt { font-size: 13px; color: var(--stone); line-height: 1.4; }
.titleblock dd { margin-top: 8px; font-family: var(--f-latin); font-weight: 400; font-size: clamp(2.6rem, 2rem + 2vw, 3.9rem); line-height: 1; font-variant-numeric: lining-nums; }
.titleblock dd small { font-family: var(--f-sans); font-size: 13px; color: var(--stone); margin-left: 6px; letter-spacing: 0; }
.titleblock dd.dd-text { font-family: var(--f-display); font-size: clamp(1.15rem, .95rem + .7vw, 1.5rem); line-height: 1.35; padding-top: 6px; }
html[lang="en"] .titleblock dd.dd-text { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.8rem); }
@media (min-width: 900px) {
  .intro { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--cg); }
  .lede { grid-column: 1 / span 10; }
  .intro-body { grid-column: 6 / span 6; margin-top: 48px; }
  .titleblock { grid-column: 1 / -1; grid-template-columns: repeat(6, 1fr); border-bottom: 1px solid var(--line); }
  .titleblock > div, .titleblock > div:nth-child(even) { padding: 18px 20px 24px; border-bottom: 0; border-left: 1px solid var(--line); }
  .titleblock > div:first-child { border-left: 0; padding-left: 0; }
}

/* spaces: every figure keeps its crop's own proportions */
.spaces { padding-bottom: clamp(88px, 10vw, 168px); }
.sp { margin-top: clamp(48px, 7vw, 120px); display: flex; flex-direction: column; gap: 22px; }
.sp figure { overflow: hidden; background: var(--paper-2); }
.sp figure img { width: 100%; height: auto; }
.sp-full { display: block; }
.sp-bleed { aspect-ratio: 3 / 2; }
.sp .sp-bleed img { height: 100%; object-fit: cover; object-position: var(--op, 50% 50%); }
.sp-full-t { margin-top: 22px; }
.kick { font-size: 13px; color: var(--terra); margin-bottom: 10px; }
html[lang="en"] .kick { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }
.rooms-head { margin-top: clamp(88px, 11vw, 176px); padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); scroll-margin-top: var(--nav-h); }
.rooms-head p:not(.h2) { margin-top: 18px; max-width: 34em; color: var(--ink-2); text-wrap: pretty; }
.baths { margin-top: clamp(64px, 8vw, 132px); }
.baths-t p { margin-top: 10px; max-width: 34em; color: var(--ink-2); }
.baths-g { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.baths-g figure { overflow: hidden; background: var(--paper-2); }
.baths-g img { width: 100%; height: auto; }
.baths-g .b1 { grid-column: 1 / -1; }
@media (max-width: 899px) {
  /* title first, so a room's name always sits above its own photos */
  .sp-l .sp-text, .sp-r .sp-text { order: -1; }
  .sp-r .sp-tall { order: 1; }
  .sp-l .sp-small, .sp-r .sp-tall { width: 72%; align-self: flex-end; }
  .sp-two { gap: 10px; }
}
@media (min-width: 900px) {
  .sp { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--cg); row-gap: 0; align-items: start; }
  .sp-full { display: block; }
  .sp-l .sp-big { grid-column: 1 / span 7; grid-row: 1 / span 2; }
  .sp-l .sp-text { grid-column: 9 / span 4; grid-row: 1; align-self: end; padding-bottom: 40px; }
  .sp-l .sp-small { grid-column: 9 / span 4; grid-row: 2; }
  .sp-l .sp-extra { grid-column: 3 / span 5; grid-row: 3; margin-top: var(--cg); }
  .sp-r .sp-text { grid-column: 1 / span 6; grid-row: 1; padding-bottom: 36px; align-self: end; }
  .sp-r .sp-wide { grid-column: 1 / span 7; grid-row: 2; }
  .sp-r .sp-tall { grid-column: 9 / span 4; grid-row: 1 / span 2; align-self: end; }
  .sp-bleed { aspect-ratio: var(--r, 2); max-height: 92vh; width: 100%; }
  .sp-full-t { margin-top: 36px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--cg); }
  .sp-full-t .sp-text { grid-column: 8 / span 5; }
  .sp-two .two-a { grid-column: 1 / span 8; align-self: end; }
  .sp-two .two-b { grid-column: 9 / span 4; align-self: end; }
  .rooms-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--cg); align-items: end; }
  .rooms-head .h2 { grid-column: 1 / span 7; }
  .rooms-head p { grid-column: 9 / span 4; margin-top: 0; }
  .baths { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--cg); }
  .baths-t { grid-column: 1 / span 6; }
  .baths-g { grid-column: 1 / -1; grid-template-columns: repeat(5, 1fr); gap: var(--cg); }
  .baths-g .b1 { grid-column: auto; }
}

/* gallery: the one dark band on the page, like a gallery after hours */
.gallery { background: var(--night); color: #f2f1ec; padding-top: clamp(72px, 9vw, 140px); }
.gallery .h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.g-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: calc((100vw - 4px) / 2 / 1.5); grid-auto-flow: dense; gap: 4px; }
.g { position: relative; padding: 0; border: 0; background: #1d1d1b; overflow: hidden; cursor: zoom-in; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .4s var(--ease); }
@media (hover: hover) { .g:hover img { transform: scale(1.035); } }
.g:focus-visible { outline-offset: -4px; outline-color: #f2f1ec; }
.g-pool { grid-column: span 2; grid-row: span 2; }
.g-tall { grid-row: span 2; }
@media (min-width: 900px) {
  .g-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: calc((100vw - 20px) / 6 / 1.5); }
  .g-pool { grid-column: span 4; grid-row: span 3; }
  .g-tall { grid-row: span 2; }
  .g-sq { grid-column: span 2; grid-row: span 3; }
  .g-big { grid-column: span 2; grid-row: span 2; }
  .g-wide { grid-column: span 3; grid-row: span 2; }
}

/* amenities */
.amen { padding-top: clamp(88px, 10vw, 160px); padding-bottom: clamp(72px, 9vw, 140px); }
.amen-cols { margin-top: clamp(36px, 4vw, 56px); display: grid; gap: 44px; }
.amen-h { font-size: 13px; color: var(--stone); font-weight: 500; margin-bottom: 14px; }
.amen-list li { display: flex; align-items: center; gap: 16px; padding: 9px 0; color: var(--ink); }
.amen-list i { font-size: 26px; color: var(--ink-2); flex: none; width: 28px; }
@media (min-width: 900px) {
  .amen { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--cg); }
  .amen .h2 { grid-column: 1 / span 4; }
  .amen-cols { grid-column: 5 / span 8; margin-top: 10px; grid-template-columns: 1fr 1fr; column-gap: calc(var(--cg) * 2); }
}

/* location */
.loc { border-top: 1px solid var(--line); padding: clamp(80px, 10vw, 150px) 0; }
.loc-grid { display: grid; gap: 44px; }
.loc address { margin-top: 24px; font-family: var(--f-display); font-size: 1.15rem; line-height: 1.7; color: var(--ink-2); }
html[lang="en"] .loc address { font-size: 1.4rem; line-height: 1.45; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 10px 0 6px; font-size: 15px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--terra); }
.link-arrow i { font-size: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover i { transform: translate(2px, -2px); }
.dist { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; }
.dist li { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.dist b { font-family: var(--f-latin); font-weight: 400; font-size: clamp(2.4rem, 2rem + 1.6vw, 3.5rem); line-height: 1; font-variant-numeric: lining-nums; }
.dist small { font-size: 13px; color: var(--stone); }
.dist-n { flex-basis: 100%; margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.fine { margin-top: 32px; font-size: 13px; color: var(--stone); }
@media (min-width: 900px) {
  .loc-grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--cg); }
  .loc-head { grid-column: 1 / span 4; }
  .loc-dist { grid-column: 6 / span 7; padding-top: 12px; }
  .dist { grid-template-columns: repeat(3, 1fr); gap: 44px var(--cg); }
}

/* availability */
.avail { background: var(--paper-2); padding: clamp(80px, 10vw, 150px) 0; }
#avail-h { scroll-margin-top: 28px; }
.avail-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.cal-status { font-size: 13px; color: var(--stone); }
.avail-grid { margin-top: clamp(28px, 4vw, 52px); display: grid; gap: 36px; }
.cal-wrap { position: relative; }
.cal-nav { position: absolute; right: -10px; top: -6px; display: flex; gap: 2px; z-index: 1; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; font-size: 22px; }
.icon-btn[disabled] { opacity: .25; cursor: default; }
.cal { display: grid; gap: 36px; }
.m-title { font-family: var(--f-display); font-size: 1.3rem; line-height: 44px; height: 44px; margin-bottom: 8px; }
html[lang="en"] .m-title { font-size: 1.55rem; }
.m-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.wd { text-align: center; font-size: 12px; color: var(--stone); padding-bottom: 8px; }
.d { position: relative; height: 46px; display: grid; place-items: center; border: 0; background: transparent; font-size: 15px; font-variant-numeric: tabular-nums; cursor: pointer; color: var(--ink); }
@media (hover: hover) { .d:hover:not([disabled]) { box-shadow: inset 0 0 0 1px var(--ink); } }
.d[disabled] { cursor: not-allowed; }
.d-off { color: #bcb9b1; }
.d-booked { color: var(--mute); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: var(--ink-2); }
.d-coonly { cursor: pointer; }
.d-range { background: var(--terra-tint); }
.d-ci, .d-co { background: var(--terra); color: #fbfaf7; text-decoration-color: #fbfaf7; }
.d-today::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 14px; height: 1px; margin-left: -7px; background: currentColor; opacity: .6; }
.legend { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--stone); }
.legend li { display: flex; align-items: center; gap: 8px; }
.lg { width: 30px; height: 26px; display: inline-grid; place-items: center; font-size: 12px; color: var(--ink); }
.lg-booked { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--ink-2); }
.lg-free { box-shadow: inset 0 0 0 1px var(--line); }
.lg-sel { background: var(--terra); color: #fbfaf7; }
.summary { background: var(--paper); padding: 26px 22px; align-self: start; }
.sum-h { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; }
html[lang="en"] .sum-h { font-size: 1.65rem; }
.sum-dl { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.sum-dl > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.sum-dl > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.sum-dl dt { font-size: 12px; color: var(--stone); }
.sum-dl dd { margin-top: 2px; font-size: 16px; font-weight: 500; }
.sum-dl select { width: 100%; border: 0; background: transparent; font-weight: 500; font-size: 16px; padding: 2px 0; cursor: pointer; }
.sum-msg { min-height: 1.6em; margin: 16px 0 12px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.sum-msg.err { color: var(--terra-d); font-weight: 500; }
.sum-note { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--stone); }
.link-clear { margin-top: 10px; padding: 8px 0; background: none; border: 0; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--ink-2); }
.sum-direct { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 500; }
@media (min-width: 700px) { .cal { grid-template-columns: 1fr 1fr; gap: 48px; } }
@media (min-width: 1024px) {
  .avail-grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--cg); }
  .cal-wrap { grid-column: 1 / span 8; }
  .summary { grid-column: 9 / span 4; position: sticky; top: calc(var(--nav-h) + 24px); padding: 32px 28px; }
}

/* rules */
.rules { padding-top: clamp(80px, 10vw, 150px); padding-bottom: clamp(80px, 10vw, 150px); }
.rules-list { margin-top: clamp(32px, 4vw, 52px); display: grid; grid-template-columns: 1fr 1fr; gap: 30px 20px; }
.rules-list li { display: flex; flex-direction: column; gap: 6px; }
.rules-list b { font-weight: 400; font-size: 13px; color: var(--stone); }
.rules-list li > span { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.45; }
html[lang="en"] .rules-list li > span { font-size: 1.45rem; line-height: 1.25; }
.rules-list li:last-child { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .rules-list { grid-template-columns: repeat(5, 1fr); column-gap: var(--cg); }
  .rules-list li:last-child { grid-column: auto; }
}

/* footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 calc(120px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 32px; }
.foot-mark { font-family: var(--f-latin); font-weight: 500; font-size: 1.05rem; letter-spacing: .34em; text-transform: uppercase; }
.foot-sub { font-size: 14px; color: var(--stone); }
.foot-by { font-size: 14px; flex-basis: 100%; }
@media (min-width: 900px) { .foot { padding-bottom: 56px; } .foot-by { flex-basis: auto; margin-left: auto; } }

/* mobile reserve bar */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--g) calc(10px + env(safe-area-inset-bottom)); background: var(--ink); color: #f2f1ec; transform: translateY(110%); transition: transform .45s var(--ease); }
.mbar.show { transform: none; }
.mbar-t { font-size: 13px; line-height: 1.4; color: rgba(242, 241, 236, .82); }
.mbar .btn { min-height: 46px; flex: none; }
@media (min-width: 1200px) { .mbar { display: none; } }

/* lightbox */
.lb { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(14, 14, 13, .97); color: #f2f1ec; overscroll-behavior: contain; }
.lb::backdrop { background: rgba(14, 14, 13, .9); }
.lb[open] { display: grid; }
.lb-fig { display: grid; grid-template-rows: 1fr auto; place-items: center; height: 100%; padding: 64px 16px 18px; touch-action: pan-y; }
.lb-fig img { max-width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-fig figcaption { width: 100%; max-width: 1100px; display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; font-size: 14px; color: rgba(242, 241, 236, .8); }
.lb-count { font-variant-numeric: tabular-nums; flex: none; }
.lb-btn { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; background: none; border: 0; color: #f2f1ec; font-size: 30px; cursor: pointer; }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; translate: 0 -50%; }
.lb-next { right: 4px; top: 50%; translate: 0 -50%; }
@media (min-width: 900px) { .lb-fig { padding: 72px 96px 24px; } .lb-prev { left: 24px; } .lb-next { right: 24px; } .lb-close { top: 18px; right: 22px; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 88px; z-index: 60; translate: -50% 12px; max-width: calc(100vw - 32px); padding: 12px 18px; background: var(--ink); color: #f2f1ec; font-size: 14px; line-height: 1.5; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), translate .3s var(--ease); }
.toast.show { opacity: 1; translate: -50% 0; }
@media (min-width: 1024px) { .toast { bottom: 32px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; transform: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .g img, .mbar, .toast, .nav { transition: none; }
}

/* long name (The Collector's House): let the wordmark wrap to two lines on phones so TH/EN and the menu stay on screen */
@media (max-width: 599px) { .mark { white-space: normal; font-size: .9rem; letter-spacing: .24em; line-height: 1.35; } }
