/* ============================================================
   Screen styles — front-end + admin
   ============================================================ */

/* ---------- App nav (front-end) ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-logo { display: flex; align-items: center; cursor: pointer; min-width: 112px; }
.nav-logo img { display: block; width: auto; height: 38px; max-width: 150px; object-fit: contain; }
.dev-mobile .nav-logo img { height: 34px; max-width: 136px; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--ink-2); padding: 8px 13px; border-radius: var(--r-sm); cursor: pointer; transition: all 0.12s; }
.nav-links a:hover { background: var(--primary-50); color: var(--primary-700); }
.nav-links a.on { color: var(--primary-700); background: var(--primary-50); }
.nav-burger { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm); width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.dev-desktop .nav-burger { display: none; }
.dev-mobile .nav-links { display: none; }

.mobile-menu { position: absolute; inset: 0; z-index: 60; background: var(--bg); animation: fade 0.2s; display: flex; flex-direction: column; }
.mobile-menu .mm-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.mobile-menu nav { padding: 12px; display: flex; flex-direction: column; }
.mobile-menu nav a { padding: 16px; font-size: 17px; font-weight: 600; color: var(--ink); border-radius: var(--r); display: flex; justify-content: space-between; align-items: center; }
.mobile-menu nav a:hover { background: var(--surface-2); }

/* ---------- generic page container ---------- */
.page { padding-bottom: 40px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.dev-mobile .wrap { padding: 0 18px; }
.section { padding: 56px 0; }
.dev-mobile .section { padding: 38px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-family: var(--font-serif); font-size: 30px; color: var(--ink); margin: 10px 0 8px; }
.dev-mobile .section-head h2 { font-size: 24px; }
.section-head p { color: var(--ink-2); font-size: 15px; max-width: 540px; margin: 0 auto; line-height: 1.7; }

/* ---------- Hero (P-01) ---------- */
.hero { position: relative; }
.hero-carousel { position: relative; overflow: hidden; background: #ffffff; }
.hero-img { width: 100%; }
.hero-photo { display: block; object-fit: cover; object-position: center; background: #f2f2f2; }
.dev-desktop .hero-img { height: 560px; }
.dev-mobile .hero-img { height: 460px; }
.hero-slide {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.hero-slide:not(.active) {
  position: absolute;
  inset: 0;
}
.hero-slide.active { opacity: 1; }
.hero-grad { display: none; }
.hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 24px; color: #fff; }
.hero-content .eyebrow { color: rgba(255,255,255,.85); }
.hero-content h1 { font-family: var(--font-serif); font-weight: 700; margin: 14px 0 10px; line-height: 1.15; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.dev-desktop .hero-content h1 { font-size: 52px; }
.dev-mobile .hero-content h1 { font-size: 34px; }
.hero-content .sub { font-size: 17px; color: rgba(255,255,255,.92); max-width: 440px; line-height: 1.7; }
.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: rgba(0,0,0,.62);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
}
.hero-arrow:hover { background: #000000; }
.hero-arrow.prev { left: 22px; }
.hero-arrow.next { right: 22px; }
.dev-mobile .hero-arrow { width: 38px; height: 38px; }
.dev-mobile .hero-arrow.prev { left: 12px; }
.dev-mobile .hero-arrow.next { right: 12px; }
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}
.hero-dots button {
  width: 9px;
  height: 9px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  background: transparent;
  padding: 0;
}
.hero-dots button.on { background: #ffffff; }

/* search box overlay */
.searchbox {
  background: rgba(255,255,255,.96);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 14px;
  display: flex; gap: 10px; align-items: flex-end;
}
.dev-desktop .searchbox { position: absolute; left: 50%; bottom: -44px; transform: translateX(-50%); width: min(880px, 92%); }
.dev-mobile .searchbox { flex-direction: column; align-items: stretch; margin: -40px 18px 0; position: relative; }
.searchbox .sb-field { flex: 1; }
.searchbox .sb-field label { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin: 2px 4px 5px; letter-spacing: .02em; }
.searchbox .sb-field .sb-input { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 13px; font-size: 14.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 9px; background: var(--surface); cursor: pointer; }
.searchbox .sb-field .sb-input.ph-text { color: var(--muted); font-weight: 500; }
.searchbox .sb-divider { width: 1px; background: var(--line); align-self: stretch; margin: 4px 0; }
.dev-mobile .searchbox .sb-divider { display: none; }

/* highlights */
.hl-grid { display: grid; gap: 18px; }
.dev-desktop .hl-grid { grid-template-columns: repeat(3, 1fr); }
.dev-mobile .hl-grid { grid-template-columns: 1fr 1fr; }
.hl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 20px; text-align: center; }
.hl-card .hl-ic { width: 54px; height: 54px; border-radius: 50%; background: var(--primary-50); color: var(--primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.hl-card h4 { font-size: 16px; margin: 0 0 7px; color: var(--ink); }
.hl-card .hl-en { font-size: 12px; font-weight: 800; color: var(--ink); letter-spacing: .08em; text-transform: none; margin: -2px 0 10px; }
.hl-card p { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin: 0; }

/* room preview grid */
.rooms-grid { display: grid; gap: 22px; }
.dev-desktop .rooms-grid { grid-template-columns: repeat(2, 1fr); }
.dev-mobile .rooms-grid { grid-template-columns: 1fr; }
.dev-desktop .rooms-grid.three { grid-template-columns: repeat(3, 1fr); }

/* location band */
.loc-band { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.dev-desktop .loc-band { grid-template-columns: 1.2fr 1fr; }
.loc-map { min-height: 300px; }
.loc-map-photo { width: 100%; height: 100%; display: block; object-fit: cover; }
.loc-info { padding: 36px; }
.dev-mobile .loc-info { padding: 26px; }
.loc-info h3 { font-family: var(--font-serif); font-size: 24px; margin: 0 0 18px; }
.loc-row { display: flex; gap: 12px; padding: 11px 0; color: var(--ink-2); font-size: 14px; align-items: flex-start; }
.loc-row .ic { color: var(--accent); margin-top: 2px; }

/* footer */
.footer { background: var(--primary-700); color: rgba(255,255,255,.85); padding: 44px 0 30px; margin-top: 20px; }
.footer .wrap { display: grid; gap: 28px; }
.dev-desktop .footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; }
.footer h5 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer a, .footer p { color: rgba(255,255,255,.8); font-size: 13.5px; line-height: 2; cursor: pointer; display: block; }
.footer a:hover { color: #fff; }
.footer .copy { border-top: 1px solid rgba(255,255,255,.16); margin-top: 28px; padding-top: 18px; font-size: 12.5px; color: rgba(255,255,255,.6); }

/* ---------- Room cards ---------- */
.rc-name { font-size: 19px; margin: 0; color: var(--ink); }
.rc-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 9px; color: var(--ink-2); font-size: 12.5px; }
.rc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.rc-meta .ph { display: none; }
.rc-blurb { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; margin: 11px 0 0; }
.room-card-photo { display: block; width: 100%; object-fit: cover; background: var(--surface-2); }
.room-card-photo.rc-v-img,
.room-card-photo.rc-o-img { height: auto; }
.room-card-photo.rc-h-img { height: 100%; }
.room-thumb { display: block; object-fit: cover; border-radius: var(--r-sm); background: var(--surface-2); }
.rc-v-img { aspect-ratio: 16/10; }
.rc-v-body { padding: 18px; }
.rc-soldout { position: absolute; inset: 0; background: rgba(43,40,35,.5); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }

.rc-h { display: flex; }
.dev-mobile .rc-h { flex-direction: column; }
.rc-h-img { width: 240px; flex-shrink: 0; align-self: stretch; min-height: 200px; }
.dev-mobile .rc-h-img { width: 100%; aspect-ratio: 16/10; min-height: 0; }
.rc-h-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.rc-h-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); gap: 12px; }

.rc-o { position: relative; }
.rc-o-img { aspect-ratio: 4/5; }
.rc-o-grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35,32,27,.05) 30%, rgba(35,32,27,.78) 100%); }
.rc-o-top { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; }
.rc-o-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; }
.rc-o-meta { color: rgba(255,255,255,.85); font-size: 12.5px; margin-top: 6px; }

/* ---------- Room detail (P-03) ---------- */
.detail-gallery { display: grid; gap: 8px; }
.dev-desktop .detail-gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: 440px; }
.dev-desktop .detail-gallery > :first-child { grid-row: span 2; }
.dev-mobile .detail-gallery { grid-template-columns: 1fr; }
.dev-mobile .detail-gallery .ph:not(:first-child) { display: none; }
.dev-mobile .detail-gallery .ph:first-child { aspect-ratio: 4/3; }
.detail-photo { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: var(--r); background: var(--surface-2); }
.dev-mobile .detail-photo { aspect-ratio: 4/3; height: auto; }
.about-photo {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  object-fit: cover;
  border-radius: var(--r);
  margin-bottom: 24px;
  background: var(--surface-2);
}
.detail-grid { display: grid; gap: 32px; margin-top: 32px; }
.dev-desktop .detail-grid { grid-template-columns: 1.6fr 1fr; align-items: start; }
.detail-facilities { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.dev-desktop .detail-facilities { grid-template-columns: repeat(2, 1fr); }
.book-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh); }
.dev-desktop .book-box { position: sticky; top: 80px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--ink-2); }

/* sticky mobile action bar */
.sticky-bar {
  position: sticky; bottom: 0; z-index: 30;
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 12px 18px; display: flex; align-items: center; gap: 14px;
  box-shadow: 0 -4px 18px rgba(43,40,35,.06);
}
.sticky-bar .sb-price { flex: 1; }

/* ---------- generic two-col flow layout (P-05/P-06) ---------- */
.flow-head { padding: 18px 0; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.flow-grid { display: grid; gap: 30px; align-items: start; }
.dev-desktop .flow-grid { grid-template-columns: 1.5fr 1fr; }
.summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.dev-desktop .summary-card.sticky { position: sticky; top: 80px; }
.summary-card .sc-head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.summary-card .sc-body { padding: 18px; }
.sum-line { display: flex; justify-content: space-between; font-size: 13.5px; padding: 7px 0; color: var(--ink-2); }
.sum-line .v { color: var(--ink); font-weight: 600; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-top: 8px; border-top: 1px dashed var(--line); }

/* checkbox */
.checkbox { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
.checkbox input { position: absolute; opacity: 0; }
.checkbox .box { width: 22px; height: 22px; border: 1.5px solid var(--line); border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; transition: all 0.12s; margin-top: 1px; }
.checkbox input:checked + .box { background: var(--primary); border-color: var(--primary); }
.checkbox input:focus-visible + .box { box-shadow: 0 0 0 3px var(--primary-50); }
.checkbox .ck-label { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.checkbox .ck-label a { color: var(--primary-700); font-weight: 600; text-decoration: underline; }

/* payment methods */
.pay-method { display: flex; align-items: center; gap: 13px; border: 1.5px solid var(--line); border-radius: var(--r); padding: 15px 16px; cursor: pointer; transition: all 0.12s; margin-bottom: 11px; }
.pay-method:hover { border-color: var(--primary-100); }
.pay-method.on { border-color: var(--primary); background: var(--primary-50); }
.pay-method .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.pay-method.on .radio { border-color: var(--primary); }
.pay-method.on .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }

/* complete (P-07) */
.success-hero { text-align: center; padding: 50px 24px 30px; }
.success-ring { width: 84px; height: 84px; border-radius: 50%; background: var(--success-50); color: var(--success); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; animation: pop 0.4s cubic-bezier(.34,1.56,.64,1); }
.order-no { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface-2); border: 1px dashed var(--line); border-radius: var(--r); padding: 14px 18px; }
.order-no .num { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--primary-700); letter-spacing: .04em; }

/* ---------- Admin ---------- */
.admin { display: flex; min-height: 100%; background: var(--surface-2); }
.admin-side { width: 224px; background: var(--primary-700); color: rgba(255,255,255,.8); flex-shrink: 0; display: flex; flex-direction: column; padding: 20px 14px; }
.dev-mobile .admin-side { display: none; }
.admin-side .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-serif); font-weight: 700; font-size: 17px; padding: 6px 10px 22px; }
.admin-side a { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; color: rgba(255,255,255,.78); cursor: pointer; margin-bottom: 3px; }
.admin-side a:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-side a.on { background: rgba(255,255,255,.16); color: #fff; }
.admin-side .spacer { flex: 1; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-top { background: var(--surface); border-bottom: 1px solid var(--line); padding: 16px 24px; display: flex; align-items: center; gap: 16px; }
.admin-top h1 { font-size: 19px; margin: 0; color: var(--ink); }
.admin-body { padding: 26px 24px; flex: 1; }
.dev-mobile .admin-body { padding: 18px; }

.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.dev-mobile .stat-grid { grid-template-columns: 1fr 1fr; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.stat-card .lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat-card .num { font-family: var(--font-serif); font-size: 32px; font-weight: 700; color: var(--ink); margin-top: 6px; }
.stat-card .ic { float: right; color: var(--accent); }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; padding: 12px 14px; background: var(--surface-2); color: var(--ink-2); font-weight: 700; font-size: 12.5px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.table tr:hover td { background: var(--surface-2); }
.table .id { font-family: var(--font-serif); font-weight: 700; color: var(--primary-700); }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12.5px; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* admin month grid (A-03) */
.adm-cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: auto; }
.adm-cal table { border-collapse: collapse; min-width: 100%; }
.adm-cal th, .adm-cal td { border: 1px solid var(--line-2); padding: 0; text-align: center; }
.adm-cal th { background: var(--surface-2); font-size: 12px; padding: 9px 6px; color: var(--ink-2); position: sticky; left: 0; }
.adm-cal .roomcol { text-align: left; padding: 12px 14px; font-weight: 700; font-size: 13px; color: var(--ink); background: var(--surface); position: sticky; left: 0; z-index: 2; min-width: 130px; white-space: nowrap; }
.adm-day { width: 40px; height: 46px; font-size: 12px; cursor: pointer; position: relative; transition: filter 0.1s; }
.adm-day:hover { filter: brightness(0.95); outline: 2px solid var(--primary); outline-offset: -2px; z-index: 1; }
.adm-day.open { background: var(--success-50); color: #000000; }
.adm-day.booked { background: var(--surface-2); color: var(--muted); }
.adm-day.closed { background: #eeeeee; color: var(--error); }
.adm-day .pr { font-size: 9.5px; display: block; opacity: .7; }
