/* Breadcrumb */
.breadcrumb {
    background: white;
    padding: 1rem 5%;
    border-bottom: 1px solid #e0e0e0;
    margin-top: 28px;
}

.breadcrumb-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: #666;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 5%;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
}

/* Left Column - Tour Details */
.tour-details-section {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Image Gallery Container */
.image-gallery {
    position: relative;
    height: 500px;
    background: #000;
    overflow: hidden;
}

/* Gallery Images */
.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images cover the area without distortion */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.gallery-image.active {
    opacity: 1;
    pointer-events: auto;
}

/* Alternative: Slide animation instead of fade */
.gallery-image.slide-out-left {
    animation: slideOutLeft 0.5s ease-in-out;
}

.gallery-image.slide-in-right {
    animation: slideInRight 0.5s ease-in-out;
}

@keyframes slideOutLeft {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 0; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Navigation Buttons */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

/* Indicator Dots */
.gallery-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.gallery-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Wishlist Button */
.wishlist-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.wishlist-badge:hover {
    transform: scale(1.1);
}

.wishlist-badge.active {
    color: #ff6b6b;
}

/* Image Counter (Optional) */
.image-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 2rem 3%;
    }
    
    .image-gallery {
        height: 300px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .gallery-nav.prev {
        left: 10px;
    }
    
    .gallery-nav.next {
        right: 10px;
    }
    
    .gallery-dot {
        width: 8px;
        height: 8px;
    }
    
    .gallery-dot.active {
        width: 20px;
    }
}

/* Loading State */
.gallery-image.loading {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background: linear-gradient(135deg, #3712bd 0%, #57dd18 100%);
}

.gallery-image.loading::after {
    content: '⏳';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
}

/* Tour Header */
.tour-header {
    padding: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.tour-category-badge {
    display: inline-block;
    background: #e8eaf6;
    color: #667eea;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.tour-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.tour-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stars {
    color: #ffa500;
    font-size: 1.2rem;
}

.rating-text {
    color: #333;
    font-weight: 600;
}

.review-count {
    color: #999;
}

/* Quick Info */
.quick-info {
    padding: 2rem;
    background: #f8f9fa;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
}

.info-item {
    text-align: center;
}

.info-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.info-label {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.info-value {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

/* Tour Content */
.tour-content {
    padding: 2rem;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Itinerary */
.itinerary-item {
    margin-bottom: 2rem;
    padding-left: 2.5rem;
    position: relative;
}

.itinerary-item::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: -2rem;
    width: 2px;
    background: #e0e0e0;
}

.itinerary-item:last-child::before {
    display: none;
}

.day-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.day-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.day-description {
    color: #666;
    line-height: 1.7;
}

/* Inclusions/Exclusions */
.include-exclude-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.include-list, .exclude-list {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.include-list h3, .exclude-list h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.include-list ul, .exclude-list ul {
    list-style: none;
}

.include-list li, .exclude-list li {
    padding: 0.5rem 0;
    color: #666;
    display: flex;
    align-items: start;
    gap: 0.5rem;
}

.include-list li::before {
    content: '✓';
    color: #4caf50;
    font-weight: bold;
}

.exclude-list li::before {
    content: '✗';
    color: #ff6b6b;
    font-weight: bold;
}

/* Reviews Section */
.reviews-summary {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.overall-rating {
    text-align: center;
}

.big-rating {
    font-size: 4rem;
    font-weight: bold;
    color: #667eea;
    line-height: 1;
}

.rating-bars {
    flex: 1;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.bar-label {
    font-size: 0.9rem;
    color: #666;
    width: 60px;
}

.bar-container {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #ffa500;
    border-radius: 4px;
}

.bar-count {
    font-size: 0.9rem;
    color: #999;
    width: 40px;
    text-align: right;
}

.review-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background: linear-gradient(135deg, #3712bd 0%, #57dd18 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
}

.review-date {
    color: #999;
    font-size: 0.9rem;
}

.review-text {
    color: #666;
    line-height: 1.7;
}

/* Right Column - Booking Widget */
.booking-widget {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 90px;
    height: fit-content;
}

.price-section {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 1.5rem;
}

.price-label {
    color: #999;
    font-size: 0.9rem;
}

.price {
    font-size: 3rem;
    color: #ff6b6b;
    font-weight: bold;
    line-height: 1;
}

.price-per {
    color: #999;
    font-size: 0.9rem;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.travelers-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.total-section {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #666;
}

.total-row.final {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    padding-top: 0.5rem;
    border-top: 2px solid #e0e0e0;
    margin-top: 0.5rem;
}

.book-now-btn {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background: linear-gradient(135deg, #3712bd 0%, #57dd18 100%);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.book-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

.widget-features {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.feature-icon {
    color: #4caf50;
    font-weight: bold;
}

.contact-guide {
    background: #e8eaf6;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
}

.contact-guide p {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-guide a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

/* Share Section */
.share-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    text-align: center;
}

.share-section h3 {
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.email {
    background: #ea4335;
    color: white;
}

/* Related Tours */
.related-tours {
    margin-top: 3rem;
    padding: 3rem 5%;
    background: white;
}

.related-container {
    max-width: 1400px;
    margin: 0 auto;
}

.related-tours h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.related-card {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-image {
    height: 200px;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background: linear-gradient(135deg, #3712bd 0%, #57dd18 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.related-content {
    padding: 1.5rem;
}

.related-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.related-price {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.3rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .booking-widget {
        position: static;
    }

    .include-exclude-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tour-title {
        font-size: 2rem;
    }

    .image-gallery {
        height: 300px;
        font-size: 5rem;
    }

    .tour-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .quick-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-summary {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}