/* ========== GLOBAL RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Hide scrollbar for all browsers */
body::-webkit-scrollbar {
    display: none;
}

body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* ========== IMAGE GALLERY STYLES ========== */

/* Mobile Carousel (Bootstrap) */
#myCarousel {
    width: 90%;
    margin: 0 auto;
    margin-top: 20px;
    display: block;
}

#myCarousel .carousel-inner {
    border-radius: 0;
}

#myCarousel .carousel-item {
    height: 400px;
}

#myCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel Controls Styling */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.7);
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators button {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background: white;
    width: 25px;
    height: 5px;
    border-radius: 100px;
}

/* Desktop Image Grid */
.images-pc {
    display: none; /* Hidden on mobile by default */
    width: 80%;
    margin: 0 auto;
    height: 500px;
    padding: 0;
    margin: 0;
}

.image-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: 100%;
    width: 100%;
}

/* Main large image - takes 2 rows on left */
.grid-main {
    grid-row: 1 / 3; /* Spans row 1 and 2 */
    grid-column: 1 / 2; /* First column */
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border-radius: 0;
}

.grid-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.grid-main:hover img {
    transform: scale(1.05);
}

/* Top right images */
.grid-item-1 {
    grid-row: 1;
    grid-column: 2;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border-radius: 0;
}

.grid-item-2 {
    grid-row: 1;
    grid-column: 3;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border-radius: 0;
}

/* Bottom right images */
.grid-item-3 {
    grid-row: 2;
    grid-column: 2;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border-radius: 0;
}

.grid-item-4 {
    grid-row: 2;
    grid-column: 3;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border-radius: 0;
}

/* All grid item images */
.grid-item-1 img,
.grid-item-2 img,
.grid-item-3 img,
.grid-item-4 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

/* Hover effect on all grid images */
.grid-item-1:hover img,
.grid-item-2:hover img,
.grid-item-3:hover img,
.grid-item-4:hover img {
    transform: scale(1.08);
}

/* View All Photos Button */
.view-all-photos {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    color: #1a1a1a;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-family: 'Poppins', sans-serif;
}

.view-all-photos:hover {
    background: #1a1a1a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.view-all-photos i {
    font-size: 16px;
}

/* Dark overlay on hover for grid items */
.grid-main::before,
.grid-item-1::before,
.grid-item-2::before,
.grid-item-3::before,
.grid-item-4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.grid-main:hover::before,
.grid-item-1:hover::before,
.grid-item-2:hover::before,
.grid-item-3:hover::before,
.grid-item-4:hover::before {
    background: rgba(0, 0, 0, 0.1);
}

/* Ensure button stays on top of overlay */
.view-all-photos {
    z-index: 10;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

/* Tablet (768px - 1023px) */
@media (min-width: 768px) {
    #myCarousel .carousel-item {
        height: 450px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 60px;
        height: 60px;
    }
}

/* Desktop (1024px and above) */
@media (min-width: 1024px) {
    /* Hide mobile carousel on desktop */
    #myCarousel {
        display: none !important;
    }

    /* Show desktop grid */
    .images-pc {
        display: block;
        height: 500px;
        max-width: 1100px;
        margin: 0 auto;
        margin-bottom: 0;
    }

    .image-grid-container {
        gap: 8px;
    }
}

/* Large Desktop (1280px and above) */
@media (min-width: 1280px) {
    .images-pc {
        height: 550px;
    }

    .image-grid-container {
        gap: 10px;
    }

    .view-all-photos {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* Extra Large Desktop (1920px and above) */
@media (min-width: 1920px) {
    .images-pc {
        height: 600px;
    }

    .image-grid-container {
        gap: 12px;
    }
}

/* ========== LOADING STATE ========== */
.image-grid-container img {
    background: #f0f0f0;
}

/* Smooth image loading */
.grid-main img,
.grid-item-1 img,
.grid-item-2 img,
.grid-item-3 img,
.grid-item-4 img {
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Stagger the fade-in animation */
.grid-main img {
    animation-delay: 0s;
}

.grid-item-1 img {
    animation-delay: 0.1s;
}

.grid-item-2 img {
    animation-delay: 0.15s;
}

.grid-item-3 img {
    animation-delay: 0.2s;
}

.grid-item-4 img {
    animation-delay: 0.25s;
}

/* ========== ACCESSIBILITY ========== */
.grid-main:focus,
.grid-item-1:focus,
.grid-item-2:focus,
.grid-item-3:focus,
.grid-item-4:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.view-all-photos:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* ========== PRINT STYLES ========== */
@media print {
    #myCarousel,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators,
    .view-all-photos {
        display: none !important;
    }

    .images-pc {
        display: block !important;
    }
}

/* ========== MAIN LAYOUT ========== */
.trip-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.main-content {
    width: 100%;
    min-width:300px;
}

.content {
    text-align: left;
}

/* ========== TITLE & DURATION ========== */
h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
    line-height: 1.3;
}

.duration {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #FF9D00 0%, #FF7A00 100%);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 157, 0, 0.3);
}

/* ========== BOOKING SIDEBAR (Desktop) ========== */
.booking-sidebar {
    display: none;
}

.booking-card {
    position: sticky;
    top: 20px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.booking-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.booking-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.booking-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-amount {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
}

.price-badge {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.book-now-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.book-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Batches Section */
.batches-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.batches-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.batch-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.batch-item:last-child {
    border-bottom: none;
}

.batch-dates {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.batch-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-available {
    background: #d4edda;
    color: #155724;
}

.status-few-seats {
    background: #fff3cd;
    color: #856404;
}

.status-full {
    background: #f8d7da;
    color: #721c24;
}

/* ========== MOBILE STICKY BAR ========== */
.mobile-booking-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 15px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid #e0e0e0;
}

.mobile-price-section {
    display: flex;
    flex-direction: column;
}

.mobile-price-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.mobile-price {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.mobile-per-person {
    font-size: 11px;
    color: #999;
}

.mobile-book-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ========== DETAILS SECTION ========== */
.details {
    margin: 40px 0;
}

.details h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.detail-box {
    display: inline-block;
    align-items: center;
    gap: 15px;
    vertical-align: top;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 15px;
    width: 30%;
    transition: all 0.3s ease;
}

.detail-box:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.detail-box img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.detail-box div {
    flex: 1;
}

.detail-box h4 {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
}

.detail-box p {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* ========== PLACES TO VISIT ========== */
.attraction {
    margin: 40px 0;
}

.attraction h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.places-carousel {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #FF9D00 #f1f1f1;
    padding-bottom: 10px;
}

.places-track {
    display: flex;
    gap: 20px;
}

.place-card {
    min-width: 250px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.place-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.place-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.place-card h4 {
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.place-card p {
    padding: 0 15px 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* ========== HIGHLIGHTS ========== */
.highlight {
    padding: 40px 25px;
    margin: 40px 0;
    border-radius: 20px;
    color: black;
}

.highlight h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
}

.highlights-list {
    list-style: none;
    padding: 0;
}

.highlights-list li {
    padding: 15px 0 15px 35px;
    position: relative;
    font-size: 16px;
    line-height: 1.8;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.highlights-list li:last-child {
    border-bottom: none;
}

.highlights-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    font-size: 30px;
    color: #FF9D00;
}

/* ========== ITINERARY ========== */
.itinerary-section {
    padding: 60px 0;
    margin: 40px 0;
}

.itinerary-section h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1a1a1a;
}

.itinerary-timeline {
    position: relative;
    padding-left: 60px;
}

.itinerary-timeline:before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #FF9D00, #d99a1a);
}

.itinerary-item {
    position: relative;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out;
}

.intro-item .day-marker {
    background: #667eea;
}

.day-marker {
    position: absolute;
    left: -60px;
    top: 0;
    width: 60px;
    height: 60px;
    background: #FF9D00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(240, 183, 50, 0.3);
    z-index: 1;
}

.day-number {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.day-marker i {
    font-size: 24px;
    color: white;
}

.day-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.day-content:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateX(5px);
}

.day-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.day-description {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.8;
}

.day-activities {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.day-meals,
.day-accommodation {
    font-size: 14px;
    color: #777;
    margin-top: 10px;
    display: inline-block;
    margin-right: 20px;
}

.day-meals i,
.day-accommodation i {
    color: #FF9D00;
    margin-right: 8px;
}

/* ========== PACKAGE SECTION ========== */
.package-section {
    padding: 60px 25px;
    margin: 40px 0;
    background: #f8f9fa;
    border-radius: 20px;
}

.package-section h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: #1a1a1a;
}

.package-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.package-box {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.package-box h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.inclusions-box h4 {
    color: #28a745;
}

.inclusions-box h4 i {
    color: #28a745;
}

.exclusions-box h4 {
    color: #dc3545;
}

.exclusions-box h4 i {
    color: #dc3545;
}

.package-list {
    list-style: none;
    padding: 0;
}

.package-list li {
    padding: 15px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-bottom: 1px solid #e9ecef;
}

.package-list li:last-child {
    border-bottom: none;
}

.inclusions-box .package-list li i {
    color: #28a745;
    font-size: 18px;
    margin-top: 3px;
}

.exclusions-box .package-list li i {
    color: #dc3545;
    font-size: 18px;
    margin-top: 3px;
}

.package-list li span {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* ========== RELATED TRIPS ========== */
.related-trips {
    padding: 60px 0;
    margin: 40px 0;
}

.related-trips h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1a1a1a;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.related-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.related-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 20px;
}

.related-content h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.related-info {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.related-info i {
    color: #FF9D00;
}

.related-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.discounted-price {
    font-size: 24px;
    font-weight: 700;
    color: #FF9D00;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE - TABLET ========== */
@media (min-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .package-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    h2 {
        font-size: 38px;
    }

    .mobile-booking-bar {
        padding: 20px 30px;
    }

    .mobile-price {
        font-size: 28px;
    }
}

/* ========== RESPONSIVE - DESKTOP ========== */
@media (min-width: 1024px) {
    /* Hide mobile elements */
    #myCarousel {
        display: none;
    }

    .mobile-booking-bar {
        display: none;
    }


    .booking-sidebar {
        display: block;
    }

    /* Two column layout */
    .trip-container {
        grid-template-columns: 1fr 380px;
        gap: 50px;
        padding: 40px 50px;
    }

    h2 {
        font-size: 42px;
    }

    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .places-track {
        flex-wrap: wrap;
    }

    .place-card {
        flex: 0 0 calc(25% - 15px);
        min-width: auto;
    }

    /* Content padding adjustments */
    .highlight {
        padding: 50px 40px;
    }

    .package-section {
        padding: 60px 40px;
    }
}

/* ========== SCROLLBAR STYLING ========== */
.places-carousel::-webkit-scrollbar {
    height: 8px;
}

.places-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.places-carousel::-webkit-scrollbar-thumb {
    background: #FF9D00;
    border-radius: 10px;
}

.places-carousel::-webkit-scrollbar-thumb:hover {
    background: #d99a1a;
}