/* ============================================================
   J Park Hotel — design system
   Palette drawn from the Midnight Coffee Club:
   peacock teal · terracotta teak · brass gold · warm ivory
   ============================================================ */

:root {
  --teal:        #0c5b58;
  --teal-deep:   #073d3b;
  --teal-soft:   #137d78;
  --terracotta:  #b8552e;
  --terracotta-d:#8f3f20;
  --gold:        #c9a24b;
  --gold-light:  #e0c178;
  --ivory:       #f7f2e8;
  --sand:        #ece2cf;
  --paper:       #fbf8f1;
  --ink:         #20201c;
  --ink-soft:    #4d4a42;
  --line:        rgba(32, 32, 28, 0.12);

  --serif: "Cormorant Garamond", "Noto Serif Thai", Georgia, "Songti SC", "SimSun", serif;
  --sans:  "Noto Sans Thai", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Kaku Gothic ProN",
           "Microsoft YaHei", "Microsoft JhengHei", sans-serif;

  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px -28px rgba(7, 61, 59, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 500; line-height: 1.12; letter-spacing: 0.01em; }

/* ---------------- shared bits ---------------- */
.section { padding: clamp(64px, 9vw, 130px) clamp(20px, 6vw, 80px); max-width: var(--maxw); margin: 0 auto; }
.section.alt { background: linear-gradient(180deg, var(--ivory), var(--sand)); max-width: none; }
.section.alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 16px;
}
.eyebrow.light { color: var(--gold-light); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  color: var(--teal-deep);
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 70px); }
.section-lede { color: var(--ink-soft); font-size: 1.06rem; margin-top: 18px; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px;
  font-family: var(--sans);
  font-size: 0.86rem; font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 999px;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
  white-space: nowrap;
}
.btn-solid { background: var(--teal); color: var(--ivory); }
.btn-solid:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-solid.gold { background: var(--gold); color: var(--teal-deep); }
.btn-solid.gold:hover { background: var(--gold-light); }
.btn-ghost { border-color: rgba(247,242,232,0.65); color: var(--ivory); }
.btn-ghost:hover { background: rgba(247,242,232,0.14); transform: translateY(-2px); }
.btn-ghost.dark { border-color: var(--teal); color: var(--teal); }
.btn-ghost.dark:hover { background: var(--teal); color: var(--ivory); }
.btn-book { background: var(--terracotta); color: #fff; padding: 11px 24px; font-size: 0.8rem; }
.btn-book:hover { background: var(--terracotta-d); transform: translateY(-2px); }

/* ---------------- header / nav ---------------- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(251,248,241,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding: 10px 0;
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 80px);
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  background: var(--teal); color: var(--gold-light);
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  border-radius: 11px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-size: 1.32rem; font-weight: 600; color: var(--teal-deep); letter-spacing: .04em; }
.brand-sub { font-size: 0.6rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--terracotta); }

.site-header:not(.scrolled) .brand-name { color: var(--ivory); }
.site-header:not(.scrolled) .brand-sub { color: var(--gold-light); }
.site-header:not(.scrolled) .nav-links a { color: rgba(247,242,232,0.92); }
.site-header:not(.scrolled) .lang-btn { color: var(--ivory); border-color: rgba(247,242,232,0.5); }

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 0.84rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 4px 0; transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--gold); transition: width .35s var(--ease);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

/* language switcher */
.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 7px;
  background: transparent; border: 1.5px solid var(--line);
  color: var(--ink); border-radius: 999px;
  padding: 8px 14px; font-family: var(--sans); font-size: 0.8rem; font-weight: 500;
  cursor: pointer; transition: border-color .3s, color .3s;
}
.lang-btn .globe { font-size: 0.95rem; }
.lang-btn .caret { font-size: 0.6rem; opacity: 0.7; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; list-style: none; padding: 8px;
  min-width: 168px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  width: 100%; text-align: left; background: transparent; border: 0;
  padding: 10px 14px; border-radius: 9px; cursor: pointer;
  font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.lang-menu button:hover { background: var(--sand); color: var(--teal-deep); }
.lang-menu button.is-active { background: var(--teal); color: var(--ivory); font-weight: 600; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.hamburger span { width: 24px; height: 2px; background: var(--ink); transition: .3s; }
.site-header:not(.scrolled) .hamburger span { background: var(--ivory); }

/* ---------------- hero ---------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: var(--ivory); padding-top: 90px; padding-bottom: 86px; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: slowZoom 18s ease-out forwards; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,30,29,0.6) 0%, rgba(5,30,29,0.25) 55%, rgba(5,30,29,0) 80%),
    linear-gradient(180deg, rgba(7,61,59,0.5) 0%, rgba(7,61,59,0.2) 35%, rgba(5,30,29,0.72) 100%);
}
@keyframes slowZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero-content { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 6vw, 80px); width: 100%; }
.hero .eyebrow.light {
  color: #fff; font-weight: 600; letter-spacing: 0.34em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.9rem, 7.2vw, 5.8rem);
  font-weight: 600; max-width: 16ch; color: #fdfaf2;
  text-shadow: 0 1px 1px rgba(0,0,0,0.45), 0 8px 28px rgba(0,0,0,0.55), 0 2px 60px rgba(7,40,39,0.5);
}
.hero-lede {
  max-width: 48ch; font-size: clamp(1.05rem, 1.7vw, 1.3rem); margin-top: 22px;
  color: #fff; font-weight: 400; text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------------- Hero Booking Bar ---------------- */
.hero-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 5;
  background: rgba(4, 18, 18, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(247,242,232,0.1);
}
.hero-bar-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  height: 86px; display: flex; align-items: center;
}
.hb-field {
  flex: 1; height: 100%; position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 13px;
  padding: 0 22px; cursor: pointer;
  border-right: 1px solid rgba(247,242,232,0.1);
  transition: background 0.22s;
}
.hb-field:hover,
.hb-field:focus-within { background: rgba(247,242,232,0.06); }
.hb-field-guests { border-right: none; cursor: default; }
.hb-icon { color: rgba(247,242,232,0.48); display: flex; align-items: center; flex-shrink: 0; pointer-events: none; }
.hb-sep { width: 0; }
.hb-field-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; pointer-events: none; }
.hb-label { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; color: rgba(247,242,232,0.48); }
.hb-value { font-size: 0.9rem; font-weight: 500; color: var(--ivory); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-value.hb-placeholder { font-size: 0.84rem; font-weight: 400; color: rgba(247,242,232,0.38); }
.hb-date-ghost { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 3; font-size: 16px; }
.hb-guests-row { display: flex; align-items: center; gap: 10px; }
.hb-step {
  position: relative; z-index: 4;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(247,242,232,0.1); border: 1px solid rgba(247,242,232,0.2);
  color: var(--ivory); font-size: 1rem; font-weight: 700; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.2s;
}
.hb-step:hover { background: rgba(247,242,232,0.22); }
.hb-guests-count { font-size: 0.9rem; font-weight: 500; color: var(--ivory); white-space: nowrap; min-width: 56px; text-align: center; }
.hb-book-btn {
  flex-shrink: 0; margin-left: 20px;
  padding: 14px 34px;
  background: var(--terracotta); color: #fff;
  border: none; border-radius: 999px;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: background 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.hb-book-btn:hover { background: var(--terracotta-d); transform: translateY(-2px); box-shadow: 0 8px 28px -8px rgba(184,85,46,0.6); }

/* ---------------- Midnight Coffee Club ---------------- */
.coffee { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: var(--ivory); }
.coffee-carousel { position: absolute; inset: 0; z-index: 0; }
.coffee-carousel .slide {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.06);
  background-size: cover; background-position: center;
  transition: opacity 1.6s var(--ease), transform 7s linear;
}
.coffee-carousel .slide.active { opacity: 1; transform: scale(1); }
.coffee-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(7,40,39,0.92) 0%, rgba(7,40,39,0.7) 42%, rgba(7,40,39,0.25) 100%),
    linear-gradient(180deg, rgba(7,40,39,0.4), rgba(7,40,39,0.55));
}
.coffee-content {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  padding: clamp(90px,12vw,120px) clamp(20px, 6vw, 80px);
}
.grand-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--terracotta); color: #fff;
  padding: 8px 18px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 22px;
}
.grand-badge .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 0 0 rgba(224,193,120,0.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(224,193,120,0.7);} 70% { box-shadow: 0 0 0 12px rgba(224,193,120,0);} 100% { box-shadow: 0 0 0 0 rgba(224,193,120,0);} }

.coffee-title { font-family: var(--serif); font-size: clamp(3rem, 8.5vw, 7rem); line-height: 0.92; }
.coffee-title span { display: block; }
.coffee-title .serif-accent { font-style: italic; color: var(--gold-light); }
.coffee-tag { font-size: clamp(1.05rem, 2vw, 1.4rem); letter-spacing: 0.04em; margin-top: 20px; color: var(--gold-light); font-weight: 500; }
.coffee-lede { max-width: 50ch; margin-top: 18px; color: rgba(247,242,232,0.9); font-size: 1.05rem; }

.coffee-hours { display: flex; flex-wrap: wrap; gap: 16px; margin: 32px 0; }
.hour-card {
  background: rgba(247,242,232,0.08); border: 1px solid rgba(247,242,232,0.18);
  backdrop-filter: blur(4px);
  border-radius: 14px; padding: 16px 22px; display: flex; flex-direction: column; gap: 3px; min-width: 190px;
}
.hour-card .hour-icon { font-size: 1.3rem; }
.hour-card strong { font-size: 0.92rem; font-weight: 600; }
.hour-card span:last-child { color: var(--gold-light); font-size: 0.9rem; letter-spacing: 0.04em; }

.carousel-dots { position: absolute; z-index: 3; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; }
.carousel-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(247,242,232,0.4); transition: width .35s var(--ease), background .35s;
}
.carousel-dots button.active { width: 26px; border-radius: 6px; background: var(--gold-light); }

/* ---------------- about ---------------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-images { position: relative; }
.about-img-main { border-radius: 18px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-img-sub {
  position: absolute; right: -22px; bottom: -34px; width: 52%;
  border-radius: 14px; border: 7px solid var(--paper); box-shadow: var(--shadow);
  aspect-ratio: 1/1; object-fit: cover;
}
.about-text p { color: var(--ink-soft); margin-top: 18px; }
.about-stats { list-style: none; display: flex; gap: 30px; margin-top: 36px; flex-wrap: wrap; }
.about-stats li { display: flex; flex-direction: column; }
.about-stats strong { font-family: var(--serif); font-size: 2.3rem; color: var(--terracotta); line-height: 1; }
.about-stats span { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--ink-soft); margin-top: 6px; text-transform: uppercase; }

/* ---------------- rooms ---------------- */
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.room-card {
  background: var(--paper); border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 44px -30px rgba(7,61,59,0.4);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.room-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.room-img { overflow: hidden; aspect-ratio: 4/3; }
.room-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.room-card:hover .room-img img { transform: scale(1.07); }
/* Swipe affordance — hidden on desktop (rooms are a 3-up grid there) */
.swipe-hint { display: none; }
/* Book Now call-to-action below the room grid */
.rooms-avail-row {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin: 22px 0 0; flex-wrap: wrap;
}
.rooms-avail-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal);
}
.avail-dot {
  flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%;
  background: #2d9a6a; box-shadow: 0 0 0 0 rgba(45,154,106,0.5);
  animation: avail-pulse 2.2s infinite;
}
@keyframes avail-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(45,154,106,0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(45,154,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,154,106,0); }
}
.rooms-book-now { padding: 11px 30px; font-size: 0.82rem; letter-spacing: 0.07em; }
.rooms-cta { display: flex; justify-content: center; margin-top: 44px; }
.rooms-cta-btn { padding: 15px 46px; font-size: 0.92rem; letter-spacing: 0.04em; }
.room-body { padding: 26px 26px 30px; position: relative; }
.room-size {
  position: absolute; top: -16px; right: 22px;
  background: var(--gold); color: var(--teal-deep);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 6px 14px; border-radius: 999px;
}
.room-body h3 { font-family: var(--serif); font-size: 1.7rem; color: var(--teal-deep); }
.room-body p { color: var(--ink-soft); margin-top: 12px; font-size: 0.96rem; }

/* ---------------- facilities ---------------- */
.fac-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; gap: 22px; }
.fac-card {
  position: relative; border-radius: 18px; overflow: hidden;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end; color: var(--ivory);
  box-shadow: var(--shadow); isolation: isolate;
}
.fac-card.large { grid-row: span 2; grid-column: 1; }
.fac-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(7,40,39,0) 30%, rgba(7,40,39,0.82) 100%);
  transition: background .4s;
}
.fac-card:hover::before { background: linear-gradient(180deg, rgba(7,40,39,0.1) 10%, rgba(7,40,39,0.88) 100%); }
.fac-card-text { position: relative; z-index: 1; padding: 26px; }
.fac-card-text h3 { font-family: var(--serif); font-size: 1.7rem; }
.fac-card-text p { font-size: 0.92rem; color: rgba(247,242,232,0.88); margin-top: 6px; max-width: 36ch; }
.fac-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .8s var(--ease); }
.fac-card:hover { /* zoom handled via bg, none needed */ }

/* ---------------- dining ---------------- */
.dining-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.dining-card { border-radius: 18px; overflow: hidden; background: var(--paper); box-shadow: 0 18px 44px -30px rgba(7,61,59,0.4); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.dining-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.dining-img { aspect-ratio: 3/2; overflow: hidden; }
.dining-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.dining-card:hover .dining-img img { transform: scale(1.07); }
.dining-body { padding: 24px 24px 28px; }
.dining-body h3 { font-family: var(--serif); font-size: 1.45rem; color: var(--teal-deep); display: flex; align-items: center; }
.dining-body p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 10px; }

/* ---------------- gallery ---------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid figure { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 1/1; cursor: pointer; }
.gallery-grid figure.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .5s; }
.gallery-grid figure:hover img { transform: scale(1.08); filter: saturate(1.1); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6,32,31,0.95); display: none; align-items: center; justify-content: center; padding: 30px; backdrop-filter: blur(4px); }
.lightbox.open { display: flex; }
body.lb-open { overflow: hidden; }
.lb-stage { max-width: 92vw; max-height: 88vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.55); will-change: transform, opacity; }
.lightbox-close { position: absolute; top: 22px; right: 28px; background: none; border: 0; color: var(--ivory); font-size: 2.4rem; cursor: pointer; line-height: 1; z-index: 3; opacity: .85; transition: opacity .25s, transform .25s; }
.lightbox-close:hover { opacity: 1; transform: rotate(90deg); }

/* high-class prev/next controls */
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(247,242,232,0.08); color: var(--ivory);
  border: 1.5px solid rgba(247,242,232,0.35);
  font-size: 2rem; line-height: 1; cursor: pointer; z-index: 3;
  backdrop-filter: blur(6px);
  transition: background .3s var(--ease), border-color .3s, transform .3s var(--ease), opacity .3s;
}
.lb-nav:hover { background: var(--gold); border-color: var(--gold); color: var(--teal-deep); transform: translateY(-50%) scale(1.08); }
.lb-prev { left: clamp(12px, 4vw, 46px); }
.lb-next { right: clamp(12px, 4vw, 46px); }
.lb-nav[hidden] { display: none; }
.lb-counter {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: rgba(247,242,232,0.92); font-size: .85rem; letter-spacing: .12em;
  font-weight: 500; background: rgba(6,32,31,0.5); padding: 6px 16px; border-radius: 999px;
}
.lb-counter[hidden] { display: none; }
.lb-caption {
  position: absolute; bottom: 56px; left: 50%; transform: translateX(-50%);
  max-width: min(86vw, 640px); text-align: center;
  color: var(--ivory); font-family: var(--serif, Georgia, serif);
  font-size: clamp(.95rem, 2.4vw, 1.15rem); letter-spacing: .02em;
  background: rgba(6,32,31,0.55); padding: 8px 20px; border-radius: 999px;
  backdrop-filter: blur(6px); z-index: 3;
}
.lb-caption[hidden] { display: none; }

/* directional zoom-fade: next = zoom-in from the right, prev = zoom-out from the left */
@keyframes lbNext {
  0%   { opacity: 0; transform: translateX(7%) scale(1.14); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes lbPrev {
  0%   { opacity: 0; transform: translateX(-7%) scale(0.86); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
.lightbox img.anim-next { animation: lbNext .26s var(--ease); }
.lightbox img.anim-prev { animation: lbPrev .26s var(--ease); }

/* Video stage: the <video> sizes to its own aspect (bounded by the viewport),
   so portrait phone clips fill tall and clean with no letterboxing, while
   landscape clips fill wide. The Facebook reel iframe keeps a fixed 16/9 box. */
.lb-video {
  display: flex; align-items: center; justify-content: center;
  max-width: 92vw; max-height: 88vh; background: transparent;
}
.lb-video video {
  max-width: 92vw; max-height: 88vh; width: auto; height: auto;
  border-radius: 10px; background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.lb-video.is-portrait video { height: 88vh; }
.lb-video .fb-vid-frame {
  width: min(92vw, 1080px); aspect-ratio: 16 / 9; max-height: 88vh;
  border: 0; border-radius: 10px; background: #000;
}

/* ---------------- contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 64px); align-items: stretch; }
.contact-lede { color: var(--ink-soft); margin-top: 18px; max-width: 46ch; }
.contact-list { list-style: none; margin: 32px 0; border-top: 1px solid var(--line); }
.contact-list li { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ci-label { flex: none; width: 110px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terracotta); font-weight: 700; padding-top: 3px; }
.ci-value { color: var(--ink); font-size: 0.98rem; }
.ci-value a:hover { color: var(--gold); }
.contact-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.contact-map { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); min-height: 360px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; filter: saturate(0.95); }

/* ---------------- footer ---------------- */
.site-footer { background: var(--teal-deep); color: rgba(247,242,232,0.8); padding: 60px clamp(20px, 6vw, 80px) 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 2fr; gap: 30px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-name { color: var(--ivory); display: block; }
.footer-brand .brand-sub { color: var(--gold-light); display: block; margin-top: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; justify-content: flex-end; }
.footer-links a { font-size: 0.86rem; transition: color .3s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-copy { grid-column: 1 / -1; border-top: 1px solid rgba(247,242,232,0.14); padding-top: 22px; font-size: 0.8rem; color: rgba(247,242,232,0.6); }

/* ---------------- reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- landing intro ---------------- */
body.intro-active { overflow: hidden; }

.intro {
  position: fixed; inset: 0; z-index: 100000;
  display: grid; place-content: center; place-items: center;
  text-align: center; padding: 24px;
  background: radial-gradient(125% 125% at 50% 28%, var(--teal-soft) 0%, var(--teal) 40%, var(--teal-deep) 100%);
  overflow: hidden; cursor: pointer;
  opacity: 1; transition: opacity 1s var(--ease);
}
.intro.is-done { opacity: 0; pointer-events: none; }
.intro.is-hidden { display: none; }

.intro-inner { position: relative; z-index: 3; }

.intro-title {
  font-family: var(--serif); font-weight: 500;
  color: var(--ivory);
  font-size: clamp(2.6rem, 9vw, 6.6rem);
  letter-spacing: 0.04em; line-height: 1.05; margin: 0;
  text-shadow: 0 6px 44px rgba(0,0,0,0.35);
  opacity: 0; transform: translateX(-90px);
  animation: introTitleIn 1.5s var(--ease) 0.25s forwards;
}
@keyframes introTitleIn {
  0%   { opacity: 0; transform: translateX(-90px); filter: blur(7px); letter-spacing: 0.22em; }
  55%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateX(0); letter-spacing: 0.04em; }
}

.intro-sub-wrap { position: relative; height: 3em; margin-top: 18px; display: grid; place-items: center; }
.intro-sub {
  position: relative; z-index: 3;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 3.2vw, 2rem);
  letter-spacing: 0.55em; text-indent: 0.55em; text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0;
  animation: introSubIn 1.6s var(--ease) 1.3s forwards;
}
@keyframes introSubIn {
  0%   { opacity: 0; transform: translateY(8px) scale(0.97); filter: blur(5px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

/* lake-ripple rings behind "Chonburi" */
.intro-ripple { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px;
  margin: -18px 0 0 -18px; border: 1.5px solid rgba(224,193,120,0.5); border-radius: 50%;
  opacity: 0; transform: scale(0.3); animation: introRipple 3s ease-out 1.35s infinite; }
.intro-ripple.r2 { animation-delay: 2.0s; }
.intro-ripple.r3 { animation-delay: 2.6s; }
@keyframes introRipple {
  0%   { opacity: 0; transform: scale(0.3); }
  12%  { opacity: 0.55; }
  100% { opacity: 0; transform: scale(8); }
}

/* wind-blown leaves drifting across the screen */
.intro-leaves { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.leaf {
  position: absolute; top: 0; left: 0; width: 14px; height: 14px;
  background: linear-gradient(135deg, var(--gold-light), var(--teal-soft));
  border-radius: 0 100% 0 100%; opacity: 0;
  animation: leafBlow var(--dur, 6s) linear var(--delay, 0s) forwards;
}
@keyframes leafBlow {
  0%   { opacity: 0; transform: translate(-12vw, -12vh) rotate(0deg); }
  10%  { opacity: 0.85; }
  88%  { opacity: 0.85; }
  100% { opacity: 0; transform: translate(112vw, 64vh) rotate(680deg); }
}

/* ---------------- responsive ---------------- */
/* Tighten the nav between the widest layout and the hamburger so the full
   link set (incl. Onsen) stays on one line on small laptops/tablets. */
@media (max-width: 1140px) and (min-width: 961px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.8rem; }
  .nav-inner { gap: 14px; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); padding: 16px 24px 24px; box-shadow: var(--shadow);
  }
  .nav-links.open a { color: var(--ink) !important; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hamburger { display: flex; }
  .room-grid, .dining-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-images { max-width: 520px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .room-grid {
    display: flex; flex-direction: row;
    overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 14px; padding: 4px 4px 16px;
    -webkit-overflow-scrolling: touch;
  }
  .room-grid::-webkit-scrollbar { display: none; }
  .room-card { flex: 0 0 78vw; scroll-snap-align: start; }
  /* Swipe affordance pill (mobile only) */
  .swipe-hint {
    display: flex; align-items: center; gap: 10px;
    width: fit-content; margin: 0 auto 16px;
    padding: 9px 18px; border-radius: 999px;
    background: rgba(12, 91, 88, 0.08);
    border: 1px solid rgba(12, 91, 88, 0.16);
    color: var(--teal-deep);
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em;
    transition: opacity .45s var(--ease), transform .45s var(--ease);
  }
  .swipe-hint .sh-arrows { color: var(--gold); font-weight: 700; }
  .swipe-hint .sh-left  { animation: swipeNudgeL 1.5s var(--ease) infinite; }
  .swipe-hint .sh-right { animation: swipeNudgeR 1.5s var(--ease) infinite; }
  .swipe-hint--hidden { opacity: 0; transform: translateY(-6px); pointer-events: none; }
  @keyframes swipeNudgeR {
    0%, 100% { transform: translateX(0); opacity: .55; }
    50%      { transform: translateX(5px); opacity: 1; }
  }
  @keyframes swipeNudgeL {
    0%, 100% { transform: translateX(0); opacity: .55; }
    50%      { transform: translateX(-5px); opacity: 1; }
  }
  @media (prefers-reduced-motion: reduce) {
    .swipe-hint .sh-left, .swipe-hint .sh-right { animation: none; }
  }
  .dining-grid, .fac-grid { grid-template-columns: 1fr; }
  .fac-card.large { grid-row: auto; }
  .fac-grid { grid-auto-rows: 230px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid figure.tall { grid-row: auto; aspect-ratio: 1/1; }
  .brand-sub { display: none; }
  .hero .eyebrow { display: none; }
  .lang-btn { padding: 6px 10px; font-size: 0.75rem; gap: 5px; }
  .nav-actions .btn-book { display: none; }
  .about-img-sub { right: 0; }
  .hero-cta .btn { flex: 1; }
  /* Hero booking bar: 2-row grid on mobile */
  .hero { padding-top: 90px; padding-bottom: 120px; }
  .hero-bar-inner { height: 120px; padding: 0; flex-wrap: wrap; align-items: stretch; }
  .hb-sep { display: none; }
  .hb-field {
    flex: 1 1 50%; border-right: none;
    border-bottom: 1px solid rgba(247,242,232,0.1);
    padding: 0 14px; height: 60px;
  }
  .hb-field:first-child { border-right: 1px solid rgba(247,242,232,0.1); }
  .hb-field-guests { flex: 1 1 50%; border-bottom: none; border-right: 1px solid rgba(247,242,232,0.1); }
  .hb-book-btn { flex: 1 1 50%; margin: 0; border-radius: 0; padding: 14px; font-size: 0.76rem; display: flex; align-items: center; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Clickable galleries, video covers, Facebook & nav portal
   ============================================================ */

/* room / facility / dining cards are clickable to open photos */
.room-card[data-room], .dining-card[data-lb], .dining-card[data-video],
.fac-card[data-lb], .fac-card[data-video], .fac-card[data-onsen] { cursor: pointer; }
.room-card[data-room]:focus-visible,
.fac-card:focus-visible, .dining-card:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px;
}

/* "view photos" count badge on room cards */
.room-img { position: relative; }
.room-photos {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(6,32,31,0.7); color: var(--ivory);
  font-size: 0.74rem; font-weight: 600; letter-spacing: .03em;
  padding: 5px 11px; border-radius: 999px;
  backdrop-filter: blur(4px); opacity: 0; transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.room-card:hover .room-photos, .room-card:focus-within .room-photos { opacity: 1; transform: translateY(0); }

/* play badge on video cover cards */
.has-video { position: relative; }
.play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 2; width: 70px; height: 70px; border-radius: 50%;
  background: rgba(6,32,31,0.45); border: 2px solid rgba(247,242,232,0.85);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: transform .35s var(--ease), background .35s;
  pointer-events: none;
}
.has-video:hover .play-badge { transform: translate(-50%, -50%) scale(1.1); background: var(--gold); border-color: var(--gold); }
.play-tri { width: 0; height: 0; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--ivory); }
.has-video:hover .play-tri { border-left-color: var(--teal-deep); }
.has-video.playing .play-badge { display: none; }

/* in-card video overlay (Meeting & Banquet, All-Day Dining) */
.dining-img { position: relative; }
.card-video-wrap { position: absolute; inset: 0; z-index: 4; background: #000; overflow: hidden; }
.card-video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-video-wrap .fb-vid-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.card-video-wrap .fb-video, .card-video-wrap .fb-video span,
.card-video-wrap iframe { width: 100% !important; height: 100% !important; }
.card-video-close {
  position: absolute; top: 8px; right: 10px; z-index: 5;
  width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: rgba(6,32,31,0.6); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.card-video-close:hover { background: var(--terracotta); }

/* Midnight Coffee Club: intro video over the carousel, tinted to match the
   section's teal/green palette so it blends into the imagery as it fades out. */
.coffee-video {
  position: absolute; inset: 0; z-index: 1; background: var(--teal-deep);
  opacity: 0; transition: opacity 1.1s var(--ease); overflow: hidden;
}
.coffee-video.show { opacity: 1; }
.coffee-video video {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; height: 100%; object-fit: cover;
}
/* green tint that matches the section overlay, so the hand-off to the carousel
   images is seamless and on-theme */
.coffee-video::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,40,39,0.55) 0%, rgba(12,91,88,0.32) 45%, rgba(12,91,88,0.18) 100%),
    linear-gradient(180deg, rgba(12,91,88,0.30), rgba(7,40,39,0.50));
  mix-blend-mode: multiply;
}
.coffee-video .fb-vid-frame {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; height: 100%; min-width: 177.78vh; min-height: 56.25vw; border: 0;
}

/* Facebook button in Contact */
.btn-facebook {
  display: inline-flex; align-items: center; gap: 9px;
  background: #1877f2; color: #fff; border: 0;
}
.btn-facebook:hover { background: #0f63d6; transform: translateY(-2px); }
.btn-facebook .fb-ico { flex: 0 0 auto; }

/* Staff/Admin portal link in the nav */
.nav-portal-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal); color: var(--ivory) !important;
  padding: 7px 16px; border-radius: 999px; font-weight: 600;
}
.nav-portal-link::before { content: "\1F511"; font-size: .9em; }
.nav-portal-link::after { display: none !important; }
.nav-portal-link:hover { background: var(--teal-deep); color: #fff !important; }
.site-header:not(.scrolled) .nav-portal-link { background: rgba(247,242,232,0.16); border: 1px solid rgba(247,242,232,0.5); }
.btn-nav-signout {
  background: transparent; color: var(--ivory);
  border: 1px solid rgba(247,242,232,0.5); border-radius: 999px;
  padding: 7px 16px; font-size: 0.8rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn-nav-signout:hover { background: rgba(247,242,232,0.14); }
.site-header.scrolled .btn-nav-signout { color: var(--teal); border-color: var(--teal); }
.site-header.scrolled .btn-nav-signout:hover { background: var(--teal); color: #fff; }
@media (max-width: 640px) { .btn-nav-signout { display: none; } }

/* ============================================================
   Gallery — "more" button, leaf intro, categorized media grid
   ============================================================ */
.gallery-more-wrap { display: flex; justify-content: center; margin-top: 32px; }
.gallery-more {
  font-family: var(--serif); font-size: 1.08rem; letter-spacing: .03em;
  color: var(--teal-deep); background: transparent;
  border: 1.5px solid var(--teal); border-radius: 999px;
  padding: 14px 36px; cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.gallery-more:hover { background: var(--teal); color: var(--ivory); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(12,91,88,0.28); }
.gallery-more:disabled { opacity: .5; cursor: default; }

.gallery-full { opacity: 0; }
.gallery-full:not(.show) { display: none; }
.gallery-full.show { opacity: 1; transition: opacity .8s var(--ease); }
.gcat { margin-top: 48px; }
.gcat:first-child { margin-top: 24px; }
.gcat-title {
  font-family: var(--serif); font-size: 1.55rem; color: var(--teal-deep);
  display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.gcat-count { font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--terracotta); }
.gcat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gthumb {
  position: relative; margin: 0; border-radius: 12px; overflow: hidden;
  aspect-ratio: 1/1; cursor: pointer; background: var(--teal-deep);
}
.gthumb img, .gthumb video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s var(--ease), filter .5s;
}
.gthumb:hover img, .gthumb:hover video { transform: scale(1.08); filter: saturate(1.08); }
.gthumb-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 52px; height: 52px; border-radius: 50%; z-index: 2;
  background: rgba(6,32,31,0.5); border: 2px solid rgba(247,242,232,0.85);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(3px); pointer-events: none;
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.gthumb:hover .gthumb-play { background: var(--gold); border-color: var(--gold); transform: translate(-50%,-50%) scale(1.08); }
.gthumb:hover .gthumb-play .play-tri { border-left-color: var(--teal-deep); }

/* gallery reveal intro: "J Park Hotel" fades in over drifting leaves */
.gintro {
  position: fixed; inset: 0; z-index: 100001;
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(125% 125% at 50% 30%, var(--teal-soft) 0%, var(--teal) 42%, var(--teal-deep) 100%);
  opacity: 0; transition: opacity .5s var(--ease); pointer-events: none;
}
.gintro.show { opacity: 1; }
.gintro-leaves { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.gintro-title {
  position: relative; z-index: 2; margin: 0;
  font-family: var(--serif); font-weight: 500; color: var(--ivory);
  font-size: clamp(2.2rem, 7vw, 4.6rem); letter-spacing: 0.12em;
  text-shadow: 0 6px 40px rgba(0,0,0,0.35);
  opacity: 0; transform: scale(.96) translateY(8px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.gintro.show .gintro-title { opacity: 1; transform: none; }

body.mobile-view .gallery-grid { grid-template-columns: repeat(2, 1fr); }

/* ---- Expanded gallery: compact horizontal rows + jump menu ---- */
/* Each section becomes a single horizontally-scrolling row of smaller (~60%)
   thumbnails — about 8 fit on desktop, scroll right to reveal the rest. */
.gcat-grid {
  display: flex; gap: 10px; grid-template-columns: none;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; padding-bottom: 12px;
  scrollbar-width: thin; scrollbar-color: var(--teal) rgba(12,91,88,0.12);
}
.gcat-grid > .gthumb {
  flex: 0 0 calc((100% - 70px) / 8); /* ~8 across desktop */
  scroll-snap-align: start;
}
.gcat-grid::-webkit-scrollbar { height: 8px; }
.gcat-grid::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 999px; }
.gcat-grid::-webkit-scrollbar-track { background: rgba(12,91,88,0.12); border-radius: 999px; }
@media (max-width: 1024px) { .gcat-grid > .gthumb { flex-basis: calc((100% - 50px) / 6); } }
@media (max-width: 760px)  { .gcat-grid > .gthumb { flex-basis: calc((100% - 30px) / 4); } }
@media (max-width: 520px)  { .gcat-grid > .gthumb { flex-basis: calc((100% - 20px) / 3); } }
body.mobile-view .gcat-grid > .gthumb { flex-basis: calc((100% - 20px) / 3); }

/* toolbar shown only once the gallery is expanded */
.gallery-tools { display: none; }
.gallery-expanded .gallery-grid,
.gallery-expanded .gallery-more-wrap { display: none; }
.gallery-expanded .gallery-tools {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; margin-top: 26px;
  position: sticky; top: 70px; z-index: 30;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(247,242,232,0.96); backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px -18px rgba(7,61,59,0.5);
}
.gallery-jump {
  font-family: var(--serif); font-size: 1rem; color: var(--teal-deep);
  background-color: var(--paper); border: 1.5px solid var(--teal);
  border-radius: 999px; padding: 10px 40px 10px 18px; cursor: pointer;
  max-width: min(70vw, 360px);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%230c5b58' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px;
}
.gallery-jump:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.gallery-collapse {
  font-family: var(--serif); font-size: .98rem; letter-spacing: .03em;
  color: var(--teal-deep); background: transparent;
  border: 1.5px solid var(--teal); border-radius: 999px;
  padding: 10px 26px; cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.gallery-collapse:hover { background: var(--teal); color: var(--ivory); transform: translateY(-2px); }

/* Tsubaki card: logo badge + circular Facebook button */
.tsubaki-card .dining-img { position: relative; }
.tsubaki-logo {
  display: inline-block; height: 26px; width: auto;
  object-fit: contain; vertical-align: middle;
  margin-right: 7px; opacity: 0.75;
}
.tsubaki-fb {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #1877f2; color: #fff;
  box-shadow: 0 6px 18px rgba(7,40,39,0.35);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.tsubaki-fb:hover { background: #0f63d6; transform: scale(1.1); }

/* Midnight Coffee Club: the imagery is clickable to open the lightbox */
.coffee-clickable .coffee-carousel,
.coffee-clickable .coffee-overlay { cursor: pointer; }

/* Staff/Admin sidebar "J" mark returns to the homepage */
.ds-home { text-decoration: none; cursor: pointer; }

/* Site Editor "View on site" — briefly highlight the located text */
.cms-locate-flash {
  animation: cmsLocateFlash 2.4s ease-out;
  border-radius: 6px;
}
@keyframes cmsLocateFlash {
  0%, 60% { background-color: rgba(201,162,75,0.55); box-shadow: 0 0 0 6px rgba(201,162,75,0.35); }
  100% { background-color: transparent; box-shadow: 0 0 0 6px rgba(201,162,75,0); }
}
@media (prefers-reduced-motion: reduce) {
  .cms-locate-flash { animation: none; outline: 3px solid rgba(201,162,75,0.8); }
}

/* ====================================================================
   Building 5 · J Park Hall  (events & meetings showcase)
   ==================================================================== */
.building.section { text-align: center; }
.building-wrap {
  max-width: 1080px; margin: 26px auto 0;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 56px); align-items: center; text-align: left;
}
.building-card {
  position: relative; border-radius: 16px; overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow); aspect-ratio: 3/4; max-height: 560px;
}
.building-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.building-card:hover img, .building-card:focus-within img { transform: scale(1.06); }
.building-card .room-photos { opacity: 1; transform: none; }
.building-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.building-text p { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.72; margin-bottom: 24px; }
.building-cta { cursor: pointer; }
@media (max-width: 760px) {
  .building-wrap { grid-template-columns: 1fr; }
  .building-card { aspect-ratio: 4/3; max-height: 440px; }
}

/* ====================================================================
   EV charging band
   ==================================================================== */
.ev-band { background: linear-gradient(135deg, var(--teal-deep), var(--teal)); color: var(--ivory); padding: clamp(40px, 6vw, 76px) 24px; }
.ev-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.ev-photo { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.ev-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-text .eyebrow { color: var(--gold-light); }
.ev-title { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--ivory); margin: 10px 0 16px; display: flex; align-items: center; gap: .5rem; }
.ev-title::before { content: "\26A1"; color: var(--gold-light); font-size: .9em; }
.ev-desc { color: rgba(247,242,232,0.92); font-size: 1.06rem; line-height: 1.65; max-width: 54ch; }
@media (max-width: 760px) { .ev-inner { grid-template-columns: 1fr; } }

/* ====================================================================
   Japanese Onsen (Futamata) section + Men/Women chooser
   ==================================================================== */
.onsen-section { background: linear-gradient(180deg, var(--paper), #eef4f1); }
.onsen-wrap {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(26px, 4vw, 58px); align-items: stretch;
}
.onsen-feature {
  position: relative; display: block; width: 100%; border: 0; padding: 0;
  border-radius: 18px; overflow: hidden; cursor: pointer; background: var(--teal-deep);
  box-shadow: var(--shadow); aspect-ratio: 4/3; color: var(--ivory);
}
.onsen-feature img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease); }
.onsen-feature:hover img, .onsen-feature:focus-visible img { transform: scale(1.06); }
.onsen-feature-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,40,39,0) 30%, rgba(7,40,39,0.82) 100%);
}
.onsen-feature-cta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: clamp(20px, 3vw, 32px); text-align: left;
}
.onsen-brand { font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-light); font-weight: 600; }
.onsen-enter { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.05; }
.onsen-enter-sub { font-size: 0.95rem; letter-spacing: 0.14em; color: rgba(247,242,232,0.92); }
.onsen-enter-sub::after {
  content: "\2192"; margin-left: 10px; display: inline-block;
  transition: transform .3s var(--ease);
}
.onsen-feature:hover .onsen-enter-sub::after { transform: translateX(6px); }
.onsen-feature:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.onsen-info { align-self: center; }
.onsen-min-title { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--teal-deep); }
.onsen-min-lede { color: var(--ink-soft); margin: 10px 0 22px; font-size: 1.02rem; }
.onsen-minerals { list-style: none; display: grid; gap: 14px; }
.onsen-minerals li {
  display: grid; grid-template-columns: minmax(96px, 132px) 1fr; gap: 14px;
  align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.onsen-minerals li:last-child { border-bottom: 0; padding-bottom: 0; }
.om-name { font-family: var(--serif); font-size: 1.18rem; color: var(--terracotta); font-weight: 600; }
.om-desc { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.55; }
@media (max-width: 860px) {
  .onsen-wrap { grid-template-columns: 1fr; }
  .onsen-feature { aspect-ratio: 16/10; }
  .onsen-minerals li { grid-template-columns: 1fr; gap: 2px; }
}

/* Men / Women chooser overlay */
.onsen-choose {
  position: fixed; inset: 0; z-index: 240; display: flex; flex-direction: column;
  background: rgba(6,32,31,0.96); backdrop-filter: blur(5px);
  opacity: 0; transition: opacity .34s var(--ease);
}
.onsen-choose.open { opacity: 1; }
.onsen-choose-close {
  position: absolute; top: 20px; right: 26px; z-index: 3; background: none; border: 0;
  color: var(--ivory); font-size: 2.4rem; line-height: 1; cursor: pointer; opacity: .85;
  transition: opacity .25s, transform .25s;
}
.onsen-choose-close:hover { opacity: 1; transform: rotate(90deg); }
.onsen-choose-head { text-align: center; color: var(--ivory); padding: clamp(40px, 7vw, 76px) 20px clamp(14px, 2vw, 26px); }
.onsen-choose-brand { display: block; font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold-light); font-weight: 600; }
.onsen-choose-title { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-top: 8px; }
.onsen-choose-split { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 2vw, 22px); padding: 0 clamp(14px, 3vw, 40px) clamp(28px, 5vw, 56px); min-height: 0; }
.onsen-side {
  position: relative; border: 0; padding: 0; cursor: pointer; overflow: hidden;
  border-radius: 16px; background: var(--teal); color: var(--ivory);
  box-shadow: 0 26px 60px -28px rgba(0,0,0,0.7);
  opacity: 0; transform: translateY(24px);
  transition: transform .5s var(--ease), opacity .5s var(--ease), box-shadow .3s var(--ease);
}
.onsen-choose.open .onsen-side { opacity: 1; transform: translateY(0); }
.onsen-choose.open .onsen-side-men { transition-delay: .06s; }
.onsen-choose.open .onsen-side-women { transition-delay: .14s; }
.onsen-side-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .9s var(--ease); }
.onsen-side:hover .onsen-side-bg, .onsen-side:focus-visible .onsen-side-bg { transform: scale(1.07); }
.onsen-side-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,40,39,0.18) 0%, rgba(7,40,39,0.72) 100%); transition: background .3s var(--ease); }
.onsen-side:hover .onsen-side-scrim { background: linear-gradient(180deg, rgba(7,40,39,0.10) 0%, rgba(7,40,39,0.6) 100%); }
.onsen-side-men .onsen-side-scrim { background: linear-gradient(180deg, rgba(10,40,70,0.20) 0%, rgba(7,28,50,0.74) 100%); }
.onsen-side-women .onsen-side-scrim { background: linear-gradient(180deg, rgba(120,40,60,0.20) 0%, rgba(80,24,46,0.74) 100%); }
.onsen-side-label { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.osl-jp { font-family: var(--serif); font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1; letter-spacing: 0.06em; text-shadow: 0 6px 24px rgba(0,0,0,0.5); }
.osl-en { font-size: 0.82rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold-light); }
.onsen-side:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
@media (max-width: 620px) {
  .onsen-choose-split { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
}

/* ====================================================================
   Photo-or-video covers (Site Editor "Set as cover")
   A video cover fills its container and sits beneath any text/scrim.
   ==================================================================== */
.cover-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.hero-media.has-cover-video .cover-video { z-index: 0; }
.hero-media.has-cover-video img { visibility: hidden; }
.fac-card.has-cover-video::before { z-index: 1; }
.fac-card.has-cover-video .fac-card-text { z-index: 2; }
.dining-img.has-cover-video img, .room-img.has-cover-video img,
.onsen-feature.has-cover-video img { visibility: hidden; }
.room-img.has-cover-video .room-photos, .onsen-feature.has-cover-video .onsen-feature-cta { z-index: 2; }

/* ====================================================================
   SHARED MOBILE BASELINE
   Applies to every page that loads style.css (index, booking, staff).
   Keeps touch interaction smooth and prevents the two classic iOS
   annoyances: text auto-inflation on rotate, and the page zooming in
   when a form field smaller than 16px is focused.
   ==================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Calmer tap feedback instead of the default grey flash */
a, button, summary, [role="button"], input, select, textarea, label {
  -webkit-tap-highlight-color: rgba(12, 91, 88, 0.12);
}

@media (max-width: 767px) {
  /* Any focusable text field renders at >=16px so iOS Safari never
     zooms the viewport on focus. Covers .field input, .bk-input, login
     and editor fields alike — including ones added in future. */
  input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]),
  select,
  textarea {
    font-size: 16px;
  }
  /* Momentum scrolling on any horizontal scroller */
  [class*="-grid"], [class*="-cats"], .gcat-grid {
    -webkit-overflow-scrolling: touch;
  }
  /* Comfortable minimum tap targets for inline controls */
  .lang-btn, .hamburger, .ann-close, .btn-signout, .btn-signout-side {
    min-height: 40px;
  }
}
