/* --- Core Layout & Spacing --- */
main, .main-content {
    /* Horizontal padding only to prevent clipping on small screens */
    padding: 0 5%; 
    max-width: 1200px;
    margin: 0 auto;
    /* Add top padding here to clear your fixed header/filter bar */
    padding-top: 130px; 
    padding-bottom: 60px;
    box-sizing: border-box;
}

/* --- Section Title Styling --- */
.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 2.2rem;
    position: relative;
    font-weight: 800;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Tour List Container --- */
.tour-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 16px;
}strong

/* --- The Tour Card Block --- */
.tour-card {
    display: flex; /* Aligns image and content side-by-side */
    flex-direction: row; 
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.tour-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

/* --- Left Side: Image --- */
.tour-image {
    position: relative;
    width:fit-content;
    height: 280px;
    flex-shrink: 0;
}

.tour-image img {
    width: 100%;
    height: 100%;
    /* Ensures the image fills the 320px area perfectly without stretching */
    object-fit: cover; 
    display: block;
}
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--secondary-color);
    color: #000;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
}

/* --- Right Side: Content --- */
.tour-content {
   display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.tour-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.tour-header h3 {
    margin: 0;
    font-size: 1.35rem; /* Slightly larger for better impact */
    font-weight: 800; /* Bold weight for a premium feel */
    line-height: 1.3;
    color: #04610c;
    letter-spacing: -0.3px;
    flex: 1;
}
.location-prefix {
    color: var(--primary-color); /* Thien Son Green */
    display: block; /* Puts the location on its own small line if desired */
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.rating-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.rating-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #003580; /* Professional Booking Blue */
}

.rating {
    background: #003580;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px 6px 6px 0px; /* Unique "bubble" shape */
    font-weight: 800;
    font-size: 0.9rem;
    white-space: nowrap;
}

.location {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.add-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.detail-item {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 6px;
    margin: 0; /* Resets default <p> margins */
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

.detail-item:hover {
    background: #e0e0e0;
    color: var(--primary-color);
}
/* --- Perks/Tags --- */
.perks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px; /* Slightly tighter gap for more tags */
    margin: 8px 0;
    /* Limits the height if there are too many perks */
    max-height: 60px; 
    overflow: hidden; 
}

.perk {
    font-size: 0.7rem; /* Slightly smaller for density */
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px; /* More "tag-like" than full pills */
    background: #f0f7ff;
    color: #0071c2;
    border: 1px solid #cce4f7;
    white-space: nowrap; /* Prevents text from breaking inside a tag */
}

/* Specific styling for high-conversion perks */
.perk.green {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* Hover effect to make it feel interactive */
.perk:hover {
    filter: brightness(0.95);
    cursor: default;
}

/* --- Pricing & Action --- */
.pricing-container {
    margin-top: auto; /* Pushes pricing to the bottom */
    display: flex;
    justify-content: space-between; /* Space between text and button */
    align-items: flex-end;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.pricing-info {
    text-align: left;
}

.old-price {
    color: #d4111e;
    text-decoration: line-through;
    font-size: 0.85rem;
    margin: 0;
}

.current-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #044813;
    margin: 2px 0;
}

.tax-info {
    font-size: 0.75rem;
    color: #666;
}

.urgency-text {
    color: #d4111e;
    font-size: 0.75rem;
    font-weight: bold;
    margin: 5px 0 0 0;
}

/* --- Modern Button Style --- */
.btn-details {
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    transition: background 0.2s ease;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.2);
}

.btn-details:hover {
    background: #218838;
}
.tour-description-expanded {
    margin: 12px 0;
    border-left: 3px solid var(--secondary-color); /* Thien Son Gold accent */
    padding-left: 12px;
}

.tour-description-main, 
.tour-description-secondary, 
.tour-description-highlight {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 8px;
}


.hero-gallery {
    padding: 20px 5%;
  
}

.gallery-container {
    display: grid;
    grid-template-columns: 5fr 1fr;
    gap: 10px;
    height: 400px; /* Fixed container height creates the professional grid */
    margin-bottom: 30px;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
}

/* --- Image Handling --- */
.gallery-main, .side-item {
    overflow: hidden;
    position: relative;
}

.gallery-main img, 
.side-item img {
    width: 100%;
    height: 100%; /* Now inherits from parent grid height */
    object-fit:cover;
    display: block;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.gallery-side {
    display: grid;
    grid-template-rows: repeat(4, 2fr); 
    gap: 10px;
}

/* --- Hover Effects --- */
.gallery-main:hover img, 
.side-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.9);
}

/* --- "See More" Overlay --- */
.more-photos .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.more-photos:hover .overlay {
    background: rgba(0, 0, 0, 0.6);
}

/* --- Lightbox (The Popup) --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000; /* Ensure this is above your Nav Bar */
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 90%;
    margin: auto;
}

.mySlides {
    display: none;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    animation: fadeIn 0.4s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Navigation Controls --- */
.close-btn {
    position: absolute;
    top: 20px; right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 20px;
    margin-top: -30px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s;
    user-select: none;
    text-decoration: none;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
    color: #ffdd00; /* Use a gold accent to match your brand */
}
/* --- Mobile Responsive (768px and below) --- */
@media (max-width: 768px) {
    main, .main-content {
        padding-top: 120px; /* Adjusted for mobile header height */
        padding-left: 15px;
        padding-right: 15px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .tour-card {
        display: flex; /* Aligns image and content side-by-side */
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        margin-bottom: 20px;
        flex-direction: column;
    }

    .tour-image {
        width: 100%;
        height: 220px;
    }

    .tour-content {
        padding: 20px;
    }

    .tour-header h3 {
        font-size: 1.15rem;
    }
    .tour-description-highlight {
        display: none; 
    }

    .pricing-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .pricing-info {
        text-align: left;
    }

    .btn-details {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}