/* =========================================================
   Scott Hotel × Flatsome
   1. Trung hoà CSS nền của Flatsome bên trong các section .scott
   2. Header Flatsome theo phong cách Scott (trong suốt trên hero, đặc lại khi cuộn)
   3. Footer / trang chung
   ========================================================= */

/* ---------- 1. Reset trong .scott (đứng trước các rule thành phần nhờ :where) ---------- */
.scott :where(p, ul, ol, li, dl, dt, dd, blockquote, figure, h1, h2, h3, h4, h5, h6, label, form) { margin: 0; }
.scott :where(ul, ol) { padding: 0; }
.scott :where(h1, h2, h3, h4, h5, h6) { width: auto; color: inherit; text-transform: none; }
.scott :where(h3) { font-size: inherit; font-weight: 600; }
.scott :where(h3, h4, h5, h6, p, li, button, input, select, textarea, label, blockquote, dt, dd) { font-family: inherit; }
.scott :where(blockquote) { border: 0; padding: 0; font-size: inherit; font-style: normal; color: inherit; }
.scott :where(dt, dd) { display: block; font-weight: inherit; text-transform: none; letter-spacing: normal; }
.scott :where(dl) { text-transform: none; letter-spacing: normal; font-size: inherit; line-height: inherit; }
.scott .field :is(input, select, textarea):not(:focus) { box-shadow: none; }
.scott :where(label) { font-size: inherit; display: inline; color: inherit; }
.scott :where(button) {
  margin: 0; padding: 1px 6px; min-height: 0; line-height: inherit; letter-spacing: normal; text-transform: none;
  font-weight: inherit; text-shadow: none; background: none; border: 0; border-radius: 0; color: inherit; max-width: none;
}
.scott :where(input, select, textarea) {
  height: auto; max-width: none; box-shadow: none; margin: 0; vertical-align: baseline; letter-spacing: normal;
  background-image: none; color: inherit;
}
.scott :where(a) { color: inherit; }
.scott :where(a:hover) { color: inherit; }
.scott :where(img) { vertical-align: baseline; }
.scott .btn { text-decoration: none; }
.scott .btn-brass, .scott .btn-brass:hover, .scott .btn-primary, .scott .btn-primary:hover { color: #fff; }
.scott em { font-style: italic; }
.scott .sc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.scott dialog { color: var(--ink); }

/* Section xếp chồng trực tiếp, không có khoảng hở */
#content > .scott, .page-wrapper > .scott, .entry-content > .scott { margin: 0; }
.scott-hero.has-quick-book { background: var(--paper); }

/* ---------- 2. Header Flatsome ---------- */
body { font-family: var(--body); background: var(--paper); color: var(--ink); }
#wrapper, #main { background: var(--paper); }
.header-wrapper, #masthead { font-family: var(--body); }
#masthead .header-main { transition: background-color .3s, color .3s, box-shadow .3s; }
#logo img { max-height: 48px; width: auto; }
/* Khung header rộng như .sc-container của các section */
#masthead .header-inner { width: min(1200px, 100% - 40px); max-width: none; padding-inline: 0; }
@media (max-width: 760px) { #masthead .header-inner { width: calc(100% - 32px); } #logo img { max-height: 40px; } }

/* Menu chính */
.header-nav-main.nav > li > a {
  font-family: var(--body); font-size: .88rem; font-weight: 500; letter-spacing: 0; text-transform: none;
  padding-block: 6px; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s;
}
.header-nav-main.nav > li { margin: 0 clamp(7px, 1.1vw, 15px); }
/* Menu toàn link neo (#…) nên WordPress đánh dấu "current" cho mọi mục → chỉ gạch chân khi rê chuột */
.header-nav-main.nav > li > a:hover { border-color: var(--brass); }
.header-nav-main.nav > li.active > a, .header-nav-main.nav > li.current-menu-item > a { color: inherit; }
body:not(.home) .header-nav-main.nav > li.current-menu-item > a { border-color: var(--brass); }

/* Header trên nền sáng (đã cuộn / trang con) */
.header-main { background-color: rgba(250, 246, 238, .94); color: var(--ink); }
.header-main .nav > li > a { color: var(--ink); }
.stuck .header-main, .header-main.stuck { backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }

/* Header trong suốt trên hero (trang chủ) */
.transparent .header-main { background: transparent; }
.transparent:not(.stuck) .header-main,
.transparent:not(.stuck) .header-main .nav > li > a,
.transparent:not(.stuck) .scott-header-call { color: #fff; }
.transparent .header-wrapper:not(.stuck) .header-main .nav > li > a,
.header.transparent .header-wrapper:not(.stuck) .scott-header-call,
.header.transparent .header-wrapper:not(.stuck) .nav-icon a { color: #fff; }
.transparent .header-wrapper.stuck .header-main { background: rgba(250, 246, 238, .94); }

/* Hotline + nút Đặt phòng trong header */
.scott-header-call,
.header-nav-main.nav > li > a.scott-header-call { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; color: inherit; border: 0; padding: 0; }
@media (max-width: 1020px) { .scott-header-call span { display: none; } .scott-header-call svg { width: 1.4em; height: 1.4em; } }
/* Màn hình 850–1150px: header desktop của Flatsome còn hiện, thu gọn menu để không xuống dòng */
@media (min-width: 850px) and (max-width: 1150px) {
  .header-nav-main.nav > li { margin: 0 5px; }
  .header-nav-main.nav > li > a { font-size: .8rem; }
  #masthead .header-inner { width: calc(100% - 24px); }
  #logo img { max-height: 40px; }
  .header-button-1 .button { padding: 0 .9em; }
}
@media (min-width: 850px) and (max-width: 960px) {
  .header-nav-main.nav > li.html_topbar_left { display: none; }
}
.scott-header-call svg { width: 1em; height: 1em; }
.scott-header-call:hover { color: var(--brass); }
.header-button-1 .button, #masthead .header-button .button {
  border-radius: 999px; background: var(--brass); border-color: var(--brass); color: #fff;
  text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .85rem; padding: 0 1.2em; min-height: 40px; height: 40px; line-height: 38px; margin: 0;
  box-shadow: 0 8px 22px rgba(185, 138, 68, .35);
}
.header-button-1 .button:hover, #masthead .header-button .button:hover { background: var(--brass-dark); border-color: var(--brass-dark); }

/* Biểu tượng menu di động */
.nav-icon a, .mobile-nav .icon-menu { color: inherit; }

/* Menu trượt trên di động */
.off-canvas .mobile-sidebar, .mfp-content .mobile-sidebar { background: var(--paper); }
.off-canvas .nav-sidebar > li > a { font-family: var(--display); font-size: 1.2rem; text-transform: none; color: var(--ink); }

/* ---------- 3. Footer + chung ---------- */
.absolute-footer { display: none; }
.back-to-top { display: none !important; }
.footer-wrapper > .scott-footer { margin: 0; }
.scott .site-footer h3 { font-family: var(--body); }
.scott .site-footer a { color: inherit; }
.scott .site-footer a:hover { color: #fff; }

/* ---------- 4. Trang con ----------
   Bản HTML có header cố định nên dải tiêu đề / đầu trang chừa thêm --header-h.
   Ở Flatsome header nằm trong luồng trang, nên bỏ phần chừa đó. */
.scott .sc-banner { padding-top: 44px; }
.scott .sc-banner.has-cards { padding-bottom: 96px; }
.scott .page-room .page-head { padding-top: 28px; }
.scott .sc-banner .crumbs a { color: inherit; }
@media (max-width: 760px) {
  .scott .sc-banner { padding-top: 28px; }
}
/* Thẻ liên hệ chồng lên dải tiêu đề phía trên: nền trong suốt để thấy dải xanh */
.scott-contact { background: transparent; }
.scott-banner + .scott-contact, .scott-banner + * .scott-contact { position: relative; }
/* Thanh di động trên trang phòng: giá + nút */
@media (max-width: 760px) {
  .scott .mobile-bar.is-room { grid-template-columns: 1fr auto; align-items: center; }
}
.scott .page-post .post-banner h1 { max-width: 24ch; }

/* Trang Hình ảnh: lưới ảnh cùng phong cách bộ ảnh trang phòng */
.scott .photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(160px, 20vw, 260px); gap: 10px; }
.scott .photo-grid button { position: relative; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--cream); cursor: zoom-in; }
.scott .photo-grid button:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.scott .photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s; }
.scott .photo-grid button:hover img { scale: 1.04; }
.scott .photo-grid span { position: absolute; left: 12px; bottom: 12px; padding: .35em 1em; border-radius: 999px; background: rgba(14, 42, 34, .78); color: #fff; font-size: .74rem; }
@media (max-width: 760px) {
  .scott .photo-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 38vw; }
  .scott .photo-grid button:nth-child(6n + 1) { grid-column: 1 / -1; grid-row: span 1; height: auto; }
}
.scott [hidden] { display: none !important; }
