/*
Theme Name: Đặt phòng Mường Thanh
Description: Giao diện độc lập cho datphongmuongthanh.com – không cần Flatsome hay ACF PRO. Kiểu nội dung Khách sạn, danh mục Địa điểm, form yêu cầu đặt phòng, schema Hotel.
Author: Công ty TNHH Chuyến Đi Mới
Version: 2.0.0
Requires PHP: 7.4
Text Domain: datphong-mt
*/

:root {
  --blue: #016db8;
  --blue-dark: #0a4f86;
  --green: #6fa52b;
  --green-dark: #5a8a20;
  --gold: #f2a900;
  --ink: #23303b;
  --text: #3a4650;
  --muted: #6b7882;
  --line: #e3e8ec;
  --soft: #f4f7f9;
  --white: #fff;
  --radius: 8px;
  --shadow: 0 4px 14px rgba(15, 40, 60, .08);
  --display: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
  --body: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.7 var(--body); color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.3; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h3 { font-size: 1.15rem; }
p, ul, ol, table { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 6px; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; line-height: 1.2; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-line { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); }
.btn-line:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Header ---------- */
.topbar { background: var(--soft); border-bottom: 1px solid var(--line); font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: var(--text); }
.topbar i { margin-right: 4px; color: var(--blue); }
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.header-main .wrap { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.site-logo img { max-height: 54px; width: auto; }
.site-logo .site-name { font: 700 20px var(--display); color: var(--blue); }
.header-hotline { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--blue); line-height: 1.25; }
.header-hotline i { font-size: 30px; }
.header-hotline strong { display: block; font-size: 18px; }
.header-hotline span { font-size: 12px; color: var(--muted); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 28px; color: var(--blue); cursor: pointer; padding: 4px; }
.main-nav { background: var(--blue); }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > .wrap > ul { display: flex; flex-wrap: wrap; }
.main-nav li { position: relative; }
.main-nav > .wrap > ul > li > a { display: block; padding: 14px 16px; color: #fff; font-weight: 500; font-size: 15px; }
.main-nav > .wrap > ul > li:hover > a, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { background: rgba(0,0,0,.14); color: #fff; }
.main-nav .menu-item-has-children > a::after { content: "\ea4e"; font-family: remixicon; margin-left: 4px; font-size: 14px; }
.main-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius); padding: 6px 0; display: none; z-index: 60; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: block; }
.main-nav .sub-menu a { display: block; padding: 8px 18px; color: var(--text); font-size: 14px; }
.main-nav .sub-menu a:hover { background: var(--soft); color: var(--blue); }

@media (max-width: 900px) {
  .topbar .t-email, .topbar .wrap > div:last-child { display: none; }
  .header-hotline { display: none; }
  .menu-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav > .wrap { padding: 0; }
  .main-nav > .wrap > ul { flex-direction: column; }
  .main-nav > .wrap > ul > li > a { border-top: 1px solid rgba(255,255,255,.15); }
  .main-nav .sub-menu { position: static; display: block; box-shadow: none; border-radius: 0; background: var(--blue-dark); padding: 0; }
  .main-nav .sub-menu a { color: #e8f2fb; padding-left: 32px; }
  .main-nav .sub-menu a:hover { background: transparent; color: #fff; }
  .main-nav .menu-item-has-children > a::after { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--blue-dark); }
.hero { min-height: clamp(400px, 46vw, 540px); }
.hero .swiper { position: absolute; inset: 0; height: 100%; }
.hero .hero-slide { height: 100%; }
.hero .hero-slide { background-size: cover; background-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,35,60,.78) 0%, rgba(5,35,60,.35) 55%, rgba(5,35,60,.1) 100%); z-index: 2; pointer-events: none; }
.hero-content { position: relative; z-index: 3; display: flex; align-items: center; min-height: inherit; padding: 40px 0 56px; }
.hero-content .wrap { width: 100%; }
.hero-box { max-width: 560px; }
.hero h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: .4em; }
.hero p { font-size: 1.05rem; color: #e6f0f8; margin-bottom: 1.2em; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .swiper-pagination-bullet { background: #fff; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--soft); }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 { margin-bottom: 6px; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.section-head h2 a { color: var(--ink); }
.section-head h2 a:hover { color: var(--blue); }
.section-head p { color: var(--muted); margin: 0; }
.title-line { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 10px 0; }
.title-line span { width: 70px; height: 1px; background: var(--green); }
.title-line i { width: 11px; height: 11px; border: 1px solid var(--green); border-radius: 50%; }
.section-more { text-align: center; margin-top: 26px; }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Thẻ khách sạn */
.hotel-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s; }
.hotel-card:hover { transform: translateY(-3px); }
.hotel-card .thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.hotel-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hotel-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hotel-card h3, .hotel-card h2 { font-size: 1.05rem; margin: 0; }
.hotel-card h3 a, .hotel-card h2 a { color: var(--ink); }
.hotel-card h3 a:hover, .hotel-card h2 a:hover { color: var(--blue); }
.hotel-card .price { color: var(--blue); font-weight: 700; font-size: 1.05rem; }
.hotel-card .price small { color: var(--muted); font-weight: 400; font-size: 13px; }
.hotel-card .addr { color: var(--muted); font-size: 13px; line-height: 1.5; }
.hotel-card .addr i { color: var(--green); margin-right: 3px; }

/* Lý do */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-item { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.why-item i { font-size: 30px; color: var(--green); }
.why-item h3 { margin: 8px 0 6px; font-size: 1.05rem; }
.why-item p { margin: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 960px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } }

/* Thẻ bài viết */
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.post-card .thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 14px 16px 18px; }
.post-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.post-card h3 a { color: var(--ink); }
.post-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* CTA band */
.cta-band { background: var(--blue); color: #fff; padding: 34px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 4px; }
.cta-band p { margin: 0; color: #dbeaf6; }

/* ---------- Page / single ---------- */
.page-head { background: var(--soft); border-bottom: 1px solid var(--line); padding: 26px 0 20px; }
.page-head h1 { margin: 0; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span { margin: 0 6px; }
.content-area { padding: 34px 0 56px; }
.entry { max-width: 820px; margin: 0 auto; font-size: 16px; }
.entry h2 { margin-top: 1.6em; }
.entry h3 { margin-top: 1.3em; }
.entry img { border-radius: var(--radius); margin: 18px auto; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .35em; }
.entry table, .hotel-desc table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.entry th, .entry td, .hotel-desc th, .hotel-desc td { border-bottom: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: top; }
.entry th, .hotel-desc th { background: var(--soft); font-weight: 600; }
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
.hotel-quickfacts { background: var(--soft); border-left: 4px solid var(--blue); padding: 14px 18px; margin: 20px 0; border-radius: 0 var(--radius) var(--radius) 0; }
.hotel-quickfacts ul { margin-bottom: 0; }
.hotel-cta { background: #fff8e6; border: 1px dashed var(--gold); padding: 14px 18px; margin: 24px 0; border-radius: var(--radius); }
.hotel-cta p { margin: 0; }
.faq h3 { font-size: 1.02rem; margin: 18px 0 4px; }
.hotel-map iframe { width: 100%; border: 0; border-radius: var(--radius); }
.post-meta { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* Trang khách sạn */
.hotel-top > *, .hotel-body > *, .contact-grid > * { min-width: 0; }
.hotel-top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; padding: 26px 0; }
@media (max-width: 860px) { .hotel-top { grid-template-columns: 1fr; gap: 20px; } }
.gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--soft); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
.gallery-thumbs { margin-top: 10px; }
.gallery-thumbs .swiper-slide { aspect-ratio: 3 / 2; opacity: .6; cursor: pointer; border-radius: 6px; overflow: hidden; }
.gallery-thumbs .swiper-slide-thumb-active { opacity: 1; outline: 2px solid var(--blue); outline-offset: -2px; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .swiper-button-next, .gallery-main .swiper-button-prev { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.hotel-info h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 10px; }
.hotel-facts { list-style: none; padding: 0; margin: 0 0 14px; }
.hotel-facts li { display: flex; gap: 8px; margin-bottom: 6px; }
.hotel-facts i { color: var(--green); font-size: 18px; line-height: 1.5; }
.hotel-price { font-size: 1.3rem; color: var(--blue); font-weight: 700; }
.hotel-short { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; margin: 12px 0 16px; font-size: 15px; }
.hotel-short ul { margin: 6px 0; padding-left: 1.2em; }
.hotel-short p:last-child { margin-bottom: 0; }
.hotel-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hotel-actions .btn { justify-content: center; padding: 13px 14px; }
@media (max-width: 420px) { .hotel-actions { grid-template-columns: 1fr; } }
.hotel-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; padding-bottom: 50px; }
@media (max-width: 960px) { .hotel-body { grid-template-columns: 1fr; } }
.hotel-desc { font-size: 16px; min-width: 0; }
.hotel-desc > h2:first-child { margin-top: 0; }
.hotel-desc img { border-radius: var(--radius); margin: 18px auto; }
.hotel-desc ul, .hotel-desc ol { padding-left: 1.3em; }
.side-box { background: var(--soft); border-radius: var(--radius); padding: 20px; }
.side-box .booking-form { grid-template-columns: 1fr 1fr; }
.side-box h3 { margin-bottom: 10px; }
.side-box .related a { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 14px; }
.side-box .related a:hover { color: var(--blue); }

/* Danh sách / bộ lọc */
.taxonomy-header { text-align: center; padding: 30px 0 10px; }
.taxonomy-title { color: var(--blue); margin-bottom: 8px; }
.taxonomy-description { max-width: 820px; margin: 0 auto 20px; color: var(--muted); }
.hotel-filters { background: var(--soft); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 24px; }
.hotel-filters form { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; }
.hotel-filters label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.hotel-filters select { min-width: 200px; }
.hotel-filters button { background: var(--green); color: #fff; border: 0; border-radius: 6px; padding: 10px 22px; font-weight: 600; cursor: pointer; }
.hotel-list-grid { display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); margin-bottom: 30px; }
@media (max-width: 1080px) { .hotel-list-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .hotel-list-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .hotel-list-grid { grid-template-columns: 1fr; } }
.pagination { text-align: center; margin: 10px 0 50px; }
.pagination .page-numbers { display: inline-block; padding: 6px 12px; margin: 0 3px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* Form */
input[type=text], input[type=tel], input[type=email], input[type=date], input[type=number], select, textarea { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid #cfd8de; border-radius: 6px; background: #fff; color: var(--ink); }
textarea { min-height: 96px; resize: vertical; }
.booking-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.booking-form .full { grid-column: 1 / -1; }
.booking-form label { font-size: 13px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 4px; }
.booking-form .hp { position: absolute; left: -9999px; }
@media (max-width: 520px) { .booking-form { grid-template-columns: 1fr; } }
.form-notice { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.form-notice.ok { background: #eaf6e0; color: #2f5d0f; }
.form-notice.err { background: #fdecec; color: #8a1f1f; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--soft); border-radius: var(--radius); padding: 22px; }
.contact-card p { margin-bottom: 8px; }
.contact-card i { color: var(--blue); margin-right: 6px; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(10, 25, 40, .55); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: 10px; width: 560px; max-width: 100%; max-height: 92vh; overflow: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--blue); color: #fff; }
.modal-head h3 { color: #fff; margin: 0; font-size: 1.05rem; }
.modal-close { background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; line-height: 1; }
.modal-body { padding: 18px; }

/* Footer */
.site-footer { background: #0e2a40; color: #c9d6e0; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; padding-top: 44px; padding-bottom: 30px; }
@media (max-width: 900px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #c9d6e0; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 14px 0; font-size: 13px; text-align: center; color: #93a7b6; }

/* Nút liên hệ nổi */
.float-contact { position: fixed; right: 14px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.float-contact a { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.float-contact .fc-phone { background: #e53935; animation: ring 1.6s infinite; }
.float-contact .fc-zalo { background: #0068ff; font: 700 13px var(--body); }
@keyframes ring { 0%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } 50% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .float-contact .fc-phone { animation: none; } .hotel-card { transition: none; } html { scroll-behavior: auto; } }

.notice-404 { text-align: center; padding: 70px 0; }
