/* 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: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Montserrat', sans-serif;
}

/* 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 #eee !important;
    margin: 0 10px 0 0 !important;
    transition: all 0.3s ease;
    background: none !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    padding: 0 !important;
}

.custom-carousel-indicators [data-bs-target].active {
    opacity: 1 !important;
    border: 3px solid #0d6efd !important;
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.4);
    z-index: 1;
}

.custom-carousel-indicators img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.custom-carousel-indicators::-webkit-scrollbar {
    height: 4px;
}

/* --- Floating Social Buttons --- */
.floating-social {
    position: fixed;
    bottom: 50px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.floating-social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    flex-shrink: 0;
}

.floating-social-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn-zalo {
    background: #0068ff;
}

.btn-facebook {
    background: #1877f2;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-facebook i {
    line-height: 1;
}

.btn-zalo::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.6;
    z-index: -1;
    animation: zalo-pulse 2s infinite;
}

@keyframes zalo-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@media (max-width: 767.98px) {
    .floating-social {
        bottom: 30px;
        right: 15px;
        gap: 10px;
    }

    .floating-social-btn {
        width: 55px;
        height: 55px;
    }

    .btn-facebook {
        font-size: 1.6rem;
    }
}