:root {
  color-scheme: light;
  --ink: #173a35;
  --muted: #48635e;
  --teal: #185b51;
  --paper: #f7f5ef;
  --white: #fff;
  --line: #d7e0da;
  font-family: "DM Sans", "Noto Sans Thai", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1.0625rem; line-height: 1.55; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #b96c2e; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; line-height: 1.05; }
:lang(th) h1, :lang(th) h2, :lang(th) h3 { font-family: "Noto Sans Thai", system-ui, sans-serif; font-weight: 600; line-height: 1.2; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 3.5rem, 76rem); margin-inline: auto; }
.skip { position: absolute; z-index: 3; left: 1rem; top: 1rem; padding: .6rem 1rem; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }
.topbar { background: var(--paper); }
.top-inner, .main-nav, .header-actions, .logo { display: flex; align-items: center; }
.top-inner { min-height: 5.2rem; justify-content: space-between; gap: 1.4rem; }
.logo { gap: .6rem; font-size: 1.05rem; font-weight: 700; line-height: 1.12; white-space: nowrap; }
.logo-last { display: block; font-size: .79rem; font-weight: 500; letter-spacing: .11em; }
.logo-mark { display: inline-block; flex: 0 0 2.15rem; width: 2.15rem; height: 2.15rem; border: 1px solid var(--teal); border-radius: 50%; background: linear-gradient(155deg, transparent 56%, var(--teal) 57% 60%, transparent 61%), linear-gradient(32deg, transparent 42%, var(--teal) 43% 46%, transparent 47%); }
.main-nav, .header-actions { gap: clamp(.85rem, 2.15vw, 2.15rem); font-size: .96rem; font-weight: 600; }
.main-nav a:hover, .language:hover, .email:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.language { white-space: nowrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; border: 1px solid var(--teal); background: var(--teal); color: var(--white); border-radius: .28rem; text-align: center; padding: .83rem 1.1rem; font-size: .96rem; font-weight: 700; }
.button:hover { background: #103f38; border-color: #103f38; }
.hero { position: relative; min-height: clamp(32rem, 61vw, 43rem); display: grid; align-items: center; isolation: isolate; background: #224e47; color: white; }
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-image { object-fit: cover; object-position: center 54%; }
.hero::after { content: ""; background: linear-gradient(90deg, rgb(9 36 34 / 86%) 0%, rgb(12 41 36 / 66%) 34%, rgb(14 40 36 / 15%) 77%), linear-gradient(0deg, rgb(14 40 36 / 20%), transparent 35%); }
.hero-inner { padding-block: 4rem 6rem; }
.hero-location { font-size: .91rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.hero h1 { font-size: clamp(3.55rem, 7.7vw, 7.4rem); letter-spacing: -.025em; max-width: 8.5em; text-wrap: balance; }
:lang(th) .hero h1 { font-size: clamp(2.5rem, 6vw, 5.65rem); max-width: 12em; }
.hero-copy { margin-top: 1.3rem; max-width: 35rem; font-size: clamp(1.05rem, 2vw, 1.22rem); }
.hero-link { display: inline-flex; gap: .65rem; align-items: center; margin-top: 1.7rem; border-bottom: 1px solid currentColor; padding-bottom: .2rem; font-weight: 700; }
.booking-wrap { position: relative; z-index: 1; margin-top: -2.35rem; scroll-margin-top: 1rem; }
.booking { display: grid; grid-template-columns: 1fr 1fr .65fr 1.15fr; align-items: end; gap: 1rem; background: var(--white); border-radius: .4rem; padding: 1.15rem 1.25rem 1.25rem; box-shadow: 0 14px 40px rgb(22 57 53 / 12%); }
.booking label { display: grid; gap: .24rem; min-width: 0; font-size: .88rem; font-weight: 700; }
.booking input:not([type=hidden]), .booking select { display: block; width: 100%; min-width: 0; min-height: 3rem; border: 1px solid #c8d7d0; border-radius: .28rem; padding: .5rem .65rem; background: white; color: var(--ink); }
.booking button { min-height: 3rem; }
.booking-note { text-align: right; padding-top: .6rem; font-size: .87rem; color: var(--muted); }
.booking-note a:hover { text-decoration: underline; }
.rooms { padding-block: clamp(3.8rem, 8vw, 7rem); }
.section-head { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 1rem 2rem; margin-bottom: 1.8rem; }
.section-head p, .facilities-copy p, .location p { color: var(--muted); max-width: 36rem; }
h2 { font-size: clamp(2.55rem, 5.2vw, 4.7rem); text-wrap: balance; }
:lang(th) h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
.room-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.room { display: flex; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: .35rem; overflow: hidden; min-width: 0; }
.room-photo { width: 100%; height: auto; aspect-ratio: 1.73; object-fit: cover; }
.room-content { padding: clamp(1.2rem, 3.4vw, 2rem); flex: 1; display: flex; flex-direction: column; align-items: start; }
.room-tag { font-size: .86rem; font-weight: 700; color: var(--teal); margin-bottom: .45rem; }
.room h3 { font-size: clamp(2rem, 4vw, 3.1rem); }
:lang(th) .room h3 { font-size: clamp(1.45rem, 3vw, 2.25rem); }
.room h3 + p { color: var(--muted); margin-top: .6rem; max-width: 34em; }
.room-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1rem; margin-top: auto; padding-top: 1.25rem; font-size: .94rem; font-weight: 700; }
.photo-button { border: 1px solid #b0c5ba; background: #f0f5f2; color: var(--ink); border-radius: .25rem; padding: .62rem .95rem; }
.photo-button:hover { background: #ddede5; }
.photo-button span, .room-book span { margin-left: .3rem; }
.room-book { text-decoration: underline; text-underline-offset: .24em; padding-block: .6rem; }
.compact-room { grid-column: 1 / -1; background: #e9f0e9; }
.compact-room .room-content { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: .1rem 1.6rem; }
.compact-room .room-tag { grid-column: 1; }
.compact-room h3 { grid-column: 1; }
.compact-room h3 + p { grid-column: 2; grid-row: 1 / 3; margin-top: 0; }
.compact-room .room-actions { grid-column: 3; grid-row: 1 / 3; padding-top: 0; margin-top: 0; }
.facilities { background: #e6eee8; }
.facilities-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2.5rem, 6vw, 5.75rem); }
.facilities-grid > img { width: 100%; height: auto; aspect-ratio: 1.25; object-fit: cover; border-radius: .3rem; }
.facilities-copy p { margin-top: 1rem; }
.facilities-copy ul { padding: 0; margin: 1.45rem 0 0; display: grid; grid-template-columns: 1fr 1fr; list-style: none; gap: 0 1rem; }
.facilities-copy li { border-top: 1px solid #b8cbc0; padding-block: .65rem; font-size: .95rem; }
.location { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: clamp(1.35rem, 6vw, 6rem); padding-block: clamp(3.5rem, 8vw, 7rem); }
.location p { margin-top: 1rem; }
.contact { border-left: 1px solid #c7d4ca; padding-left: 1.4rem; }
.contact address { font-style: normal; margin-bottom: .9rem; }
.email { display: inline-block; margin: .7rem 0 .4rem 1rem; font-size: .91rem; font-weight: 700; }
.footer { background: #143936; color: white; padding-block: 1.7rem; }
.footer-inner, .footer-inner > div:last-child { display: flex; justify-content: space-between; gap: .4rem 1.5rem; flex-wrap: wrap; }
.footer-inner { align-items: center; font-size: .95rem; }
.footer-inner strong { font-size: 1.05rem; }
.gallery { border: 0; padding: 0; background: white; color: var(--ink); border-radius: .35rem; width: min(56rem, 100% - 2rem); max-height: 93dvh; }
.gallery::backdrop { background: rgb(9 32 30 / 78%); }
.gallery-panel { padding: 1rem; }
.gallery-header, .gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.gallery-header { padding-bottom: .7rem; }
.gallery-header h2 { font-size: clamp(1.4rem, 4vw, 2.6rem); }
.gallery-panel figure img { width: 100%; height: min(59dvh, 30rem); object-fit: contain; background: #edf2ef; }
.gallery-panel figcaption { padding-block: .65rem .25rem; text-align: center; }
.gallery-controls button, .close-gallery { border: 1px solid #b0c5ba; background: #f0f5f2; color: var(--ink); border-radius: .25rem; min-width: 2.8rem; min-height: 2.8rem; font-size: 1.35rem; }
.gallery-controls button:hover, .close-gallery:hover { background: #ddede5; }
.gallery-index { font-size: .88rem; }
@media (max-width: 55rem) {
  .main-nav { display: none; }
  .compact-room .room-content { grid-template-columns: 1fr 1fr; }
  .compact-room .room-actions { grid-column: 2; grid-row: auto; }
}
@media (max-width: 40rem) {
  .wrap { width: calc(100% - 2rem); }
  .top-inner { min-height: 4.3rem; gap: .55rem; }
  .logo { font-size: .92rem; gap: .4rem; }
  .logo-mark { flex-basis: 1.6rem; width: 1.6rem; height: 1.6rem; }
  .header-actions { gap: .55rem; font-size: .85rem; }
  .header-book { padding: .55rem .6rem; font-size: .79rem; }
  .hero { min-height: 33rem; }
  .hero-image { object-position: 54% center; }
  .hero::after { background: linear-gradient(90deg, rgb(9 36 34 / 83%), rgb(12 41 36 / 36%)); }
  .hero-inner { padding-block: 3rem 5rem; }
  .booking { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; padding: .85rem; }
  .booking button { padding-inline: .35rem; }
  .booking-note { text-align: left; }
  .section-head, .room-grid, .facilities-grid, .location, .compact-room .room-content { grid-template-columns: 1fr; }
  .compact-room h3 + p, .compact-room .room-actions { grid-column: 1; grid-row: auto; }
  .compact-room .room-actions { padding-top: .55rem; }
  .facilities-grid > img { aspect-ratio: 1.6; }
  .contact { border-left: 0; border-top: 1px solid #c7d4ca; padding: 1.15rem 0 0; }
  .email { margin-left: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
