﻿:root {
    --primary-color: #8b4513;
    --secondary-color: #d2691e;
    --accent-color: #f4a460;
    --dark-color: #2c1810;
    --light-color: #fff8dc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: var(--light-color);
}

/* Back Button */
.back-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    background: linear-gradient( 135deg, rgba(68, 67, 67, 0.699), rgba(77, 76, 76, 0.637) ), url("/img/khucancu.JPG");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 20px;
    border: 1px solid var(--accent-color);
    transition: border-color 0.3s, box-shadow 0.3s;
    margin: 20px;
}

.hero-content:hover {
    box-shadow: 0 8px 32px rgba(244, 164, 96, 0.25);
}

@media (min-width: 790px)  {
    .location-detail {
        max-height: 250px;
        overflow-y: auto;
        text-align: justify;
    }
}

@media (max-width: 789px) and (min-width: 375px) {
    .location-detail {
        max-height: 200px;
        overflow-y: auto;
        text-align: justify;
    }
}

@media (max-width: 375px) {
    .location-detail {
        max-height: 130px;
        overflow-y: auto;
        text-align: justify;
    }
}

.rating-stars {
    color: gold;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

/* Content Sections */
.content-section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

    .section-title h2 {
        font-size: 2.5rem;
        color: var(--primary-color);
        font-weight: bold;
        margin-bottom: 15px;
    }

    .section-title p {
        font-size: 1.1rem;
        color: var(--secondary-color);
    }

/* VR Tour Section */
.vr-section {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.vr-container {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

    .vr-container iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

/* Info Cards */
.info-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .info-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

    .info-card h3 {
        color: var(--primary-color);
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .info-card .icon {
        font-size: 3rem;
        color: var(--secondary-color);
        margin-bottom: 20px;
    }

/* Artifact Grid */
.search-box {
    margin-bottom: 20px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

    .search-input:focus {
        outline: none;
        border-color: var(--accent-color);
        box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
    }

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient( 135deg, var(--accent-color), var(--secondary-color) );
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .search-btn:hover {
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
    }

.artifact-count-box i {
    color: var(--secondary-color) !important;
}

.artifact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.artifact-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

    .artifact-item:hover {
        transform: scale(1.05);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        filter: drop-shadow(0 0 20px var(--accent-color)) brightness(1.05);
    }

.artifact-image {
    width: 100%;
    height: 200px;
    background: linear-gradient( 45deg, var(--accent-color), var(--secondary-color) );
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.artifact-item img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.artifact-item:hover .artifact-image img {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.artifact-content {
    padding: 20px;
}

    .artifact-content h4 {
        color: var(--primary-color);
        margin-bottom: 10px;
    }

    .artifact-content p {
        color: #666;
        font-size: 0.9rem;
    }
/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom: none;
}

.modal-title {
    font-weight: bold;
    font-size: 1.5rem;
}

.btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 30px;
    height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) #f5f5f5;
}

    /* Custom scrollbar for Webkit browsers */
    .modal-body::-webkit-scrollbar {
        width: 8px;
        background: #f5f5f5;
    }

    .modal-body::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 8px;
    }

        .modal-body::-webkit-scrollbar-thumb:hover {
            background: var(--secondary-color);
        }

.artifact-info {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.artifact-3d-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.artifact-3d-iframe {
    width: 100%;
    height: 50vh;
    border: none;
    border-radius: 10px;
}
/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 2rem;
    cursor: pointer;
}

.gallery-img {
    height: 300px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    transition: all 0.3s ease;
}

.gallery-modal-img {
    height: 250px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    transition: all 0.3s ease;
}

.gallery-img img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.gallery-modal-img img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139,69,19,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}
/* Button Styles */
.btn-primary-custom {
    background: linear-gradient( 45deg, var(--secondary-color), var(--primary-color) );
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .btn-primary-custom:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        color: white;
    }

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    color: white;
    padding: 3rem 0 1rem;
}

    .footer h5 {
        color: var(--accent-color);
        margin-bottom: 1rem;
    }

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

    .footer-links a:hover {
        color: var(--accent-color);
    }

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .vr-container {
        height: 400px;
    }
}

.artifact-card-body h6 {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artifact-card-body p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fancybox__container {
    z-index: 9999 !important; /* hoặc cao hơn nếu modal của bạn đang dùng 1050 (Bootstrap) */
}
