/* Global Styles */
html {
    scroll-behavior: smooth;
    /* Bù trừ chiều cao của navbar sticky-top (khoảng 70px-80px) 
       để tiêu đề phần liên hệ không bị che khuất */
    scroll-padding-top: 85px; 
}

body {
    font-family: 'Segoe UI', Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
}

/* Navbar Styles */
.navbar {
    transition: all 0.3s ease;
    padding: 12px 0;
}

.navbar-brand img {
    max-height: 45px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: #444 !important;
    padding: 8px 16px !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #0d6efd !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 2px;
    left: 16px;
    background-color: #0d6efd;
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: calc(100% - 32px);
}

.nav-link.active {
    color: #0d6efd !important;
}

.btn-auth {
    border-radius: 25px;
    padding: 8px 20px !important;
    font-weight: 600;
}

.user-dropdown-btn {
    border-radius: 30px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* --- Common Card Styles (Rooms & News) --- */
.room-card-home, .news-card-home {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.room-card-home:hover, .news-card-home:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12) !important;
}

.room-card-home .card-img-top, 
.news-card-home .card-img-top {
    transition: transform 0.6s ease;
    object-fit: cover;
}

.room-card-home:hover .card-img-top, 
.news-card-home:hover .card-img-top {
    transform: scale(1.1);
}

/* Định dạng riêng cho chiều cao ảnh card */
.room-card-home .card-img-top {
    height: 250px;
}

.news-card-home .card-img-top {
    height: 200px;
}

.room-card-home .card-title a,
.news-card-home .card-title a {
    transition: color 0.2s ease;
}

.room-card-home .card-title a:hover,
.news-card-home .card-title a:hover {
    color: #0d6efd !important;
}

/* --- Breadcrumb Customization --- */
.breadcrumb-wrapper {
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.breadcrumb {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #0d6efd;
}

.breadcrumb-item.active {
    color: #212529;
    font-weight: 600;
}

/* --- Sidebar Styles --- */
.news-sidebar {
    position: sticky;
    top: 100px;
}

/* --- Animation Pulse cho nút Đặt Ngay --- */
@keyframes pulse-primary {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    }
    70% {
        transform: scale(1.03);
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

.btn-pulse {
    animation: pulse-primary 2s infinite;
    z-index: 1;
}

/* --- Room Detail Carousel Thumbnails --- */
.custom-carousel-indicators { position: static; margin: 15px 0 0 0; padding: 0; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
.custom-carousel-indicators [data-bs-target] { 
    width: 100px !important; height: 65px !important; text-indent: 0 !important; opacity: 0.6; 
    border: 2px solid #ddd !important; margin: 0 10px 0 0 !important; transition: 0.3s; background: none !important;
}
.custom-carousel-indicators .active { opacity: 1 !important; border-color: #0d6efd !important; }
.custom-carousel-indicators img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.custom-carousel-indicators::-webkit-scrollbar { height: 4px; }