/* =====================
   Brand Palette 
   ===================== */
:root {
  --brand-brown: #AF9876;  
  --brand-beige: #DED6C0;
  --brand-moss:  #86977C;
  --ink-900: #2e2a25;
  --ink-700: #4a463f;
  --white:   #ffffff;

  /* Navbar fixed height */
  --navbar-height: 64px;
}

body {
  font-family: "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-900);
  background: #faf8f4;
  margin: 0;
}

html, body { height: 100%; }

/* ใช้เฉพาะหน้าเว็บปกติ (ไม่กระทบ admin) */
body:not(.admin-body){
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* footer ของคุณใช้ class .site-footer */
body:not(.admin-body) .site-footer{
  margin-top: auto;   /* ✅ ดัน footer ไปล่างสุดเสมอ */
}

img {
  max-width: 100%;
  height: auto;
}

/* =====================
   Navbar (Fixed-Height)
   ===================== */
.navbar {
  /* อย่าตั้ง position ตรงนี้ จะให้ fixed-top ของ Bootstrap จัดการ */
  background: rgba(222,214,192,0.99);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(175,152,118,.35);
  min-height: var(--navbar-height);
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  z-index: 1030; /* ให้ลอยเหนือ content อื่น ๆ */
  transition:
    background-color .25s ease,
    box-shadow .25s ease,
    padding .25s ease,
    transform .25s ease;
  transform: translateY(0);
}

.navbar.navbar-scrolled {
  background: rgba(222,214,192,0.95);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  border-bottom-color: rgba(175,152,118,.45);
  transform: translateY(0); /* เลื่อนลงมานิดเดียวให้รู้สึกมี motion */
}

.navbar.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}


/* LOGO WRAPPER - absolute, ไม่ให้ดัน navbar (desktop) */
.logo-wrapper {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
  margin: 0;
  line-height: 0;
  z-index: 30;
}

/* LOGO - ขยายได้เต็มที่ ไม่ดัน navbar (desktop) */
.navbar-logo {
  height: 150px;     /* ← ปรับได้ตามต้องการบน desktop */
  width: auto;
  display: block;
  pointer-events: auto;
  user-select: none;
}

/* Menu spacing (เพื่อไม่ให้ทับโลโก้บน desktop) */
.navbar-nav {
  margin-left: 200px; /* ดันเมนูออกจากโลโก้ */
}

.navbar .nav-link {
  color: var(--ink-900);
  font-size: 1rem;
  padding: 0.5rem 1rem;
}
.navbar .nav-link:hover {
  color: var(--brand-moss);
}

/* ปุ่มจองห้อง */
.btn-brand { 
  background: #738569; 
  color: var(--white) !important;
  border: none;
  transition: background-color .2s ease, color .2s ease;
}
.btn-brand:hover { 
  background: #5f6f54;
  color: var(--white) !important;
}

/* =====================
   Navbar Responsive
   ===================== */
@media (max-width: 991.98px) {
  .navbar {
    min-height: auto;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    overflow: visible;
  }

  .logo-wrapper {
    position: static;
    transform: none;
    margin-right: auto;
    line-height: 0;
  }

  .navbar-logo {
    height: 56px;
    transform: scale(1.8);
    transform-origin: left center;
  }

  .navbar-nav {
    margin-left: 0;
  }
}


/* =====================
   Hero Section
   ===================== */
.hero { 
  position: relative;
  height: calc(100vh - var(--navbar-height));
  max-height: 780px;
  min-height: 540px;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition:
    opacity 1.6s ease-in-out,
    transform 8s ease-out;
  will-change: opacity, transform;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1.0);
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ทำพื้นด้านล่างมืดขึ้น ให้ตัวหนังสือเด่นขึ้น */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(0,0,0,0.2) 0,
      transparent 32%
    ),
    radial-gradient(
      circle at 85% 10%,
      rgba(0,0,0,0.10) 0,
      transparent 30%
    ),
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.15) 0,
      rgba(0,0,0,0.38) 72%
    );
  z-index: 1;
  pointer-events: none;
}

/* ขยับทั้งข้อความ + กล่องค้นหาห้องขึ้นจากขอบล่าง */
.hero-content { 
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;   /* ← ปรับสูง–ต่ำได้ 4–7rem ตามที่ชอบ */
}

/* กล่องข้อความใน hero */
.hero-box {
  max-width: 480px;
  padding: 2.75rem 2.4rem;
  border-radius: 1.5rem;
  background: rgba(10, 8, 6, 0.92);   /* เข้มขึ้น ไม่กลืนกับพื้น */
  color: var(--white);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
}

/* ตัวหนังสือบนสไลด์ให้เด่นขึ้น */
.hero-title {
  font-size: 2.4rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 3px 10px rgba(0,0,0,0.7);
}

.hero-text {
  font-size: 1rem;
  color: #fdfdfd;
  opacity: 0.98;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* กล่องค้นหาห้องว่างให้ลอยขึ้นมาจากขอบล่างมากขึ้น */
.booking-card {
  margin-top: -160px;   /* เดิม -120 ถ้าต้องการสูงกว่านี้ลอง -180 ได้ */
  position: relative;
  z-index: 5;
}

.jp-badge {
  display: inline-block;
  background-color: rgba(170, 147, 113, 0.85);
  color: #ffffff;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  margin-bottom: 15px;
}

/* =====================
   Footer (Yukata style)
   ===================== */

.site-footer {
  background: #6d6b64; /* สีพื้นเทา-น้ำตาลคล้ายในรูป */
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}

/* แถบหลักด้านบน */
.footer-main {
  padding: 3rem 0 2.5rem;
}

/* แถบล่าง */
.footer-bottom {
  background: #5a5852;
  padding: 0.75rem 0;
}

.text-footer-light {
  color: rgba(255,255,255,0.88);
}

.text-footer-muted {
  color: rgba(255,255,255,0.7);
}

.footer-logo {
  height: 200px;        /* ปรับได้ตามต้องการ */
  width: auto;
}

.footer-uidia-logo {
  height: 55px;    /* ปรับได้ตามขนาดที่ต้องการ */
  width: auto;
  opacity: 0.92;
  margin-left: 18px;
  transition: opacity .25s ease, transform .25s ease;
}

.footer-uidia-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

.footer-sipp-logo{
  height: auto;          /* ปรับได้ตามชอบ (แนะนำ 60-80) */
  width: 100px;
  opacity: 0.95;
  margin-left: -27px;
  transition: opacity .25s ease, transform .25s ease;
}

.footer-sipp-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* เส้นแบ่งแนวตั้งระหว่างคอลัมน์กลางและขวา (บนหน้าจอใหญ่) */
.footer-column {
  border-left: 1px solid rgba(255,255,255,0.25);
  padding-left: 2.5rem;
}
.footer-column:first-of-type {
  border-left: none;
  padding-left: 0;
}

.footer-heading {
  font-size: 0.8rem;
  /* letter-spacing: 0.22em; */
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.35rem;
}

.footer-address {
  color: rgba(255,255,255,0.86);
  line-height: 1.6;
}

.footer-link {
  color: #a8c6dd;  /* สีฟ้าอ่อนคล้ายในรูป */
  text-decoration: none;
}
.footer-link:hover {
  color: #c5def2;
  text-decoration: underline;
}

/* Social icons วงกลมสีขาว + hover ตามสี app */
.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: #5a5a5a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.footer-social-link:hover {
  transform: translateY(-1px);
}

/* สีตาม app */
.footer-social-facebook:hover {
  background-color: #1877F2;
  color: #ffffff;
}
.footer-social-instagram:hover {
  background-color: #E4405F;
  color: #ffffff;
}
.footer-social-line:hover {
  background-color: #00C300;
  color: #ffffff;
}
.footer-social-whatsapp:hover {
  background-color: #25D366;
  color: #ffffff;
}
.footer-social-tiktok:hover {
  background-color: #444444;
  color: #ffffff;
}

/* ✅ ทำให้ไอคอนอยู่กลางวงกลมเป๊ะๆ */
.footer-social a,
.social-links a,
.contact-social a {
  width: 42px;
  height: 42px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  line-height: 1;
  text-decoration: none;
}

/* ✅ จัดการตัวไอคอน (Font Awesome / Bootstrap Icons) */
.footer-social a i,
.footer-social a .fa,
.footer-social a .fab,
.footer-social a .far,
.footer-social a .fas,
.footer-social a .bi,
.social-links a i,
.contact-social a i {
  display: block;
  line-height: 1;
}

/* (แนะนำ) ถ้าใช้ Font Awesome ให้ความกว้างเท่ากันทุกไอคอน */
.footer-social a i.fa-fw,
.social-links a i.fa-fw,
.contact-social a i.fa-fw {
  text-align: center;
}


/* =====================
   Footer Responsive
   ===================== */
@media (max-width: 991.98px) {
  .footer-column {
    border-left: none;
    padding-left: 0;
    margin-top: 1.5rem;
  }

  .footer-main {
    padding: 2.5rem 0 2rem;
    text-align: center;
  }

  .footer-logo-wrap {
    justify-content: center;
    /* gap: 18px !important; */
  }

  .footer-address {
    text-align: center;
  }

  /* จัด social icons ให้อยู่กลาง */
  .footer-main .d-flex.flex-wrap.gap-2 {
    justify-content: center;
  }
}

/* =====================
   Rooms Highlight Section
   ===================== */

.bg-rooms-highlight {
  background: linear-gradient(180deg, var(--brand-beige), #f3efe6);
}

.room-type-card {
  overflow: hidden;
  border-radius: 1.3rem;
}

.room-type-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 1.3rem 1.3rem 0.9rem 0.9rem;
}

.room-type-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .6s ease;
}

/* เอฟเฟกต์ zoom เบา ๆ เวลา hover */
.room-type-card:hover .room-type-image {
  transform: scale(1.06);
}

/* ป้ายราคา */
.room-price-pill {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(10, 8, 6, 0.9);
  color: #ffffff;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.room-price-pill span {
  font-weight: 600;
  font-size: 0.95rem;
}

/* รายการสิ่งอำนวยความสะดวก ใช้ร่วมกับ feature-list เดิมได้เลย */
.feature-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.feature-list li {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  margin-bottom: 0.25rem;
}
.feature-list li i {
  color: var(--brand-brown);
  margin-top: 0.1rem;
  font-size: 1rem;
}

@media (max-width: 767.98px) {
  .room-type-image {
    height: 210px;
  }

  /* แถบล่างของ footer ให้เรียงเป็นคอลัมน์และอยู่กลาง */
  .footer-bottom .d-flex {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
  }

  /* ย่อโลโก้ footer บนหน้าจอเล็กนิดนึง */
  .footer-logo {
    height: 140px;
  }
}

/* =====================
   Yukata — Gallery Slider (Updated)
===================== */

.yukata-gallery {
  background: #f7f3ec;
}

/* Wrapper */
.gallery-scroll {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 0.5rem 0;
}

/* Track เลื่อนช้าๆ ต่อเนื่อง */
.gallery-track {
  display: flex;
  gap: 20px;
  animation: gallerySlide 45s linear infinite;
}

/* รูป — ปรับใหญ่ขึ้น */
.gallery-img {
  width: 480px;     /* เดิม 380px */
  height: 320px;    /* เดิม 260px */
  object-fit: cover;
  border-radius: 18px;
  box-shadow: none;
  transition: transform .3s ease;
}

/* Hover zoom */
.gallery-img:hover {
  transform: scale(1.04);
}

/* Animation */
@keyframes gallerySlide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-img {
    width: 310px;
    height: 210px;
  }
  .gallery-track {
    animation-duration: 35s;
  }
}

/* =========================
   Universal Outline Button
========================= */

.btn-outline-link {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;

  width: 100%;
  max-width: 360px;

  padding: 0.95rem 1.25rem;

  border: 1.8px solid var(--brand-moss);

  /* มุมโค้งลดลง (เดิม 999px → 12px) */
  border-radius: 12px;

  background: #ffffff;
  color: var(--brand-moss);

  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-decoration: none;

  transition: all .25s ease;
  cursor: pointer;
}

/* ไอคอน Bootstrap */
.btn-outline-link .icon-arrow {
  font-size: 1.45rem;     /* ↑ ใหญ่ขึ้น */
  font-weight: 500;
  margin-left: 14px;
  transition: transform .25s ease;
}

/* Hover effect */
.btn-outline-link:hover {
  background: var(--brand-moss);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-link:hover .icon-arrow {
  color: #ffffff;
  transform: translateX(4px);
}

/* =========================
   Room Detail Layout (Yukata)
========================= */
.room-detail-section {
  background: #ffffff;
}

.room-title {
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: #444;
}

.room-size {
  font-size: 1.4rem;
  color: #a8846b;
  font-weight: 500;
}

.room-divider {
  width: 100%;
  margin: 1rem 0 1.25rem;
  border: none;
  border-top: 2px solid #e5d9c8;
}

.room-info {
  font-size: 1rem;
  color: #444;
  margin-bottom: .4rem;
}

.room-desc {
  font-size: .95rem;
  color: #555;
  margin-bottom: .4rem;
  max-width: 600px;
}

.room-price {
  font-size: 1.1rem;
  color: #a8846b;
  font-weight: 400;
  margin-bottom: .4rem;
}

/* FACILITY ICONS */
.facility-list {
  gap: 1rem;
}

.facility-item {
  width: 90px;
  height: 85px;
  background: #f2ede5;
  border-radius: 8px;
  text-align: center;
  padding: .7rem .4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.facility-icon {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
  color: #555;
}

.facility-label {
  font-size: 0.78rem;
  color: #444;
}

/* IMAGE SIDE */
.room-detail-image img {
  width: 100%;
  max-width: 480px;
  border-radius: 6px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .room-detail-text {
    padding-right: 0 !important;
  }

  .facility-item {
    width: 85px;
    height: 80px;
  }

  .room-detail-image {
    margin: 0 auto;
  }
}

/* ใหม่ — ใช้กับ room-icons */
.room-detail-row {
  /* max-width: 1050px; */
  margin: 0 auto;
}

.room-detail-image img {
  width: 100%;
  max-width: 450px;
  display: block;
  margin-left: auto;      /* ดันรูปให้ชิดเข้าหาข้อความ */
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.16);
}

.room-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 20px 0;
}

.room-icon {
  width: 75px;
  text-align: center;
}

.room-icon-icon {
  background: #f3efe6;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 6px;
}

.room-icon-image {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.room-icon-label {
  font-size: .85rem;
  color: #333;
  line-height: 1.2;
}

@media (max-width: 767.98px) {
  .room-detail-row {
    max-width: 100%;
  }
  .room-detail-image img {
    max-width: 100%;
    margin: 0 auto;
  }
}

/* ---------- Booking date range inputs ---------- */

.date-input-wrapper {
  position: relative;
}

.date-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: rgba(46,42,37,0.55);
  pointer-events: none;
}

/* กล่อง input หน้าตาเหมือน form ปกติ */
.date-range-input {
  padding-left: 2.2rem;
  font-size: 0.95rem;
  border-radius: .375rem;
  background-color: #ffffff;
  border-color: #ced4da;
}

.date-range-input:focus {
  border-color: var(--brand-moss);
  box-shadow: 0 0 0 0.15rem rgba(134,151,124,0.25);
}

/* ---------- Litepicker theme ---------- */

.litepicker {
  /* min-width: 640px; */
  margin-top: -6px;
  border-radius: 10px;
  /* border: 1px solid rgba(175,152,118,.35); */
  /* box-shadow: 0 10px 28px rgba(0,0,0,0.18); */
  font-family: "Sarabun", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* background: #ffffff; */
}

/* เอา overlay ใส ๆ รอบจอออก */
.litepicker-backdrop {
  background: transparent !important;
}

/* ลด padding ด้านในเพื่อลบขอบขาวหนา ๆ */
.litepicker .container__main {
  padding: 0.6rem 0.9rem 0.9rem;
}

/* บังคับให้สองเดือนเรียงแนวนอน */
.litepicker .container__months {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  column-gap: 1.25rem;
}

.litepicker .month-item {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}

.litepicker .month-item-header {
  padding-bottom: .4rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  color: var(--ink-900);
}

.litepicker .day-item {
  border-radius: 8px;
}

/* วันที่เริ่ม/สิ้นสุด */
.litepicker .is-start-date,
.litepicker .is-end-date {
  background-color: var(--brand-moss);
  color: #fff;
}

/* วันที่อยู่ระหว่าง range */
.litepicker .is-in-range {
  background-color: rgba(134,151,124,0.18);
  color: var(--ink-900);
}

/* วันนี้ */
.litepicker .day-item.is-today {
  border: 1px solid rgba(175,152,118,.7);
}

/* มือถือ: ให้ยุบเหลือเดือนเดียวต่อบรรทัดเหมือนเดิม */
@media (max-width: 575.98px) {
  .litepicker {
    min-width: 100%;
    width: 100%;
    max-width: 100%;
  }

  .litepicker .container__months {
    flex-direction: column;
  }
}

/* =====================
   About Page (Zen Style)
   ===================== */

.page-about {
  background-color: #f8f5ef;
  padding-top: calc(var(--navbar-height) + 40px);
}

/* Intro / Hero */
.about-hero {
  padding: 3.5rem 0 3rem;
}

.about-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-brown);
  margin-bottom: 0.75rem;
}

.about-title {
  font-size: 2rem;
  line-height: 1.4;
  color: var(--ink-900);
  margin-bottom: 0.25rem;
}

.about-subtitle {
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-700);
  margin-bottom: 1.5rem;
}

.about-lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--ink-700);
  max-width: 32rem;
}

.text-highlight {
  color: var(--brand-brown);
}

/* Visual block */
.about-visual {
  position: relative;
}

.shadow-soft {
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.about-visual-main {
  border-radius: 1.5rem;
  overflow: hidden;
}

.about-visual-card {
  position: absolute;
  right: 8%;
  bottom: -10%;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 1.25rem;
  padding: 0.9rem 1.1rem;
  max-width: 260px;
  border: 1px solid rgba(175, 152, 118, 0.25);
  backdrop-filter: blur(4px);
  font-size: 0.9rem;
}

/* Philosophy section */

.about-philosophy {
  padding: 3.5rem 0 3.5rem;
  border-top: 1px solid rgba(175, 152, 118, 0.25);
  border-bottom: 1px solid rgba(175, 152, 118, 0.2);
  background: linear-gradient(
    180deg,
    rgba(222, 214, 192, 0.12) 0%,
    rgba(248, 245, 239, 1) 100%
  );
}

.about-section-title {
  font-size: 1.6rem;
  color: var(--ink-900);
  margin-bottom: 0.75rem;
}

.about-section-text {
  font-size: 0.98rem;
  color: var(--ink-700);
  max-width: 36rem;
  margin: 0 auto;
}

/* Pillars */

.about-pillars {
  margin-top: 1.75rem;
}

.about-pillar-card {
  background-color: #ffffff;
  border-radius: 1.2rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(175, 152, 118, 0.15);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.about-pillar-number {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brand-moss);
  margin-bottom: 0.4rem;
}

.about-pillar-title {
  font-size: 1.05rem;
  color: var(--ink-900);
  margin-bottom: 0.4rem;
}

.about-pillar-text {
  font-size: 0.95rem;
  color: var(--ink-700);
  line-height: 1.7;
}

/* Story / Brand block */

.about-story {
  padding: 3.5rem 0 4rem;
}

.about-story-panel {
  background-color: #ffffff;
  border-radius: 1.5rem;
  padding: 2rem 1.8rem;
  border: 1px solid rgba(175, 152, 118, 0.18);
}

.about-story-title {
  font-size: 1.4rem;
  color: var(--ink-900);
  margin-bottom: 1rem;
}

.about-story-text {
  font-size: 1.1rem;
  color: var(--ink-700);
  line-height: 1.8;
}

/* Story images */

.about-story-images {
  position: relative;
}

.about-story-image.main {
  border-radius: 1.6rem;
  overflow: hidden;
}

.about-story-image.small {
  position: absolute;
  right: 6%;
  bottom: -10%;
  width: 45%;
  border-radius: 1.2rem;
  overflow: hidden;
}

/* Responsive */

@media (max-width: 991.98px) {
  .page-about {
    padding-top: calc(var(--navbar-height) + 24px);
  }

  .about-hero {
    padding-top: 2.5rem;
  }

  .about-visual-card {
    position: static;
    margin-top: 0.9rem;
  }

  .about-story-panel {
    margin-bottom: 1.5rem;
  }

  .about-story-image.small {
    position: static;
    width: 70%;
    margin-top: 1rem;
  }
}

@media (max-width: 575.98px) {
  .about-title {
    font-size: 1.6rem;
  }

  .about-section-title {
    font-size: 1.35rem;
  }

  .about-story-title {
    font-size: 1.25rem;
  }
}

/* =====================
   Rooms Page (Zen Style)
   ===================== */

.page-rooms {
  background-color: #f8f5ef;
  padding-top: calc(var(--navbar-height));
}

/* Hero & Booking */

.rooms-hero {
  position: relative;
  background:
  linear-gradient(
    180deg,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.10) 30%,
    rgba(0,0,0,0.05) 70%,
    rgba(0,0,0,0.20) 100%
  ),
  url('../images/yukata/onsen.jpg') center/cover no-repeat;
  backdrop-filter: blur(2px);
  border-bottom: 1px solid rgba(175, 152, 118, 0.18);
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}

.rooms-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-brown);
  margin-bottom: 0.75rem;
}

.rooms-title {
  font-size: 2rem;
  line-height: 1.45;
  color: var(--ink-900);
  margin-bottom: 0.25rem;
  white-space: normal;
}

.rooms-subtitle {
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-700);
  margin-bottom: 1.5rem;
}

.rooms-lead {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-700);
  max-width: 32rem;
}

.rooms-booking-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 1.5rem;
  padding: 1.5rem 1.5rem 1.3rem;
  border: 1px solid rgba(175, 152, 118, 0.2);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.05);
}

.rooms-booking-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-700);
  margin-bottom: 0.3rem;
}

.rooms-input {
  border-radius: 0.9rem;
  border-color: rgba(175, 152, 118, 0.35);
  font-size: 0.9rem;
  padding: 0.55rem 0.75rem;
}

.rooms-input:focus {
  border-color: var(--brand-brown);
  box-shadow: 0 0 0 0.1rem rgba(175, 152, 118, 0.25);
}

.btn-rooms-submit {
  border-radius: 999px;
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  background-color: var(--brand-brown);
  color: #fff;
  border: none;
}

.btn-rooms-submit:hover {
  background-color: #8a6c3e;
  color: #fff;
}

.rooms-booking-note {
  font-size: 0.8rem;
  color: var(--ink-600);
  margin-top: 0.75rem;
}

/* Rooms List */

.rooms-list {
  padding: 3.2rem 0 3.5rem;
  border-top: 1px solid rgba(175, 152, 118, 0.25);
  border-bottom: 1px solid rgba(175, 152, 118, 0.2);
  background: linear-gradient(
    180deg,
    rgba(222, 214, 192, 0.12) 0%,
    rgba(248, 245, 239, 1) 100%
  );
}

.rooms-section-title {
  font-size: 1.6rem;
  color: var(--ink-900);
  margin-bottom: 0.75rem;
}

.rooms-section-text {
  font-size: 0.98rem;
  color: var(--ink-700);
  max-width: 36rem;
  margin: 0 auto;
}

.rooms-cards {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

/* Room Card */

.rooms-card {
  background-color: #ffffff;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(175, 152, 118, 0.18);
  box-shadow: 0 18px 35px rgba(0,0,0,0.04);
}

.rooms-card-image-wrapper {
  height: 100%;
}

.rooms-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rooms-card-body {
  padding: 1.6rem 1.6rem 1.4rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.rooms-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
}

.rooms-tag {
  font-size: 0.75rem;
  padding: 0.1rem 0.65rem;
  border-radius: 999px;
  background-color: rgba(175, 152, 118, 0.08);
  color: var(--brand-brown);
}

.rooms-card-title {
  font-size: 1.1rem;
  color: var(--ink-900);
  margin-bottom: 0.45rem;
}

.rooms-card-text {
  font-size: 0.95rem;
  color: var(--ink-700);
  line-height: 1.7;
  margin-bottom: 0.7rem;
}

.rooms-card-meta {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0.9rem;
}

.rooms-card-meta li {
  font-size: 0.9rem;
  color: var(--ink-700);
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.3rem;
}

.rooms-card-meta li::before {
  content: '';
  position: absolute;
  left: 0.35rem;
  top: 0.55rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background-color: var(--brand-moss);
}

.rooms-card-footer {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(175, 152, 118, 0.4);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.rooms-price-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-600);
  margin-bottom: 0.15rem;
}

.rooms-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-brown);
}

.rooms-price-note {
  font-size: 0.8rem;
  color: var(--ink-600);
}

.rooms-card-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

/* Buttons */

.btn-outline-rooms {
  border-radius: 999px;
  font-size: 0.9rem;
  padding: 0.45rem 1.2rem;
  border: 1px solid rgba(175, 152, 118, 0.9);
  color: var(--brand-brown);
  background-color: #fff;
}

.btn-outline-rooms:hover {
  background-color: var(--brand-brown);
  color: #fff;
}

/* Note Section */

.rooms-note-section {
  padding: 2.5rem 0 3rem;
  background-color: #f8f5ef;
}

.rooms-note-card {
  background-color: #ffffff;
  border-radius: 1.2rem;
  padding: 1.4rem 1.5rem;
  border: 1px dashed rgba(175, 152, 118, 0.55);
  font-size: 0.9rem;
  color: var(--ink-700);
}

.page-rooms .rooms-hero .rooms-eyebrow,
.page-rooms .rooms-hero .rooms-title,
.page-rooms .rooms-hero .rooms-subtitle,
.page-rooms .rooms-hero .rooms-lead {
  color: rgba(255,255,255,0.95) !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

/* Responsive */

@media (max-width: 991.98px) {
  .page-rooms {
    padding-top: calc(var(--navbar-height));
  }

  .rooms-hero {
    padding-top: 2.4rem;
  }

  .rooms-booking-card {
    margin-top: 0.5rem;
  }

  .rooms-card-body {
    padding: 1.4rem 1.4rem 1.3rem;
  }
}

@media (max-width: 767.98px) {
  .rooms-title {
    font-size: 1.7rem;
  }

  .rooms-section-title {
    font-size: 1.4rem;
  }

  .rooms-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =====================
   Gallery Page
   ===================== */

.page-gallery {
  background-color: #f8f5ef;
  padding-top: calc(var(--navbar-height) + 40px);
}

/* Hero */

.gallery-hero {
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.gallery-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-brown);
  margin-bottom: 0.5rem;
}

.gallery-title {
  font-size: 2rem;
  line-height: 1.4;
  color: var(--ink-900);
  margin-bottom: 0.3rem;
}

.gallery-subtitle {
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-700);
  margin-bottom: 1.3rem;
}

.gallery-lead {
  font-size: 0.96rem;
  color: var(--ink-700);
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.8;
}

/* Grid */

.gallery-grid-section {
  padding: 0 0 3.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.gallery-item {
  cursor: pointer;
}

.gallery-thumb-wrapper {
  position: relative;
  border-radius: 1.1rem;
  overflow: hidden;
  background-color: #ddd;
}

.gallery-thumb-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-thumb-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.0), rgba(0,0,0,0.25));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-thumb-img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.gallery-item:hover .gallery-thumb-wrapper::after {
  opacity: 1;
}

.gallery-thumb-caption {
  font-size: 0.85rem;
  color: var(--ink-700);
  margin-top: 0.4rem;
  text-align: center;
}

/* Lightbox */

.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1080;
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}

.gallery-lightbox-dialog {
  position: relative;
  max-width: 960px;
  width: 100%;
  padding: 1.2rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* figure เป็นตัวอ้างอิงตำแหน่งปุ่ม */
.gallery-lightbox-figure {
  position: relative;
  margin: 0;
  background: #111;
  border-radius: 1.2rem;
  overflow: hidden;
  padding: 0;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.gallery-lightbox-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.gallery-lightbox-caption {
  font-size: 0.9rem;
  color: #f6f3ea;
  padding: 0.6rem 0.9rem;
}

/* Buttons */

.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ❌ ชิดมุมขวาบนของรูป */
.gallery-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.3rem;
  z-index: 2;
}

/* ปุ่มเลื่อนซ้าย-ขวา ขยับออกไปด้านข้าง */
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;

  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;

  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1.4rem;

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  transition: background 0.25s ease;
}

.gallery-lightbox-prev {
  left: 12px;   /* อยู่บนรูปแน่นอน */
}

.gallery-lightbox-next {
  right: 12px;  /* อยู่บนรูปแน่นอน */
}

.gallery-lightbox-close:hover,
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  background: rgba(0,0,0,0.85);
}

/* Lock scroll เมื่อเปิด lightbox */
body.gallery-lightbox-open {
  overflow: hidden;
}

/* Responsive */

@media (max-width: 991.98px) {
  .page-gallery {
    padding-top: calc(var(--navbar-height) + 24px);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .gallery-title {
    font-size: 1.6rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* บนจอเล็ก ดันปุ่มเลื่อนกลับเข้ามาในภาพหน่อย */
  .gallery-lightbox-prev {
    left: 8px;
  }

  .gallery-lightbox-next {
    right: 8px;
  }
}

@media (max-width: 575.98px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }
}

/* =====================
   Contact Page
   ===================== */

.page-contact {
  background-color: #f8f5ef;
  padding-top: calc(var(--navbar-height));
}

/* Hero */

.contact-hero {
  position: relative;
  padding: 3rem 0 3rem;
  overflow: hidden;
}

/* รูป background เบลอ + มืด */
.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      120deg,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.35) 35%,
      rgba(0,0,0,0.65) 100%
    ),
    url('../images/contact-cover.jpg') center/cover no-repeat;
  filter: blur(3px);
  transform: scale(1.05);
}

.contact-hero-inner {
  position: relative;
  z-index: 1;
}

/* ทำให้ตัวหนังสือใน hero เป็นสีขาวชัด ๆ */
.contact-eyebrow,
.contact-title,
.contact-subtitle,
.contact-lead {
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.contact-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  color: rgba(255,255,255,0.9);
}

.contact-title {
  font-size: 2rem;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.contact-subtitle {
  font-size: 0.9rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
  color: rgba(255,255,255,0.85);
}

.contact-lead {
  font-size: 0.96rem;
  max-width: 32rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.92);
}

/* Info card (เหมือนเดิม) */

.contact-info-card {
  background-color: #ffffff;
  border-radius: 1.4rem;
  padding: 1.8rem 1.7rem;
  border: 1px solid rgba(175, 152, 118, 0.2);
  box-shadow: 0 18px 35px rgba(0,0,0,0.05);
}

.contact-info-title {
  font-size: 1.1rem;
  color: var(--ink-900);
  margin-bottom: 1rem;
}

.contact-info-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--ink-800);
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(175, 152, 118, 0.35);
}

.contact-info-row:last-of-type {
  border-bottom: none;
}

.contact-info-label {
  font-weight: 500;
  color: var(--ink-700);
}

.contact-info-value a {
  color: var(--brand-brown);
  text-decoration: none;
}

.contact-info-value a:hover {
  text-decoration: underline;
}

.contact-note {
  font-size: 0.8rem;
  color: var(--ink-600);
  margin-top: 0.9rem;
}

/* Map section – map เต็ม section ไม่มีกรอบดำ */

.contact-map-section {
  padding: 0 0 3rem;
  border: none;
  background-color: #f8f5ef;
}

/* map responsive + มีแค่กรอบบาง ๆ และเงาเบา ๆ */
.contact-map-embed {
  position: relative;
  padding-bottom: 52%; /* สัดส่วน map บน desktop */
  height: 0;
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,0.08);
  border: 1px solid rgba(175, 152, 118, 0.18);
  background-color: transparent; /* ตัดพื้นดำออก */
}

.contact-map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Address */

.contact-address-card {
  background-color: #ffffff;
  border-radius: 1.4rem;
  padding: 1.8rem 1.7rem;
  border: 1px solid rgba(175, 152, 118, 0.2);
}

.contact-address-title {
  font-size: 1.1rem;
  color: var(--ink-900);
  margin-bottom: 0.8rem;
}

.contact-address-main {
  font-size: 0.95rem;
  color: var(--ink-800);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.contact-address-detail {
  font-size: 0.9rem;
  color: var(--ink-700);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.contact-transport-list {
  padding-left: 1.1rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-700);
}

.contact-transport-list li {
  margin-bottom: 0.3rem;
}

/* Form */

.contact-form-section {
  padding: 1.2rem 0 3.2rem;
}

.contact-form-card {
  background-color: #ffffff;
  border-radius: 1.4rem;
  padding: 1.9rem 1.8rem 1.6rem;
  border: 1px solid rgba(175, 152, 118, 0.2);
}

.contact-form-title {
  font-size: 1.2rem;
  color: var(--ink-900);
  margin-bottom: 0.4rem;
}

.contact-form-text {
  font-size: 0.9rem;
  color: var(--ink-700);
  margin-bottom: 1.1rem;
}

.contact-form-note {
  font-size: 0.8rem;
  color: var(--ink-600);
  margin-top: 0.9rem;
}

/* Responsive */

@media (max-width: 991.98px) {
  .page-contact {
    padding-top: calc(var(--navbar-height) + 24px);
  }

  .contact-hero {
    padding-top: 2.6rem;
  }

  .contact-info-card {
    margin-top: 0.5rem;
  }

  .contact-map-embed {
    padding-bottom: 60%;
  }
}

@media (max-width: 767.98px) {
  .contact-title {
    font-size: 1.7rem;
  }

  .contact-map-embed {
    padding-bottom: 70%;
  }
}

/* ภาพเพิ่มเติมใต้กล่องที่ตั้งของเรา */
.contact-extra-images {
  display: flex;
  gap: 1.6rem;
  margin-top: 1.6rem;
}

.contact-extra-item {
  flex: 1;
  max-width: 180px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(175, 152, 118, 0.28);
  background-color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.contact-extra-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  padding: 0.6rem;
}

/* มือถือ / Tablet */
@media (max-width: 767.98px) {
  .contact-extra-images {
    justify-content: center;
  }

  .contact-extra-item {
    max-width: 150px;
  }
}

/* =====================
   Admin Layout
   ===================== */

/* ✅ ทำให้ scroll ไปอยู่ที่ .admin-content เท่านั้น */
html, body {
  height: 100%;
}

.admin-body {
  background-color: #f6f2e9;
  color: var(--ink-900);
  height: 100vh;
  overflow: hidden; /* ✅ กันไม่ให้ body เลื่อนทั้งหน้า */
}

.admin-layout {
  display: flex;
  height: 100vh;     /* ✅ ล็อกความสูง */
  overflow: hidden;  /* ✅ กัน scroll ที่ wrapper */
}

/* Sidebar */

.admin-sidebar {
  width: 240px;
  flex: 0 0 240px;   /* ✅ กัน sidebar โดนบีบ */
  background: #453824;
  color: #ffffff;
  padding: 1.4rem 1.2rem;
  position: sticky;  /* ✅ ติดอยู่กับที่ */
  top: 0;
  height: 100vh;     /* ✅ สูงเต็มจอ */
  overflow-y: auto;  /* ✅ ถ้าเมนูยาว ให้เลื่อนใน sidebar ได้ */
  z-index: 1040;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.8rem;
}

.admin-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  background-color: rgba(0,0,0,0.1);
}

.admin-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.admin-logo-title {
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.admin-logo-sub {
  font-size: .7rem;
  opacity: .8;
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  padding: .55rem .75rem;
  border-radius: .65rem;
  font-size: .9rem;
  color: #ffffff;
  text-decoration: none;
  transition: all .18s ease;
  border: 1px solid transparent;
}

.admin-sidebar-link i {
  font-size: 1rem;
}

.admin-sidebar-link span {
  white-space: nowrap;
}

.admin-sidebar-link:hover {
  border-color: rgba(255,255,255,0.45);
  background-color: rgba(255,255,255,0.10);
  color: #ffffff;
}

.admin-sidebar-link.active {
  background-color: #AF9876;
  color: #ffffff;
  border-color: transparent;
  font-weight: 500;
  transform: none;
}

/* Main + Topbar */

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;     /* ✅ กัน overflow แนวนอนใน flex */
  height: 100vh;
  overflow: hidden; /* ✅ กันไม่ให้ admin-main เป็นตัว scroll */
  background-color: #f8f5ef;
}

.admin-topbar {
  height: 64px;
  background-color: var(--brand-brown);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.admin-topbar-left {
  display: flex;
  align-items: center;
}

.admin-topbar-title {
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
}

.admin-topbar-user {
  font-size: .85rem;
  opacity: .9;
}

.admin-logout-btn {
  font-size: .8rem;
}

/* Content */

.admin-content {
  flex: 1;
  min-height: 0;     /* ✅ สำคัญมาก: ทำให้ overflow-y ทำงานใน flex */
  overflow-y: auto;  /* ✅ เลื่อนเฉพาะ content */
  padding: 1.5rem;
}

.admin-main-inner {
  min-height: auto;  /* ✅ ไม่ต้อง calc แล้ว เพราะ content เป็นตัว scroll */
}

/* Responsive sidebar on mobile */

@media (max-width: 767.98px) {
  .admin-sidebar {
    position: fixed;
    top: 64px;
    left: -260px;
    height: calc(100vh - 64px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    transition: left .22s ease;
    overflow-y: auto;
  }

  .admin-sidebar.admin-sidebar-open {
    left: 0;
  }
}

  /* Admin Sidebar Footer */

  .admin-sidebar {
    display: flex;
    flex-direction: column;
  }

  .admin-sidebar-nav {
    flex: 1; /* ✅ ดัน footer ลงล่าง */
  }

  .admin-sidebar-footer {
    font-size: 0.7rem;
    text-align: center;
    opacity: 0.55;
    padding-top: 1rem;
    margin-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.18);
    letter-spacing: 0.08em;
    user-select: none;
  }

/* =============== BUTTON STYLE (Admin Global) =============== */

/* ปุ่มบันทึกหลัก */
.btn-save-main {
  background-color: #5a442b;
  border-color: #5a442b;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 0.45rem 1.4rem;
  font-size: 0.85rem;
}
.btn-save-main .fa {
  margin-right: 0.35rem;
}
.btn-save-main:hover {
  background-color: #45311f;
  border-color: #45311f;
  color: #fff;
}
.btn-save-main:focus-visible {
  box-shadow: 0 0 0 0.15rem rgba(90,68,43,.35);
  outline: none;
}

/* ปุ่มยกเลิกโทนอ่อน */
.btn-cancel-main {
  background-color: #e7ded2;
  border-color: #e7ded2;
  color: #5a442b;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 0.45rem 1.4rem;
  font-size: 0.85rem;
}
.btn-cancel-main:hover {
  background-color: #d7c9b6;
  border-color: #d7c9b6;
  color: #3b2a18;
}
.btn-cancel-main:focus-visible {
  box-shadow: 0 0 0 0.15rem rgba(180,150,110,.45);
  outline: none;
}

/* =====================
   Rooms Gallery Slider
   ===================== */

.rooms-card-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.rooms-carousel .rooms-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ให้ความสูงรูปเท่ากัน (ปรับได้ตามดีไซน์เดิม) */
.rooms-card-image-wrapper .rooms-card-image,
.rooms-carousel .carousel-item {
  height: 100%;
}

@media (min-width: 768px) {
  .rooms-card-image-wrapper {
    min-height: 340px; /* ปรับได้ */
  }
}
@media (max-width: 767.98px) {
  .rooms-card-image-wrapper {
    min-height: 240px; /* ปรับได้ */
  }
}

/* controls โผล่เฉพาะตอน hover เพื่อไม่รก */
.rooms-carousel-control {
  opacity: 0;
  transition: opacity .2s ease;
}
.rooms-card:hover .rooms-carousel-control {
  opacity: 1;
}

/* dots แบบเล็ก ๆ เรียบ ๆ */
.rooms-carousel-dots {
  margin-bottom: 10px;
}
.rooms-carousel-dots [data-bs-target] {
  width: 6px;
  height: 6px;
  border-radius: 999px;
}

/* badge จำนวนรูป */
.rooms-carousel-count {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1;
}

/* =====================
   Sipp Cafe
===================== */

.page-sipp-cafe {
  background: #f8f5ef;
}

.sipp-hero {
  padding: 120px 0 80px;
}

.sipp-eyebrow {
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand-brown);
}

.sipp-title {
  font-size: 2.4rem;
  margin: .5rem 0;
}

.sipp-subtitle {
  letter-spacing: .25em;
  font-size: .9rem;
  opacity: .8;
}

.sipp-lead {
  margin-top: 1rem;
  font-size: .95rem;
}

/* Gallery */
.sipp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 16px;
}

.sipp-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
  cursor: pointer;
}

/* Menu */
.sipp-menu {
  padding: 80px 0;
}

.sipp-menu-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  height: 100%;
}

/* Info */
.sipp-info {
  padding: 30px 0;
  font-size: .9rem;
  color: #555;
}

/* ===== Feature Card (หน้า index) ===== */

.feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* กล่องรูป */
.feature-card-img {
  width: 100%;
  height: 220px;          /* ✅ ความสูงรูปเท่ากันทุกใบ */
  overflow: hidden;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

/* รูป */
.feature-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* ✅ ครอปให้เต็มกรอบ */
  display: block;
}

/* body การ์ด */
.feature-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ปุ่มด้านล่าง */
.feature-card .btn-outline-link {
  margin-top: auto;       /* ✅ ดันปุ่มลงล่างสุด */
}

/* ===== Sidebar section divider ===== */
.admin-sidebar-section {
  padding: 10px 14px 6px;
}

.admin-sidebar-section-label{
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: .9;
}

.admin-sidebar-section-label::before,
.admin-sidebar-section-label::after{
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255,255,255,.18);
}

.admin-sidebar-section-label span{
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  white-space: nowrap;
}

/* optional: disabled link style */
.admin-sidebar-link.disabled{
  opacity: .45;
  pointer-events: none;
}

/* =========================
   Yukata Global Confirm Modal
   ========================= */

/* Backdrop นุ่มๆ */
.modal-backdrop.show { opacity: .35; }

/* Card style */
.yk-modal {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
  overflow: hidden;
}

/* Layout */
.yk-modal-header{
  display:flex;
  gap:14px;
  padding:18px 18px 10px 18px;
  align-items:flex-start;
}

.yk-icon-wrap{
  width:44px; height:44px;
  border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(13,110,253,.10); /* primary tint */
  color: #0d6efd;
  flex: 0 0 auto;
  margin-top: 2px;
}

.yk-modal-title{
  font-weight: 700;
  font-size: 1.05rem;
  color: #1f2937;
  margin-bottom: 2px;
}

.yk-modal-text{
  font-size: .95rem;
  color: #6b7280;
  line-height: 1.35;
}

.yk-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding: 12px 18px 18px 18px;
}

.yk-btn{
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 110px;
  font-weight: 600;
}

/* Variants */
.yk-variant-danger .yk-icon-wrap{ background: rgba(220,53,69,.10); color:#dc3545; }
.yk-variant-warning .yk-icon-wrap{ background: rgba(255,193,7,.18); color:#b7791f; }
.yk-variant-success .yk-icon-wrap{ background: rgba(25,135,84,.12); color:#198754; }
