/**
 * CSS for Tour Tabs
 * Part of Tour To Madagascar theme
 * 
 * Styling for the tabs navigation, content panels and accordion elements
 */

/* Base Font Style */
.tour-tabs,
.tour-tabs * {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #333 !important;
}

/* SEO Headings */
.tour-tabs h2.tour-main-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #007646 !important;
    margin-bottom: 20px !important;
    border-bottom: 2px solid #f0f0f0 !important;
    padding-bottom: 10px !important;
}

.tour-tabs h3.tab-heading {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #007646 !important;
    margin-bottom: 15px !important;
}

.tour-tabs h3.info-box-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #007646 !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

/* Tour Tabs Styles */
.tour-tabs {
    margin-bottom: 40px;
}
.tabs-nav {
    display: flex;
    flex-wrap: nowrap;
    border-bottom: 2px solid #007646;
    margin-bottom: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    padding-bottom: 5px;
    white-space: nowrap;
    width: 100%;
    position: relative;
}

/* Masquer la scrollbar tout en gardant la fonction de défilement */
.tabs-nav::-webkit-scrollbar {
    height: 3px !important;
}

.tabs-nav::-webkit-scrollbar-thumb {
    background-color: rgba(0, 118, 70, 0.3) !important; /* Couleur verte semi-transparente */
    border-radius: 10px !important;
}

.tabs-nav::-webkit-scrollbar-track {
    background-color: #f1f1f1 !important;
    border-radius: 10px !important;
}

.tab-link {
    padding: 12px 24px;
    background-color: #f5f5f5;
    cursor: pointer;
    flex: 0 0 auto !important; /* Empêche les onglets de rétrécir */
    margin-right: 5px;
    font-weight: 600;
    border-radius: 5px 5px 0 0;
    transition: all 0.3s ease;
    white-space: nowrap; /* Empêche le texte de se wrapper */
    min-width: fit-content; /* Empêche de devenir trop petit */
}
.tab-link:hover {
    background-color: #e9e9e9;
}
.tab-link.active {
    background-color: #007646;
    color: white !important;
}
.tab-content {
    display: none;
    padding: 20px 0;
}
.tab-content.active {
    display: block;
}

/* Styles spécifiques pour mobile */
@media screen and (max-width: 767px) {
    .tabs-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 15px !important;
    }
    
    .tab-link {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        min-width: fit-content !important;
        padding: 10px 15px !important;
        font-size: 12px !important;
    }
}

/* SEO Text Elements */
.seo-highlight {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px !important;
    color: #333 !important;
    margin-bottom: 1.5em !important;
    line-height: 1.6 !important;
}

.seo-highlight strong {
    font-weight: 600 !important;
    color: #007646 !important;
}

/* Lists and Info Boxes */
.info-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.info-box-title {
    font-family: 'Montserrat', sans-serif !important;
    color: #007646 !important;
    font-size: 18px !important;
    font-weight: bold !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #e0e0e0 !important;
}
.list-style {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}
.list-style li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.5;
}
.list-style li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #007646;
    font-weight: bold;
}

/* Included & Excluded */
.included-excluded {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    margin: 25px 0 !important;
}

.included, .excluded {
    flex: 1 !important;
    min-width: 300px !important;
    background-color: #f8f9fa !important;
    border-radius: 8px !important;
    padding: 20px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}

.included h2, .excluded h2 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 18px !important;
    font-weight: bold !important;
    color: #007646 !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.included ul, .excluded ul {
    list-style-type: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.included ul li, .excluded ul li {
    position: relative !important;
    padding-left: 25px !important;
    margin-bottom: 10px !important;
    line-height: 1.6 !important;
}

.included ul li:before {
    content: "✓" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    color: #007646 !important;
    font-weight: bold !important;
}

.excluded ul li:before {
    content: "×" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    color: #e74c3c !important;
    font-weight: bold !important;
}

/* Pricing Table */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.pricing-table th, .pricing-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}
.pricing-table th {
    background-color: #007646;
    color: white;
    font-weight: 600;
}
.pricing-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Included/Excluded */
.included-excluded {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 767px) {
    .included-excluded {
        grid-template-columns: 1fr;
    }
}

/* Accordion for Itinerary */
.accordion-container {
    margin-bottom: 20px;
}
.accordion-item {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}
.accordion-header {
    padding: 15px;
    background-color: #f5f5f5;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    transition: background-color 0.3s ease;
}
.accordion-header:after {
    content: "+";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: normal;
}
.accordion-header.active {
    background-color: #007646;
    color: white !important;
}
.accordion-header.active:after {
    content: "-";
}
.accordion-content {
    padding: 0;
    display: none;
    background-color: white;
}
.accordion-content .activity-description {
    padding: 15px;
}
.activity-highlight {
    background-color: #f8f9fa;
    padding: 15px;
    border-left: 4px solid #DA2C23;
    margin: 15px 0;
}
.lodging-info {
    background-color: #f0f8ff;
    padding: 10px 15px;
    border-radius: 3px;
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 767px) {
    .tabs-nav {
        flex-direction: column;
    }
    .tab-link {
        margin-right: 0;
        margin-bottom: 5px;
        border-radius: 5px;
    }
}
