/* 
 * China Travel Experience - Main Stylesheet
 * A modern, responsive design for a travel website targeting foreign tourists
 */

/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --accent-color: #fbbc05;
    --dark-color: #202124;
    --light-color: #f8f9fa;
    --gray-color: #70757a;
    --white-color: #ffffff;
    --section-padding: 80px 0;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #0d62d1;
    border-color: #0d62d1;
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 98, 209, 0.3);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.3);
}

.btn-outline-primary {
    color: var(--white-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.3);
}

/* ===== NAVIGATION ===== */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    font-weight: 600;
    padding: 10px 15px;
    color: var(--dark-color);
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    margin-top: -76px; /* Adjust based on navbar height */
}

.tour-hero {
    height: 80vh;
    min-height: 600px;
}

.tour-hero .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 160px 20px 0;
}

.tour-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.tour-hero-content .tour-description {
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--white-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.carousel-item {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
}

.carousel-item img {
    object-fit: cover;
    height: 100vh;
    min-height: 600px;
    width: 100%;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.tour-description {
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.carousel-caption {
    bottom: 25%;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    left: 0;
    right: 0;
    padding: 0 15px;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Remove first slide specific styles */
.carousel-item:first-child .carousel-caption h1,
.carousel-item .carousel-caption h1 {
    white-space: nowrap;
    font-size: 3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin: 0 auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 0.8rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: var(--section-padding);
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-choose-us {
    padding: var(--section-padding);
}

.feature-box {
    padding: 30px;
    border-radius: 10px;
    background: var(--white-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* ===== DESTINATIONS SECTION ===== */
.destinations-section {
    padding: var(--section-padding);
}

.destination-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    height: 300px;
}

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

.destination-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white-color);
    transition: all 0.3s ease;
}

.destination-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: var(--section-padding);
}

.contact-form {
    background: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-control {
    border-radius: 30px;
    padding: 12px 20px;
    height: auto;
    margin-bottom: 20px;
}

textarea.form-control {
    border-radius: 20px;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-color);
    color: var(--white-color);
}

.footer h3, .footer h4 {
    color: var(--white-color);
    margin-bottom: 20px;
}

.footer a {
    color: var(--light-color);
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--white-color);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

/* ===== TOURS PAGE ===== */
.tours-header {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background: url('../images/tours-header.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 3rem;
}

.tours-section.py-5 {
    padding-top: 120px !important;
    padding-bottom: 3rem;
}

.tour-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    background: var(--white-color);
    height: 100%;
}

.tour-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.tour-info {
    padding: 20px;
}

.tour-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.tour-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.tour-meta span {
    display: flex;
    align-items: center;
}

.tour-meta i {
    margin-right: 5px;
}

.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.tour-price {
    display: flex;
    flex-direction: column;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.per-person {
    font-size: 0.8rem;
    color: var(--gray-color);
}

/* ===== TOUR DETAIL PAGE ===== */
.tour-detail-header {
    position: relative;
    height: 60vh;
    min-height: 500px;
    background: url('../images/shanghai-beijing.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    margin-top: 76px; /* Adjust based on navbar height */
}

.tour-info-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: var(--white-color);
    position: sticky;
    top: 100px;
}

.tour-info-card .card-header {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 20px;
    border-bottom: none;
}

.tour-info-card .card-body {
    padding: 20px;
}

.tour-info-card .card-footer {
    padding: 20px;
    background: var(--white-color);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.tour-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tour-info-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.tour-info-list i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.tour-highlights ul {
    padding-left: 20px;
}

.tour-highlights li {
    margin-bottom: 10px;
}

.itinerary-day {
    margin-bottom: 30px;
    background: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.day-header {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 15px 20px;
}

.day-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.day-content {
    padding: 20px;
}

.inclusions-list, .exclusions-list {
    list-style: none;
    padding: 0;
}

.inclusions-list li, .exclusions-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.inclusions-list i, .exclusions-list i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.inclusions-list i {
    color: var(--secondary-color);
}

.exclusions-list i {
    color: #ea4335; /* Red color for exclusions */
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .carousel-caption h1,
    .carousel-item:first-child .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .carousel-caption p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .tour-info-card {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 767.98px) {
    .carousel-caption h1,
    .carousel-item:first-child .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-box {
        margin-bottom: 30px;
    }
    
    .tour-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tour-price {
        margin-bottom: 15px;
    }
}

@media (max-width: 575.98px) {
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    .hero-section, .carousel-item {
        height: 80vh;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

@media screen and (min-width: 1200px) {
    .carousel-item:first-child .carousel-caption h1 {
        font-size: 3rem;
    }

    .carousel-caption h1 {
        font-size: 3rem;
    }

    .carousel-caption p {
        font-size: 1.2rem;
    }

    .btn {
        font-size: 1.25rem;
        padding: 12px 30px;
    }

    .section-title {
        font-size: 3.5rem;
    }
}