/* General Body & Fonts */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7f6; /* A slightly warmer, more modern light gray */
    color: #333;
    line-height: 1.6;
}

/* Main Container */
.container {
    /* expansive width for gallery layout */
    max-width: 1320px;
    margin: auto;
    padding: 2rem 1rem;
}

@media (max-width: 991.98px) {
    .compact-home #rooms-list {
        row-gap: 1.25rem;
    }
}

/* Compact mode: make cards/filters fully opaque for readability */
.compact-home .section-card {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #e5e7eb !important;
}

/* Contact Section */
.contact-section {
    padding: 2.5rem;
    background-color: #f8f9fa;
    border-radius: 16px;
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    position: relative;
    height: 0;
    border-radius: 12px;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border: 0;
}

/* Header - More prominent */
.main-header {
    position: relative; /* Contain absolutely positioned children */
    text-align: center;
    margin-bottom: 4rem;
    padding: 2.5rem 1.5rem;
    /* background is now set dynamically */
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.main-header .brand-logo {
    max-height: 75px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.main-header h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.main-header .lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

.user-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.user-actions .btn {
    margin-left: 5px;
}

/* Room Card Styling - More depth */
.room-card {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.room-card .card-img-top {
    height: 240px;
    object-fit: cover;
}

.room-card .card-body {
    padding: 1.5rem 1.75rem;
}

.room-card .card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.room-card .price {
    font-size: 1.4rem; /* Larger price */
    font-weight: 700; /* Bolder price */
    color: #3498db; /* A vibrant blue */
}

/* Status Badge - More distinct */
.status-badge {
    font-size: 0.85rem;
    padding: 0.5em 1em;
    font-weight: 600;
    border-radius: 50px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.status-green { background: linear-gradient(45deg, #2ecc71, #28a745); } /* Fresh green */
.status-yellow { background: linear-gradient(45deg, #f1c40f, #f39c12); } /* Vibrant yellow */
.status-red { background: linear-gradient(45deg, #e74c3c, #c0392b); } /* Strong red */

/* Buttons - More impactful */
.btn-main-action {
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    border: none;
    transition: all 0.3s ease;
    width: 100%;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-main-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0,0,0,0.2);
}

/* Specific button colors */
.btn.btn-success { background-image: linear-gradient(45deg, #2ecc71, #28a745); }
.btn.btn-warning { background-image: linear-gradient(45deg, #f1c40f, #f39c12); }
.btn.btn-secondary { background-image: linear-gradient(45deg, #95a5a6, #7f8c8d); }

.btn-secondary-action {
    font-size: 0.85rem;
    font-weight: 500;
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-secondary-action:hover {
    color: #2980b9;
}

.btn-secondary-action .bi {
    vertical-align: -0.1em;
    margin-right: 3px;
}

/* Admin Login Button */
.admin-login-btn {
    background-color: transparent;
    color: #7f8c8d;
    border: 2px solid #bdc3c7;
    border-radius: 10px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-login-btn:hover {
    background-color: #fff;
    color: #34495e;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ===== Shared: Filter toolbar ===== */
.filter-toolbar {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 6px 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.filter-toolbar .btn.btn-outline-secondary{
  border-radius: 999px;
  padding: 6px 12px;
}
@media (max-width: 991.98px){ .filter-toolbar{ position: sticky; top: 66px; } }

/* ===== Shared: CTA emphasis animations ===== */
@keyframes ctaBounce { 0%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(-3px) scale(1.02); } 60% { transform: translateY(0) scale(1); } }
@keyframes ctaGlow { 0%, 100% { box-shadow: 0 0 0 rgba(0,0,0,0), 0 0 0 rgba(20,184,166,0); } 50% { box-shadow: 0 0 0.6rem rgba(0,0,0,.12), 0 0 1.1rem rgba(20,184,166,.5); } }
.btn-cta-glow { position: relative; animation: ctaGlow 2s infinite ease-in-out; }
.btn-animate-bounce { animation: ctaBounce 1.8s infinite ease-in-out; }
.delay-2 { animation-delay: .9s; }

/* ===== Shared: Nav highlight effects ===== */
.nav-highlight { position: relative; font-weight: 700; }
.nav-highlight::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -6px; height: 6px; border-radius: 6px; background: linear-gradient(90deg,#ff6b6b,#ffd93d,#6bcB77); opacity: .35; filter: blur(1px); }
@keyframes pulseGlow { 0%,100%{ text-shadow: 0 0 0 rgba(255,107,107,0); } 50%{ text-shadow: 0 0 10px rgba(255,107,107,.65); } }
@keyframes softBounce { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-2px); } }
.nav-pulse { animation: pulseGlow 2.4s ease-in-out infinite; }
.nav-bounce { animation: softBounce 1.8s ease-in-out infinite; }

/* ===== Shared: Reveal and top fade overlay ===== */
.reveal { opacity: 0; transform: translateY(42px) scale(.96); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.top-fade-overlay { position: fixed; top: 0; left: 0; right: 0; height: 80px; pointer-events: none; background: linear-gradient(to bottom, rgba(255,255,255,0.98), rgba(255,255,255,0)); opacity: 0; transition: opacity .3s ease; z-index: 1035; }

/* ===== Floating Contact Buttons (Zalo/Hotline) ===== */
.floating-contact { position: fixed; bottom: 25px; right: 25px; display: flex; flex-direction: column; align-items: flex-end; z-index: 1030; }
.floating-contact a { box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: all 0.3s ease; margin-top: 15px; }
.floating-contact a:hover { transform: scale(1.1); box-shadow: 0 6px 16px rgba(0,0,0,0.2); }
.zalo-btn { width: 60px; height: 60px; border-radius: 50%; background-color: #0068ff; display: flex; justify-content: center; align-items: center; }
.zalo-btn img { width: 32px; height: auto; }
.phone-btn { display: flex; align-items: center; background-color: #e67e22; color: #fff; border-radius: 50px; text-decoration: none; font-weight: 500; font-size: 16px; padding-left: 20px; }
@keyframes wiggle { 0%,100% { transform: translate3d(0,0,0) rotate(0deg); } 10% { transform: translate3d(-1px, 1px, 0) rotate(-6deg); } 20% { transform: translate3d(1px, -1px, 0) rotate(6deg); } 30% { transform: translate3d(-1px, 1px, 0) rotate(-6deg); } 40% { transform: translate3d(1px, -1px, 0) rotate(6deg); } 50% { transform: translate3d(-1px, 1px, 0) rotate(-6deg); } 60% { transform: translate3d(1px, -1px, 0) rotate(6deg); } 70% { transform: translate3d(-1px, 1px, 0) rotate(-6deg); } 80% { transform: translate3d(1px, -1px, 0) rotate(6deg); } 90% { transform: translate3d(-1px, 1px, 0) rotate(-6deg); } }
.phone-icon-circle { animation: wiggle 1.6s ease-in-out infinite; transform-origin: center; will-change: transform; width: 45px; height: 45px; background-color: #d35400; border-radius: 50%; display: flex; justify-content: center; align-items: center; margin: 5px 0 5px 15px; }

/* ===== Deals (Combo) styles ===== */
.deal-card { border: 1px solid rgba(255,255,255,0.45); border-radius: 16px; transition: transform .18s ease, box-shadow .18s ease; background: rgba(255,255,255,0.58); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 14px 40px rgba(0,0,0,.12); }
.deal-card:hover { transform: translateY(-3px); box-shadow: 0 18px 48px rgba(0,0,0,.16); }
.deal-badge { background: #e6fffa; color: #0b7f77; border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: .85rem; border: 1px solid rgba(20,184,166,.25); }
.deal-price { color: #0f3d3e; font-weight: 800; font-size: 1.6rem; }
.deal-old-price { color: #8d99ae; text-decoration: line-through; font-size: .95rem; }
.btn-deal { background: linear-gradient(90deg, rgba(20,184,166,.95), rgba(14,165,163,.95)); color: #063d3a; border: none; box-shadow: 0 8px 18px rgba(20,184,166,.32); }
.btn-deal:hover { filter: brightness(1.02); transform: translateY(-1px); box-shadow: 0 12px 24px rgba(20,184,166,.38); }
