/* =========================================================
   พี่เอ็ดโฮมสเตย์ — Mobile-first stylesheet
   ========================================================= */
:root {
  --forest: #1f5c23;        /* เขียวป่า (หลัก) */
  --forest-dark: #164419;
  --forest-mid: #2f7a2c;
  --moss: #7fa548;          /* เขียวมอส (เสริม) */
  --moss-light: #e2ecc9;
  --moss-pale: #f0f5e1;
  --cream: #fbf7ea;         /* ขาวนวล */
  --cream-2: #f5efdc;
  --ink: #1d2a1c;
  --muted: #5d6b58;
  --line: #d9dcc8;
  --radius: 18px;
  --header-h: 72px;
  --bottom-nav-h: 82px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --bs-body-font-family: 'Kanit', 'Prompt', system-ui, sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--cream);
  --bs-link-color-rgb: 31, 92, 35;
  --bs-link-hover-color-rgb: 22, 68, 25;
}

html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }

body {
  font-family: var(--bs-body-font-family);
  background: var(--cream);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(31, 92, 35, .15);
  /* space for bottom nav + iPhone home indicator */
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom));
}

img { max-width: 100%; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--moss); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { font-weight: 500; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.btn-forest {
  --bs-btn-color: #fff; --bs-btn-bg: var(--forest); --bs-btn-border-color: var(--forest);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--forest-dark); --bs-btn-hover-border-color: var(--forest-dark);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--forest-dark); --bs-btn-active-border-color: var(--forest-dark);
  background-image: linear-gradient(180deg, var(--forest-mid), var(--forest));
  box-shadow: 0 4px 12px rgba(31, 92, 35, .25);
}
.btn-outline-forest {
  --bs-btn-color: var(--forest); --bs-btn-border-color: var(--forest); --bs-btn-bg: #fff;
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--forest); --bs-btn-hover-border-color: var(--forest);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--forest-dark); --bs-btn-active-border-color: var(--forest-dark);
  border-width: 2px;
}
.link-forest { color: var(--forest); font-weight: 500; text-decoration: none; }
.btn-lg-touch { min-height: 48px; padding: .55rem 1.25rem; font-size: 1.05rem; }
.btn-xl { min-height: 56px; padding: .6rem 1.4rem; font-size: 1.2rem; font-weight: 600; }
.btn-sm-pill { min-height: 44px; padding: .35rem 1rem; }
.icon-bed { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(251, 247, 234, .96);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid rgba(31, 92, 35, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; min-width: 0; }
.brand-logo { width: 58px; height: 58px; border-radius: 50%; flex: none; box-shadow: 0 2px 8px rgba(0,0,0,.15); background: var(--forest); }
.brand-divider { width: 2px; height: 34px; background: var(--forest); border-radius: 2px; flex: none; }
.brand-name { color: var(--forest); font-weight: 600; font-size: clamp(1.3rem, 6vw, 1.75rem); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-toggle {
  width: 48px; height: 48px; flex: none; border: 0; background: transparent; color: var(--forest);
  font-size: 2rem; display: grid; place-items: center; border-radius: 12px;
}
.menu-toggle:active { background: var(--moss-light); }
.desktop-nav { display: none; }

/* Offcanvas menu */
.menu-offcanvas { background: var(--cream); max-width: 82vw; }
.menu-offcanvas .offcanvas-title { color: var(--forest); font-weight: 600; }
.offcanvas-nav { display: grid; gap: .35rem; }
.offcanvas-nav a {
  display: flex; align-items: center; gap: .8rem; min-height: 52px; padding: 0 1rem; border-radius: 14px;
  color: var(--ink); text-decoration: none; font-size: 1.15rem; font-weight: 500;
}
.offcanvas-nav a i, .offcanvas-nav a .icon-bed { font-size: 1.3rem; color: var(--forest); }
.offcanvas-nav a.active { background: var(--forest); color: #fff; }
.offcanvas-nav a.active i, .offcanvas-nav a.active .icon-bed { color: #fff; }

/* ---------- Bottom navigation (mobile) ----------
   Default = Android / Material 3 navigation bar.
   .platform-ios = iOS tab bar (translucent, hairline, tint colour). */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 12px 8px calc(14px + var(--safe-bottom));
  background: #ffffff;
  border-top: 1px solid rgba(31, 92, 35, .12);
  box-shadow: 0 -4px 16px rgba(20, 40, 15, .12);
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px;
  min-height: 52px; text-decoration: none; color: #4a5a44; font-weight: 500;
  -webkit-user-select: none; user-select: none;
}
.bottom-nav-icon {
  position: relative; display: grid; place-items: center;
  width: 64px; height: 32px; border-radius: 16px; font-size: 1.3rem; line-height: 1; isolation: isolate;
}
/* Material active indicator: pill that grows from the centre */
.bottom-nav-icon::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: #cfe6b0; transform: scaleX(0); opacity: 0;
  transition: transform .28s cubic-bezier(.2, 0, 0, 1), opacity .2s;
}
.bottom-nav-item.active .bottom-nav-icon::before { transform: scaleX(1); opacity: 1; }
/* Material state layer on press */
.bottom-nav-item:not(.active):active .bottom-nav-icon::before { transform: scaleX(1); opacity: .45; transition-duration: .1s; }
.bottom-nav-label { font-size: .85rem; line-height: 1.2; letter-spacing: .01em; }
.bottom-nav-item.active { color: var(--forest-dark); }
.bottom-nav-item.active .bottom-nav-label { font-weight: 600; }
.bottom-nav-item:focus-visible { outline: none; }
.bottom-nav-item:focus-visible .bottom-nav-icon { outline: 2px solid var(--forest); outline-offset: 2px; }

/* ----- iOS tab bar ----- */
.platform-ios { --bottom-nav-h: 58px; }
.platform-ios .bottom-nav {
  padding: 6px 4px calc(4px + var(--safe-bottom));
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: .5px solid rgba(60, 60, 67, .36);
  box-shadow: 0 -2px 12px rgba(20, 40, 15, .08);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .platform-ios .bottom-nav { background: #ffffff; }
}
.platform-ios .bottom-nav-item { min-height: 48px; gap: 2px; justify-content: center; color: #8a8a8e; font-weight: 500; transition: opacity .15s; }
.platform-ios .bottom-nav-item.active { color: var(--forest); }
.platform-ios .bottom-nav-item:active { opacity: .5; }
.platform-ios .bottom-nav-icon { width: auto; height: 28px; font-size: 1.55rem; border-radius: 0; }
.platform-ios .bottom-nav-icon::before { display: none; }
.platform-ios .bottom-nav-label { font-size: .78rem; letter-spacing: 0; }
.platform-ios .bottom-nav-item.active .bottom-nav-label { font-weight: 600; }
/* bed icon is outline-only: thicken it a touch when active to read as "filled" */
.platform-ios .bottom-nav-item.active .icon-bed path { stroke-width: 2.8; }

@media (prefers-reduced-motion: reduce) {
  .bottom-nav-icon::before { transition: none; }
}

/* ---------- Image badge "ภาพประกอบ" ---------- */
.img-badge {
  position: absolute; top: .6rem; right: .6rem; z-index: 2;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: .75rem; font-weight: 400;
  padding: .15rem .55rem; border-radius: 999px; pointer-events: none;
}
.img-badge-sm { top: .3rem; right: .3rem; font-size: .65rem; padding: .05rem .4rem; }
.sample-tag {
  display: inline-flex; align-items: center; font-size: .8rem; color: #7a5b12; background: #fbefc8;
  border: 1px dashed #d9b85a; border-radius: 999px; padding: .1rem .6rem;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  min-height: max(440px, calc(100svh - var(--header-h) - var(--bottom-nav-h) - var(--safe-bottom) - 40px));
  display: flex; align-items: flex-end; background: var(--forest);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(22, 68, 25, .55) 58%, rgba(31, 92, 35, .95) 88%);
}
.hero-content { position: relative; text-align: center; padding-bottom: 4.5rem; padding-top: 6rem; }
.hero-title {
  font-weight: 700; font-size: clamp(2.3rem, 11vw, 4.2rem); line-height: 1.15; margin: 0;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .45);
}
.hero-swoosh { display: block; width: min(78%, 320px); height: 14px; margin: .35rem auto 1.4rem; }
.hero-btn {
  min-height: 60px; padding: .6rem 2rem; font-size: 1.45rem; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, var(--forest-mid), var(--forest-dark));
  border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  min-width: min(100%, 290px);
}
.hero-btn:hover, .hero-btn:focus-visible, .hero-btn:active { color: #fff; background: var(--forest-dark); border-color: #fff; }
.hero-mountains { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 54px; color: var(--cream); z-index: 0; }

/* ---------- Page banner ---------- */
.page-banner { position: relative; background: var(--forest); color: #fff; padding: 0 0 2.6rem; overflow: hidden; }
.banner-mountains { display: block; width: 100%; height: 56px; background: var(--cream); color: var(--forest); }
.page-title {
  position: relative; display: flex; align-items: center; justify-content: center; gap: .7rem;
  font-weight: 700; font-size: clamp(1.8rem, 8vw, 2.6rem); margin: 0; padding-top: .6rem;
}
.page-title-icon {
  display: inline-grid; place-items: center; width: 1.5em; height: 1.25em; border-radius: .35em;
  background: #fff; color: var(--forest); font-size: .9em;
}
.page-title-icon .bi { font-size: .85em; }
.page-contact .page-title-icon { background: transparent; color: #fff; width: auto; }
.page-contact .page-title-icon .bi { font-size: 1.05em; }

/* Content sheet overlapping the banner */
.sheet {
  position: relative; margin-top: -1.4rem; background: var(--cream);
  border-radius: 26px 26px 0 0; padding: 1.4rem 0 2rem;
}
.container.narrow { max-width: 720px; }

/* ---------- Sections ---------- */
.section { padding: 1.8rem 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-title { font-size: 1.45rem; font-weight: 600; color: var(--forest); margin: 0; display: flex; align-items: center; gap: .5rem; }
.link-more { min-height: 44px; display: inline-flex; align-items: center; gap: .2rem; text-decoration: none; font-weight: 500; color: var(--forest); }

/* ---------- Room cards ---------- */
.room-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.room-card {
  position: relative; background: #fffdf6; border-radius: var(--radius); padding: .75rem;
  box-shadow: 0 6px 20px rgba(40, 60, 20, .12); border: 1px solid rgba(127, 165, 72, .18);
  display: flex; flex-direction: column;
}
.room-card-media { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--moss-light); }
.room-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.room-card-media:hover img { transform: scale(1.03); }
.room-card-body { position: relative; padding: .9rem .4rem .2rem; display: flex; flex-direction: column; flex: 1; }
.room-card-leaf { position: absolute; right: .2rem; top: .4rem; width: 64px; height: 64px; color: var(--moss); opacity: .55; pointer-events: none; }
.room-card-title { font-size: 1.75rem; font-weight: 600; margin: 0 0 .4rem; padding-right: 56px; }
.room-card-title a { color: var(--ink); text-decoration: none; }
.room-card-meta { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-bottom: 1rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .85rem; border-radius: 999px;
  background: var(--moss-light); color: var(--forest-dark); font-size: 1.05rem; font-weight: 500;
}
.chip .bi { color: var(--forest); }
.chip-light { background: var(--moss-pale); }
.chip-sm { font-size: .9rem; padding: .1rem .65rem; }
.room-card-actions { display: grid; gap: .6rem; margin-top: auto; }
.room-card-actions .btn-forest { font-size: 1.2rem; min-height: 52px; }

/* ---------- Call panel ---------- */
.call-panel {
  background: var(--moss-pale); border: 1px solid var(--moss-light); border-radius: var(--radius);
  padding: 1.25rem; display: grid; gap: 1rem;
}
.call-panel-title { font-size: 1.25rem; font-weight: 600; color: var(--forest); margin-bottom: .2rem; }
.call-panel-actions { display: grid; gap: .6rem; }

/* ---------- Detail page ---------- */
.back-link { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; margin-bottom: .5rem; color: var(--forest); text-decoration: none; font-weight: 500; }
.detail-card { background: #fffdf6; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 20px rgba(40, 60, 20, .12); }
.detail-gallery { position: relative; background: var(--moss-light); }
.detail-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.detail-gallery .carousel-control-prev, .detail-gallery .carousel-control-next { width: 52px; }
.detail-body { padding: 1.1rem 1.1rem 1.4rem; }
.detail-title { font-size: 1.9rem; font-weight: 600; margin-bottom: .5rem; }
.detail-desc { font-size: 1.05rem; color: var(--muted); }
.detail-subtitle { font-size: 1.2rem; font-weight: 600; color: var(--forest); margin: 1.2rem 0 .6rem; }
.detail-facts { display: grid; gap: .5rem; margin: 0 0 .5rem; }
.detail-facts > div { display: flex; gap: .75rem; }
.detail-facts dt { font-weight: 500; color: var(--forest); min-width: 5.5rem; }
.detail-facts dd { margin: 0; }
.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .5rem .75rem; }
.amenities li { display: flex; gap: .45rem; align-items: center; }
.amenities .bi { color: var(--moss); }
.info-note { background: var(--moss-pale); border-radius: 12px; padding: .75rem .9rem; color: var(--muted); margin: 1rem 0 0; }
.info-note .bi { color: var(--forest); }
.detail-actions { display: grid; gap: .6rem; margin-top: 1.25rem; }
.empty-note { text-align: center; padding: 2rem 0; color: var(--muted); }

/* ---------- Inquiry form ---------- */
.selected-room {
  position: relative; display: flex; gap: .8rem; align-items: center;
  background: var(--moss-pale); border: 1.5px solid #b9d08f; border-radius: 16px; padding: .6rem; margin-bottom: 1.1rem;
}
.selected-room-thumb { position: relative; flex: none; width: 110px; height: 80px; border-radius: 10px; overflow: hidden; background: var(--moss-light); }
.selected-room-thumb img { width: 100%; height: 100%; object-fit: cover; }
.selected-room-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; flex: 1; padding-right: 2rem; }
.selected-room-label { font-size: .85rem; color: var(--muted); }
.selected-room-name { font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.selected-room-check { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); font-size: 1.7rem; color: var(--forest); }

.field { margin-bottom: 1.05rem; }
.field-label { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1.1rem; margin-bottom: .35rem; }
.field-label .bi, .field-label .icon-bed { color: var(--forest); }
.field-input {
  min-height: 52px; font-size: 16px !important; /* ≥16px prevents iOS zoom */
  border-radius: 12px; border: 1.5px solid #c9ccb6; background-color: #fff; color: var(--ink);
}
.field-input:focus { border-color: var(--forest); box-shadow: 0 0 0 .2rem rgba(127, 165, 72, .3); }
.form-select.field-input { padding-left: 1rem; }

/* Native date input — consistent on iOS Safari & Android Chrome */
.date-wrap { position: relative; }
.date-input {
  -webkit-appearance: none; appearance: none; display: block; width: 100%;
  padding: .6rem 3rem .6rem 1rem; text-align: left; line-height: 1.5;
}
.date-input::-webkit-date-and-time-value { text-align: left; margin: 0; }
.date-input::-webkit-calendar-picker-indicator {
  position: absolute; inset: 0; width: auto; height: auto; opacity: 0; cursor: pointer;
}
.date-icon { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.25rem; color: var(--forest); pointer-events: none; }
.date-placeholder {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #8a8f80; pointer-events: none; display: none; font-size: 16px;
}
.date-wrap.is-empty .date-placeholder { display: block; }
.date-wrap.is-empty .date-input { color: transparent; }
.date-wrap.is-empty .date-input:focus { color: var(--ink); }
.date-wrap.is-empty .date-input:focus + .date-placeholder { display: none; }
.date-wrap + .invalid-feedback, .date-wrap:has(.is-invalid) + .invalid-feedback { font-size: .95rem; }
.date-input.is-invalid { background-image: none; padding-right: 3rem; }
.date-wrap:has(.is-invalid) .date-icon { color: var(--bs-form-invalid-color); }
/* show feedback for wrapped inputs */
.field:has(.is-invalid) .invalid-feedback { display: block; }
.invalid-feedback { font-size: .95rem; }

.inquiry-form .btn-xl { margin-top: .5rem; }
.call-btn { margin-top: 1rem; font-size: 1.35rem; }

/* Summary */
.summary { background: #fffdf6; border-radius: var(--radius); padding: 1.2rem; box-shadow: 0 6px 20px rgba(40, 60, 20, .12); outline: none; scroll-margin-top: calc(var(--header-h) + 12px); }
.summary-title { font-size: 1.4rem; font-weight: 600; color: var(--forest); display: flex; gap: .5rem; align-items: center; margin-bottom: .9rem; }
.summary-list { margin: 0 0 1rem; display: grid; gap: .1rem; }
.summary-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.summary-list dt { font-weight: 500; color: var(--muted); flex: none; }
.summary-list dd { margin: 0; text-align: right; font-weight: 600; }
.summary-notice {
  display: flex; gap: .55rem; align-items: flex-start; background: #fff6d8; border: 1px solid #f0d88a;
  color: #6b4f08; border-radius: 12px; padding: .75rem .9rem; font-weight: 500;
}
.summary-notice .bi { margin-top: .15rem; }
.copy-preview {
  width: 100%; font-size: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream-2);
  padding: .7rem .85rem; color: var(--ink); resize: none; margin-bottom: .8rem; line-height: 1.55;
}
.summary-actions { display: grid; gap: .3rem; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 1.5rem 0 1.25rem; color: var(--muted); font-size: .95rem; border-top: 1px solid var(--line); }
.site-footer a { color: var(--forest); font-weight: 500; }

/* ---------- Toast ---------- */
.app-toast-wrap { bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 12px); z-index: 1090; width: max-content; max-width: calc(100vw - 2rem); }
.app-toast { background: var(--forest-dark); color: #fff; border-radius: 14px; font-size: 1rem; width: auto; }

/* =========================================================
   Tablet
   ========================================================= */
@media (min-width: 576px) {
  .room-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .room-card-actions { grid-template-columns: 1fr; }
  .call-panel-actions { grid-template-columns: 1fr 1fr; }
  .detail-actions { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .brand-logo { width: 64px; height: 64px; }
  .detail-body { padding: 1.5rem 1.75rem 1.75rem; }
  .call-panel { grid-template-columns: 1fr auto; align-items: center; padding: 1.5rem 1.75rem; }
}

/* =========================================================
   Desktop — menu moves to header, no bottom nav
   ========================================================= */
@media (min-width: 992px) {
  :root { --header-h: 84px; }
  body { padding-bottom: 0; }
  .bottom-nav, .menu-toggle { display: none; }
  .desktop-nav { display: flex; align-items: center; gap: .35rem; }
  .desktop-nav > a:not(.btn) {
    display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 1rem; border-radius: 999px;
    color: var(--forest-dark); text-decoration: none; font-weight: 500; font-size: 1.08rem;
  }
  .desktop-nav > a:not(.btn):hover { background: var(--moss-light); }
  .desktop-nav > a.active { background: var(--forest); color: #fff; }
  .desktop-nav .btn { margin-left: .6rem; }
  .brand-logo { width: 68px; height: 68px; }

  .hero { min-height: min(78vh, 720px); }
  .hero-content { padding-bottom: 5.5rem; }
  .hero-mountains { height: 80px; }
  .page-banner { padding-bottom: 3.2rem; }
  .banner-mountains { height: 80px; }
  .sheet { padding-top: 2rem; }
  .app-toast-wrap { bottom: 24px; }
  .room-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
  .section { padding: 2.5rem 0; }
}

@media (min-width: 1200px) {
  .room-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Invalid state (after custom field border) */
.field-input.is-invalid { border-color: var(--bs-form-invalid-color); }
.field-input.is-invalid:focus { box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .2); }

/* =========================================================
   Accounts: header button, auth forms, customer pages
   ========================================================= */
.text-forest { color: var(--forest) !important; }
.header-actions { display: flex; align-items: center; gap: .15rem; flex: none; }
.account-btn {
  width: 46px; height: 48px; display: grid; place-items: center; border-radius: 12px;
  color: var(--forest); font-size: 1.65rem; text-decoration: none;
}
.account-btn.active, .account-btn:active { background: var(--moss-light); }
.account-chip {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 1rem; border-radius: 999px;
  border: 1.5px solid var(--moss-light); background: #fff; color: var(--forest-dark); font-weight: 500; font-size: 1.02rem;
}
.account-chip.active { border-color: var(--forest); }
.desktop-nav .dropdown-menu { border-radius: 14px; border-color: var(--line); font-size: 1rem; }
.desktop-nav .dropdown-item { min-height: 44px; display: flex; align-items: center; gap: .5rem; }
.desktop-nav .dropdown-item:active { background: var(--forest); }
.offcanvas-link-btn {
  display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 52px; padding: 0 1rem; border: 0; border-radius: 14px;
  background: transparent; color: var(--ink); font-size: 1.15rem; font-weight: 500; text-align: left;
}
.offcanvas-link-btn i { font-size: 1.3rem; color: var(--forest); }

.flash-wrap { padding-top: .9rem; }
.app-alert { border-radius: 14px; display: flex; gap: .55rem; align-items: flex-start; flex-wrap: wrap; }
.app-alert > .bi { margin-top: .2rem; }

.card-panel { background: #fffdf6; border-radius: var(--radius); padding: 1.2rem; box-shadow: 0 6px 20px rgba(40, 60, 20, .1); border: 1px solid rgba(127, 165, 72, .15); }
.panel-title { font-size: 1.2rem; font-weight: 600; color: var(--forest); display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.auth-container { max-width: 480px; }
.auth-alt { text-align: center; margin: 1.1rem 0 .3rem; font-size: 1.05rem; }
.auth-alt a { font-weight: 600; color: var(--forest); display: inline-block; padding: .6rem .2rem; }
.auth-help { text-align: center; color: var(--muted); font-size: .95rem; margin: 0; }
.pw-wrap { position: relative; }
.pw-wrap .field-input { padding-right: 3.2rem; }
.pw-toggle {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px;
  border: 0; background: transparent; color: var(--muted); font-size: 1.25rem; border-radius: 10px;
}
.pw-wrap .is-invalid ~ .pw-toggle { right: 1.6rem; }
.check-touch { min-height: 44px; display: flex; align-items: flex-start; gap: .6rem; padding-left: 0; }
.check-touch .form-check-input { width: 1.4em; height: 1.4em; margin: .15rem 0 0; flex: none; float: none; }
.check-touch .form-check-input:checked { background-color: var(--forest); border-color: var(--forest); }
.check-touch .invalid-feedback { width: 100%; }
.check-touch { flex-wrap: wrap; }

/* Customer account */
.account-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .8rem; }
.account-hello { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.account-hello > .bi { font-size: 2.4rem; color: var(--forest); }
.account-hello strong { display: block; font-size: 1.2rem; line-height: 1.2; }
.account-hello span { color: var(--muted); font-size: .95rem; }
.seg-tabs { display: flex; gap: .35rem; background: var(--moss-pale); border-radius: 999px; padding: .3rem; margin-bottom: 1.2rem; overflow-x: auto; scrollbar-width: none; }
.seg-tabs a {
  flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: 0 1rem;
  border-radius: 999px; color: var(--forest-dark); text-decoration: none; font-weight: 500; white-space: nowrap;
}
.seg-tabs a.active { background: var(--forest); color: #fff; box-shadow: 0 3px 10px rgba(31, 92, 35, .25); }
.seg-tabs-sm a { font-size: .95rem; padding: 0 .8rem; }

.booking-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .8rem; }
.booking-item { background: #fffdf6; border-radius: 16px; padding: 1rem; box-shadow: 0 4px 14px rgba(40, 60, 20, .08); border: 1px solid rgba(127, 165, 72, .15); }
.booking-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; margin-bottom: .35rem; }
.booking-room { font-size: 1.2rem; }
.booking-dates { color: var(--ink); }
.booking-dates .bi { color: var(--forest); }
.booking-note, .booking-reply { margin-top: .55rem; padding: .55rem .75rem; border-radius: 10px; font-size: .97rem; }
.booking-note { background: var(--cream-2); }
.booking-reply { background: var(--moss-pale); border-left: 3px solid var(--forest); }
.booking-meta { color: var(--muted); font-size: .85rem; margin-top: .5rem; }
.empty-state { text-align: center; padding: 2rem 1rem; }
.empty-state > .bi { font-size: 2.6rem; color: var(--moss); }
.empty-state p { color: var(--muted); margin: .5rem 0 1rem; }

.status-badge {
  display: inline-flex; align-items: center; gap: .3rem; flex: none; white-space: nowrap;
  font-size: .85rem; font-weight: 500; padding: .2rem .65rem; border-radius: 999px;
}
.status-new { background: #fff1c9; color: #7a5300; }
.status-contacted { background: #dceefd; color: #0b4f86; }
.status-confirmed { background: #d9f0d3; color: #1f5c23; }
.status-cancelled { background: #eee; color: #666; }
.status-muted { background: var(--cream-2); color: var(--muted); }

/* Inquiry page additions */
.contact-as {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; background: var(--moss-pale); border-radius: 12px;
  padding: .6rem .85rem; margin-bottom: .6rem; font-size: .98rem;
}
.contact-as .bi { color: var(--forest); font-size: 1.2rem; }
.contact-as a { margin-left: auto; color: var(--forest); font-weight: 500; padding: .5rem .2rem; }
.login-hint { text-align: center; color: var(--muted); margin: .9rem 0 0; font-size: .98rem; line-height: 1.8; }
.login-hint a { color: var(--forest); font-weight: 600; padding: .4rem .1rem; }
.booking-sent {
  display: flex; gap: .65rem; align-items: flex-start; background: #d9f0d3; color: var(--forest-dark);
  border-radius: 12px; padding: .8rem .9rem; margin-bottom: .9rem; font-weight: 500;
}
.booking-sent > .bi { font-size: 1.4rem; }
.booking-sent a { color: var(--forest-dark); display: inline-block; padding: .3rem 0; }

/* Installer */
.auth-body { background: var(--cream); }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.25rem; }
.auth-card { width: 100%; max-width: 460px; background: #fffdf6; border-radius: 22px; padding: 1.5rem; box-shadow: 0 10px 30px rgba(40, 60, 20, .12); }
.auth-logo { display: block; margin: 0 auto .5rem; border-radius: 50%; }
.auth-title { text-align: center; color: var(--forest); font-weight: 600; font-size: 1.6rem; }

/* =========================================================
   Admin
   ========================================================= */
.admin-body { background: #f4f1e6; padding-bottom: env(safe-area-inset-bottom, 0px); }
.admin-header { position: sticky; top: 0; z-index: 1030; background: var(--forest-dark); color: #fff; padding-top: env(safe-area-inset-top, 0px); box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.admin-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 58px; gap: .5rem; }
.admin-brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 600; font-size: 1.15rem; }
.admin-brand img { border-radius: 50%; background: #fff; }
.admin-header-actions { display: flex; align-items: center; gap: .15rem; }
.admin-icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: transparent; border: 0; font-size: 1.25rem; text-decoration: none; }
.admin-icon-btn:hover, .admin-icon-btn:focus-visible { background: rgba(255,255,255,.12); color: #fff; }
.admin-nav { background: var(--forest); }
.admin-nav-inner { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; padding-top: .35rem; padding-bottom: .35rem; }
.admin-nav-inner::-webkit-scrollbar { display: none; }
.admin-nav a {
  flex: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .95rem; border-radius: 999px;
  color: rgba(255,255,255,.88); text-decoration: none; font-weight: 500; white-space: nowrap;
}
.admin-nav a.active { background: #fff; color: var(--forest-dark); }
.count-pill { background: #f2b705; color: #3b2a00; border-radius: 999px; font-size: .78rem; font-weight: 600; padding: 0 .45rem; line-height: 1.5; }
.admin-main { padding: 1.1rem 0 2.5rem; }
.admin-title { font-size: 1.5rem; font-weight: 600; color: var(--forest-dark); margin-bottom: 1rem; display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.admin-title-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.admin-card { background: #fff; border-radius: 16px; padding: 1.1rem; box-shadow: 0 3px 12px rgba(40,60,20,.07); margin-bottom: 1rem; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.admin-card-head h2 { font-size: 1.1rem; font-weight: 600; color: var(--forest); margin: 0; display: flex; gap: .45rem; }
.admin-card-head a { color: var(--forest); font-weight: 500; padding: .5rem 0; }
.admin-cols { display: grid; gap: 1rem; }
.admin-cols > .admin-card { margin-bottom: 0; }
.admin-cols + .admin-card, .admin-cols + section { margin-top: 1rem; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-bottom: 1rem; }
.stat-tile { background: #fff; border-radius: 16px; padding: .9rem 1rem; text-decoration: none; color: var(--ink); box-shadow: 0 3px 12px rgba(40,60,20,.07); display: flex; flex-direction: column; min-height: 96px; }
.stat-num { font-size: 1.8rem; font-weight: 600; color: var(--forest); line-height: 1.2; }
.stat-label { font-size: .9rem; color: var(--muted); line-height: 1.35; }
.stat-alert { background: #fff6d8; }
.stat-alert .stat-num { color: #8a5d00; }

.admin-list { list-style: none; padding: 0; margin: 0; }
.admin-list li + li { border-top: 1px solid #eee9d8; }
.admin-list a { display: grid; grid-template-columns: 1fr auto; gap: .1rem .6rem; align-items: center; padding: .7rem .2rem; color: var(--ink); text-decoration: none; min-height: 48px; }
.admin-list .status-badge { grid-row: 1 / span 2; grid-column: 2; }
.admin-list-sub, .admin-row-sub { color: var(--muted); font-size: .88rem; }

.admin-filter { display: grid; gap: .6rem; margin-bottom: .9rem; }
.admin-filter-row { display: grid; gap: .6rem; }
.admin-filter .input-group .btn { min-width: 52px; border-radius: 0 12px 12px 0; }
.admin-filter .input-group .field-input { border-radius: 12px 0 0 12px; }
.admin-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.admin-row { display: flex; align-items: flex-start; justify-content: space-between; gap: .7rem; background: #fff; border-radius: 14px; padding: .85rem 1rem; color: var(--ink); text-decoration: none; box-shadow: 0 2px 8px rgba(40,60,20,.06); }
.admin-row:hover { box-shadow: 0 4px 14px rgba(40,60,20,.12); }
.admin-row-main { min-width: 0; }
.admin-row-top { display: flex; flex-wrap: wrap; gap: .2rem .5rem; align-items: baseline; }
.admin-row-id { color: var(--muted); font-size: .88rem; }
.is-hidden { opacity: .6; }
.admin-pager { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: 1rem; }

.admin-room { display: grid; grid-template-columns: 96px 1fr; gap: .8rem; background: #fff; border-radius: 14px; padding: .75rem; box-shadow: 0 2px 8px rgba(40,60,20,.06); }
.admin-room-thumb img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; display: block; }
.admin-room-name { font-weight: 600; font-size: 1.12rem; color: var(--ink); text-decoration: none; }
.admin-room-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }

.check-grid { display: grid; gap: .3rem; }
.admin-advanced summary { cursor: pointer; color: var(--forest); font-weight: 500; min-height: 44px; display: flex; align-items: center; }
.photo-preview { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.photo-preview img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; margin-bottom: .8rem; }
.photo-item { background: var(--cream); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.photo-thumb { position: relative; aspect-ratio: 4 / 3; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-cover { position: absolute; left: .4rem; top: .4rem; background: var(--forest); color: #fff; font-size: .75rem; padding: .05rem .5rem; border-radius: 999px; }
.photo-actions { display: flex; flex-wrap: wrap; }
.photo-actions button { flex: 1 0 44px; min-height: 44px; border: 0; background: transparent; color: var(--forest); font-size: 1.1rem; }
.photo-actions button:hover { background: var(--moss-pale); }
.danger-zone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; border: 1px solid #f1c7c7; }
.status-choices { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.status-choice input { position: absolute; opacity: 0; pointer-events: none; }
.status-choice span {
  display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 48px; border-radius: 12px;
  border: 2px solid transparent; font-weight: 500; cursor: pointer; opacity: .55;
}
.status-choice input:checked + span { border-color: currentColor; opacity: 1; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.status-choice input:focus-visible + span { outline: 3px solid var(--moss); outline-offset: 2px; }
.temp-pw { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.8rem; letter-spacing: .15em; font-weight: 600; width: 100%; margin: .4rem 0; user-select: all; }
.admin-toast-wrap { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }

@media (min-width: 768px) {
  .stat-grid { grid-template-columns: repeat(5, 1fr); }
  .admin-cols { grid-template-columns: 1fr 1fr; align-items: start; }
  .admin-filter-row { grid-template-columns: 200px 200px 1fr; }
  .admin-room { grid-template-columns: 120px 1fr auto; align-items: center; }
  .admin-room-thumb img { width: 120px; height: 84px; }
  .admin-room-actions { grid-column: auto; grid-template-columns: 1fr; min-width: 150px; }
  .check-grid { grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.5rem; }
  .status-choices { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 992px) {
  .header-actions { display: none; }
  .desktop-nav .dropdown { display: inline-block; }
}
.field-label { flex-wrap: wrap; }
.field-label > span { flex-basis: auto; }

/* =========================================================
   Payments
   ========================================================= */
.status-rejected { background: #fde2e2; color: #9b1c1c; }
.booking-pay {
  display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .6rem; margin-top: .6rem; padding: .5rem .75rem;
  background: var(--cream-2); border-radius: 10px; font-size: .95rem;
}
.booking-pay > .bi { color: var(--forest); }
.booking-pay .status-badge { margin-left: auto; }
.booking-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.booking-foot .booking-meta { margin-top: 0; }

.bank-card { background: linear-gradient(135deg, var(--forest), var(--forest-mid)); color: #fff; border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: 0 6px 20px rgba(31, 92, 35, .25); }
.bank-card .panel-title { color: #fff; }
.bank-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 0; border-top: 1px solid rgba(255,255,255,.2); }
.bank-name { font-size: .92rem; opacity: .85; }
.bank-no { font-size: 1.45rem; font-weight: 600; letter-spacing: .04em; user-select: all; }
.bank-holder { font-size: .95rem; }
.bank-card .btn-outline-forest { --bs-btn-bg: rgba(255,255,255,.95); flex: none; }
.bank-note { margin: .6rem 0 0; padding-top: .6rem; border-top: 1px solid rgba(255,255,255,.2); font-size: .95rem; }

.pay-list { list-style: none; padding: 0; display: grid; gap: .6rem; }
.pay-item { display: flex; gap: .75rem; background: #fffdf6; border-radius: 14px; padding: .65rem; border: 1px solid rgba(127,165,72,.18); }
.pay-thumb { flex: none; width: 64px; height: 84px; border-radius: 8px; overflow: hidden; background: var(--cream-2); }
.pay-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pay-info { flex: 1; min-width: 0; }

.slip-drop {
  display: grid; place-items: center; text-align: center; min-height: 150px; padding: 1rem; cursor: pointer;
  border: 2px dashed #b9c79e; border-radius: 14px; background: #fff; color: var(--forest); font-weight: 500; overflow: hidden;
}
.slip-drop:hover { background: var(--moss-pale); }
.slip-drop .bi { font-size: 2rem; }
.slip-drop small { color: var(--muted); font-weight: 400; }
.slip-drop img { max-height: 320px; max-width: 100%; border-radius: 8px; margin-bottom: .5rem; }
.slip-drop.is-invalid { border-color: var(--bs-form-invalid-color); }
#slip:focus-visible + * , #slip:focus + .slip-drop { outline: 3px solid var(--moss); }

.admin-pay-row { align-items: center; }
.admin-pay-thumb { width: 52px; height: 68px; object-fit: cover; border-radius: 8px; flex: none; background: var(--cream-2); }
.admin-pay-row .admin-row-main { flex: 1; }
.slip-full { display: block; background: #f2f2f2; border-radius: 12px; overflow: hidden; text-align: center; }
.slip-full img { max-width: 100%; max-height: 70vh; display: inline-block; }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }

/* =========================================================
   Reviews & points
   ========================================================= */
.stars { color: #f0a500; white-space: nowrap; display: inline-flex; gap: 1px; }
.stars-lg { font-size: 1.35rem; gap: 3px; }
.text-warning { color: #f0a500 !important; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 2.4rem; color: #d6d2c2; cursor: pointer; min-width: 48px; min-height: 48px; display: grid; place-items: center; line-height: 1; }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: #f0a500; }
.star-input input:focus-visible + label { outline: 3px solid var(--moss); border-radius: 8px; }
.points-hint { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; background: #fff6d8; color: #6b4f08; border-radius: 12px; padding: .65rem .85rem; margin-bottom: 1rem; }

.review-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.review-item { background: #fffdf6; border-radius: 16px; padding: 1rem; border: 1px solid rgba(127,165,72,.18); box-shadow: 0 3px 12px rgba(40,60,20,.06); }
.review-head { display: flex; align-items: center; gap: .65rem; }
.review-head .stars { margin-left: auto; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--moss-light); color: var(--forest-dark); display: grid; place-items: center; font-weight: 600; font-size: 1.15rem; flex: none; }
.review-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.review-body { margin: .6rem 0 0; white-space: normal; }
.review-snippet { color: var(--ink); font-size: .95rem; margin-top: .2rem; }
.review-photos { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.review-photos img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; }
.reviews-section { margin-top: 1.5rem; }
.reviews-section .section-title { margin-bottom: .8rem; }
.rating-summary { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.rating-big { font-size: 2.6rem; font-weight: 600; color: var(--forest-dark); line-height: 1; }

.booking-review { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .6rem; margin-top: .6rem; padding: .5rem .75rem; background: #fffaf0; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: .95rem; min-height: 44px; }
.btn-review { background: #fff3cd; color: #6b4f08; border: 1.5px solid #f0d88a; font-weight: 600; }
.btn-review:hover { background: #ffe9a8; color: #5a4106; }
.pts-plus { color: var(--forest); font-weight: 600; }
.pts-minus { color: #b42318; font-weight: 600; }

.points-card { background: linear-gradient(135deg, #f6c445, #e9a21b); color: #3b2a00; border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: 0 6px 20px rgba(233, 162, 27, .3); }
.points-label { font-weight: 500; }
.points-num { font-size: 2.6rem; font-weight: 700; line-height: 1.15; }
.points-num small { font-size: 1.1rem; font-weight: 500; }
.points-earn { font-size: .95rem; opacity: .9; }
.points-list { list-style: none; padding: 0; margin: 0; background: #fffdf6; border-radius: 14px; border: 1px solid rgba(127,165,72,.18); }
.points-list li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .7rem .9rem; }
.points-list li + li { border-top: 1px solid #eee9d8; }
.points-adjust { display: grid; gap: .5rem; }
@media (min-width: 768px) { .points-adjust { grid-template-columns: 170px 120px 1fr auto; } }

/* =========================================================
   Gallery (ภาพบรรยากาศ)
   ========================================================= */
.gallery-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: .9rem; } }
.gallery-tile { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--moss-pale); cursor: zoom-in; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery-tile:hover img { transform: scale(1.04); }
.gallery-tile:focus-visible { outline: 3px solid var(--moss); outline-offset: 2px; }
.gallery-cap-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem .6rem .45rem; color: #fff; font-size: .9rem; text-align: left; line-height: 1.3;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-modal .modal-content { background: #111; border: 0; border-radius: 14px; overflow: hidden; }
.gallery-modal .carousel-item { margin: 0; position: relative; }
.gallery-modal .carousel-item img { width: 100%; max-height: 80vh; max-height: 80dvh; object-fit: contain; display: block; background: #111; }
.gallery-modal figcaption { color: #eee; padding: .6rem .9rem; display: flex; justify-content: space-between; gap: .8rem; font-size: .95rem; min-height: 2.6rem; }
.gallery-count { opacity: .7; white-space: nowrap; margin-left: auto; }
.gallery-modal .carousel-control-prev, .gallery-modal .carousel-control-next { width: 56px; bottom: 2.6rem; }
.gallery-close { position: absolute; top: .5rem; right: .5rem; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 1.2rem; }
.gallery-cap { border-radius: 0; border-left: 0; border-right: 0; font-size: 16px; min-height: 44px; }

/* Notifications settings */
.notify-banner { display: flex; align-items: center; gap: .8rem; background: #fff3cd; color: #5a4106; border: 1.5px solid #f0d88a; border-radius: 14px; padding: .8rem 1rem; margin-bottom: 1rem; text-decoration: none; min-height: 44px; }
.notify-banner > .bi:first-child { font-size: 1.6rem; }
.notify-help { background: var(--moss-pale); border-radius: 12px; padding: .6rem .9rem; margin-bottom: .9rem; }
.notify-help summary { cursor: pointer; font-weight: 500; color: var(--forest); min-height: 32px; display: flex; align-items: center; }
.notify-help ol { margin: .5rem 0 .2rem; padding-left: 1.2rem; }
.notify-help li { margin-bottom: .35rem; }
.notify-help code { word-break: break-all; }
.pair-code { font-size: 1.2rem; letter-spacing: .1em; background: #fff; padding: 0 .4rem; border-radius: 6px; }
.check-row { min-height: 44px; display: flex; align-items: center; gap: .6rem; }
.check-row .form-check-input { width: 1.4rem; height: 1.4rem; margin: 0; }

/* =========================================================
   Map & nearby places
   ========================================================= */
.map-frame { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--moss-pale); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.location-card { background: #fffdf6; border-radius: var(--radius); border: 1px solid rgba(127,165,72,.2); box-shadow: 0 4px 16px rgba(40,60,20,.07); overflow: hidden; }
.location-card .map-frame { border-radius: 0; }
.location-body { padding: 1rem 1.1rem 1.1rem; }
.location-note { background: var(--moss-pale); border-radius: 12px; padding: .65rem .85rem; }
.nav-btns { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
@media (min-width: 992px) {
  .location-card { display: grid; grid-template-columns: 1.4fr 1fr; }
  .location-card .map-frame { aspect-ratio: auto; min-height: 340px; }
}
.cat-filter { display: flex; gap: .45rem; overflow-x: auto; padding: .1rem 0 .7rem; scrollbar-width: none; }
.cat-filter::-webkit-scrollbar { display: none; }
.chip-btn { flex: none; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--forest-dark); font-weight: 500; white-space: nowrap; }
.chip-btn.active { background: var(--forest); border-color: var(--forest); color: #fff; }
.place-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
@media (min-width: 768px) { .place-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .place-list { grid-template-columns: repeat(3, 1fr); } }
.place-card { background: #fffdf6; border-radius: 16px; overflow: hidden; border: 1px solid rgba(127,165,72,.18); box-shadow: 0 3px 12px rgba(40,60,20,.06); display: flex; flex-direction: column; }
.place-card[hidden] { display: none; }
.place-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.place-img-empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--moss-pale), var(--moss-light)); color: var(--forest); font-size: 2.6rem; }
.place-body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.place-meta { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .9rem; color: #5b6b52; }
.place-cat { color: var(--forest); font-weight: 500; }
.place-name { font-size: 1.2rem; font-weight: 600; margin: 0; color: var(--forest-dark); }
.place-desc { margin: 0; color: var(--ink); font-size: .95rem; }
.place-nav { margin-top: auto; align-self: flex-start; }
.place-icon { width: 56px; height: 56px; border-radius: 10px; background: var(--moss-pale); color: var(--forest); display: grid; place-items: center; font-size: 1.5rem; flex: none; }
.place-admin-row { display: flex; align-items: stretch; gap: .3rem; }
.place-admin-row .admin-row { flex: 1; min-width: 0; }
.place-admin-row.is-hidden .admin-row { opacity: .55; }
.place-admin-actions { display: flex; align-items: center; }
.place-admin-actions button { width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--forest); font-size: 1.1rem; }
.place-admin-actions button:hover { background: var(--moss-pale); }
.cat-pick { display: flex; flex-wrap: wrap; gap: .4rem; }
.cat-pick .btn { border-radius: 999px; }
.place-edit-img { display: block; width: 100%; max-width: 320px; border-radius: 12px; margin-bottom: .5rem; }

/* Desktop header: never wrap menu labels; compact between 992–1299px */
@media (min-width: 992px) {
  .desktop-nav > a, .desktop-nav .btn, .account-chip { white-space: nowrap; flex: none; }
  .header-inner { gap: 1rem; }
  .brand { min-width: 0; flex-shrink: 1; }
}
@media (min-width: 992px) and (max-width: 1299.98px) {
  .desktop-nav { gap: .1rem; }
  .desktop-nav > a:not(.btn) { padding: 0 .7rem; font-size: 1rem; gap: .35rem; }
  .desktop-nav .btn .call-num { display: none; }
  .desktop-nav .btn { margin-left: .3rem; width: 48px; padding: 0; justify-content: center; }
  .brand-name { font-size: 1.35rem; }
}
@media (min-width: 992px) and (max-width: 1099.98px) {
  .desktop-nav > a:not(.btn) .bi, .desktop-nav > a:not(.btn) .icon-bed { display: none; }
  .brand-divider, .brand-name { display: none; }
}
/* Place photos: swipeable strip */
.place-photos { position: relative; }
.place-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.place-strip::-webkit-scrollbar { display: none; }
.place-strip .place-img { flex: 0 0 100%; scroll-snap-align: start; }
.place-strip:focus-visible { outline: 3px solid var(--moss); outline-offset: -3px; }
.place-count { position: absolute; top: .5rem; right: .5rem; background: rgba(0,0,0,.55); color: #fff; font-size: .8rem; padding: .1rem .5rem; border-radius: 999px; pointer-events: none; }
.place-dots { position: absolute; left: 0; right: 0; bottom: .45rem; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.place-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); transition: all .2s; }
.place-dots i.on { background: #fff; width: 16px; border-radius: 3px; }

/* Language switcher */
.lang-btn, .lang-btn-m {
  display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; min-width: 44px; padding: 0 .75rem;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--forest-dark); font-weight: 600; white-space: nowrap;
}
.lang-btn-m { padding: 0 .6rem; font-size: .9rem; }
.lang-btn-m .bi { font-size: 1.15rem; }
.lang-dd .dropdown-menu { border-radius: 14px; border-color: var(--line); min-width: 9rem; }
.lang-dd .dropdown-item { min-height: 44px; display: flex; align-items: center; font-size: 1.05rem; }
.lang-dd .dropdown-item.active, .lang-dd .dropdown-item:active { background: var(--forest); color: #fff; }
.header-actions { gap: .4rem; }
.desktop-nav .lang-dd { margin-left: .3rem; }
/* Chinese: Kanit has no CJK glyphs — fall back to system CJK fonts */
.lang-zh { --bs-body-font-family: 'Kanit', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif; }
.i18n-box summary { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.i18n-lang { border: 1px solid var(--line); border-radius: 12px; padding: .6rem .9rem .2rem; margin-top: .7rem; }
.i18n-lang legend { float: none; width: auto; font-size: 1rem; font-weight: 600; padding: 0 .4rem; margin: 0; color: var(--forest); }

/* ===== Booking confirmation (voucher) & check-in ===== */
.voucher { background: #fff; border-radius: 22px; box-shadow: 0 10px 30px rgba(30, 60, 20, .14); overflow: hidden; border: 1px solid rgba(31, 92, 35, .12); }
.voucher-head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; background: linear-gradient(135deg, #1f5c23, #2e7d32); color: #fff; }
.voucher-head img { border-radius: 50%; background: #fff; flex: none; }
.voucher-site { font-weight: 600; font-size: 1.1rem; line-height: 1.2; }
.voucher-ok { font-size: .95rem; opacity: .95; }
.voucher-qr-wrap { text-align: center; padding: 1.3rem 1.2rem 1rem; border-bottom: 2px dashed var(--line); position: relative; }
.voucher-qr { width: min(240px, 70vw); aspect-ratio: 1; margin: 0 auto; }
.voucher-qr svg { width: 100%; height: 100%; display: block; }
.voucher-code-label { margin-top: .6rem; color: var(--muted); font-size: .9rem; }
.voucher-code { font-size: 1.9rem; font-weight: 700; letter-spacing: .12em; color: var(--forest); font-variant-numeric: tabular-nums; }
.voucher-hint { margin: .3rem 0 0; color: var(--muted); font-size: .95rem; }
.voucher-checked { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .8rem; padding: .35rem .8rem; border-radius: 999px; background: #e3f0ff; color: #0b4f8a; font-weight: 600; font-size: .92rem; }
.voucher-list { padding: .6rem 1.2rem 0; margin: 0; }
.voucher .booking-reply { margin: .4rem 1.2rem 0; }
.voucher-foot { padding: .9rem 1.2rem 1.1rem; color: var(--muted); font-size: .92rem; }
.voucher-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 1rem 0; }
.voucher-actions #printBtn { grid-column: 1 / -1; }
.btn-voucher { background: var(--forest); color: #fff; }
.checkin-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .6rem; border-radius: 999px; background: #e3f0ff; color: #0b4f8a; font-weight: 600; font-size: .85rem; }

/* admin check-in */
.checkin-search { display: flex; gap: .5rem; }
.checkin-search input { text-transform: uppercase; letter-spacing: .1em; font-weight: 600; font-size: 1.2rem; }
.checkin-result { border-radius: 18px; padding: 1.1rem 1.2rem; margin-top: 1rem; border: 2px solid; }
.checkin-result.ok { border-color: #2e7d32; background: #f2f9ec; }
.checkin-result.done { border-color: #1565c0; background: #eef5fd; }
.checkin-result.bad { border-color: #c62828; background: #fdf0f0; }
.checkin-result-title { font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.checkin-result.ok .checkin-result-title { color: #1f5c23; }
.checkin-result.done .checkin-result-title { color: #0d47a1; }
.checkin-result.bad .checkin-result-title { color: #b71c1c; }
.checkin-warn { background: #fff4d6; border-radius: 10px; padding: .5rem .75rem; margin-bottom: .75rem; color: #7a5200; }
.scan-box { position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1rem; }
.scan-box[hidden] { display: none; }
.scan-box video { width: min(420px, 100%); border-radius: 18px; background: #000; }
.scan-box p { color: #fff; margin: 0; }

@media print {
  .site-header, .bottom-nav, .page-banner, .site-footer, .no-print, .app-toast-wrap { display: none !important; }
  body { background: #fff !important; padding: 0 !important; }
  .sheet { padding: 0 !important; margin: 0 !important; background: #fff !important; }
  .voucher { box-shadow: none; border: 1px solid #999; }
  .voucher-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.checkin-banner { background: #eaf5e1; border-color: #9cc98a; color: #1f5c23; }

/* ===== Revenue dashboard ===== */
.viz-filters { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .4rem; }
.viz-filters .form-select { width: auto; min-width: 9rem; }
.viz-note { color: #666; font-size: .85rem; margin-bottom: 1rem; }
.kpi-hero { padding: 1.1rem 1.2rem; }
.kpi-label { color: #666; font-size: .92rem; }
.kpi-hero-value { font-size: 3rem; font-weight: 600; line-height: 1.1; color: #191919; }
.kpi-hero-value small { font-size: 1rem; font-weight: 400; color: #666; }
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi-tile { background: #fff; border-radius: 16px; padding: .9rem 1rem; box-shadow: 0 3px 12px rgba(40,60,20,.07); display: flex; flex-direction: column; gap: .15rem; color: #191919; text-decoration: none; }
.kpi-link:hover { box-shadow: 0 5px 16px rgba(40,60,20,.14); }
.kpi-value { font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
.kpi-sub, .kpi-delta { font-size: .85rem; color: #666; }
.kpi-delta { display: inline-flex; align-items: center; gap: .2rem; font-weight: 500; }
.kpi-delta.is-up { color: #1f6b28; }
.kpi-delta.is-down { color: #b3261e; }
.kpi-status { color: #7a5200; font-weight: 500; }
.kpi-status .bi { color: #e0a000; }
.viz-card { padding: 1.1rem 1.1rem .9rem; }
.viz-title { font-size: 1.1rem; font-weight: 600; margin: 0; color: #191919; }
.viz-sub { color: #666; font-size: .85rem; margin: .1rem 0 .6rem; }
.viz-chart { position: relative; width: 100%; }
.viz-svg { display: block; overflow: visible; }
.viz-grid { stroke: #ececec; stroke-width: 1; }
.viz-base { stroke: #cfcfcf; stroke-width: 1; }
.viz-tick { fill: #666; font-size: 11px; font-variant-numeric: tabular-nums; }
.viz-tick.is-current { fill: #191919; font-weight: 600; }
.viz-label { fill: #191919; font-size: 11.5px; font-weight: 600; }
.viz-empty { fill: #666; font-size: 13px; }
.viz-bar { fill: #2f7a2c; transition: opacity .12s; }
.viz-bar.is-dim { opacity: .35; }
.viz-hit { fill: transparent; cursor: pointer; outline: none; }
rect.viz-hit:focus-visible { stroke: #1f5c23; stroke-width: 2; }
.viz-tip { position: fixed; z-index: 1500; pointer-events: none; background: #fff; border-radius: 10px; padding: .45rem .7rem; box-shadow: 0 6px 20px rgba(0,0,0,.18); border: 1px solid #e5e5e5; max-width: 260px; }
.viz-tip-value { font-weight: 700; color: #191919; font-size: 1.05rem; }
.viz-tip-title { color: #191919; font-size: .88rem; }
.viz-tip-sub { color: #666; font-size: .8rem; }
.hbar-row { padding: .35rem 0; border-radius: 8px; }
.hbar-row:focus-visible { outline: 2px solid #1f5c23; outline-offset: 2px; }
.hbar-name { font-size: .92rem; color: #191919; margin-bottom: .2rem; overflow-wrap: anywhere; }
.hbar-track { display: flex; align-items: center; gap: .45rem; }
.hbar-bar { height: 18px; background: #2f7a2c; border-radius: 0 4px 4px 0; flex: none; }
.hbar-val { font-size: .88rem; font-weight: 600; color: #191919; font-variant-numeric: tabular-nums; white-space: nowrap; }
.viz-table th, .viz-table td { padding: .45rem .5rem; font-size: .92rem; }
.viz-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.viz-table thead th { color: #666; font-weight: 500; border-bottom-color: #ddd; }
.viz-table tr.is-current th, .viz-table tr.is-current td { background: #f2f9ec; font-weight: 600; }
.viz-table tfoot th, .viz-table tfoot td { font-weight: 700; border-top: 2px solid #ccc; }

/* ===== Seasonal pricing ===== */
.season-list { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .5rem; }
.season-list li { display: grid; grid-template-columns: 1fr auto; gap: .1rem .8rem; padding: .65rem .85rem; border-radius: 12px; background: var(--moss-pale); }
.season-name { font-weight: 600; }
.season-dates { grid-column: 1; color: var(--muted); font-size: .92rem; }
.season-effect { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 700; color: var(--forest); white-space: nowrap; }
.quote-box { margin-top: .9rem; padding: .85rem 1rem; border-radius: 14px; background: var(--moss-pale); border: 1px solid rgba(127,165,72,.3); }
.quote-box[hidden] { display: none; }
.quote-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.quote-total { font-size: 1.35rem; font-weight: 700; color: var(--forest); white-space: nowrap; }
.quote-lines { list-style: none; padding: 0; margin: .4rem 0 0; font-size: .92rem; color: var(--muted); }
.quote-lines li { display: flex; justify-content: space-between; gap: .6rem; padding: .15rem 0; }
.quote-lines .is-season { color: #7a4b00; }
.quote-note { font-size: .82rem; color: var(--muted); margin: .4rem 0 0; }
.money-list > div dd.balance { color: #b3261e; }

/* ===== Member tiers & redeem ===== */
.tier-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .65rem; border-radius: 999px; font-size: .85rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.tier-member { background: #eef3e6; color: #2f4a22; border-color: #d5e2c2; }
.tier-silver { background: #eef0f3; color: #3c4450; border-color: #cfd5dd; }
.tier-gold { background: #fff3d1; color: #6b4b00; border-color: #f0d68a; }
.tier-card { background: #fffdf6; border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: 0 6px 20px rgba(40, 60, 20, .08); border: 1px solid rgba(127, 165, 72, .15); }
.tier-meter { height: 10px; border-radius: 999px; background: #dcebcf; overflow: hidden; }
.tier-meter span { display: block; height: 100%; border-radius: 999px; background: var(--forest); min-width: 4px; }
.tier-next { margin: .45rem 0 .8rem; color: var(--muted); font-size: .95rem; }
.tier-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.tier-steps li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: 12px; }
.tier-steps li.is-current { background: var(--moss-pale); }
.tier-cond { color: var(--muted); font-size: .9rem; }
.tier-perk { font-weight: 600; font-size: .9rem; white-space: nowrap; }
.redeem-card { background: #fff8e6; border: 1px solid #f0d68a; border-radius: var(--radius); padding: 1rem 1.1rem; }
.redeem-form { display: flex; gap: .5rem; }
.redeem-form input { max-width: 10rem; }

/* ---------- LINE Login ---------- */
.btn-line { background: #06C755; border-color: #06C755; color: #fff; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn-line:hover, .btn-line:focus-visible { background: #05b04b; border-color: #05b04b; color: #fff; }
.btn-line .bi-line { font-size: 1.35em; }
.auth-or { display: flex; align-items: center; gap: .75rem; margin: 1.1rem 0; color: var(--bs-secondary-color); font-size: .95rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid rgba(0,0,0,.12); }
.line-hello { display: flex; gap: .8rem; align-items: center; background: #e9f9ef; border-radius: 1rem; padding: .85rem 1rem; margin-bottom: 1.2rem; }
.line-hello-icon { width: 2.6rem; height: 2.6rem; flex: none; border-radius: 50%; background: #06C755; color: #fff; display: grid; place-items: center; font-size: 1.35rem; }
.line-linked { color: #05914a; font-weight: 600; }
.copy-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.copy-code { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; background: #f3f5f0; border-radius: .6rem; padding: .7rem .8rem; color: var(--bs-body-color); font-size: .9rem; }

/* contact: several call buttons */
.call-list { display: grid; gap: .6rem; margin-top: 1rem; }
.call-list .call-btn { margin-top: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .1rem .5rem; line-height: 1.25; }
.call-list .call-no { font-weight: 700; letter-spacing: .02em; }

/* ---------- Video clips ---------- */
.video-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); align-items: start; }
.video-card { margin: 0; background: #fff; border-radius: 1.1rem; overflow: hidden; box-shadow: 0 2px 10px rgba(30,60,20,.08); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #12230f; }
.video-card.is-vertical { background: #12230f; }
.video-card.is-vertical .video-frame { aspect-ratio: 9 / 16; width: min(100%, 15rem, calc(58vh * 9 / 16)); margin: 0 auto; }
.video-card.is-vertical .video-frame.is-playing { width: min(100%, 22rem); }
.video-card.is-vertical .video-cap { background: #fff; }
.video-card.is-tiktok .video-frame.is-playing { aspect-ratio: auto; height: min(740px, 82vh); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: pointer; color: #fff; }
.video-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; color: rgba(255,255,255,.85);
  background: radial-gradient(circle at 30% 20%, #3c8a35, #17361a 70%); }
.video-card.is-tiktok .video-placeholder { background: radial-gradient(circle at 30% 20%, #2b2b2b, #050505 70%); }
.video-card.is-facebook .video-placeholder { background: radial-gradient(circle at 30% 20%, #3b7ee8, #123a85 70%); }
.video-play-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 4.2rem; height: 4.2rem; border-radius: 50%;
  background: rgba(0,0,0,.55); display: grid; place-items: center; font-size: 2.4rem; transition: transform .15s, background .15s; }
.video-play:hover .video-play-icon, .video-play:focus-visible .video-play-icon { background: #2f7a2c; transform: translate(-50%, -50%) scale(1.06); }
.video-play:focus-visible { outline: 3px solid #f2c94c; outline-offset: -3px; }
.video-provider { position: absolute; left: .6rem; bottom: .6rem; background: rgba(0,0,0,.6); border-radius: 2rem; padding: .2rem .7rem; font-size: .85rem; }
.video-cap { padding: .75rem .9rem .85rem; display: grid; gap: .2rem; }
.video-title { font-weight: 600; line-height: 1.35; }
.video-meta { font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.video-src { font-size: .8rem; font-weight: 600; justify-self: start; border-radius: 2rem; padding: .1rem .6rem; }
.video-src.is-owner { background: #e3f0dc; color: #24601f; }
.video-src.is-guest { background: #fdf0d5; color: #7a4d00; }
.video-open { font-size: .88rem; color: var(--forest); justify-self: start; padding: .3rem 0; }
.video-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.video-tabs a { border-radius: 2rem; padding: .5rem 1rem; background: #eef3e8; color: var(--forest); font-weight: 600; text-decoration: none; }
.video-tabs a.active { background: var(--forest); color: #fff; }
.video-tabs .count { opacity: .75; font-weight: 500; }
.video-pending { display: flex; gap: .6rem; align-items: center; background: #fdf6e6; border-radius: .9rem; padding: .7rem .9rem; margin-top: .8rem; font-size: .95rem; }
.admin-video { background: #fff; border-radius: 1.1rem; overflow: hidden; box-shadow: 0 2px 10px rgba(30,60,20,.08); }
.admin-video .video-card { box-shadow: none; border-radius: 0; }
.admin-video-body { padding: 0 .9rem .9rem; }

/* Facebook page links */
.btn-facebook { background: #1877F2; border-color: #1877F2; color: #fff; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn-facebook:hover, .btn-facebook:focus-visible { background: #0e63d3; border-color: #0e63d3; color: #fff; }
.footer-fb { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .2rem; }
.footer-fb .bi-facebook { color: #1877F2; font-size: 1.15em; }

/* Phone header: keep the full name visible (compact logo + buttons) */
@media (max-width: 575.98px) {
  .header-inner { gap: .4rem; }
  .brand { gap: .5rem; }
  .brand-logo { width: 48px; height: 48px; }
  .brand-divider { display: none; }
  .brand-name { font-size: clamp(1.05rem, 5vw, 1.45rem); }
  .header-actions { gap: .15rem; }
  .account-btn { width: 42px; font-size: 1.5rem; }
  .menu-toggle { width: 42px; font-size: 1.85rem; }
  .lang-btn-m { padding: 0 .5rem; gap: .2rem; }
}
@media (max-width: 399.98px) {
  .lang-btn-m .bi { display: none; }
}
@media (max-width: 345.98px) {
  .brand-name { white-space: normal; font-size: 1rem; line-height: 1.1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
