/* ==============================================
   Things-To-Do Detail Page — Responsive & Fixes
   ============================================== */

/* --- Read More Button Fix (missing .read-more-btn style) --- */
.read-more-btn,
.read-more-btn-clean {
    background: none;
    border: none;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color, #2755b0);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    position: relative;
}

.read-more-btn::after,
.read-more-btn-clean::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color, #2755b0);
    transition: width 0.3s ease;
}

.read-more-btn:hover::after,
.read-more-btn-clean:hover::after {
    width: 100%;
}

.read-more-btn:hover,
.read-more-btn-clean:hover {
    color: #1a3d82;
}

.read-more-btn i,
.read-more-btn-clean i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.read-more-btn:hover i,
.read-more-btn-clean:hover i {
    transform: translateY(2px);
}

/* --- Selection Steps V2 --- */
.booking-selection-steps-v2 {
    background: #f8f9fb !important;
    border: 1px solid #e8ecf1 !important;
}

.selection-step-col {
    padding: 0;
}

.selection-step-col:first-child {
    /* border-right: 1px solid #f0f0f0; */
}

.selection-step-inner {
    padding: 24px;
}

.step-number-badge {
    width: 24px;
    height: 24px;
    background: var(--accent-color, #2755b0);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-right: 10px;
    flex-shrink: 0;
}

.selection-dropdown-trigger {
    padding: 14px 16px;
    border: 1px solid #e2e6ed;
    border-radius: 12px;
    background: #f8f9fb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.selection-dropdown-trigger:hover:not(.disabled) {
    border-color: var(--accent-color, #2755b0);
    background: #f0f4ff;
}

.selection-dropdown-trigger.has-value {
    border-color: var(--accent-color, #2755b0);
    background: #f0f4ff;
    color: #1a2d5a;
    font-weight: 600;
}

.selection-dropdown-trigger.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Inline DatePicker */
.inline-datepicker-wrap {
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.inline-datepicker-wrap .react-datepicker {
    border: none;
    width: 100%;
    font-family: inherit;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px 10px;
}

.inline-datepicker-wrap .react-datepicker__month-container {
    width: auto;
}

.inline-datepicker-wrap .react-datepicker__header {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
}

.inline-datepicker-wrap .react-datepicker__day--selected {
    background: var(--accent-color, #2755b0) !important;
    color: #fff !important;
    border-radius: 50%;
}

.inline-datepicker-wrap .react-datepicker__day:hover {
    background: #eef2ff;
    border-radius: 50%;
}

.inline-datepicker-wrap .react-datepicker__day--disabled {
    color: #e5e7eb !important;
    cursor: not-allowed;
    background: transparent !important;
}

.inline-datepicker-wrap .react-datepicker__day--outside-month {
    visibility: hidden;
}

/* Slot Options */
.slot-options-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.slot-option-btn {
    flex: 1;
    min-width: 90px;
    padding: 12px 10px;
    border: 1px solid #e2e6ed;
    border-radius: 12px;
    background: #f8f9fb;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.slot-option-btn i {
    font-size: 18px;
    color: #888;
    transition: color 0.2s ease;
}

.slot-option-btn:hover {
    border-color: var(--accent-color, #2755b0);
    color: var(--accent-color, #2755b0);
    background: #f0f4ff;
}

.slot-option-btn:hover i {
    color: var(--accent-color, #2755b0);
}

.slot-option-btn.active {
    background: var(--accent-color, #2755b0);
    border-color: var(--accent-color, #2755b0);
    color: #fff;
}

.slot-option-btn.active i {
    color: #fff;
}

.things-list-sec .list-unstyled {
    padding-left: 20px;
}

.things-list-sec .tour-detail.tour-detail-2.bg-light-red ul li:before {
    left: -22px;
    top: 32%;
}

.things-list-sec .tour-detail.tour-detail-2.bg-light-green ul li:before {
    left: -22px;
    top: 14%;
}

/* --- Mobile Sticky Booking Bar --- */
.mobile-booking-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border-top: 1px solid #e8ecf1;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.mobile-booking-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mobile-booking-price {
    display: flex;
    flex-direction: column;
}

.mobile-price-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
}

.mobile-price-label {
    font-size: 11px;
    color: #888;
    font-weight: 500;
}

.mobile-book-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: #aaa;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.mobile-book-btn.active {
    background: var(--accent-color, #2755b0);
    box-shadow: 0 4px 14px rgba(39, 85, 176, 0.3);
}

.mobile-book-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==============================================
   TABLET (max-width: 991px)
   ============================================== */
@media (max-width: 991px) {

    /* Sidebar booking card - hide on mobile, use sticky bar instead */
    .sticky-packag-right {
        position: static !important;
    }

    /* Page top spacing */
    .activity-detail-page .mt-5.pt-5 {
        margin-top: 0 !important;
        padding-top: 70px !important;
    }

    /* Title sizing */
    .activity-detail-title h1 {
        font-size: 24px;
    }

    /* Quick info bar - wrap better */
    .quick-info-bar-clean {
        flex-wrap: wrap;
        gap: 12px;
        padding: 18px 0;
    }

    /* Badges row */
    .detail-badge-row {
        gap: 8px;
        margin-bottom: 16px;
    }

    .badge-custom {
        padding: 6px 12px;
        font-size: 11px;
    }

    /* Selection steps - stack vertically */
    .selection-step-col:first-child {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .selection-step-inner {
        padding: 20px;
    }

    /* Booking card on tablet - show normally */
    .booking-card-footer {
        margin-bottom: 20px !important;
    }

    /* Section headings */
    .sec-title h4 {
        font-size: 20px;
    }

    /* Inclusions/Exclusions cards */
    .tour-detail.tour-detail-2 {
        padding: 20px !important;
    }

    /* Important notes */
    .text-muted.p-4.bg-light {
        padding: 16px !important;
        font-size: 14px;
    }

    .inline-datepicker-wrap .react-datepicker {
        gap: 15px;
        padding: 10px;
    }
}

/* ==============================================
   MOBILE (max-width: 767px)
   ============================================== */
@media (max-width: 767px) {

    /* Page top spacing */
    .activity-detail-page .mt-5.pt-5 {
        padding-top: 60px !important;
    }

    .activity-detail-page .container.mt-5 {
        margin-top: 1.5rem !important;
    }

    /* Hide desktop sidebar booking card on mobile */
    .sticky-packag-right .booking-card-footer {
        display: none;
    }

    /* Title */
    .activity-detail-title h1 {
        font-size: 20px;
        line-height: 1.3;
    }

    /* Quick info bar */
    .quick-info-bar-clean {
        flex-direction: column;
        gap: 10px;
        padding: 14px 0;
    }

    .info-item {
        font-size: 12px;
    }

    /* Badges */
    .badge-custom {
        padding: 5px 10px;
        font-size: 10px;
        gap: 5px;
    }

    /* About text */
    .about-text p,
    .about-text p span {
        font-size: 14px !important;
    }

    /* Highlights */
    .activity-highlights li {
        font-size: 14px;
    }

    /* Selection steps */
    .selection-step-inner {
        padding: 16px;
    }

    .slot-options-grid {
        gap: 8px;
    }

    .slot-option-btn {
        padding: 10px 8px;
        font-size: 12px;
        min-width: 80px;
    }

    .slot-option-btn i {
        font-size: 16px;
    }

    /* How to Use */
    .activity-how-to-use li {
        font-size: 14px;
    }

    /* Inc/Exc section */
    .inc-exc-section {
        margin-bottom: 30px !important;
    }

    .tour-detail.tour-detail-2 h4 {
        font-size: 18px;
    }

    /* Section titles */
    .sec-title h4 {
        font-size: 18px;
    }

    /* Important Notes */
    .border-start.border-4.border-warning {
        padding: 14px !important;
        font-size: 13px;
        border-radius: 12px !important;
    }

    /* Add bottom padding for mobile sticky bar */
    .activity-detail-page {
        padding-bottom: 80px !important;
    }

    /* Price value in sidebar (if still visible) */
    .price-val-big {
        font-size: 28px;
        line-height: 34px;
    }
}

/* ==============================================
   SMALL MOBILE (max-width: 480px)
   ============================================== */
@media (max-width: 480px) {

    .activity-detail-title h1 {
        font-size: 18px;
    }

    .detail-badge-row {
        gap: 6px;
    }

    .badge-custom {
        padding: 4px 8px;
        font-size: 10px;
    }

    .quick-info-bar-clean {
        padding: 12px 0;
    }

    .selection-step-inner {
        padding: 14px;
    }

    /* Mobile booking bar - tighter on small screens */
    .mobile-booking-bar {
        padding: 10px 12px;
    }

    .mobile-price-value {
        font-size: 1.1rem;
    }

    .mobile-book-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* Inc/Exc cards */
    .tour-detail.tour-detail-2 {
        padding: 14px !important;
        border-radius: 12px !important;
    }

    .tour-detail.tour-detail-2 h4 {
        font-size: 16px;
    }
}