* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a73e8;
    text-decoration: none; /* Thêm */
}

.nav-logo i {
    margin-right: 10px;
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center; /* Căn giữa các mục menu */
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
    cursor: pointer; /* Thêm */
}

.nav-link:hover {
    color: #1a73e8;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #1a73e8;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Nút Đăng nhập / Đăng ký trên Navbar */
.nav-link.btn-login-nav {
    border: 2px solid #1a73e8;
    padding: 6px 15px;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.nav-link.btn-login-nav:hover {
    background: #1a73e8;
    color: white;
}
.nav-link.btn-login-nav::after {
    display: none; /* Bỏ gạch chân cho nút */
}

.nav-link.btn-register-nav {
    background: #1a73e8;
    color: white;
    padding: 8px 17px;
    border-radius: 50px;
    border: 2px solid #1a73e8;
    transition: all 0.3s ease;
}
.nav-link.btn-register-nav:hover {
    background: #1557b0;
    border-color: #1557b0;
}
.nav-link.btn-register-nav::after {
    display: none; /* Bỏ gạch chân cho nút */
}


.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('./image/vietnam-1745819_1280.jpg') center/cover no-repeat;
    background-attachment: fixed; /* Hiệu ứng Parallax đơn giản */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer; /* Thêm */
}

.btn-primary {
    background: #1a73e8;
    color: white;
}

.btn-primary:hover {
    background: transparent;
    color: #1a73e8;
    border-color: #1a73e8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #333;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1a73e8;
    margin-bottom: 15px;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: #ff6b35;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 400px; /* Thêm chiều cao cố định */
    object-fit: cover; /* Đảm bảo ảnh vừa vặn */
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-text h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature i {
    font-size: 1.5rem;
    color: #1a73e8;
    width: 40px;
}

.feature span {
    font-weight: 600;
    color: #333;
}

/* Tours Section */
.tours {
    padding: 100px 0;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.tour-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.tour-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.tour-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tour-card:hover .tour-image img {
    transform: scale(1.1);
}

/* THIẾT KẾ LẠI "ĐỀ XUẤT" (BADGE) */
.tour-badge {
    position: absolute;
    top: 15px;
    right: -10px; /* Kéo ra ngoài 1 chút */
    background: #ff6b35;
    color: white;
    padding: 8px 20px;
    font-size: 1rem; /* Tăng kích thước font */
    font-weight: 700; /* Đậm hơn */
    border-radius: 5px 0 0 5px; /* Tạo hình dạng thẻ */
    box-shadow: 0 5px 10px rgba(255, 107, 53, 0.4); /* Thêm bóng mờ */
}
/* Thêm tam giác nhỏ cho badge */
.tour-badge::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -6px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-top: 6px solid #c45127; /* Màu tối hơn */
}


.tour-content {
    padding: 25px;
}

.tour-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.tour-duration {
    color: #1a73e8;
    font-weight: 600;
    margin-bottom: 15px;
}

.tour-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.tour-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 20px;
}

.tour-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tour-feature {
    background: #e3f2fd;
    color: #1a73e8;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
}

.tour-btn {
    width: 100%;
    text-align: center;
    padding: 12px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tour-btn:hover {
    background: #1557b0;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 115, 232, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay i {
    font-size: 2rem;
    color: white;
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #1a73e8;
    margin-top: 5px;
    width: 30px;
}

.contact-item h4 {
    color: #333;
    margin-bottom: 5px;
}

.contact-item p {
    color: #666;
}

.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a73e8;
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo i {
    margin-right: 10px;
    font-size: 2rem;
    color: #1a73e8;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: #1a73e8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #1a73e8;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #1557b0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/*
==============================================
    CSS MỚI CHO TRANG ĐĂNG NHẬP / ĐĂNG KÝ
==============================================
*/
.auth-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('https://images.unsplash.com/photo-1520116468869-45601a059de7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    background-attachment: fixed;
}

.auth-container {
    max-width: 450px;
    width: 100%;
    padding: 40px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    text-align: center;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 30px;
    text-decoration: none; /* Thêm */
}

.auth-logo i {
    margin-right: 10px;
    font-size: 2.2rem;
}

.auth-container h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 25px;
}

.auth-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.auth-form .form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.auth-btn {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: #1a73e8;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    background: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.3);
}

.auth-link {
    margin-top: 25px;
    font-size: 0.95rem;
}

.auth-link a {
    color: #1a73e8;
    font-weight: 600;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/*
==============================================
    CSS MỚI CHO LIGHTBOX (TỪ FILE JS)
==============================================
*/
.lightbox {
    display: none;
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    font-weight: 300;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: white;
    background: rgba(0,0,0,0.3);
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(0,0,0,0.6);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

/*
==============================================
    CSS MỚI CHO TÌM KIẾM (TỪ FILE JS)
==============================================
*/
.tour-search {
    display: block;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 50px auto;
    padding: 15px 25px;
    font-size: 1.1rem;
    border-radius: 50px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}
.tour-search:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.2);
}

.no-results {
    grid-column: 1 / -1; /* Trải dài toàn bộ grid */
    text-align: center;
    padding: 50px 20px;
    background: #f8f9fa;
    border-radius: 15px;
}
.no-results i {
    font-size: 3rem;
    color: #1a73e8;
    margin-bottom: 20px;
}
.no-results p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 25px;
}
.no-results .btn {
    border-color: #1a73e8;
    color: #1a73e8;
}
.no-results .btn:hover {
    background: #1a73e8;
    color: white;
}


/* Responsive Design */
@media (max-width: 992px) {
    .nav-menu {
        gap: 20px;
    }
}


@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
        align-items: stretch; /* Cho các mục menu full-width */
        gap: 0;
    }

    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 15px 20px;
        width: 100%;
    }
    .nav-link::after {
        display: none;
    }
    .nav-link:hover {
        background: #f0f0f0;
    }

    .nav-link.btn-login-nav, .nav-link.btn-register-nav {
        border-radius: 0;
        border: none;
        margin: 5px 20px;
        padding: 12px 15px;
        width: auto;
    }
    .nav-link.btn-login-nav {
        background: #f0f0f0;
        color: #1a73e8;
    }
    .nav-link.btn-register-nav {
        color: white;
    }

    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        height: 300px; /* Điều chỉnh chiều cao cho mobile */
    }
    
    .tours-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .contact-form {
        padding: 30px 20px;
    }

    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .tours-grid {
        grid-template-columns: 1fr; /* Đảm bảo 1 cột */
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .auth-container {
        padding: 20px;
        margin: 0 15px;
        width: auto;
    }

    .auth-logo {
        font-size: 1.5rem;
    }
    .auth-logo i {
        font-size: 1.8rem;
    }

    .auth-container h2 {
        font-size: 1.8rem;
    }

    .lightbox-prev, .lightbox-next {
        font-size: 1.5rem;
        padding: 5px 10px;
    }
    .lightbox-prev { left: 5px; }
    .lightbox-next { right: 5px; }
}