body {
    position: relative;
}

#tour-sidebar {
    position: absolute;
    top: 330px;
    right: 4rem;
    width: 420px;
    overflow-y: visible;
    background-color: #F5F5F5;
    border: 1px solid #004477;
    padding: 2.5rem 2rem 2rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.tour-sidebar-section {
    margin-bottom: 2rem;
}

.tour-sidebar-section:last-child {
    margin-bottom: 0;
}

/* Price Section */
.tour-sidebar-price {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.tour-sidebar-price-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.tour-sidebar-price-left {
    display: flex;
    flex-direction: column;
}

.tour-sidebar-price-label {
    font-size: 16px;
    color: #004477;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.tour-sidebar-price-per-person {
    font-size: 14px;
    color: #004477;
    margin-bottom: 0;
}

.tour-sidebar-price-amount {
    font-size: 63px;
    font-weight: 700;
    color: #004477;
    line-height: 1;
    margin-bottom: 0;
}

body .tour-sidebar-check-btn {
    width: 100%;
    background-color: #056977;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 25px;
    transition: background-color 0.2s;
}

body .tour-sidebar-check-btn:hover,
body .tour-sidebar-check-btn:focus {
    background-color: #045a66;
    color: #fff;
}

/* Section Titles */
.tour-sidebar-section-title {
    font-size: 28px;
    font-weight: 400;
    color: #004477;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-family: 'Amiri Quran', serif;
    text-align: center;
}

/* Specifications */
.tour-sidebar-section:has(.tour-sidebar-specs) {
    background-color: #fff;
    border: 1px solid #004477;
    border-radius: 8px;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
}

.tour-sidebar-section:has(.tour-sidebar-specs) .tour-sidebar-section-title {
    margin-top: 0;
    padding-top: 0;
}

.tour-sidebar-specs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tour-sidebar-spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tour-sidebar-spec-label {
    font-size: 16px;
    font-weight: 600;
    color: #004477;
}

.tour-sidebar-spec-value {
    font-size: 16px;
    color: #004477;
    line-height: 1.5;
    text-align: justify;
    margin-left: 1rem;
    margin-right: 1rem;
}

/* Lists */
.tour-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tour-sidebar-list-item {
    font-size: 16px;
    color: #004477;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
    position: relative;
    text-align: justify;
}

.tour-sidebar-list-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #004477;
    font-weight: bold;
}

.tour-sidebar-list-item:last-child {
    margin-bottom: 0;
}

/* Text */
.tour-sidebar-text {
    font-size: 16px;
    color: #004477;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
    margin-left: 1rem;
    margin-right: 1rem;
}

@media (max-width: 1400px) {
    #tour-sidebar {
        width: 280px;
        right: 1rem;
    }
}

/* Mobile styles - sidebar appears in flow after experience-section */
@media (max-width: 1200px) {
    #tour-sidebar {
        position: static !important;
        width: 100% !important;
        right: auto !important;
        top: auto !important;
        margin: 2rem auto 0 auto;
        padding: 2rem 1rem !important;
        box-shadow: none;
        border: none;
        background-color: #fff;
        max-width: 100%;
    }

    .tour-sidebar-section {
        margin-bottom: 2rem;
    }

    .tour-sidebar-section:has(.tour-sidebar-specs) {
        border: 1px solid #004477;
        border-radius: 8px;
        padding: 1.5rem 1rem !important;
    }

    .tour-sidebar-price-amount {
        font-size: 48px;
    }

    .tour-sidebar-section-title {
        font-size: 24px;
        margin-bottom: 1rem;
    }

    .tour-sidebar-spec-label,
    .tour-sidebar-spec-value,
    .tour-sidebar-list-item,
    .tour-sidebar-text {
        font-size: 14px;
    }

    /* Collapsible sections in mobile */
    .tour-sidebar-collapsible {
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 0.15rem;
        margin-bottom: 0.35rem;
    }

    .tour-sidebar-collapsible:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .tour-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: none;
        border: none;
        padding: 0.5rem 0;
        cursor: pointer;
        text-align: left;
    }

    .tour-sidebar-toggle .tour-sidebar-section-title {
        margin-bottom: 0;
        font-size: 20px;
    }

    .tour-sidebar-arrow {
        transition: transform 0.3s ease;
        flex-shrink: 0;
        width: 12px;
        height: 12px;
        margin-left: 1rem;
        display: inline-block;
        position: relative;
    }

    .tour-sidebar-arrow::before,
    .tour-sidebar-arrow::after {
        content: '';
        position: absolute;
        width: 2px;
        height: 8px;
        background-color: #004477;
        border-radius: 1px;
    }

    .tour-sidebar-arrow::before {
        top: 0;
        left: 4px;
        transform: rotate(45deg);
        transform-origin: bottom;
    }

    .tour-sidebar-arrow::after {
        top: 0;
        right: 4px;
        transform: rotate(-45deg);
        transform-origin: bottom;
    }

    .tour-sidebar-toggle[aria-expanded="true"] .tour-sidebar-arrow {
        transform: rotate(180deg);
    }

    /* Hide desktop title in mobile */
    .tour-sidebar-collapsible .tour-sidebar-section-title.d-none.d-md-block {
        display: none !important;
    }

    /* Show collapse content in desktop, hide by default in mobile */
    .tour-sidebar-collapsible .collapse:not(.show) {
        display: none;
    }

    /* Always show in desktop */
    @media (min-width: 768px) {
        .tour-sidebar-collapsible .collapse {
            display: block !important;
        }
    }
}

@media (max-width: 1200px) {
    #tour-sidebar {
        position: static !important;
        width: 100% !important;
        right: auto !important;
        top: auto !important;
        margin: 2rem auto 0 auto;
        padding: 2rem 2rem !important;
        box-shadow: none;
        border: none;
        background-color: #fff;
        max-width: 100%;
    }
}