/* Tour Pages Common Styles */

/* Container styles */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 28%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    margin-bottom: 40px;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02); /* Slight scale to avoid white edges on border radius */
}

.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.2) 100%);
    color: white;
    padding: 30px 40px;
    z-index: 2;
    border-radius: 12px;
}

.hero-subtitle {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 10px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.banner-content h1 {
    font-size: 2.6rem;
    margin: 0 0 16px 0;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    text-transform: uppercase;
}

.banner-content p {
    font-size: 1.15rem;
    margin: 0 auto 24px;
    max-width: 700px;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    color: white !important; /* Ensure hero paragraph is white */
}

/* Additional specific selector to override global paragraph styles */
.hero-section .banner-content p {
    color: white !important;
}

/* Comprehensive fix for all hero paragraph variations */
.hero-section p,
.banner-content p,
.hero .banner-content p {
    color: white !important;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 180px;
}

.hero-cta-btn i {
    font-size: 0.9em;
}

.hero-cta-btn.primary {
    background: #fff;
    color: #233046;
    border: 1.5px solid #D4AF37;
    font-weight: 600;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    padding: 0.8em 2em;
    font-size: 0.95rem;
    letter-spacing: 0.164em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.hero-cta-btn.secondary {
    background: var(--color-secondary);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.2);
}

.hero-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero-cta-btn.primary:hover {
    background: #e0bd4e;
}

.hero-cta-btn.secondary:hover {
    background: #1d5240;
}

/* Mid-page banner styling */
.mid-page-banner {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 20%;
    overflow: hidden;
    margin: 50px 0;
    border-radius: 8px;
}

/* Banner Ad styling */
.banner-ad-container {
    width: 100%;
    margin: 40px auto;
    text-align: center;
    max-width: 900px; /* Control maximum width on desktop */
    padding: 0 15px; /* Add padding on desktop for spacing */
}

.banner-ad-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: inline-block; /* Changed from block to inline-block for centering */
    object-fit: contain; /* Ensure image maintains aspect ratio */
}

.banner-ad-container a {
    display: block; /* Make the link a block element */
    line-height: 0; /* Remove extra space below the image */
}

.banner-ad-container a:hover .banner-ad-image {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
    .banner-ad-container {
        margin: 30px 0;
        padding: 0; /* Remove any padding on mobile */
        max-width: 100%; /* Full width on mobile */
    }
    
    .banner-ad-image {
        border-radius: 0;
        width: 100%; /* Force full width on mobile */
    }
}

/* Add styles for the second inquiry button to match the first one */
#openInquiryBtn2 {
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .hero-section {
        padding-bottom: 32%;
    }
    .banner-content h1 {
        font-size: 2.3rem;
    }
}

@media (max-width: 991px) {
    .hero-subtitle {
        display: none;
    }
    .hero-section {
        padding-bottom: 38%;
    }
    .banner-content {
        padding: 25px 30px;
    }
    .banner-content h1 {
        font-size: 2.2rem;
    }
    .banner-content p {
        font-size: 1.05rem;
        max-width: 600px;
    }
    .hero-cta-btn {
        padding: 12px 24px;
        min-width: 160px;
    }
    .mid-page-banner {
        padding-bottom: 30%;
    }
}

@media (max-width: 767px) {
    .hero-subtitle{
        display: none;
    }
    .hero-section {
        padding-bottom: 75%; /* Shorter to match screenshot */
        border-radius: 0;
        margin: 0 0 30px;
        box-shadow: none;
    }
    .hero-image-container {
        border-radius: 0;
    }
    .banner-content {
        padding: 20px;
        justify-content: center;
        text-align: center;
        align-items: center;
    }
    .banner-content h1 {
        font-size: 1.4rem;
        margin-bottom: 10px;
        text-align: center;
    }
    .banner-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
        max-width: 100%;
        text-align: center;
    }
    .hero-subtitle {
        display: none; /* Hide subtitle on mobile */
    }
    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-top: 5px;
        align-items: center;
    }
    .hero-cta-btn {
        width: auto;
        min-width: 180px;
        padding: 12px 24px;
        border-radius: 6px;
        font-size: 0.95rem;
        justify-content: center;
        letter-spacing: 0.5px;
        white-space: nowrap;
        display: inline-flex;
    }
    .hero-cta-btn.primary{
        width: auto;
        min-width: 220px;
        justify-content: center;
        font-size: 0.9rem;
        padding: 0.9em 1.8em;
    }
    .hero-cta-btn.secondary {
        background: #1B4332;
        border: none;
    }
    .hero-container {
        padding: 0;
    }
    .mid-page-banner {
        padding-bottom: 50%;
    }
    
    /* Updated CTA mobile styles */
    .mid-page-cta-wrapper {
        margin: 30px 0;
        padding: 0;
    }
    
    .mid-page-cta {
        border-radius: 0;
    }
    
    .cta-content {
        padding: 25px 15px;
    }
    
    .cta-header {
        margin-bottom: 15px;
    }
    
    .cta-header h3 {
        font-size: 1.4rem;
        text-align: center;
        width: 100%;
    }
    
    .cta-badge {
        margin: 0 auto;
    }
    
    .cta-features {
        gap: 12px;
    }
    
    .cta-feature {
        gap: 10px;
    }
    
    .cta-feature i {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .cta-feature p {
        font-size: 0.9rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .whatsapp-btn,
    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height:400px;
        padding: 3rem 1.5rem;
    }
    .banner-content {
        padding: 15px;
    }
    .banner-content h1 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    .banner-content p {
        font-size: 1.1rem;
        margin: 15px;
        line-height: 1.4;
    }
}

/* Header styles for tour pages */
.main-header {
    position: sticky;
    top: 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.desktop-nav ul li a {
    color: var(--color-dark);
}

.desktop-nav ul li a:hover,
.desktop-nav ul li a.active {
    color: var(#d4af37);
}

.mobile-menu-toggle span {
    background-color: var(--color-dark);
}

.logo img {
    filter: brightness(0);
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    border-radius: 12px;
    margin: 40px auto;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

.faq-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.faq-title {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 40px;
}

.faq-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.faq-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.faq-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.faq-question {
    padding: 20px 25px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-question.active {
    border-bottom: 1px solid #eee;
    color: var(--color-primary);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: white;
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.faq-answer.active {
    padding: 20px 25px;
    max-height: 300px;
}

/* Popup Inquiry Form */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.inquiry-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
}

.inquiry-popup.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.inquiry-popup-content {
    position: relative;
    padding: 0;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 2;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.close-popup:hover {
    background-color: rgba(0, 0, 0, 0.4);
    transform: rotate(90deg);
}

.inquiry-popup-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 25px 30px;
    color: white;
    text-align: center;
    position: relative;
}

.inquiry-popup-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/decorative/pattern-light.png');
    background-size: 200px;
    opacity: 0.05;
    z-index: 0;
}

.inquiry-popup-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
}

.inquiry-popup-header p {
    font-size: 1rem;
    color: white;
    opacity: 0.9;
    margin: 0;
    position: relative;
}

#popupInquiryForm {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popup-form-group {
    position: relative;
}

.popup-form-group input,
.popup-form-group select,
.popup-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    color: var(--color-dark);
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.popup-form-group input:focus,
.popup-form-group select:focus,
.popup-form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
    background-color: white;
}

.popup-form-group label {
    position: absolute;
    left: 15px;
    top: 12px;
    color: #777;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.popup-form-group input:focus + label,
.popup-form-group input:not(:placeholder-shown) + label,
.popup-form-group select:focus + label,
.popup-form-group select:valid + label,
.popup-form-group textarea:focus + label,
.popup-form-group textarea:not(:placeholder-shown) + label {
    transform: translateY(-25px) scale(0.8);
    color: var(--color-primary);
    background-color: white;
    padding: 0 5px;
}

.popup-form-group input::placeholder,
.popup-form-group textarea::placeholder {
    color: transparent;
}

.popup-submit-btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.popup-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive adjustments for FAQ and Inquiry */
@media (max-width: 1279px) {
    .faq-section {
        border-radius: 0;
        margin: 40px 0;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 991px) {
    .faq-container {
        grid-template-columns: 1fr;
    }
    
    .inquiry-popup {
        width: 95%;
    }
}

@media (max-width: 767px) {
    .faq-container {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .faq-section {
        padding: 30px 0;
        margin: 20px 0;
    }
    
    .faq-title h2 {
        font-size: 1.8rem;
    }
    
    .inquiry-popup-header {
        padding: 20px;
    }
    
    .inquiry-popup-header h3 {
        font-size: 1.5rem;
    }
    
    #popupInquiryForm {
        padding: 20px;
    }
}