/* CSS Variables */
:root {
    --primary-color: #8F0210;
    --primary-light: #a81a27;
    --primary-dark: #6d0008;
    --primary-30: rgba(143, 2, 16, 0.3);
    --primary-20: rgba(143, 2, 16, 0.2);
    --primary-10: rgba(143, 2, 16, 0.1);
    --white: #ffffff;
    --light-bg: #f5f5f5;
    --font-primary: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    --font-secondary: Arial, sans-serif;
}

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--light-bg);
    /* Nền tách riêng thành layer fixed để không bị "giãn" khi nội dung thay đổi chiều cao */
    position: relative;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url(assets/images/background/back2.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transform: translateZ(0);
    will-change: transform;
}

/* Header Styles */
header {
    text-align: center;
    padding: 1rem 0;
    background: white;
    box-shadow: 0 2px 15px var(--primary-10);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 240px;
    border-bottom: 1px solid var(--primary-10);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    will-change: transform;
    font-family: var(--font-primary);
}

.logo {
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo .img-logo {
    font-weight: normal;
    letter-spacing: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px var(--primary-10);
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo .img-logo img {
    height: 120px;
    width: 300px;
    object-fit: contain;
}

.logo p {
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: var(--primary-color);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.logo p::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

nav {
    display: flex;
    justify-content: center;
    gap: 2rem;

}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    position: relative;
    text-transform: uppercase;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Content Section Styles */
.content-section {
    padding: 4rem 1rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 200px;
    /* Chiều cao của header */
}

.content-section h2 {
    text-align: center;
    font-weight: normal;
    letter-spacing: 2px;
    margin-bottom: 3rem;
}

/* Home Section Styles */
.book-section {
    text-align: center;
    padding: 1rem 0;
}

.book-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 3rem;
    border: 1px solid var(--primary-color);
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.1rem;
    letter-spacing: 2px;
    transition: all 0.3s;
    border-radius: 2rem;
}

.book-button:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.about-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1rem;
    text-align: center;
}

.about-content {
    font-size: 1rem;
    color: var(--primary-light);
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.get-in-touch {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
}

/* Pricelist Section Styles */
.price-list {
    max-width: 600px;
    margin: 0 auto;
}

/* Service Category Dropdown Styles */
.service-category {
    margin-bottom: 1rem;
    border: 1px solid var(--primary-20);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 2px 4px var(--primary-10);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    background: var(--primary-10);
    transition: background-color 0.3s ease;
}

.service-header:hover {
    background: var(--primary-20);
}

.service-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.service-header i {
    transition: transform 0.3s ease;
}

.service-category.active .service-header i {
    transform: rotate(180deg);
}

.service-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    will-change: max-height;
}

.service-category.active .service-content {
    /* max-height sẽ được set bằng JS theo đúng scrollHeight để không bị giật/cắt nội dung */
    max-height: none;
}

.service-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--primary-10);
    transition: background-color 0.2s ease;
}

.service-item:hover {
    background-color: var(--primary-10);
}

.service-item:first-child {
    border-top: none;
}

.service-item span:first-child {
    color: var(--primary-color);
}

.service-item span:last-child {
    color: var(--primary-light);
    font-weight: bold;
}

/* Contact Section Styles */
.contact-info {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--primary-color);
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.opening-hours {
    margin-bottom: 3rem;
}

.opening-hours h3 {
    font-weight: normal;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.hours-grid {
    max-width: 400px;
    margin: 0 auto;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--primary-10);
}

.hours-row span {
    font-size: 1rem;
    color: var(--primary-color);
}

.contact-details {
    margin-bottom: 3rem;
}

.contact-details p {
    margin-bottom: 1rem;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-details a:hover {
    color: var(--primary-light);
}

/* Gallery Section Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--primary-10);
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay p {
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Loyalty Card Styles */
.loyalty-card {
    text-align: center;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    margin: 2rem 0;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image {
    width: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--primary-10);
}

/* Footer Styles */
footer {
    background-color: var(--white);
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 -2px 4px var(--primary-10);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-10);
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

footer p {
    color: var(--primary-color);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/*icon design*/

.icon-booking {
    font-size: 2.0rem;
    margin-right: 0.6rem;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 1001;
}
.slideshow-controls{
    display: none;
}
.mobile-menu-btn i {
    color: var(--primary-color);
}

/* Header Controls */
.header-controls {
    position: absolute;
    right: 1rem;
    top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
}

.language-switcher {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1002;
}


.language-switcher .current-lang {
    position: absolute;
    font-size: 0.8rem;
    font-weight: bold;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: var(--white);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-switcher i {
    font-size: 1.2rem;
}

.main {
    position: relative;
    z-index: 0;
}
.iframe-map {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* Tỷ lệ 16:9 */
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--primary-10);
    margin: var(--spacing-md) 0;
}

.iframe-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--primary-30);
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
}

.iframe-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    transition: transform var(--transition-normal);
}

/* Hover effect */
.iframe-map:hover iframe {
    transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        height: 150px;
        padding-bottom: 0;
        position: fixed;
        transform: translateY(0);
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: white;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

 

    .logo .img-logo img {
        height: 90px;
        width: 200px;
    }

    .logo p {
        font-size: 1rem;
    }

    nav {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.8rem 0;
        display: block;
    }

    .content-section {
        padding: 2rem 1rem;
        margin-top: 120px;
        /* Giảm margin-top cho mobile */
    }
    .main>.content-section-top-mobile{
        margin-top: 160px;
    }

    .about-section {
        padding: 1.5rem 1rem;
    }

    .about-content {
        font-size: 0.9rem;
    }

    .book-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .icon-booking {
        font-size: 1.5rem;
        margin-right: 0.5rem;
    }

    .card-image {
        width: 100%;
        max-width: 250px;
    }

    .social-links {
        flex-direction: row;
        gap: 1rem;
        flex-wrap: nowrap;
        max-width: 300px;
        margin: 0 auto 1rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .service-header {
        padding: 0.8rem;
    }

    .service-header h3 {
        font-size: 1.1rem;
    }

    .service-item {
        padding: 0.6rem 0.8rem;
    }

    .gallery-grid {
        display: flex;
        overflow: hidden;
        position: relative;
        width: 100%;
        height: 300px;
        margin: 0;
        padding: 0;
    }

    .gallery-item {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
        flex: 0 0 100%;
    }

    .gallery-item.active {
        opacity: 1;
        z-index: 1;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Slideshow Navigation */
    .slideshow-nav {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 8px;
        z-index: 2;
    }

    .slide-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--white);
        opacity: 0.5;
        cursor: pointer;
        transition: opacity 0.3s ease;
    }

    .slide-dot.active {
        opacity: 1;
        background: var(--primary-color);
    }

    /* Slideshow Controls */
    .slideshow-controls {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        display: flex;
        justify-content: space-between;
        padding: 0 10px;
        z-index: 2;
    }

    .slideshow-control {
        background: rgba(255, 255, 255, 0.5);
        color: var(--primary-color);
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        transition: background 0.3s ease;
    }

    .slideshow-control:hover {
        background: rgba(255, 255, 255, 0.8);
    }

    .header-controls {
        position: fixed;
        right: 1rem;
        top: 1rem;
        z-index: 1002;
        display: block;
    }

    .language-switcher {
        position: fixed;
        left: 1rem;
        top: 1rem;
        width: 35px;
        height: 35px;
        z-index: 1002;
        display: block;
    }

    .mobile-menu-btn {
        display: block;
        position: fixed;
        right: 1rem;
        top: 1rem;
        z-index: 1002;
    }

    .language-switcher .current-lang {
        font-size: 0.7rem;
        width: 18px;
        height: 18px;
    }

    .language-switcher i {
        font-size: 1rem;
    }

    footer {
        padding: 1.5rem 0;
    }

    .social-links {
        gap: 1rem;
        flex-wrap: wrap;
        max-width: 300px;
        margin: 0 auto 1rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    footer p {
        font-size: 0.8rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    header {
        padding-bottom: 0px;
    }

    .logo .img-logo {
        font-size: 2rem;
    }

    .logo p {
        font-size: 0.9rem;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .content-section {
        padding: 1.5rem 0.8rem;
    }

    .about-section {
        padding: 1rem 0.8rem;
    }

    .about-content {
        font-size: 0.85rem;
    }

    .book-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .icon-booking {
        font-size: 1.3rem;
    }

    .card-image {
        width: 100%;
        max-width: 200px;
    }

    .gallery-item {
        flex: 0 0 90%;
    }

    .gallery-overlay p {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .loyalty-card-item {
        min-width: 200px;
    }

    .social-links {
        gap: 0.8rem;
        max-width: 250px;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    footer p {
        font-size: 0.75rem;
    }
}