/* Base styles with smooth scrolling */
.ck-content {
    font-family: 'Inter', sans-serif;
    color: #2d3748;
    line-height: 1.625;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    scroll-behavior: smooth;
}

/* Responsive images */
.ck-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* SVG Icons Setup */
.ck-content {
    --icon-hike: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ecc94b'%3E%3Cpath d='M12 2L4 12l8 10 8-10L12 2zm0 2.8L18 12l-6 7.2L6 12l6-7.2z'/%3E%3Cpath d='M12 8v8m-4-4h8'/%3E%3C/svg%3E");
    --icon-binoculars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232b6cb0'%3E%3Cpath d='M8 4h3v3H8zm5 0h3v3h-3zm-6 5h4v11H7zm6 0h4v11h-4z'/%3E%3C/svg%3E");
    --icon-camera: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233182ce'%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3Cpath d='M19 7h-2l-2-3H9L7 7H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2zm-7 9a4 4 0 110-8 4 4 0 010 8z'/%3E%3C/svg%3E");
    --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2348bb78'%3E%3Cpath d='M13 5.586l-4.707 4.707a1 1 0 101.414 1.414L12 9.414V17a1 1 0 102 0V9.414l2.293 2.293a1 1 0 001.414-1.414L13 5.586z'/%3E%3C/svg%3E");
}

/* H1 Header Improvements */
.ck-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a365d;
    margin: 2rem 0 1.5rem;
    padding: 1rem;
    text-align: center;
    background: #f8fafc;
    line-height: 1.3;
    position: relative;
    overflow: hidden;
}

/* H2 Header Improvements */
.ck-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2b6cb0;
    margin: 2rem 0 1rem;
    padding: 0.8rem 0 0.8rem 2.8rem;
    position: relative;
    border-bottom: 2px dashed rgba(43, 108, 176, 0.3);
    line-height: 1.4;
}

.ck-content h2:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-image: var(--icon-camera);
    background-size: contain;
}

/* H3 Header Styles */
.ck-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #3182ce;
    margin: 1.5rem 0 1rem;
    padding: 0.5rem 0 0.5rem 2.2rem;
    position: relative;
    line-height: 1.4;
}

.ck-content h3:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: var(--icon-hike);
    background-size: contain;
}

/* H4 Header Styles */
.ck-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4299e1;
    margin: 1.2rem 0 0.8rem;
    padding-left: 1.8rem;
    position: relative;
    line-height: 1.4;
}

.ck-content h4:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ecc94b;
    font-size: 1.5rem;
}

/* H5 Header Styles */
.ck-content h5 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #63b3ed;
    margin: 1rem 0 0.7rem;
    padding-left: 1.4rem;
    position: relative;
    line-height: 1.4;
}

.ck-content h5:before {
    content: "—";
    position: absolute;
    left: 0;
    color: #ecc94b;
}

/* H6 Header Styles */
.ck-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #90cdf4;
    margin: 1rem 0 0.7rem;
    padding-left: 1.4rem;
    position: relative;
    font-style: italic;
    line-height: 1.4;
}

.ck-content h6:before {
    content: "›";
    position: absolute;
    left: 0;
    color: #ecc94b;
    font-weight: bold;
}

/* Paragraph and other elements */
.ck-content p {
    margin: 1rem 0;
    line-height: 1.7;
}

/* Tiered Pricing Table Styling */
.ck-content figure.table {
    margin: 1.5rem auto 2.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(43, 108, 176, 0.15);
    background: white;
    transition: all 0.3s ease;
    width: auto;
    display: inline-block;
    max-width: 100%;
}

.ck-content figure.table:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.ck-content table {
    width: auto;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    margin: 0 auto;
}

.ck-content thead {
    background: linear-gradient(135deg, #2b6cb0, #1a365d);
    color: white;
}

.ck-content th {
    padding: 1rem 1.8rem;
    text-align: left;
    font-weight: 600;
}

.ck-content tbody tr:nth-child(odd) {
    background-color: rgba(248, 250, 252, 0.8);
}

.ck-content tbody tr:hover {
    background-color: rgba(235, 248, 255, 0.7);
}

.ck-content td {
    padding: 1.1rem 1.8rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ck-content h1 {
        font-size: 1.8rem;
        padding: 0.8rem;
    }

    .ck-content h2 {
        font-size: 1.5rem;
        padding-left: 2.4rem;
    }

    .ck-content h2:before {
        width: 20px;
        height: 20px;
    }

    .ck-content h3 {
        font-size: 1.3rem;
        padding-left: 2rem;
    }

    .ck-content h3:before {
        width: 18px;
        height: 18px;
    }

    .ck-content h4 {
        font-size: 1.2rem;
        padding-left: 1.6rem;
    }

    .ck-content h5 {
        font-size: 1.1rem;
    }

    .ck-content h6 {
        font-size: 0.95rem;
    }

    .ck-content figure.table {
        width: 95%;
    }

    .ck-content th,
    .ck-content td {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .ck-content h1:before,
    .ck-content h1:after {
        display: none;
    }

    .ck-content h1 {
        font-size: 1.5rem;
        padding: 1rem 0.5rem;
    }

    .ck-content h2 {
        font-size: 1.5rem;
        padding-left: 2.4rem;
    }

    .ck-content h2:before {
        width: 20px;
        height: 20px;
    }

    .ck-content h3 {
        font-size: 1.2rem;
        padding-left: 1.75rem;
    }

    .ck-content h3:before {
        width: 18px;
        height: 18px;
    }
}

/* ==========================================================================
   Dynamic Tabs Styling (for tour_detail.html) - UPDATED
   ========================================================================== */

.tabs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem; /* Adds space between the tab buttons */
    margin-bottom: 1.5rem;
}

.tab-button {
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    border: 2px solid #e2e8f0; /* Default light grey border */
    background-color: #ffffff;
    border-radius: 8px; /* Rounded corners */
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-gray);
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: var(--brand-blue);
    border-color: var(--brand-blue); /* Highlight with blue on hover */
}

.tab-button.active {
    color: var(--brand-dark);
    border-color: #F9A826; /* Your brand's yellow color for the active tab */
    background-color: #fffaf0; /* A very light yellow background */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transform: translateY(-2px); /* Give it a slight lift */
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ensure headings within panels have appropriate top margin */
.tab-panel .ck-content h2 {
    margin-top: 0.5rem;
}