/* ============================================
   Ngoc Anh Hotels - Stylesheet chính
   ============================================ */
:root{
  --color-primary: #0f5132;
  --color-primary-dark: #0a3a23;
  --color-gold: #c89b3c;
  --color-ivory: #faf7f0;
  --color-text: #2b2b2b;
  --color-muted: #6b6b6b;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(15,81,50,0.08);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', Arial, sans-serif;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0; font-family:var(--font-body); color:var(--color-text);
  background:#fff; line-height:1.65; overflow-x:hidden;
}

/* Thanh cuộn (scrollbar) - thay thanh xám mặc định của trình duyệt */
html{
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: var(--color-primary) #f1efe9;
}
::-webkit-scrollbar{ width:10px; height:10px; } /* Chrome/Edge/Safari */
::-webkit-scrollbar-track{ background:#f1efe9; }
::-webkit-scrollbar-thumb{
  background:var(--color-primary);
  border-radius:20px;
  border:2px solid #f1efe9;
  background-clip:padding-box;
}
::-webkit-scrollbar-thumb:hover{ background:var(--color-gold); }
img{max-width:100%; height:auto; display:block;}
a{color:inherit; text-decoration:none;}
ul{margin:0; padding:0; list-style:none;}
h1,h2,h3,h4{font-family:var(--font-heading); color:var(--color-primary-dark); margin:0 0 .5em;}
.container{max-width:1180px; margin:0 auto; padding:0 20px; width:100%;}
section{padding:60px 0;}
.btn{
  display:inline-block; background:var(--color-primary); color:#fff; padding:12px 28px;
  border-radius:50px; font-weight:600; border:none; cursor:pointer; transition:.25s; white-space:nowrap;
}
.btn:hover{background:var(--color-primary-dark);}
.btn.btn-gold{background:var(--color-gold); color:#2b2b2b;}
.btn.btn-outline{background:transparent; border:2px solid #fff; color:#fff;}
.section-title{text-align:center; margin-bottom:40px;}
.section-title .eyebrow{color:var(--color-gold); font-weight:700; text-transform:uppercase; letter-spacing:2px; font-size:13px;}
.section-title h2{font-size:34px; margin-top:6px;}
.section-title p{color:var(--color-muted); max-width:640px; margin:10px auto 0;}

/* ============ HEADER ============ */
.site-header{position:sticky; top:0; z-index:100; background:#fff; box-shadow:0 2px 10px rgba(0,0,0,.06);}

.navbar-inner{display:flex; align-items:center; justify-content:space-between; padding:12px 20px; gap:20px;}
.brand-logo{height:52px; width:auto;}
.main-nav ul{display:flex; gap:4px; flex-wrap:wrap;}
.main-nav > ul > li{position:relative;}
.main-nav > ul > li > a{display:block; padding:14px 16px; font-weight:600; color:var(--color-primary-dark); white-space:nowrap;}
.main-nav > ul > li.active > a, .main-nav > ul > li:hover > a{color:var(--color-gold);}
.sub-menu{position:absolute; top:100%; left:0; background:#fff; min-width:230px; box-shadow:var(--shadow); border-radius:0 0 8px 8px; opacity:0; visibility:hidden; transform:translateY(6px); transition:.2s; z-index:50;}
.has-sub:hover .sub-menu{opacity:1; visibility:visible; transform:translateY(0);}
.sub-menu li a{padding:12px 18px; display:block; font-weight:500; white-space:nowrap;}
.sub-menu li a:hover{background:var(--color-ivory); color:var(--color-gold);}
.nav-toggle{display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:8px;}
.nav-toggle span{width:26px; height:3px; background:var(--color-primary-dark); border-radius:2px;}

/* ============ HERO ============ */
.hero{position:relative; min-height:560px; background-size:cover; background-position:center;}

/* ============ FLOATING CONTACT BUTTONS ============ */
.float-contact{position:fixed; right:18px; bottom:18px; z-index:200; display:flex; flex-direction:column; gap:12px; align-items:flex-end;}
.float-btn{display:flex; align-items:center; justify-content:center; width:56px; height:56px; border-radius:50%; box-shadow:0 6px 18px rgba(0,0,0,.25); color:#fff; font-size:26px; transition:.2s;}
.float-btn:hover{transform:scale(1.08);}
.float-btn.call{background:var(--color-primary); animation:floatPulse 2s infinite;}
.float-btn.zalo{background:#0068ff; padding:0;}
.float-btn.zalo img{width:34px; height:34px; display:block;}
@keyframes floatPulse{
  0%{box-shadow:0 6px 18px rgba(15,81,50,.35), 0 0 0 0 rgba(15,81,50,.45);}
  70%{box-shadow:0 6px 18px rgba(15,81,50,.35), 0 0 0 14px rgba(15,81,50,0);}
  100%{box-shadow:0 6px 18px rgba(15,81,50,.35), 0 0 0 0 rgba(15,81,50,0);}
}
@media (max-width:600px){
  .float-contact{right:12px; bottom:12px; gap:10px;}
  .float-btn{width:50px; height:50px; font-size:22px;}
  .float-btn.zalo img{width:28px; height:28px;}
}

/* ============ BOOKING BAR ============ */
.booking-bar{background:var(--color-ivory); padding:26px 0; border-bottom:1px solid #eee;}
.booking-form{display:grid; grid-template-columns:repeat(6,1fr); gap:12px; align-items:end;}
.booking-form .field{display:flex; flex-direction:column; gap:6px; min-width:0;}
.booking-form label{font-size:12px; font-weight:700; color:var(--color-muted); text-transform:uppercase;}
.booking-form input,.booking-form select{padding:10px 12px; border:1px solid #ddd; border-radius:8px; font-family:inherit; width:100%;}
.booking-form .btn{width:100%;}

/* ============ CARDS ============ */
.grid{display:grid; gap:26px;}
.grid-2{grid-template-columns:repeat(2,1fr);}
.grid-3{grid-template-columns:repeat(3,1fr);}
.grid-4{grid-template-columns:repeat(4,1fr);}

.card{background:#fff; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); transition:.25s; display:flex; flex-direction:column;}
.card:hover{transform:translateY(-4px);}
.card-img{aspect-ratio:4/3; overflow:hidden;}
.card-img img{width:100%; height:100%; object-fit:cover;}
.card-body{padding:20px; flex:1; display:flex; flex-direction:column;}
.card-body h3{font-size:19px; margin-bottom:8px;}
.card-meta{display:flex; gap:14px; flex-wrap:wrap; font-size:13px; color:var(--color-muted); margin-bottom:12px;}
.card-body p{color:var(--color-muted); font-size:14.5px; flex:1;}
.card-body .btn{margin-top:14px; align-self:flex-start;}
.tag-badge{display:inline-block; background:var(--color-gold); color:#2b2b2b; font-size:11px; font-weight:700; text-transform:uppercase; padding:4px 10px; border-radius:50px; margin-bottom:8px;}

.hotels-section{background:var(--color-ivory);}

/* ============ INTRO / ABOUT ============ */
.about-block{display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:center;}
.about-block img{border-radius:var(--radius); box-shadow:var(--shadow);}
.about-list li{margin-bottom:10px; padding-left:28px; position:relative;}
.about-list li::before{content:"✓"; position:absolute; left:0; color:var(--color-gold); font-weight:700;}

/* ============ TESTIMONIAL ============ */
.testimonial{background:var(--color-primary-dark); color:#fff; text-align:center;}
.testimonial blockquote{font-size:20px; font-family:var(--font-heading); max-width:760px; margin:0 auto 18px; font-style:italic;}
.testimonial .stars{color:var(--color-gold); font-size:20px; margin-bottom:14px;}

/* ============ GALLERY ============ */
.gallery-tabs{display:flex; justify-content:center; gap:10px; margin-bottom:30px; flex-wrap:wrap;}
.gallery-tabs button{padding:10px 20px; border:1px solid var(--color-primary); background:transparent; border-radius:50px; cursor:pointer; font-weight:600; color:var(--color-primary);}
.gallery-tabs button.active{background:var(--color-primary); color:#fff;}
.gallery-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:14px;}
.gallery-grid .g-item{position:relative; border-radius:12px; overflow:hidden; aspect-ratio:1/1; cursor:zoom-in; box-shadow:0 4px 14px rgba(15,81,50,.10);}
.gallery-grid .g-item img{width:100%; height:100%; object-fit:cover; transition:transform .4s ease;}
.gallery-grid .g-item::after{content:"";position:absolute; inset:0; background:linear-gradient(180deg, rgba(10,58,35,0) 55%, rgba(10,58,35,.55) 100%); opacity:0; transition:opacity .3s; pointer-events:none;}
.gallery-grid .g-item::before{content:"\2922"; position:absolute; top:50%; left:50%; width:44px; height:44px; margin:-22px 0 0 -22px; border-radius:50%; background:rgba(255,255,255,.92); color:var(--color-primary-dark); font-size:20px; display:flex; align-items:center; justify-content:center; opacity:0; transform:scale(.7); transition:.3s; z-index:2; pointer-events:none;}
.gallery-grid .g-item:hover img{transform:scale(1.08);}
.gallery-grid .g-item:hover::after,.gallery-grid .g-item:hover::before{opacity:1; transform:scale(1);}
.gallery-grid .g-item.hidden{display:none;}

/* ============ ROOM DETAIL ============ */
.room-hero-gallery{display:grid; grid-template-columns:2fr 1fr 1fr; grid-template-rows:repeat(2,220px); gap:10px; margin-bottom:40px;}
.room-hero-gallery > div{position:relative; overflow:hidden; border-radius:10px; cursor:zoom-in;}
.room-hero-gallery img{width:100%; height:100%; object-fit:cover; border-radius:10px; transition:transform .4s ease;}
.room-hero-gallery > div:hover img{transform:scale(1.06);}
.room-hero-gallery .main{grid-row:span 2;}
.room-facts{display:flex; gap:30px; flex-wrap:wrap; background:var(--color-ivory); border-radius:var(--radius); padding:24px; margin:30px 0;}
.room-facts .fact{min-width:120px;}
.room-facts .fact strong{display:block; color:var(--color-primary-dark); font-size:17px;}
.room-facts .fact span{color:var(--color-muted); font-size:13px;}
.amenity-list{display:grid; grid-template-columns:repeat(2,1fr); gap:10px;}
.amenity-list li{padding:8px 0 8px 26px; position:relative; border-bottom:1px dashed #eee;}
.amenity-list li::before{content:"●"; color:var(--color-gold); position:absolute; left:0;}

/* ============ TABLE (giá đưa đón) ============ */
.price-table{width:100%; border-collapse:collapse; margin-top:10px;}
.price-table th,.price-table td{padding:12px 14px; border:1px solid #e8e8e8; text-align:center;}
.price-table th{background:var(--color-primary); color:#fff;}
.price-table td:first-child, .price-table th:first-child{text-align:left;}
.table-scroll{overflow-x:auto; -webkit-overflow-scrolling:touch;}

/* ============ CONTACT ============ */
.contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:40px;}
.contact-card{background:var(--color-ivory); padding:26px; border-radius:var(--radius); margin-bottom:18px;}
.contact-card h3{margin-bottom:14px;}
.contact-card p{margin:6px 0;}
.map-frame{border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); min-height:340px;}
.map-frame iframe{width:100%; height:100%; min-height:340px; border:0;}

/* ============ BREADCRUMB / PAGE HEADER ============ */
.page-header{background:var(--color-primary-dark); color:#fff; padding:70px 0 40px; text-align:center;}
.page-header h1{color:#fff; margin-bottom:8px;}
.breadcrumb{font-size:14px; opacity:.85;}
.breadcrumb a{color:var(--color-gold);}

/* ============ CONTENT PAGE ============ */
.content-page{max-width:820px; margin:0 auto;}
.content-page h2,.content-page h3{margin-top:28px;}
.content-page p{margin-bottom:14px;}
.content-page ul,.content-page ol{margin:0 0 14px 22px;}

/* ============ PAGINATION ============ */
.pagination{display:flex; gap:8px; justify-content:center; margin-top:30px;}
.pagination a,.pagination span{padding:9px 15px; border-radius:6px; border:1px solid #ddd; color:var(--color-text);}
.pagination .current{background:var(--color-primary); color:#fff; border-color:var(--color-primary);}

/* ============ FOOTER ============ */
.site-footer{background:#102a1c; color:#cfe3d7; padding:60px 0 0;}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr 1fr; gap:30px;}
.footer-logo{height:40px; margin-bottom:14px; filter:brightness(0) invert(1);}
.footer-col h4{color:#fff; font-size:15px; margin-bottom:14px; text-transform:uppercase; letter-spacing:1px;}
.footer-col ul li{margin-bottom:9px;}
.footer-col a{color:#cfe3d7; opacity:.9;}
.footer-col a:hover{color:var(--color-gold); opacity:1;}
.footer-col p{font-size:14px; margin:6px 0; word-break:break-word;}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1); margin-top:40px; padding:18px 0; text-align:center; font-size:13px; opacity:.75;}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px){
  .footer-grid{grid-template-columns:repeat(2,1fr);}
  .grid-4{grid-template-columns:repeat(2,1fr);}
  .grid-3{grid-template-columns:repeat(2,1fr);}
  .gallery-grid{grid-template-columns:repeat(3,1fr);}
  .about-block{grid-template-columns:1fr;}
  .contact-grid{grid-template-columns:1fr;}
  .booking-form{grid-template-columns:repeat(3,1fr);}
}
@media (max-width: 768px){
  .nav-toggle{display:flex;}
  .main-nav{position:fixed; top:0; right:-100%; width:82%; max-width:320px; height:100vh; background:#fff; box-shadow:-6px 0 20px rgba(0,0,0,.15); transition:.3s; overflow-y:auto; padding:70px 0 30px; z-index:99;}
  .main-nav.open{right:0;}
  .main-nav > ul{flex-direction:column;}
  .main-nav > ul > li > a{padding:14px 24px;}
  .sub-menu{position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; background:#f7f7f7; display:none;}
  .has-sub.open .sub-menu{display:block;}
  .grid-4,.grid-3,.grid-2{grid-template-columns:1fr;}
  .gallery-grid{grid-template-columns:repeat(2,1fr);}
  .room-hero-gallery{grid-template-columns:1fr 1fr; grid-template-rows:160px 160px auto;}
  .room-hero-gallery .main{grid-column:span 2; grid-row:1; height:220px;}
  .amenity-list{grid-template-columns:1fr;}
  .booking-form{grid-template-columns:1fr 1fr;}
  .footer-grid{grid-template-columns:1fr 1fr;}
  section{padding:40px 0;}
}
@media (max-width: 480px){
  .booking-form{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
}

/* ============ Lightbox xem ảnh phóng to ============ */
.lightbox-overlay{position:fixed; inset:0; background:rgba(10,20,15,.94); z-index:2000; display:none; align-items:center; justify-content:center; padding:20px;}
.lightbox-overlay.show{display:flex;}
.lightbox-figure{position:relative; max-width:min(92vw,1100px); max-height:88vh; display:flex; flex-direction:column; align-items:center;}
.lightbox-figure img{max-width:100%; max-height:78vh; width:auto; height:auto; border-radius:8px; box-shadow:0 10px 50px rgba(0,0,0,.5); opacity:0; transform:scale(.97); transition:opacity .25s ease, transform .25s ease;}
.lightbox-figure img.show{opacity:1; transform:scale(1);}
.lightbox-caption{color:#f1ece0; text-align:center; margin-top:14px; font-size:14px; opacity:.85; min-height:18px;}
.lightbox-counter{color:var(--color-gold); text-align:center; font-size:13px; font-weight:600; letter-spacing:1px; margin-top:4px;}
.lightbox-close{position:absolute; top:-6px; right:-6px; width:42px; height:42px; border-radius:50%; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.3); color:#fff; font-size:22px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:.2s;}
.lightbox-close:hover{background:var(--color-gold); color:#2b2b2b;}
.lightbox-nav{position:fixed; top:50%; transform:translateY(-50%); width:50px; height:50px; border-radius:50%; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.3); color:#fff; font-size:24px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:.2s; z-index:2001;}
.lightbox-nav:hover{background:var(--color-gold); color:#2b2b2b;}
.lightbox-prev{left:16px;}
.lightbox-next{right:16px;}
@media (max-width:600px){
  .lightbox-nav{width:40px; height:40px; font-size:19px;}
  .lightbox-prev{left:6px;}
  .lightbox-next{right:6px;}
  .lightbox-close{top:-40px; right:0;}
}

/* ============ Modal xác nhận (dùng chung với Admin) ============ */
.modal-overlay{position:fixed; inset:0; background:rgba(0,0,0,.5); display:none; align-items:center; justify-content:center; z-index:1000;}
.modal-overlay.show{display:flex;}
.modal-box{background:#fff; border-radius:12px; padding:28px; max-width:400px; width:90%; text-align:center; box-shadow:0 10px 40px rgba(0,0,0,.25);}
.modal-box h3{margin-bottom:10px;}
.modal-box p{color:var(--color-muted); margin-bottom:22px;}
.modal-actions{display:flex; gap:12px; justify-content:center;}
.modal-actions button{padding:10px 24px; border-radius:8px; border:none; cursor:pointer; font-weight:600;}
.modal-actions .confirm{background:var(--color-primary); color:#fff;}
.modal-actions .cancel{background:#eee; color:#333;}
