/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Variables */
:root {
    --primary-color: #7b61ff;
    --secondary-color: #f6f4ff;
    --footer-color: #f9f9f9;
    --title-font-size: 4rem;
    --small-font-size: 1.4rem;
    --h2-font-weight: 700;
    --card-gap: 3.2rem;
    --container-size: 80%;
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Variable Class */
.section-title {
    font-size: var(--title-font-size);
    margin-bottom: 6rem;
    font-weight: 700;
    text-align: center;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.container {
    max-width: 1400px;
    margin: auto;
    padding: 0 2rem;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 10px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #ffffff;
}

ul,
li {
    list-style: none;
}

a {
    text-decoration: none;
    color: white;
}

img {
    object-fit: cover;
}

/* Main */
.main {
    position: relative;
    min-height: 800px;
    border-radius: 0 0 50px 50px;
    overflow: hidden;
    background: url(/Imgs/ShowcaseCover.png) no-repeat center center/cover;
    z-index: 1;
}

/* Header */
.header {
    color: #fff;
    max-width: var(--container-size);
    margin: auto;
    display: flex;
    justify-content: space-between;
    grid-template-columns: 1fr 2fr 1fr;
    justify-content: center;
    align-items: center;
    padding-top: 4.8rem;
    position: relative;
    z-index: 10;
    background: transparent;
}

/* Navigations */
.navlists {
    padding-left: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 300;
    white-space: nowrap;

}

.navlists a {
    opacity: 0.8;
    color: white;
    padding: 0.5rem 1rem;
    transition: opacity 0.3s, transform 0.3s;
}

.navlists a:hover {
    opacity: 1;
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .navlists {
        display: none;
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        padding: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .navlists.show {
        display: flex;
    }

    .navlists.active {
        display: flex;
        /* HIỆN menu khi nhấn ☰ */
    }

    .navlist {
        text-align: center;
        padding: 1rem 0;
    }

}

/* User/Login */
.user-profile {
    padding-left: 50px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}

.user-profile h2 {
    font-weight: 600;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 2.2rem;
    align-items: flex-end;
    font-size: 1.6rem;
}

.user-profile .hello {
    opacity: 0.7;
    font-weight: 400;
}

.user-profile .profile-pic {
    width: 50px;
    height: 50px;
}

.user-profile .profile-pic img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s;
}

.user-profile .profile-pic img:hover {
    transform: scale(1.1);
}

/* Showcase Content */
.showcase-content {
    padding-top: 200px;
    text-align: center;
    color: #fff;
}

.showcase-content h1 {
    font-size: 5rem;
    margin-bottom: 4rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.showcase-content a {
    font-size: 2rem;
    margin-top: 3rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--primary-color);
    padding: 1.8rem 3rem;
    border-radius: 50px;
    color: white;
    font-weight: 500;
    transition: all 0.3s;
}

.showcase-content a:hover {
    background: #6a4ee6;
    transform: scale(1.05);
}

.showcase-content a i {
    font-size: 2.2rem;
}

/* Destinations Container */
.destinations-container {
    padding: 10rem 0;
    background: linear-gradient(180deg, #f8f9fa, #e9ecef);
}

.destinations-swiper {
    position: relative;
    width: 100%;
    padding: 0 4rem;
    margin-bottom: 6rem;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.swiper-slide {
    width: auto;
    opacity: 1 !important;
    transition: opacity 0.3s ease;
}

.destination-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 450px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.destination-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}

.destination-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.destination-card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
}

.card-content h3 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.card-content p {
    font-size: 1.5rem;
    color: #555;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.6rem;
    color: #ffaa00;
    font-weight: 500;
    margin-top: 1rem;
}

.rating i {
    font-size: 1.8rem;
    color: #ffaa00;
    vertical-align: middle;
}

.rating span {
    margin-left: 0.2rem;
}

/* Swiper Navigation */
.swiper-button-prev,
.swiper-button-next {
    color: #fff;
    background: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: background 0.3s;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: #6a4ee6;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 2rem;
}

.swiper-pagination {
    position: absolute;
    bottom: -40px;
    /* Đặt pagination bên dưới Swiper */
}

.swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.5;
    width: 8px;
    height: 8px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* Map */
.map-container {
    margin-top: 6rem;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.4s ease;
}

.map-container:hover {
    transform: translateY(-8px);
}

#map {
    height: 100%;
    width: 100%;
}


/* Footer */
footer {
    background: var(--footer-color);
    padding: 10rem 0;
}

.footer-sections {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 3fr;
    gap: 3rem;
}

.footer-section p {
    font-size: var(--small-font-size);
    width: 350px;
    line-height: 1.9;
    margin: 1rem 0 2rem;
    color: #5b5b5b;
}

.footer-section a {
    color: #5b5b5b;
    font-size: var(--small-font-size);
    transition: color 0.3s, transform 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-section h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.footer-social-icons {
    display: flex;
    gap: 2rem;
}

.footer-social-icons i {
    font-size: 2.4rem;
    color: #5b5b5b;
    transition: color 0.3s, transform 0.3s;
}

.footer-social-icons i:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.footer-section:last-child {
    margin-left: auto;
}

.footer-section:last-child form {
    margin-top: 2rem;
}

.form-section {
    display: flex;
    align-items: center;
    background-color: #fff;
    font-size: var(--small-font-size);
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-section i {
    margin-right: 1rem;
    font-size: 2rem;
    color: #5b5b5b;
}

.footer-section:last-child label {
    display: flex;
    flex-direction: column;
    color: #5b5b5b;
}

.footer-section:last-child input {
    border: none;
    outline: none;
    margin-top: 0.5rem;
    font-size: 1.6rem;
    background-color: transparent;
    width: 200px;
}

.footer-section:last-child button {
    border: none;
    background-color: var(--primary-color);
    padding: 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.footer-section:last-child button:hover {
    background: #6a4ee6;
    transform: scale(1.1);
}

.footer-section:last-child button i {
    font-size: 2rem;
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6a4ee6;
}

/* Toggle Icons */
.toggleOn,
.toggleClose {
    display: none;
    font-size: 2.4rem;
    cursor: pointer;
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 1000;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .destinations-swiper {
        padding: 0 3rem;
    }

    .destination-card {
        height: 430px;
    }

    .destination-card img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .main {
        min-height: 600px;
    }

    .header {
        grid-template-columns: 1fr 1fr;
        padding: 2rem;
    }

    .navlists {
        display: none;
    }

    .toggleOn {
        display: block;
    }

    .showcase-content h1 {
        font-size: 3.5rem;
    }

    .showcase-content a {
        font-size: 1.8rem;
        padding: 1.5rem 2.5rem;
    }

    .destinations-container {
        padding: 6rem 0;
    }

    .destinations-swiper {
        padding: 0 2rem;
    }

    .destination-card {
        height: 400px;
    }

    .destination-card img {
        height: 180px;
    }

    .card-content h3 {
        font-size: 2rem;
    }

    .card-content p {
        font-size: 1.4rem;
    }

    .map-container {
        height: 300px;
    }

    .footer-sections {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section:last-child {
        margin: 0;
    }

    .footer-section p {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 3rem;
    }

    .showcase-content h1 {
        font-size: 2.8rem;
    }

    .destination-card {
        height: 380px;
    }

    .destination-card img {
        height: 160px;
    }

    .card-content {
        padding: 2rem;
    }
}