/*
Theme Name: Khach San Luxury
Theme URI: https://khachsan.mauwebsitedep.net/
Author: Khach San
Description: A responsive premium hotel theme for the Khach San website.
Version: 1.0.7
Requires at least: 6.0
Requires PHP: 8.2
Text Domain: khachsan-luxury
*/

:root {
  --primary: #173b36;
  --primary-dark: #102b27;
  --primary-light: #2d6259;
  --gold: #c6a667;
  --gold-light: #e5d3ab;
  --white: #fff;
  --background: #faf9f6;
  --background-soft: #f3f1eb;
  --text: #242424;
  --text-light: #777;
  --border: #e8e4dc;
  --danger: #c0392b;
  --success: #21865a;
  --font-body: "Be Vietnam Pro", sans-serif;
  --font-heading: "Playfair Display", Georgia, serif;
  color-scheme: light;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--background);
  font-size: 16px;
  line-height: 1.7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.container { width: min(1280px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 16px; color: var(--white); background: var(--primary); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, h4 { margin: 0 0 18px; font-family: var(--font-heading); font-weight: 500; line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); }
p { margin: 0 0 18px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border: 1px solid var(--gold); border-radius: 4px; color: var(--primary-dark); background: var(--gold); font-size: .86rem; font-weight: 700; letter-spacing: .04em; text-align: center; transition: background .2s ease, color .2s ease, transform .2s ease; cursor: pointer; }
.button:hover { color: var(--white); background: var(--primary-light); border-color: var(--primary-light); transform: translateY(-1px); }
.button--outline { color: var(--white); background: transparent; border-color: rgba(255,255,255,.7); }
.button--outline:hover { color: var(--primary-dark); background: var(--white); border-color: var(--white); }
.button--dark { color: var(--white); background: var(--primary); border-color: var(--primary); }
.button--dark:hover { color: var(--primary-dark); background: var(--gold); border-color: var(--gold); }
.section { padding-block: clamp(54px, 8vw, 104px); }
.section--soft { background: var(--background-soft); }
.section-heading { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-heading p:last-child { color: var(--text-light); }
.site-topbar { color: rgba(255,255,255,.84); background: var(--primary-dark); font-size: .76rem; }
.topbar-inner { display: flex; min-height: 39px; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-contact, .topbar-social { display: flex; flex-wrap: wrap; gap: 18px; }
.topbar-social { align-items: center; }
.site-header { position: sticky; z-index: 50; top: 0; background: rgba(255,255,255,.97); box-shadow: 0 2px 18px rgba(16,43,39,.07); }
.demo-notice { padding: 10px 0; color: #4c3913; background: #f6ecd4; font-size: .82rem; line-height: 1.55; }
.demo-notice strong { margin-right: 4px; }
.header-inner { display: flex; min-height: 84px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; color: var(--primary); font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.2; }
.brand img { width: auto; max-height: 56px; }
.custom-logo-link { display: flex; flex: 0 0 auto; align-items: center; }
.custom-logo-link img { width: auto; max-height: 56px; }
.brand small { display: block; margin-top: 5px; color: var(--text-light); font-family: var(--font-body); font-size: .58rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.main-nav .menu { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
.main-nav a { color: #393c38; font-size: .78rem; font-weight: 600; letter-spacing: .02em; }
.main-nav li { position: relative; list-style: none; }
.main-nav li ul { position: absolute; top: 100%; left: 0; display: none; min-width: 210px; padding: 8px 14px; background: var(--white); box-shadow: 0 10px 20px rgba(16,43,39,.12); }
.main-nav li:hover > ul, .main-nav li:focus-within > ul { display: grid; gap: 8px; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-book { min-height: 43px; padding: 9px 15px; font-size: .73rem; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 4px; color: var(--primary); background: var(--white); cursor: pointer; }
.hero { position: relative; display: grid; min-height: clamp(530px, 64vw, 750px); align-items: center; overflow: hidden; color: var(--white); background: var(--primary-dark); }
.hero::before { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,31,28,.76), rgba(11,31,28,.25) 68%, rgba(11,31,28,.12)), linear-gradient(0deg, rgba(11,31,28,.28), transparent 35%); content: ""; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; z-index: 1; max-width: 750px; padding-block: 90px; }
.hero h1 { max-width: 720px; margin-bottom: 22px; }
.hero-copy { max-width: 570px; color: rgba(255,255,255,.87); font-size: clamp(1rem, 1.5vw, 1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .eyebrow { color: var(--gold-light); }
.booking-search { position: relative; z-index: 3; width: min(1160px, calc(100% - 40px)); margin: -52px auto 0; padding: 24px; border: 1px solid var(--border); border-radius: 8px; background: var(--white); box-shadow: 0 14px 42px rgba(16,43,39,.12); }
.booking-search-grid { display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: end; gap: 14px; }
.form-field { display: grid; gap: 7px; }
.form-field label { color: var(--primary-dark); font-size: .78rem; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 4px; color: var(--text); background: var(--white); }
.form-field textarea { min-height: 120px; resize: vertical; }
.booking-search .button { min-height: 48px; white-space: nowrap; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(36px, 7vw, 90px); }
.intro-visual { position: relative; padding: 0 34px 34px 0; }
.intro-visual img { width: 100%; min-height: 390px; border-radius: 4px; object-fit: cover; }
.intro-visual::after { position: absolute; z-index: -1; right: 0; bottom: 0; width: 70%; height: 55%; border: 1px solid var(--gold); content: ""; }
.intro-copy > p:not(.eyebrow) { color: var(--text-light); }
.room-grid, .service-grid, .offer-grid, .news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.room-card, .service-card, .offer-card, .news-card { overflow: hidden; border: 1px solid var(--border); background: var(--white); }
.room-card-image { position: relative; display: block; overflow: hidden; aspect-ratio: 1.45; background: #ddd; }
.room-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.room-card:hover .room-card-image img { transform: scale(1.035); }
.room-card-body, .service-card-body, .offer-card-body, .news-card-body { padding: 22px; }
.room-card-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 13px 0; color: var(--text-light); font-size: .78rem; }
.room-price { color: var(--primary); font-weight: 700; }
.room-price small { color: var(--text-light); font-size: .75rem; font-weight: 400; }
.card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; color: var(--primary); font-size: .8rem; font-weight: 700; }
.card-link:hover { color: #8b6b31; }
.service-card img, .offer-card img, .news-card img { width: 100%; aspect-ratio: 1.55; object-fit: cover; }
.service-card p, .offer-card p, .news-card p { color: var(--text-light); font-size: .9rem; }
.news-card h3 { font-size: 1.2rem; line-height: 1.35; }
.single-ksh_news .page-hero h1, .single-ksh_service .page-hero h1, .single-ksh_offer .page-hero h1, .single-ksh_gallery .page-hero h1 { max-width: 900px; font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.2; }
.news-read-more { display: inline-flex; margin-top: 4px; color: var(--primary); font-size: .82rem; font-weight: 700; }
.news-read-more:hover { color: #8b6b31; }
.detail-content { max-width: 900px; font-size: 1rem; line-height: 1.85; }
.detail-content h2 { margin-top: 36px; font-size: clamp(1.45rem, 2.5vw, 2rem); }
.detail-content h3 { margin-top: 24px; font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; }
.detail-content ul, .detail-content ol { margin: 0 0 24px; padding-left: 1.4em; }
.detail-content li { margin-bottom: 8px; }
.detail-content .demo-content-note { padding: 16px 20px; border-left: 3px solid var(--gold); color: var(--primary-dark); background: var(--background-soft); font-size: .9rem; }
.detail-cta { padding: 44px 0; color: var(--white); background: var(--primary); }
.detail-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.detail-cta h2 { margin-bottom: 8px; font-size: clamp(1.4rem, 2.5vw, 2rem); }
.detail-cta p { margin-bottom: 0; color: rgba(255,255,255,.78); }
.detail-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: 0 0 auto; }
.experience { position: relative; overflow: hidden; color: var(--white); background: var(--primary); }
.experience-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 54px; }
.experience-image { width: 100%; min-height: 410px; object-fit: cover; }
.experience-copy > p:not(.eyebrow) { color: rgba(255,255,255,.75); }
.experience .eyebrow { color: var(--gold-light); }
.experience-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 25px 0 30px; color: var(--gold-light); font-size: .87rem; }
.experience-list span::before { margin-right: 9px; color: var(--gold); content: "✦"; }
.empty-state { padding: 34px; border: 1px dashed var(--border); color: var(--text-light); background: rgba(255,255,255,.55); text-align: center; }
.page-hero { position: relative; display: grid; min-height: 330px; align-items: end; overflow: hidden; color: var(--white); background: var(--primary); }
.page-hero::before { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,31,28,.78), rgba(11,31,28,.25)); content: ""; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero .container { position: relative; z-index: 1; padding-block: 70px 48px; }
.breadcrumbs { margin-bottom: 14px; color: rgba(255,255,255,.72); font-size: .78rem; }
.breadcrumbs a:hover { color: var(--gold-light); }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; }
.content-main { min-width: 0; }
.content-main > *:last-child { margin-bottom: 0; }
.room-detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, .8fr); align-items: start; gap: 34px; }
.room-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.room-gallery img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; }
.room-gallery img:first-child { grid-row: span 2; min-height: 390px; }
.room-booking-card { position: sticky; top: 112px; padding: 24px; border: 1px solid var(--border); background: var(--white); box-shadow: 0 10px 30px rgba(16,43,39,.08); }
.amenity-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; list-style: none; }
.amenity-list li { padding: 10px 12px; border: 1px solid var(--border); font-size: .83rem; }
.site-footer { padding: 64px 0 0; color: rgba(255,255,255,.78); background: var(--primary-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 44px; }
.footer-title { margin-bottom: 17px; color: var(--white); font-family: var(--font-body); font-size: .82rem; font-weight: 700; letter-spacing: .1em; }
.footer-grid p, .footer-grid li { font-size: .84rem; }
.footer-grid ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand { margin-bottom: 14px; color: var(--white); font-family: var(--font-heading); font-size: 1.4rem; }
.footer-bottom { padding: 17px 0; border-top: 1px solid rgba(255,255,255,.15); font-size: .75rem; }
.floating-actions { position: fixed; z-index: 40; right: 20px; bottom: 22px; display: grid; gap: 9px; }
.floating-actions a { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; color: var(--white); background: var(--primary); box-shadow: 0 4px 14px rgba(0,0,0,.17); font-size: .7rem; font-weight: 700; }
.floating-actions a:hover { color: var(--primary-dark); background: var(--gold); }
.hotel-form { display: grid; gap: 18px; max-width: 760px; }
.hotel-form[hidden], [data-booking-stage][hidden], [data-booking-confirmation][hidden] { display: none !important; }
.ksh-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.hotel-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-notice { padding: 12px 15px; border-left: 3px solid var(--primary-light); background: var(--background-soft); }
.form-notice.is-error { border-color: var(--danger); }
.form-notice.is-success { border-color: var(--success); }
.booking-results { display: grid; gap: 16px; margin: 24px 0; }
.booking-result { display: grid; grid-template-columns: 170px 1fr auto; align-items: center; gap: 18px; padding: 16px; border: 1px solid var(--border); background: var(--white); }
.booking-result img { width: 170px; height: 120px; object-fit: cover; }
.booking-result input[type="number"] { width: 74px; min-height: 42px; padding: 7px; border: 1px solid var(--border); }
.booking-confirmation { padding: 28px; border: 1px solid var(--border); background: var(--white); }
.booking-steps { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.booking-step { padding: 7px 11px; border-radius: 20px; color: var(--text-light); background: var(--background-soft); font-size: .75rem; }
.booking-step.is-active { color: var(--white); background: var(--primary); }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 550px; border: 1px solid var(--border); background: var(--white); }
.admin-sidebar { padding: 24px 18px; color: var(--white); background: var(--primary-dark); }
.admin-sidebar a { display: block; padding: 10px 12px; border-radius: 4px; color: rgba(255,255,255,.82); font-size: .84rem; }
.admin-sidebar a:hover { color: var(--primary-dark); background: var(--gold); }
.admin-content { min-width: 0; padding: 28px; overflow-x: auto; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 26px; }
.admin-stat { padding: 18px; border: 1px solid var(--border); background: var(--background); }
.admin-stat strong { display: block; color: var(--primary); font-size: 1.5rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.admin-table th, .admin-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.admin-table th { color: var(--primary); white-space: nowrap; }
.admin-status { display: inline-block; padding: 4px 8px; border-radius: 14px; background: var(--background-soft); white-space: nowrap; }
.admin-table select { max-width: 150px; min-height: 38px; border: 1px solid var(--border); }
.booking-trend { display: grid; gap: 9px; max-width: 720px; margin-bottom: 30px; }
.booking-trend-day { display: grid; grid-template-columns: 50px 1fr 32px; align-items: center; gap: 10px; font-size: .78rem; }
.booking-trend-track { height: 9px; overflow: hidden; border-radius: 6px; background: var(--background-soft); }
.booking-trend-track i { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
.contact-fab { position: fixed; z-index: 30; right: 20px; bottom: 78px; display: grid; gap: 8px; }
.contact-fab a { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; color: var(--white); background: var(--primary-light); box-shadow: 0 4px 14px rgba(0,0,0,.15); font-size: .72rem; font-weight: 700; }
.contact-fab a:hover { background: var(--gold); color: var(--primary-dark); }
.post-content > * { max-width: 850px; }
.post-content ul, .post-content ol { padding-left: 1.4em; }
.pagination { display: flex; gap: 8px; margin-top: 36px; }
.pagination .page-numbers { padding: 8px 12px; border: 1px solid var(--border); }
.pagination .current { color: var(--white); background: var(--primary); }

@media (max-width: 1080px) {
  .main-nav { gap: 13px; }
  .main-nav a { font-size: .7rem; }
  .header-book { padding-inline: 11px; }
  .booking-search-grid { grid-template-columns: repeat(2, 1fr); }
  .booking-search-grid .button { grid-column: span 2; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 32px, 600px); }
  .topbar-inner { justify-content: center; }
  .topbar-contact { justify-content: center; gap: 8px 14px; padding-block: 7px; }
  .topbar-social { display: none; }
  .header-inner { min-height: 72px; }
  .brand { font-size: 1.1rem; }
  .brand img { max-height: 46px; }
  .custom-logo-link img { max-height: 46px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .header-book { min-height: 40px; font-size: .68rem; }
  .main-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 8px 20px 18px; background: var(--white); box-shadow: 0 12px 16px rgba(16,43,39,.1); }
  .main-nav.is-open { display: grid; }
  .main-nav .menu { display: grid; align-items: stretch; gap: 0; }
  .main-nav a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--border); font-size: .84rem; }
  .main-nav li ul { position: static; display: grid; min-width: 0; padding: 0 0 0 16px; box-shadow: none; }
  .hero { min-height: 560px; }
  .hero-content { padding-block: 65px 85px; }
  .booking-search { margin-top: -36px; padding: 18px; }
  .booking-search-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .booking-search-grid .button { grid-column: span 2; }
  .intro-grid, .experience-grid, .room-detail-grid, .content-layout { grid-template-columns: 1fr; }
  .intro-visual { order: 2; }
  .intro-visual img { min-height: 300px; }
  .room-grid, .service-grid, .offer-grid, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .room-card-body, .service-card-body, .offer-card-body, .news-card-body { padding: 16px; }
  .experience-image { min-height: 300px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .room-booking-card { position: static; }
  .amenity-list { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: flex; flex-wrap: wrap; gap: 4px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .container { width: calc(100% - 28px); }
  .header-inner { gap: 12px; }
  .header-actions { gap: 8px; }
  .header-book { display: none; }
  .hero { min-height: 530px; }
  .booking-search-grid { grid-template-columns: 1fr; }
  .booking-search-grid .button { grid-column: auto; }
  .room-grid, .service-grid, .offer-grid, .news-grid { grid-template-columns: 1fr; }
  .experience-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hotel-form-row { grid-template-columns: 1fr; }
  .booking-result { grid-template-columns: 1fr; }
  .booking-result img { width: 100%; height: 180px; }
  .room-gallery { grid-template-columns: 1fr 1fr; }
  .room-gallery img:first-child { grid-column: span 2; grid-row: auto; min-height: 250px; }
  .admin-content { padding: 18px 12px; }
  .detail-cta-inner { align-items: flex-start; flex-direction: column; }
  .contact-fab { right: 12px; bottom: 72px; }
  .floating-actions { right: 12px; bottom: 15px; }
}
@media (max-width: 320px) {
  .brand small { display: none; }
  .brand { gap: 8px; }
  .menu-toggle { width: 40px; height: 40px; }
}
