/* Celine's editorial layout. Functional components live in styles.css. */
:root {
  --bg:#f7f6f0;
  --surface:#fffefa;
  --surface-sunk:#efeee6;
  --text:#293b32;
  --text-muted:#62695f;
  --accent:#344a39;
  --accent-hover:#243729;
  --accent-text:#fffef8;
  --border:#dcded2;
  --focus:#5d6b36;
  --field-border:#899183;
  --gold:#6a713c;
  --radius-sm:4px;
  --radius:6px;
  --radius-lg:8px;
  --wrap:1280px;
  --header-h:100px;
  --step-3:clamp(2rem,3.3vw,3.15rem);
  --step-4:clamp(2.6rem,4.6vw,4.3rem)
}

:root[data-theme=dark] {
  --bg:#18221d;
  --surface:#212e26;
  --surface-sunk:#1c2821;
  --text:#f0f0e6;
  --text-muted:#bac3b4;
  --accent:#c7d2b1;
  --accent-hover:#e0e7d0;
  --accent-text:#18221d;
  --border:#465347;
  --focus:#d0ddb4;
  --field-border:#8c9a88;
  --gold:#ccd4a8
}

body {
  font-size:16px;
  line-height:1.7
}

.wrap {
  width:min(1280px,calc(100% - 96px));
  max-width:none
}

h1,h2,h3 {
  font-weight:400;
  letter-spacing:-.045em
}

h2 {
  font-size:var(--step-3);
  line-height:1.17
}

p {
  max-width:64ch
}

.eyebrow {
  font-size:10px;
  font-weight:600;
  letter-spacing:.19em;
  color:var(--text-muted);
  margin-bottom:24px
}

.section {
  padding-block:92px
}

.btn {
  border-radius:3px;
  font-size:12px;
  font-weight:500;
  letter-spacing:.02em;
  min-height:46px;
  padding:13px 22px;
  gap:24px;
  box-shadow:none
}

.btn--lg {
  padding:17px 25px;
  min-height:54px;
  font-size:13px
}

.btn:hover {
  transform:none
}

.text-link {
  display:inline-flex;
  align-items:center;
  gap:24px;
  text-decoration:none;
  font-size:13px;
  border-bottom:1px solid var(--border);
  padding:12px 0;
  color:var(--text);
  min-height:44px
}

.text-link:hover {
  border-color:var(--text)
}

.site-header {
  background:var(--bg);
  border-bottom:0;
  backdrop-filter:blur(14px);
  box-shadow:none
}

.site-header.is-stuck {
  background:var(--bg);
  border-bottom:1px solid var(--border)
}

.site-header__inner {
  gap:24px;
  padding:20px 0
}

.wordmark {
  font-weight:400;
  gap:10px
}

.wordmark__mark {
  background:none;
  color:var(--text);
  border:1px solid var(--border);
  border-radius:50% 50% 0 0;
  width:38px;
  height:43px;
  font-size:26px;
  font-style:italic
}

.wordmark__text {
  font-size:19px;
  letter-spacing:-.03em
}

.wordmark__sub {
  font-size:8px;
  letter-spacing:.29em;
  margin-top:7px;
  font-weight:500
}

.nav-list {
  gap:25px
}

.nav-list a {
  font-size:12px;
  font-weight:400
}

.lang-switch,.theme-toggle {
  border:0;
  min-width:36px;
  min-height:44px;
  font-size:12px;
  padding:8px;
  background:transparent
}

.theme-toggle {
  width:32px
}

.theme-toggle__icon {
  width:17px;
  height:17px
}

.site-header__cta {
  font-size:11px;
  white-space:nowrap
}

.nav-list__book {
  display:none
}

.hero {
  display:grid;
  grid-template-columns:.84fr 1.16fr;
  gap:48px;
  min-height:0;
  position:relative;
  padding:28px 0 0;
  isolation:auto;
  color:var(--text);
  background:none;
  overflow:visible
}

.hero::after,.hero::before {
  display:none
}

.hero__copy {
  padding:40px 0 32px;
  align-self:center
}

.hero__copy .eyebrow {
  font-size:9px;
  letter-spacing:.15em;
  margin-bottom:28px
}

.hero h1 {
  font-size:clamp(42px,4.6vw,68px);
  line-height:1.12;
  letter-spacing:-.055em;
  margin:0 0 25px
}

.hero h1 em {
  color:var(--gold);
  font-weight:400
}

.hero__lead {
  font-size:14px;
  line-height:1.9;
  color:var(--text-muted);
  max-width:37ch;
  margin:0
}

.hero__actions {
  display:flex;
  gap:22px;
  align-items:center;
  margin-top:30px;
  flex-wrap:wrap
}

.hero__actions .text-link {
  font-size:11px
}

.hero__footnote {
  font-size:10px;
  color:var(--text-muted);
  display:flex;
  align-items:center;
  gap:13px;
  margin-top:45px
}

.little-line {
  width:24px;
  height:1px;
  background:var(--gold)
}

.hero__visual {
  position:relative;
  min-height:565px;
  overflow:hidden;
  border-radius:3px
}

.hero__img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:52% center;
  filter:none
}

.hero__label {
  position:absolute;
  top:24px;
  left:24px;
  background:#fbfaf0ed;
  color:#344a39;
  padding:13px 18px;
  font-size:8px;
  letter-spacing:.15em;
  line-height:1.8
}

.hero__label span {
  display:block;
  letter-spacing:.35em;
  font-size:7px
}

.photo-link {
  position:absolute;
  bottom:24px;
  right:24px;
  left:24px;
  background:#faf9f1f0;
  color:#293b32;
  backdrop-filter:blur(8px);
  padding:15px 18px;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:11px;
  text-decoration:none
}

.photo-link>span:last-child {
  margin-left:auto;
  font-size:10px
}

.photo-link>span:first-child {
  font-size:19px
}

.highlights {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  padding:32px 0 36px;
  border-bottom:1px solid var(--border);
  gap:15px
}

.highlights p {
  margin:0;
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:9px;
  font-size:11px;
  color:var(--text-muted)
}

.highlights p+p {
  border-left:1px solid var(--border)
}

.highlights strong {
  font-family:var(--font-display);
  font-size:21px;
  font-weight:400;
  color:var(--text)
}

.villa-story {
  display:grid;
  grid-template-columns:1.02fr .98fr;
  gap:90px;
  align-items:center
}

.villa-story__image {
  margin:0
}

.villa-story__image img {
  width:100%;
  height:390px;
  object-fit:cover;
  border-radius:2px
}

.villa-story__image figcaption {
  display:flex;
  gap:16px;
  font-size:10px;
  color:var(--text-muted);
  padding-top:15px
}

.villa-story__image figcaption span {
  color:var(--gold)
}

.villa-story__copy p:not(.eyebrow) {
  font-size:13px;
  line-height:1.9;
  margin-top:23px
}

.villa-story__copy .text-link {
  margin-top:17px
}

.amenity-strip {
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:20px;
  margin-top:65px;
  padding-top:28px;
  border-top:1px solid var(--border)
}

.amenity-strip>span {
  font-size:10px;
  display:flex;
  align-items:center;
  gap:10px
}

.amenity-number {
  font-family:var(--font-display);
  color:var(--gold);
  font-size:13px
}

#gallery {
  background:var(--surface-sunk)
}

#gallery .eyebrow {
  margin-bottom:15px
}

#gallery .section__note {
  font-size:13px;
  margin-top:18px
}

.gallery {
  grid-template-columns:1.5fr 1fr 1fr;
  grid-auto-rows:200px;
  gap:14px;
  margin:38px 0 26px
}

.gallery>li,.gallery>li.g-wide,.gallery>li.g-feature {
  grid-column:auto;
  grid-row:auto
}

.gallery>li:first-child {
  grid-row:span 2
}

.gallery>li:nth-child(4) {
  grid-column:span 2
}

.gallery__item {
  height:100%;
  border-radius:2px;
  box-shadow:none
}

.gallery__item img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .4s
}

.gallery__item:hover img {
  transform:scale(1.025)
}

.gallery__item::after {
  content:'↗';
  background:#faf9f1e6;
  color:#293b32;
  bottom:12px;
  right:12px;
  opacity:1;
  transform:none;
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  font-size:13px;
  border-radius:0
}

.js .gallery:not(.is-expanded)>.gallery-extra {
  display:none
}

.gallery-more {
  display:flex;
  margin:0 auto
}

.gallery.is-expanded {
  grid-auto-rows:230px
}

.gallery.is-expanded>li {
  grid-column:auto;
  grid-row:auto
}

.gallery.is-expanded>li:first-child {
  grid-row:span 2
}

.section-heading {
  display:flex;
  justify-content:space-between;
  gap:60px;
  align-items:end;
  margin-bottom:38px
}

.section-heading p:not(.eyebrow) {
  font-size:12px;
  max-width:32ch;
  color:var(--text-muted)
}

.section-heading .eyebrow {
  margin-bottom:14px
}

.stay-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px
}

.stay-grid img {
  width:100%;
  height:255px;
  object-fit:cover
}

.stay-grid h3 {
  font-size:24px;
  line-height:1.3;
  margin:24px 0 12px
}

.stay-grid p {
  font-size:12px;
  color:var(--text-muted);
  line-height:1.9
}

#location {
  background:var(--surface-sunk)
}

#location .section__grid {
  gap:75px
}

#location p {
  font-size:13px
}

#location .section__lead h2 {
  max-width:15ch
}

#location .address {
  font-size:12px;
  line-height:1.8
}

#location .side-h {
  font-size:22px;
  font-weight:400;
  letter-spacing:-.02em
}

.distances {
  margin-top:30px;
  display:block
}

.distances>div {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 0;
  border-bottom:1px solid var(--border)
}

.distances dt {
  font-size:12px;
  order:0
}

.distances dd {
  font-size:20px;
  order:1
}

.mapfig__frame {
  background:var(--bg);
  height:230px;
  border-radius:3px;
  border:1px solid var(--border)
}

.mapfig__prompt {
  background:transparent
}

.mapfig__note {
  font-size:11px
}

.mapfig figcaption {
  font-size:10px
}

.booking {
  grid-template-columns:.88fr 1.12fr;
  gap:38px 90px;
  align-items:start
}

.booking__intro {
  grid-column:1;
  grid-row:1;
  max-width:none
}

.booking__form {
  grid-column:2;
  grid-row:1 / span 2;
  border-radius:5px;
  box-shadow:none;
  padding:32px
}

.booking__intro .eyebrow {
  margin-bottom:18px
}

.rate-note,.rate-note--muted {
  background:none;
  border:0;
  border-radius:0;
  padding:0;
  font-size:13px;
  margin-top:25px
}

.rate-note strong {
  display:block;
  font-family:var(--font-display);
  font-size:26px;
  font-weight:400;
  color:var(--text);
  margin-bottom:16px
}

.calendar-note {
  font-size:11px;
  color:var(--text-muted);
  margin:20px 0
}

.booking__photo {
  width:100%;
  height:240px;
  object-fit:cover;
  margin-top:32px;
  border-radius:3px
}

.booking__intro>.text-link {
  font-size:11px
}

.booking__form legend {
  font-size:23px;
  font-weight:400;
  margin-bottom:20px
}

.booking__form label {
  font-size:11px;
  font-weight:500
}

.booking__form input,.booking__form select,.booking__form textarea {
  font-size:13px;
  background:var(--surface);
  min-height:46px
}

.booking__form fieldset+fieldset {
  border-top:1px solid var(--border);
  padding-top:25px
}

.cal__day {
  min-height:44px;
  font-size:12px
}

.cal__title {
  font-size:15px
}

.cal-summary__box {
  font-size:11px
}

.form-fineprint {
  font-size:10px
}

.estimate__row {
  font-size:12px
}

.estimate__row--total {
  font-size:17px
}

.confirm {
  grid-column:1;
  grid-row:2;
  box-shadow:none;
  border-width:1px
}

.booked {
  font-size:12px;
  margin-top:25px
}

.booked summary {
  padding-block:12px
}

.booking .btn--block {
  justify-content:space-between
}

.is-sent #confirm-mail {
  display:none
}

#good-to-know .wrap {
  max-width:920px
}

.rules {
  display:block;
  margin-top:30px
}

.rules li {
  border:0;
  padding:17px 0;
  border-bottom:1px solid var(--border);
  font-size:13px;
  display:block
}

.rules li::before {
  display:none
}

.site-footer {
  background:#293c31;
  color:#f7f6ed;
  padding-top:58px
}

.site-footer a,.site-footer .address,.footer-h,.footer-legal {
  color:#e0e5d9
}

.footer-name {
  font-size:24px;
  font-weight:400
}

.footer-h {
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.15em;
  font-family:var(--font-body);
  font-weight:500
}

.site-footer .address,.footer-links {
  font-size:12px
}

.footer-legal {
  border-color:#58685b;
  font-size:10px
}

.footer-links a {
  display:inline-flex;
  align-items:center;
  min-height:38px
}

.consent {
  left:20px;
  right:auto;
  bottom:20px;
  width:min(460px,calc(100% - 40px));
  border:1px solid var(--border);
  border-radius:5px;
  background:var(--surface);
  box-shadow:0 8px 40px #0002;
  padding:20px;
  z-index:60
}

.consent__inner {
  display:block;
  max-width:none;
  margin:0;
  padding:0
}

.consent__text {
  font-size:11px;
  line-height:1.65
}

.consent__actions {
  margin-top:15px;
  display:flex;
  gap:10px
}

.consent__actions .btn {
  min-height:44px;
  flex:1
}

.legal h1 {
  font-size:var(--step-4)
}

.legal h2 {
  font-size:27px;
  letter-spacing:-.03em
}

.legal p,.legal li {
  font-size:14px
}

.lightbox {
  z-index:100
}

.lightbox__nav,.lightbox__close {
  min-width:44px;
  min-height:44px
}

.reveal {
  opacity:1;
  transform:none
}

:lang(th) h1,:lang(th) h2,:lang(th) h3 {
  letter-spacing:-.025em;
  line-height:1.4
}

:lang(th) .hero h1 {
  font-size:clamp(38px,4vw,58px)
}

:lang(th) .eyebrow {
  letter-spacing:.04em;
  font-size:11px
}

@media(min-width:1600px) {
  .hero__visual {
    min-height:600px
  }
}

@media(max-width:1100px) {
  .wrap {
    width:calc(100% - 64px)
  }
  .hero {
    gap:32px
  }
  .hero__visual {
    min-height:530px
  }
  .hero h1 {
    font-size:54px
  }
  .hero__actions {
    gap:14px
  }
  .nav-list {
    gap:15px
  }
  .site-header__inner {
    gap:15px
  }
  .villa-story {
    gap:48px
  }
  .booking {
    gap:45px
  }
  .amenity-strip {
    grid-template-columns:repeat(3,1fr);
    row-gap:22px
  }
}

@media(max-width:991px) {
  .nav-list {
    background:var(--surface);
    color:var(--text);
    padding:20px;
    top:calc(var(--header-h) - 10px)
  }
  .nav-list a {
    font-size:15px;
    color:var(--text);
    display:block;
    padding:12px
  }
  .nav-list__book {
    display:block
  }
  .nav-toggle {
    font-size:11px;
    min-height:44px;
    border:0
  }
  .hero h1 {
    font-size:46px
  }
  .hero__lead {
    font-size:13px
  }
  .hero__actions .text-link {
    display:none
  }
  .hero__visual {
    min-height:495px
  }
  .highlights strong {
    font-size:19px
  }
  .highlights p {
    font-size:10px;
    gap:6px
  }
  .stay-grid img {
    height:210px
  }
  .booking {
    grid-template-columns:.85fr 1.15fr;
    gap:30px
  }
  .booking__form {
    padding:20px
  }
  .site-header__cta {
    display:none
  }
}

@media(max-width:720px) {
  :root {
    --header-h:80px
  }
  .wrap {
    width:calc(100% - 40px)
  }
  .site-header__inner {
    padding:14px 0;
    gap:8px
  }
  .wordmark__text {
    font-size:16px
  }
  .wordmark__mark {
    width:32px;
    height:37px;
    font-size:23px
  }
  .wordmark__sub {
    font-size:7px
  }
  .theme-toggle {
    display:none
  }
  .hero {
    display:flex;
    flex-direction:column;
    gap:28px;
    padding-top:18px
  }
  .hero__copy {
    padding:16px 0 0;
    align-self:stretch
  }
  .hero__copy .eyebrow {
    font-size:8px;
    letter-spacing:.14em;
    margin-bottom:20px
  }
  .hero h1 {
    font-size:clamp(42px,9.5vw,62px);
    margin-bottom:22px
  }
  .hero h1 br:nth-of-type(2) {
    display:none
  }
  .hero h1 em::before {
    content:' '
  }
  .hero__lead {
    font-size:13px;
    max-width:45ch
  }
  .hero__actions {
    margin-top:24px
  }
  .hero__actions .text-link {
    display:inline-flex
  }
  .hero__footnote {
    display:none
  }
  .hero__visual {
    min-height:0;
    height:360px;
    width:100%
  }
  .hero__img {
    object-position:center
  }
  .hero__label {
    left:16px;
    top:16px
  }
  .photo-link {
    left:16px;
    right:16px;
    bottom:16px;
    padding:12px;
    font-size:11px
  }
  .highlights {
    grid-template-columns:repeat(2,1fr);
    gap:18px 12px;
    padding:27px 0
  }
  .highlights p {
    justify-content:start;
    font-size:10px
  }
  .highlights p+p {
    border:0
  }
  .highlights strong {
    font-size:21px
  }
  .section {
    padding-block:60px
  }
  .villa-story {
    display:flex;
    flex-direction:column-reverse;
    gap:32px
  }
  .villa-story__copy .eyebrow {
    margin-bottom:18px
  }
  .villa-story__copy p:not(.eyebrow) {
    margin-top:18px
  }
  .villa-story__image {
    width:100%
  }
  .villa-story__image img {
    height:300px
  }
  .amenity-strip {
    margin-top:35px;
    grid-template-columns:repeat(2,1fr);
    gap:20px
  }
  .amenity-strip>span {
    font-size:10px
  }
  .gallery {
    grid-template-columns:1fr 1fr;
    grid-auto-rows:150px;
    gap:9px;
    margin-top:25px
  }
  .gallery>li:first-child {
    grid-column:span 2;
    grid-row:span 1
  }
  .gallery>li:nth-child(4) {
    grid-column:span 2
  }
  .gallery.is-expanded {
    grid-auto-rows:150px
  }
  .gallery.is-expanded>li:first-child {
    grid-column:span 2;
    grid-row:span 1
  }
  .section-heading {
    display:block;
    margin-bottom:28px
  }
  .section-heading p:not(.eyebrow) {
    margin-top:20px;
    max-width:45ch
  }
  .stay-grid {
    grid-template-columns:1fr;
    gap:34px
  }
  .stay-grid img {
    height:auto;
    aspect-ratio:1.45
  }
  .stay-grid h3 {
    margin-top:18px
  }
  .stay-grid p {
    max-width:50ch
  }
  .section__grid {
    grid-template-columns:1fr
  }
  #location .section__grid {
    gap:40px
  }
  #location .section__lead h2 {
    max-width:none
  }
  .distances {
    margin-top:12px
  }
  .distances>div {
    padding:14px 0
  }
  .booking {
    display:flex;
    flex-direction:column;
    gap:30px
  }
  .booking__intro,.booking__form,.confirm {
    width:100%
  }
  .booking__photo {
    height:210px
  }
  .booking__form {
    padding:22px 16px
  }
  .booking__intro .eyebrow {
    margin-bottom:18px
  }
  .rate-note {
    margin-top:22px
  }
  .rules li {
    font-size:12px
  }
  .site-footer__inner {
    gap:30px
  }
  .footer-name {
    font-size:23px
  }
  .consent {
    bottom:12px;
    left:12px;
    width:calc(100% - 24px);
    padding:16px
  }
  .consent__text {
    font-size:10px
  }
  .consent__actions {
    margin-top:10px
  }
  .consent__actions .btn {
    font-size:11px;
    padding:10px
  }
  .gallery-more {
    font-size:11px
  }
  :lang(th) .hero h1 {
    font-size:40px
  }
  :lang(th) .hero h1 br:nth-of-type(2) {
    display:block
  }
}

@media(max-width:359px) {
  .hero h1 {
    font-size:39px
  }
  .hero__actions {
    gap:10px
  }
  .hero__actions .btn {
    padding:14px 17px;
    font-size:11px
  }
  .hero__actions .text-link {
    font-size:10px;
    gap:10px
  }
  .hero__visual {
    height:300px
  }
  .wordmark__text {
    font-size:14px
  }
  .wordmark__mark {
    display:none
  }
  .highlights strong {
    font-size:18px
  }
}

.distances>div {
  flex-direction:row
}

.distances dt {
  text-transform:none;
  letter-spacing:0;
  font-weight:400
}

.mapfig__frame {
  width:100%
}

.mapfig__prompt {
  min-height:230px
}

.hero__img {
  z-index:0;
  animation:none
}

.hero__label,.photo-link {
  z-index:1
}

.wrap {
  padding-inline:0
}

.section__grid>* {
  min-width:0
}

#location .btn {
  max-width:100%;
  white-space:normal;
  gap:12px
}

.distances dt {
  min-width:0
}

.distances dd {
  flex-shrink:0;
  margin-left:12px
}

.section__grid {
  grid-template-columns:minmax(0,1fr)
}

.booking__form fieldset {
  min-inline-size:0
}

.cal__week {
  grid-template-columns:repeat(7,minmax(0,1fr))
}

.cal__day {
  min-width:0;
  padding-inline:0
}

.cal-summary {
  grid-template-columns:repeat(2,minmax(0,1fr))
}

.cal-summary__box {
  min-width:0;
  padding:12px
}

.cal-summary__box strong.is-placeholder {
  font-size:12px
}

@media(min-width:832px) {
  .section__grid {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)
  }
}

@media(max-width:720px) {
  .hero h1 br:nth-of-type(2) {
    display:block
  }
  .hero h1 em::before {
    content:none
  }
  .hero h1 {
    font-size:43px
  }
  .hero__actions .btn {
    padding-inline:20px;
    font-size:12px
  }
  .hero__actions .text-link {
    gap:12px;
    font-size:10px
  }
  .hero__actions {
    gap:18px
  }
  .no-js .site-header__inner {
    flex-wrap:wrap
  }
  .no-js .nav-list {
    order:5;
    width:100%
  }
  .no-js .site-header {
    position:relative
  }
}

/* Accessibility override must win over component transition selectors. */
@media (max-width:720px) {
  .booking__form input,
  .booking__form select,
  .booking__form textarea {
    font-size:16px;
  }
  .booking__form label {
    font-size:12px;
  }
  .hero__copy .eyebrow {
    font-size:10px;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior:auto!important;
    transition:none!important;
    animation:none!important
  }
}
