/* Tour Page Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    min-height: 60vh;
    background-color: #e9e9e9 !important;
    background-image: none !important;
    background-size: auto !important;
    background-position: initial !important;
    background-attachment: initial !important;
    position: relative;
    padding-top: 70px;
    padding-bottom: 35px;
    /* overflow: hidden; removed to prevent clipping */
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center; /* Changed back to center to avoid top clipping if flex-start was the cause */
    justify-content: space-between;
    position: relative;
}

.hero-left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.hero-right-column {
    flex: 0 0 60%; /* Increased from 50% to 60% (20% larger) */
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    position: relative;
}

.tour-hero-image {
    width: 100%;
    aspect-ratio: 32 / 15;
    border-radius: 20px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: block;
    right: -20%;
    position: relative;
}

.tour-cards-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tour-info-card {
    background: transparent;
    padding: 0;
    width: 100%;
    max-width: 500px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content {
    display: flex;
    flex-direction: column;
}

.tour-title {
    font-size: 3rem !important;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #ea5335;
    line-height: 1.1;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: visible;
    padding-top: 64px;
}

.subtitle-with-icon {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 11px;
}

.tour-subtitle {
    font-size: 2rem;
    color: #07843c;
    margin: 0;
    font-weight: 500;
    line-height: 1.2;
}

.tour-type-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tour-type-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.tour-sponsor {
    font-size: 1.31rem;
    color: #1d1d1d;
    margin: 0 0 11px 0;
    text-decoration: none;
    line-height: 1.1;
}

.tour-sponsor .sponsor-name {
    text-decoration: underline;
    font-weight: 700;
}

.tour-details-overlay {
    background: white;
    padding: 15px 20px;
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tour-details {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 1.31rem;
    color: #555;
    line-height: 1.1;
}

.detail-item i {
    width: 18px;
    height: 18px;
    font-size: 16px;
}

.language-container {
    position: relative;
}

.and-more {
    color: #888;
    font-weight: normal;
}

.language-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.language-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.language-container:hover .language-tooltip,
.language-container.tooltip-active .language-tooltip {
    opacity: 1;
    visibility: visible;
}

.language-display {
    cursor: pointer;
    user-select: none;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .language-tooltip {
        position: fixed;
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.95);
        padding: 12px 16px;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        max-width: 90vw;
        text-align: center;
    }
    
    .language-tooltip::after {
        display: none;
    }
    
    .tour-details {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    
    .detail-item {
        flex: 0 0 auto;
        min-width: 0;
    }
    
    /* Show View in App button on mobile and tablet */
    .hero-btn-app {
        display: flex !important;
    }
}

.take-tour-on-site {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0a7b78;
    margin-bottom: 15px;
    text-align: center;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    background: #00843e;
    padding: 25px;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
}

    .hero-actions p {
        color: white;
        width: 90%;
    }
    
    @media (max-width: 768px) {
        .hero-actions p {
            display: none;
        }
    }

.hero-actions .hero-btn-buy {
    background: white;
    color: #00843e;
}

.hero-actions .hero-btn-buy:hover {
    background: #f0f0f0;
    color: #00843e;
}

.actions-row {
    display: flex;
    flex-direction: row;
    gap: 18px;
    align-items: flex-start;
    width: 100%;
    justify-content: space-between;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 11px;
    align-items: flex-start;
    flex: 1;
    order: 2;
}

.hero-btn {
    padding: 9px 16px;
    border: none;
    border-radius: 11px;
    font-weight: 600;
    font-size: 1.31rem;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1.2;
    width: 150px;
    box-sizing: border-box;
}

.hero-btn-web {
    background: #00843e;
    color: white;
    border: 2px solid white;
    width: auto;
}

.hero-btn-web:hover {
    background: white;
    color: #00843e;
    border: 2px solid white;
}

.hero-btn-app {
    background: white;
    color: black;
    display: none; /* Hidden by default on desktop */
}

.hero-btn-app:hover {
    background: #2980b9;
    color: white;
}

.hero-btn-buy {
    background: var(--tsgreen);
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    margin-bottom: 15px;
    width: auto;
    min-width: 180px;
    gap: 8px;
}

.hero-btn-buy:hover {
    background: #2a8f5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.download-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    width: auto;
}

.download-btn {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.download-btn:hover {
    transform: scale(1.05);
}

.download-btn-image {
    height: 40px;
    width: auto;
    display: block;
}

.cart-icon {
    flex-shrink: 0;
}

.buy-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.purchase-status {
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.qr-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    order: 1;
}

#qr-code-container {
    width: 105px;
    height: 105px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 11px rgba(0, 0, 0, 0.08);
}

/* Audio Section */
    .audio-section {
        background: var(--tsgreen);
        color: white;
        padding: 2px 0 60px 0;
    }
    
    @media (max-width: 768px) {
        .audio-section {
            padding: 20px 0 40px 0;
        }
        
        .audio-section h3 {
            font-size: 1.5rem;
            margin-bottom: 25px;
            padding: 0 15px;
        }
        
        .audio-highlights {
            padding: 0 15px;
        }
    }

.audio-section h3 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: left;
    font-weight: bold;
}

.audio-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

    .audio-item {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 25px;
        text-align: center;
    }
    
    @media (max-width: 768px) {
        .audio-item {
            padding: 20px 15px;
        }
        
        .audio-title {
            font-size: 1.1rem;
            margin-bottom: 15px;
        }
    }

.audio-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    cursor: pointer;
    text-decoration: none;
    color: white;
}

.audio-title:hover {
    text-decoration: underline;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.play-pause-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.play-pause-btn:hover {
    background: white;
    transform: scale(1.05);
}

.play-pause-btn.playing {
    background: rgba(255, 255, 255, 1);
}

.play-pause-btn .play-icon {
    width: 0;
    height: 0;
    border-left: 12px solid var(--tsgreen);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: 3px;
}

.play-pause-btn .pause-icon {
    display: none;
    width: 12px;
    height: 16px;
    position: relative;
}

.play-pause-btn .pause-icon::before,
.play-pause-btn .pause-icon::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 16px;
    background: var(--tsgreen);
}

.play-pause-btn .pause-icon::before {
    left: 2px;
}

.play-pause-btn .pause-icon::after {
    right: 2px;
}

.play-pause-btn.playing .play-icon {
    display: none;
}

.play-pause-btn.playing .pause-icon {
    display: block;
}

.waveform-container {
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    transition: background 0.3s ease;
}

.waveform-container:hover {
    background: rgba(255, 255, 255, 0.3);
}

.waveform {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 2px;
}

.waveform-bar {
    width: 3px;
    background: white;
    border-radius: 2px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.waveform-container.playing .waveform-bar {
    animation: wave 1s ease-in-out infinite alternate;
}

@keyframes wave {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Content Section */
    .content-section {
        padding: 80px 0;
        background: #f8f9fa;
    }
    
    @media (max-width: 768px) {
        .content-section {
            padding: 40px 0;
        }
    }

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.content-images {
    height: 100%;
}

    .content-text {
        font-size: 1rem;
        line-height: 1.7;
        color: #2c3e50;
    }
    
    @media (max-width: 768px) {
        .content-text {
            font-size: 0.95rem;
            line-height: 1.6;
        }
        
        .content-text h3 {
            font-size: 1.2rem;
            margin-bottom: 15px;
        }
        
        .content-text p {
            margin-bottom: 14px;
        }
    }

.content-text h3 {
    color: var(--tsgreen);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.content-text p {
    margin-bottom: 16px;
}

.image-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.content-image {
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Map Section */
.map-section {
    padding: 60px 0;
}

.tour-map {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

@media (max-width: 768px) {
    .map-section {
        padding: 30px 0;
    }
    
    .map-section .container {
        padding: 0 15px;
    }
    
    .tour-map {
        height: 350px;
        border-radius: 8px;
    }
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    height: 80%;
    max-width: 1200px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-close:hover {
    opacity: 0.8;
}

#lightbox-iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Bundle Modal */
.bundle-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.bundle-modal-content {
    position: relative;
    margin: 2% auto;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.bundle-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #666;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.bundle-modal-close:hover {
    color: #333;
}

.bundle-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.bundle-modal-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
}

.bundle-modal-header h3 {
    font-size: 1.5rem;
    color: var(--tsgreen);
    margin: 0;
    font-weight: 500;
}

.bundle-options-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.bundle-option {
    flex: 1;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

.bundle-package {
    background: var(--tsgreen);
    color: white;
}

.single-product {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
}

.bundle-option h4 {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.bundle-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.bundle-price span {
    font-size: 1.8rem;
    font-weight: bold;
}

.cart-icon-small {
    font-size: 1.5rem;
}

.bundle-buy-btn {
    background: white;
    color: var(--tsgreen);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--tsgreen);
}

.bundle-buy-btn:hover {
    background: var(--tsgreen);
    color: white;
}

.single-buy-btn {
    background: var(--tsgreen);
    color: white;
    border: 2px solid var(--tsgreen);
}

.single-buy-btn:hover {
    background: #2a8f5a;
    border-color: #2a8f5a;
}

.bundle-map-container {
    flex: 1;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bundle-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.bundle-description {
    text-align: center;
    font-size: 1rem;
    color: #666;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .hero-section {
        min-height: auto;
        padding: 40px 0 25px 0;
        overflow-x: hidden;
    }
    
    .hero-content {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content-wrapper {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 20px;
        width: 100%;
    }
    
    .hero-left-column {
        width: 100%;
        order: 1;
        padding: 0;
    }
    
    .hero-right-column {
        width: 100%;
        order: 2;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .tour-hero-image {
        max-width: 100%;
        width: 100%;
        right: 0;
        position: relative;
        margin: 0;
        border-radius: 12px;
    }
    
    .tour-cards-container {
        width: 100%;
        max-width: 100%;
        gap: 15px;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .tour-info-card {
        width: 100%;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    
    .card-content {
        width: 100%;
        padding: 0;
    }
    
    .tour-details-overlay {
        width: 100%;
        max-width: 100%;
        padding: 15px;
        margin: 0;
        box-sizing: border-box;
    }
    
    .tour-title {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 10px;
        margin-top: 0;
        text-align: center;
        max-width: 100%;
        padding-top: 35px !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .tour-subtitle {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 10px;
        text-align: center;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .tour-sponsor {
        font-size: 0.95rem;
        margin-bottom: 15px;
        text-align: center;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .tour-details {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
    
    .detail-item {
        flex: 0 0 calc(50% - 6px);
        justify-content: flex-start;
        font-size: 0.9rem;
        min-width: 0;
    }
    
    .tour-details {
        padding: 0;
        justify-content: space-between;
    }
    
    .detail-item i {
        width: 16px;
        height: 16px;
        font-size: 14px;
    }
    
    .tour-type-icon {
        width: 16px;
        height: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 18px;
        width: 100%;
        max-width: 100%;
        align-items: stretch;
        margin: 0;
        display: flex;
        padding: 20px 15px;
        box-sizing: border-box;
        border-radius: 0;
    }
    
    .take-tour-on-site {
        font-size: 1.3rem;
        margin-bottom: 15px;
        padding: 0 15px;
        text-align: center;
    }
    
    .download-buttons {
        display: none !important;
    }
    
    .download-btn-image {
        display: none !important;
    }
    
    .actions-row {
        flex-direction: column;
        gap: 18px;
        width: 100%;
        align-items: stretch;
    }
    
    .action-buttons {
        width: 100%;
        gap: 12px;
        align-items: stretch;
    }
    
    .download-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 100%;
        padding: 14px 20px;
        font-size: 1.1rem;
        border-radius: 10px;
        font-weight: 600;
        margin: 0;
    }
    
    .qr-code {
        display: none;
    }
    
    .hero-btn-web {
        display: none;
    }
    
    .hero-btn-buy {
        width: 100%;
        max-width: 100%;
        padding: 16px 20px;
        font-size: 1.2rem;
        border-radius: 10px;
        font-weight: 700;
        margin: 0;
        display: flex;
        text-align: center;
        justify-content: center;
        gap: 8px;
    }
    
    .buy-button-container {
        width: 100%;
        margin-bottom: 0;
    }
    
    .purchase-status {
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
        text-align: center;
    }
    
    .language-tooltip {
        position: fixed;
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.95);
        padding: 12px 16px;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        max-width: 90vw;
        text-align: center;
    }
    
    .language-tooltip::after {
        display: none;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .content-text {
        padding: 0 15px;
    }
    
    .content-images {
        padding: 0 15px;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .content-image {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }
    
    .audio-highlights {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    body {
        overflow-x: hidden;
    }
    
    .bundle-modal-content {
        margin: 5% auto;
        width: 95%;
        height: 85%;
        padding: 20px;
    }
    
    .bundle-modal-header h2 {
        font-size: 2rem;
    }
    
    .bundle-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .bundle-options-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .bundle-option {
        min-height: 120px;
        padding: 20px;
    }
    
    .bundle-option h4 {
        font-size: 1.2rem;
    }
    
    .bundle-price span {
        font-size: 1.5rem;
    }
    
    .bundle-map {
        min-height: 300px;
    }
    
    .bundle-modal-close {
        top: 15px;
        right: 20px;
        font-size: 28px;
    }
}

/* Icons */
.icon-location {
    width: 21px;
    height: 21px;
    background-image: url('/img/tours/location.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-clock {
    width: 21px;
    height: 21px;
    background-image: url('/img/tours/clock.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-language {
    width: 21px;
    height: 21px;
    background-image: url('/img/tours/globe.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
