/* =========================================================
   Hotel Management — Modern front-end design system
   Load after style.css. Keeps plugin/JS hooks intact.
   Brand: Deep red (#bd0f0f), charcoal, warm gold accent.
   ========================================================= */
:root {
    --brand:      #bd0f0f;
    --brand-dark: #8f0b0b;
    --brand-900:  #7c0a0a;
    --gold:       #c9a35c;
    --gold-soft:  #e9dcc0;
    --ink:        #1c1c1f;
    --ink-soft:   #3f3f46;
    --muted:      #7b7b84;
    --line:       #e8e4de;
    --paper:      #faf9f7;
    --card:       #ffffff;
    --dark:       #151517;
    --dark-2:     #1d1d21;
    --shadow-sm:  0 2px 8px rgba(20, 20, 24, .06);
    --shadow-md:  0 12px 32px rgba(20, 20, 24, .10);
    --shadow-lg:  0 24px 56px rgba(20, 20, 24, .16);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
}

body {
    font-family: 'Sarabun', 'Segoe UI', system-ui, sans-serif;
    color: var(--ink);
    background: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4,
.block-title, .info-title, .card-title, .item-title, .page-title, .hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: .2px;
}

p { line-height: 1.75; }

a { transition: color .2s ease, background .2s ease, box-shadow .2s ease; }

img { max-width: 100%; }

.text-muted { color: var(--muted) !important; }
.text-primary { color: var(--brand) !important; }
.text-white { color: #fff !important; }
.bg-white { background: #fff !important; }
.bg-gray, .bg-light-gray { background: var(--paper) !important; }
.bg-dark { background: var(--dark) !important; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; font-size: .92rem; padding: .7rem 1.6rem; border-width: 1.5px; }
.btn-sm { padding: .35rem 1rem; font-size: .82rem; }
.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-900) 100%);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 8px 20px rgba(189, 15, 15, .28);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
    box-shadow: 0 10px 26px rgba(189, 15, 15, .36);
    transform: translateY(-1px);
}
.btn-outline-primary { border-color: var(--brand); color: var(--brand); }
.btn-outline-primary:hover, .btn-outline-primary:focus { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-outline-white { border-color: #fff; color: #fff; }
.btn-outline-white:hover, .btn-outline-white:focus { background: #fff; color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.btn-white:hover, .btn-white:focus { background: #f3f0ea; color: var(--ink); }

/* ---------- Top info bar ---------- */
.site-topbar {
    background: var(--dark);
    color: #c9c9cf;
    font-size: .82rem;
    padding: .45rem 0;
}
.site-topbar a { color: #e6e6ea; }
.site-topbar a:hover { color: #fff; }
.site-topbar .brand-social i { width: 1.35rem; text-align: center; }
.site-topbar select.form-control {
    background: transparent; border: 1px solid rgba(255,255,255,.28); border-radius: 6px;
    color: #fff; height: 28px; font-size: .8rem; padding: 0 .6rem; width: auto; display: inline-block;
}
.site-topbar select.form-control option { color: #222; background: #fff; }

/* ---------- Navbar ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 1030; }
.inner-page .site-header { position: relative; z-index: 20; }
.navbar.header-sticky {
    background: transparent;
    padding: 1.15rem 1rem;
    box-shadow: none;
    transition: all .3s ease;
}
.inner-page .navbar.header-sticky { background: rgba(21,21,23,.97); }
.home-hero .navbar.header-sticky:not(.sticky) {
    background: linear-gradient(180deg, rgba(15,15,18,.82) 0%, rgba(15,15,18,.42) 55%, rgba(15,15,18,0) 100%);
    box-shadow: none;
}
.navbar.header-sticky .navbar-brand img { height: 46px; transition: height .3s ease; }
.navbar.header-sticky .nav-link { color: #fff; font-weight: 600; letter-spacing: .3px; }
.navbar.header-sticky .nav-link:hover, .navbar.header-sticky .nav-item.active .nav-link { color: #fff; }
.navbar.header-sticky .nav-link { position: relative; }
.navbar.header-sticky .nav-link::after {
    content:''; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0;
    border-radius: 2px; background: #fff; transition: width .25s ease;
}
.navbar.header-sticky .nav-item.active .nav-link::after, .navbar.header-sticky .nav-link:hover::after { width: 100%; }
.navbar.header-sticky .dropdown-menu {
    border: 0; border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
    margin-top: .6rem; padding: .4rem 0;
}
.navbar.header-sticky .dropdown-item { font-size: .9rem; padding: .5rem 1.2rem; }
.navbar.header-sticky .dropdown-item:hover { background: var(--brand); color: #fff; }
.navbar.header-sticky.sticky {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
    background: rgba(21,21,23,.97);
    box-shadow: 0 6px 20px rgba(0,0,0,.18);
    padding: .55rem 1rem;
}
.navbar.header-sticky.sticky .navbar-brand img { height: 40px; }
.navbar-light .navbar-toggler { border-color: rgba(255,255,255,.4); }
.navbar-light .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); }

/* Nav actions (login / language / book) living beside brand */
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-actions .nav-link { display: inline-flex; align-items: center; gap: .45rem; }
.nav-actions .btn-book { white-space: nowrap; }

/* Collapse behavior: when not scrolled & mobile, give solid fallback */
@media (max-width: 991.98px) {
    .navbar.header-sticky { background: rgba(21,21,23,.97); }
    .navbar-collapse { padding-top: .5rem; }
    .nav-actions { order: 0; }
}

/* ---------- Hero ---------- */
.hero-header { position: relative; min-height: 92vh; min-height: max(92vh, 900px); display: flex; align-items: center; padding: 12rem 0 4.5rem; background: var(--dark); }
.header-slider { position: absolute; inset: 0; }
.header-slider .owl-carousel,
.header-slider .owl-stage-outer,
.header-slider .owl-stage,
.header-slider .owl-item,
.header-slider .item { height: 100%; }
.header-slider .bg-img-hero { background-size: cover; background-position: center; background-color: #222; }
.header-slider::after {
    content:''; position:absolute; inset:0;
    background: linear-gradient(180deg, rgba(15,15,18,.55) 0%, rgba(15,15,18,.18) 45%, rgba(15,15,18,.82) 100%);
    z-index: 1;
}
.header-slider .owl-nav { position: absolute; top: 50%; width: 100%; z-index: 5; }
.header-slider .owl-nav button { position: absolute; top: 50%; transform: translateY(-50%); }
.header-slider .owl-nav .owl-prev { left: 18px; }
.header-slider .owl-nav .owl-next { right: 18px; }
.header-slider .owl-nav button i { font-size: 1.4rem; color:#fff; background: rgba(0,0,0,.28); border-radius: 50%; padding: .9rem 1.05rem; backdrop-filter: blur(3px); }
.hero-header_wrap { position: relative; z-index: 5; width: 100%; }
.hero-header_wrap .header-subtitle {
    font-family: 'Caveat', cursive; font-size: 1.5rem; color: var(--gold-soft);
    text-transform: none; letter-spacing: 1px; margin-bottom: .6rem;
}
.hero-header_wrap .header-title {
    font-size: clamp(2.2rem, 5vw, 4.1rem); color: #fff; font-weight: 700; line-height: 1.08; margin-bottom: 1rem;
}
.hero-header_wrap .header-des { color: #e8e6e2; font-size: 1.02rem; max-width: 30rem; }
.hero-cta { margin-top: 1.6rem; display: flex; gap: .7rem; flex-wrap: wrap; }

/* offer card inside hero */
.offer-carousel .offer {
    background: rgba(18,18,21,.55); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-lg);
    padding: 2rem 1.75rem; min-height: 260px; box-shadow: var(--shadow-lg);
}
.offer-carousel .ribbon span {
    background: var(--gold); color: var(--dark); border-radius: 999px; padding: .3rem 1.1rem;
    font-weight: 700; font-size: 1.1rem; display: inline-block; margin-bottom: 1rem;
}

.slider_preloader_status { position: absolute; right: 24px; bottom: 24px; z-index: 6; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Availability search bar ---------- */
.search-area {
    position: relative; z-index: 20;
    margin-top: -3.2rem; margin-bottom: 1.5rem;
    background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.1rem 1.1rem 1.1rem 1.6rem;
}
.search-option label { font-size: .78rem; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 600; }
.search-option .form-control {
    border: 0; border-bottom: 2px solid var(--line); border-radius: 0; padding-left: 0; font-weight: 600;
}
.search-option .form-control:focus { box-shadow: none; border-color: var(--brand); }
.search-option .number-spinner, .search-option .children {
    display: flex; align-items: center; justify-content: space-between;
    height: 50% !important; border-bottom: 2px solid var(--line);
}
.search-option .btn-pm {
    width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--paper); color: var(--ink); font-size: .9rem; cursor: pointer;
}
.search-option .btn-pm:hover { background: var(--brand); color: #fff; }
.search-option input.spinner { width: 2.6rem; text-align: center; border: 0; font-weight: 700; }
.search-area [type="submit"] {
    width: 100%; height: 100%; min-height: 66px; border: 0; border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand), var(--brand-900)); color: #fff; font-weight: 700;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
    box-shadow: 0 10px 24px rgba(189,15,15,.30);
}
.search-area [type="submit"] span { text-transform: uppercase; font-size: .78rem; letter-spacing: 1px; opacity: .9; }
.search-area [type="submit"] span p { margin: 0; font-size: 1rem; text-transform: none; letter-spacing: 0; }

/* ---------- Sections & titles ---------- */
.section { padding: 5rem 0; }
.section-title .title, .block-title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; color: var(--ink); }
.section-title .badge, .section-title .kicker {
    background: var(--brand); color: #fff; border-radius: 999px; padding: .3rem 1rem;
    font-size: .74rem; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 600;
    display: inline-block; margin-bottom: .6rem;
}
.sub-title { color: var(--muted); font-size: 1rem; }

/* ---------- Feature boxes ---------- */
.feature-box {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
    padding: 1.9rem 1.4rem; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; height: 100%;
}
.feature-box:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-box-icon { width: 64px; height: 64px; margin: 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 18px; background: var(--paper); }
.feature-box-icon img { max-height: 38px; }
.feature-box-title { font-size: 1.05rem !important; font-weight: 600; margin-bottom: .4rem; }

/* ---------- Cards ---------- */
.card { border-radius: var(--radius-md) !important; }
.card.border-0, .card.shadow-xs, .card.box-shadow {
    border: 1px solid var(--line) !important; box-shadow: var(--shadow-sm) !important;
    overflow: hidden;
}
.card-img { overflow: hidden; }
.card-img img { transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.card .card-title a:hover { color: var(--brand); }
.card-poster .card-body { padding: 1.4rem; }
.item-tag { letter-spacing: 1px; font-size: .78rem; color: var(--ink) !important; }

.room-list.card { border-radius: var(--radius-lg) !important; }
.room-list .room-img img { border-radius: var(--radius-md); object-fit: cover; }
.room-list .icon-content .zoom-icon {
    width: 2.4rem; height: 2.4rem; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink); box-shadow: var(--shadow-sm);
}
.room-list .icon-content .zoom-icon:hover { background: var(--brand); color: #fff; }

/* ---------- About page ---------- */
.section-about .bg-image { border-radius: var(--radius-lg); }
.about-stats .stat h3 { font-size: 2rem; color: var(--brand); }

/* ---------- Gallery ---------- */
.grid .grid-item { border-radius: var(--radius-sm); overflow: hidden; }
.grid .grid-item img { transition: transform .5s ease; }
.grid .grid-item:hover img { transform: scale(1.05); }

/* ---------- Newsletter ---------- */
.newslatter h3 { font-family: 'Playfair Display', serif; font-size: 1.7rem; }
.newslatter .form-control { border-radius: 999px 0 0 999px !important; padding: .7rem 1.3rem; }
.newslatter .input-group-append .btn { border-radius: 0 999px 999px 0 !important; background: var(--brand); color: #fff; padding-left: 1.6rem; padding-right: 1.6rem; }
.newslatter .input-group-append .btn:hover { background: var(--brand-dark); }

/* ---------- Footer ---------- */
.main-footer { background: var(--dark) !important; color: #b9b9c0; }
.main-footer .link-title { color: #fff !important; font-family: 'Playfair Display', serif; font-size: 1.15rem !important; }
.main-footer .link-title::before {
    content:''; display:inline-block; width:26px; height:3px; background: var(--gold); border-radius:2px; margin-right:.6rem; vertical-align: middle;
}
.main-footer a { color: #b9b9c0; }
.main-footer a:hover { color: #fff; }
.main-footer .footer-logo img { height: 44px; }
.main-footer .social-icon li { margin-bottom: .65rem; }
.main-footer .social-icon i.icon-wrap { width: 34px; height: 34px; background: rgba(255,255,255,.06); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-right: .5rem; }
.main-footer .social-icon a:hover i.icon-wrap { background: var(--brand); color: #fff; }
.sub-footer { background: #101012 !important; color: #8f8f98; }

/* ---------- Forms / auth ---------- */
.form-control {
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .65rem 1rem;
}
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 .25rem rgba(189,15,15,.12); }
.auth-wrap { max-width: 440px; margin: 0 auto; }
.auth-wrap .card { border-radius: var(--radius-lg) !important; box-shadow: var(--shadow-lg); border: 0; }

/* Legacy auth panel (.form-wrapper / .panel) */
.form-wrapper { width: 100%; max-width: 460px; }
.form-container .panel {
    background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: 2.2rem; border: 0;
}
.form-container .panel-header h3 { font-family: 'Playfair Display', serif; font-weight: 700; }
.form-wrapper .btn-block { padding: .8rem 1rem; }
.text-red { color: var(--brand) !important; }
.facebook-span { display: inline-block; }

/* Booking / checkout surfaces */
.checkout-wrap .card { box-shadow: var(--shadow-md); }
.section-checkout .custom-title { font-family: 'Playfair Display', serif; }
.section-checkout .card.card-body { border-radius: var(--radius-lg) !important; box-shadow: var(--shadow-md); }

/* ---------- Back to top ---------- */
#toTop {
    width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff;
    display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 9999;
    box-shadow: 0 8px 22px rgba(189,15,15,.35);
}
#toTop:hover { background: var(--brand-dark); }

/* Selection MISC */
::selection { background: var(--brand); color: #fff; }

@media (max-width: 575.98px) {
    .hero-header, .header-slider .owl-item, .header-slider .item { min-height: 78vh; }
    .icon-content, .card-img .btn { font-size: .8rem; }
}

/* ---------- Contact page ---------- */
.contact-map #map { display: block; width: 100%; height: 320px; }

.contact-quick { background: var(--paper); padding: 4rem 0 3.4rem; }
.quick-item {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
    padding: 2.1rem 1.3rem 1.9rem; height: 100%; text-align: center;
    box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.quick-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.quick-icon {
    width: 60px; height: 60px; margin: 0 auto 1.05rem; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-900)); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
    box-shadow: 0 10px 20px rgba(189, 15, 15, .30);
}
.quick-item .quick-title {
    font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1rem;
    text-transform: uppercase; letter-spacing: .9px; color: var(--ink); margin-bottom: .5rem;
}
.quick-link {
    display: inline-flex; align-items: center; gap: .4rem;
    color: var(--brand); font-weight: 600; font-size: .95rem; word-break: break-all;
}
.quick-link:hover { color: var(--brand-dark); }
.quick-link i { transition: transform .2s ease; }
.quick-link:hover i { transform: translateX(3px); }

.contact-area { padding: 5rem 0; }
.contact-panel {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); overflow: hidden;
}
.contact-panel > .row { margin: 0; }
.contact-panel > .row > [class*="col-"] { padding: 2.5rem; }
.contact-col { background: var(--dark); color: #c9c9cf; }
.contact-col-title {
    color: #fff; font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: .5rem;
}
.contact-col-sub { color: #8f8f98; font-size: .92rem; margin-bottom: 1.8rem; line-height: 1.6; }
.contact-item { display: flex; gap: .95rem; align-items: flex-start; }
.contact-item + .contact-item { margin-top: 1.3rem; }
.contact-list .ci-icon {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255, 255, 255, .08); color: var(--gold);
    display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
    margin-top: .05rem;
}
.contact-item .ci-label {
    display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: 1px;
    color: #8f8f98; font-weight: 600; margin-bottom: .2rem;
}
.contact-item .ci-value { display: block; color: #fff; font-size: .98rem; line-height: 1.5; }
.contact-item a.ci-value { color: var(--gold-soft); }
.contact-item a.ci-value:hover { color: #fff; text-decoration: underline; }
.contact-divider { height: 1px; background: rgba(255, 255, 255, .12); margin: 1.5rem 0; }

.form-title {
    color: var(--ink); font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: .35rem;
}
.form-sub { color: var(--muted); font-size: .92rem; margin-bottom: 1.6rem; }
.contact-form .form-group { margin-bottom: 1.05rem; }
.contact-form label {
    font-size: .8rem; font-weight: 600; color: var(--ink-soft);
    text-transform: uppercase; letter-spacing: .6px; margin-bottom: .35rem;
}
.input-icon { position: relative; }
.input-icon > i {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    color: var(--muted); font-size: 1rem; pointer-events: none; z-index: 2;
}
.input-icon-top > i { top: 17px; transform: none; }
.contact-form .form-control {
    padding: .72rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 .25rem rgba(189, 15, 15, .10); }
.contact-form .input-icon .form-control { padding-left: 2.55rem; }
.contact-form .input-icon textarea.form-control { padding-left: 2.55rem; }
.contact-form .form-row { margin-right: 0; margin-left: 0; }
.contact-form .form-row > .col-md-6 { padding-right: .5rem; padding-left: .5rem; }
.captcha-row { display: flex; gap: .75rem; align-items: stretch; }
.captcha-row .captcha-box {
    flex: 0 0 auto; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    overflow: hidden; line-height: 0; max-width: 60%;
}
.captcha-row .captcha-box img { display: block; height: 54px; width: auto; max-width: 100%; }
.captcha-row .form-control { flex: 1 1 auto; min-width: 0; }
.contact-form .btn-lg { padding: .9rem 1.6rem; font-size: 1rem; letter-spacing: .3px; }
.contact-form .btn-lg i { margin-right: .4rem; }