/* ═══════════════════════════════════════════════════════ */
/* BOOKING BOX — Flip Container                           */
/* ═══════════════════════════════════════════════════════ */
.booking-box {
    perspective: 1400px;
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.booking-box__front,
.booking-box__back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform .8s cubic-bezier(.4,0,.2,1), opacity .6s ease;
    background: #fff;
    border-radius: var(--r-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    width: 100%;
}

.booking-box__back {
    position: absolute;
    inset: 0;
    transform: rotateY(-180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

.booking-box.flipped .booking-box__front {
    transform: rotateY(180deg);
    opacity: 0;
    pointer-events: none;
}

.booking-box.flipped .booking-box__back {
    transform: rotateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════ */
/* BOOKING STEPS                                          */
/* ═══════════════════════════════════════════════════════ */
.booking-form__step {
    transition: opacity .3s ease;
}

.booking-step--hidden {
    display: none;
}

/* ═══════════════════════════════════════════════════════ */
/* TOUR SELECTOR GRID                                     */
/* ═══════════════════════════════════════════════════════ */
.tour-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.tour-selector__loading,
.tour-selector__error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.tour-selector__loading i {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
}

.tour-selector__error i {
    font-size: 32px;
    color: #DC2626;
    margin-bottom: 10px;
    display: block;
}

/* ═══════════════════════════════════════════════════════ */
/* TOUR CARD (in selector)                                */
/* ═══════════════════════════════════════════════════════ */
.tour-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    cursor: pointer;
    transition: all .25s ease;
    text-align: left;
    padding: 0;
    font-family: inherit;
}

.tour-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.tour-card--selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(224,122,63,.15);
}

.tour-card__check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transform: scale(.5);
    transition: all .25s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(224,122,63,.4);
}

.tour-card--selected .tour-card__check {
    opacity: 1;
    transform: scale(1);
}

.tour-card__img {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--sand);
}

.tour-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.tour-card:hover .tour-card__img img {
    transform: scale(1.05);
}

.tour-card__info {
    padding: 12px 14px 8px;
    flex: 1;
}

.tour-card__info h3 {
    font-family: var(--font-h);
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

.tour-card__meta {
    display: flex;
    gap: 12px;
    font-size: 11.5px;
    color: var(--gray);
    flex-wrap: wrap;
}

.tour-card__meta i {
    color: var(--accent);
    margin-right: 3px;
    font-size: 10px;
}

.tour-card__price {
    padding: 10px 14px;
    background: var(--sand);
    font-family: var(--font-h);
    font-size: 17px;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: baseline;
    gap: 6px;
    border-top: 1px solid var(--border);
}

.tour-card__price small {
    font-family: var(--font-b);
    font-size: 10.5px;
    color: var(--gray);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════ */
/* SELECTED TOUR PREVIEW (Step 2)                         */
/* ═══════════════════════════════════════════════════════ */
.booking-form__tour {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--sand);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    align-items: center;
    position: relative;
}

.booking-form__tour-img {
    width: 80px;
    height: 80px;
    border-radius: var(--r-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--sand-2);
}

.booking-form__tour-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.booking-form__tour-info {
    min-width: 0;
    flex: 1;
}

.booking-form__tour-label {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 4px;
}

.booking-form__tour-info h3 {
    font-family: var(--font-h);
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.booking-form__tour-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--gray);
}

.booking-form__tour-meta i {
    color: var(--accent);
    margin-right: 4px;
    font-size: 11px;
}

.booking-form__tour-actions {
    flex-shrink: 0;
}

.tour-change-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--r-full);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: var(--t);
    font-family: inherit;
}

.tour-change-btn:hover {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
}

.tour-change-btn i {
    font-size: 10px;
}

/* ═══════════════════════════════════════════════════════ */
/* SUMMARY — Empty State                                  */
/* ═══════════════════════════════════════════════════════ */
.booking-summary__empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.booking-summary__empty i {
    font-size: 40px;
    color: var(--sand-2);
    margin-bottom: 12px;
    display: block;
}

.booking-summary__empty p {
    font-size: 13.5px;
    line-height: 1.5;
}

.booking-summary__content--hidden {
    display: none;
}

/* ═══════════════════════════════════════════════════════ */
/* RESPONSIVE                                             */
/* ═══════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .booking-box__front,
    .booking-box__back {
        padding: 20px;
    }

    .tour-selector {
        grid-template-columns: 1fr;
    }

    .booking-form__tour {
        flex-direction: column;
        text-align: center;
    }

    .booking-form__tour-img {
        width: 100%;
        height: 120px;
    }

    .booking-form__tour-actions {
        width: 100%;
    }

    .tour-change-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ═══════════════════════════════════════════════════════ */
/* COUNTRY PICKER — منتقي الدول                           */
/* ═══════════════════════════════════════════════════════ */

/* ─── الحاوية الرئيسية ─── */
.country-picker {
    position: relative;
    width: 100%;
    font-family: 'Inter', sans-serif;
    z-index: 50;
}

/* ═══════════════════════════════════════════════════════ */
/* TRIGGER (الزر) — حجم مصغّر متناسق مع باقي الحقول        */
/* ═══════════════════════════════════════════════════════ */
.country-picker__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;

    padding: 9px 12px;
    min-height: 40px;              /* ✅ أصغر من 48 */

    background: #ffffff;
    border: 1.5px solid #e2e2e2;
    border-radius: 8px;            /* ✅ أنعم قليلاً */

    font-family: inherit;
    font-size: 13px;               /* ✅ أصغر */
    line-height: 1.2;
    color: #2a2a2a;
    text-align: left;
    cursor: pointer;

    transition: border-color .2s ease, box-shadow .2s ease;
}

.country-picker__trigger:hover {
    border-color: #c9c9c9;
}

.country-picker__trigger:focus-visible {
    outline: none;
    border-color: #E07A3F;
    box-shadow: 0 0 0 3px rgba(224, 122, 63, .15);
}

.country-picker__trigger.active {
    border-color: #E07A3F;
    box-shadow: 0 0 0 3px rgba(224, 122, 63, .12);
}

.country-picker__trigger.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, .12);
}

/* ─── العنصر المختار داخل الزر ─── */
.country-picker__selected {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: #2a2a2a;
}

.country-picker__selected.placeholder {
    color: #9a9a9a;
}

.country-picker__selected i.fa-globe {
    color: #9a9a9a;
    font-size: 12px;
}

.country-picker__selected .country-picker__flag {
    font-size: 15px;
    line-height: 1;
}

.country-picker__selected .country-picker__label,
.country-picker__selected span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ─── سهم الزر ─── */
.country-picker__arrow {
    font-size: 10px;
    color: #9a9a9a;
    flex-shrink: 0;
    transition: transform .25s ease, color .2s ease;
}

.country-picker__trigger.active .country-picker__arrow {
    transform: rotate(180deg);
    color: #E07A3F;
}

/* ═══════════════════════════════════════════════════════ */
/* DROPDOWN — ✅ position: fixed لتفادي overflow الأب      */
/* ═══════════════════════════════════════════════════════ */
.country-picker__dropdown {
    display: none;
    position: fixed;              /* ✅ يتجاوز أي overflow للأب */
    z-index: 99999;               /* ✅ فوق كل شيء */

    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .14);

    max-height: 300px;
    overflow: hidden;

    animation: cpFadeIn .16s ease;
}

.country-picker__dropdown.active {
    display: block;
}

@keyframes cpFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── حقل البحث ─── */
.country-picker__search-wrap {
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    border-radius: 10px 10px 0 0;
}

.country-picker__search {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid #e2e2e2;
    border-radius: 6px;
    background: #ffffff;

    font-family: inherit;
    font-size: 12.5px;
    color: #2a2a2a;
    outline: none;

    transition: border-color .2s ease, box-shadow .2s ease;
}

.country-picker__search::placeholder {
    color: #b0b0b0;
}

.country-picker__search:focus {
    border-color: #E07A3F;
    box-shadow: 0 0 0 3px rgba(224, 122, 63, .12);
}

/* ─── قائمة الدول ─── */
.country-picker__list {
    list-style: none;
    margin: 0;
    padding: 4px 0;

    max-height: 230px;
    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 transparent;
}

.country-picker__list::-webkit-scrollbar {
    width: 5px;
}
.country-picker__list::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 3px;
}
.country-picker__list::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* ─── عنصر الدولة ─── */
.country-picker__item {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 8px 12px;
    cursor: pointer;

    font-size: 12.5px;
    color: #2a2a2a;
    line-height: 1.2;

    transition: background .15s ease;
    outline: none;
}

.country-picker__item:hover,
.country-picker__item:focus-visible {
    background: #fdf3ec;
}

.country-picker__item.selected {
    background: #fdf3ec;
    color: #E07A3F;
    font-weight: 600;
}

.country-picker__item.selected::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 10px;
    color: #E07A3F;
    margin-left: auto;
}

/* ─── أجزاء العنصر ─── */
.country-picker__flag {
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
}

.country-picker__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.country-picker__code {
    font-size: 10.5px;
    font-weight: 600;
    color: #9a9a9a;
    letter-spacing: .4px;
    flex-shrink: 0;
}

.country-picker__item.selected .country-picker__code {
    color: #E07A3F;
}

.country-picker__dial {
    font-size: 10.5px;
    color: #b0b0b0;
    flex-shrink: 0;
}

/* ─── رسالة "لا توجد نتائج" ─── */
.country-picker__empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 22px 14px;
    text-align: center;

    color: #9a9a9a;
    font-size: 12px;
}

.country-picker__empty.active {
    display: flex;
}

.country-picker__empty i {
    font-size: 18px;
    color: #d0d0d0;
}

/* ═══════════════════════════════════════════════════════ */
/* RESPONSIVE                                             */
/* ═══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .country-picker__trigger {
        padding: 9px 11px;
        font-size: 12.5px;
        min-height: 38px;
    }

    .country-picker__dropdown {
        max-height: 260px;
    }

    .country-picker__list {
        max-height: 190px;
    }

    .country-picker__item {
        padding: 8px 11px;
        font-size: 12.5px;
    }

    .country-picker__dial {
        display: none;
    }
}


/* ═══════════════════════════════════════════════════════ */
/* BOOKING SUCCESS — شاشة نجاح الحجز                       */
/* ═══════════════════════════════════════════════════════ */

.booking-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 4px;
    width: 100%;
    animation: bsFadeUp .55s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes bsFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════ */
/* ICON — دائرة النجاح مع علامة صح متحركة                  */
/* ═══════════════════════════════════════════════════════ */
.booking-success__icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E07A3F 0%, #F0A46A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    position: relative;
    box-shadow:
        0 10px 24px rgba(224, 122, 63, .32),
        0 0 0 0 rgba(224, 122, 63, .35);
    animation: bsPulse 1.6s ease-out .3s 1;
}

@keyframes bsPulse {
    0%   { box-shadow: 0 10px 24px rgba(224,122,63,.32), 0 0 0 0 rgba(224,122,63,.35); }
    70%  { box-shadow: 0 10px 24px rgba(224,122,63,.32), 0 0 0 18px rgba(224,122,63,0); }
    100% { box-shadow: 0 10px 24px rgba(224,122,63,.32), 0 0 0 0 rgba(224,122,63,0); }
}

.booking-success__icon .checkmark {
    width: 42px;
    height: 42px;
    stroke: #fff;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.booking-success__icon .checkmark circle {
    stroke: rgba(255,255,255,.35);
    stroke-width: 2;
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
    animation: bsCircleDraw .55s ease-out .1s forwards;
}

.booking-success__icon .checkmark path {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: bsCheckDraw .4s cubic-bezier(.65,0,.45,1) .55s forwards;
}

@keyframes bsCircleDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes bsCheckDraw {
    to { stroke-dashoffset: 0; }
}

/* ═══════════════════════════════════════════════════════ */
/* TITLE & TEXT                                           */
/* ═══════════════════════════════════════════════════════ */
.booking-success__title {
    font-family: var(--font-h, 'Playfair Display', serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--dark, #1a1a1a);
    margin: 0 0 8px;
    line-height: 1.25;
    letter-spacing: -.2px;
}

.booking-success__text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--gray, #7a7a7a);
    margin: 0 0 18px;
    max-width: 320px;
}

/* ═══════════════════════════════════════════════════════ */
/* REFERENCE — رقم المرجع بتصميم بارز                      */
/* ═══════════════════════════════════════════════════════ */
.booking-success__ref {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fdf3ec;
    border: 1px dashed #E07A3F;
    border-radius: 8px;
    font-size: 12px;
    color: #7a5a3a;
    margin-bottom: 18px;
    font-family: 'Inter', sans-serif;
}

.booking-success__ref span {
    font-weight: 500;
    opacity: .8;
}

.booking-success__ref strong {
    font-family: 'SF Mono', 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    color: #E07A3F;
    letter-spacing: .5px;
}

/* ═══════════════════════════════════════════════════════ */
/* DETAILS — بطاقات تفاصيل الحجز                           */
/* ═══════════════════════════════════════════════════════ */
.booking-success__details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
}

.booking-success__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    font-size: 13px;
    color: #2a2a2a;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    transition: background .2s ease;
}

.booking-success__row:last-child {
    border-bottom: none;
}

.booking-success__row:hover {
    background: #fff;
    border-radius: 6px;
}

.booking-success__row i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fff;
    color: #E07A3F;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 2px rgba(0,0,0,.02);
}

.booking-success__row span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    color: #2a2a2a;
}

.booking-success__row:last-child span {
    font-weight: 700;
    color: #E07A3F;
}

/* ═══════════════════════════════════════════════════════ */
/* BUTTON — زر "حجز جديد"                                  */
/* ═══════════════════════════════════════════════════════ */
.booking-success__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    padding: 12px 20px;
    min-height: 46px;

    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 10px;

    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .2px;

    cursor: pointer;
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}

.booking-success__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #E07A3F 0%, #F0A46A 100%);
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 0;
}

.booking-success__btn:hover::before {
    opacity: 1;
}

.booking-success__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(224, 122, 63, .28);
}

.booking-success__btn:active {
    transform: translateY(0);
}

.booking-success__btn i,
.booking-success__btn span {
    position: relative;
    z-index: 1;
}

.booking-success__btn i {
    font-size: 11px;
    transition: transform .3s ease;
}

.booking-success__btn:hover i {
    transform: rotate(90deg);
}

/* ═══════════════════════════════════════════════════════ */
/* RESPONSIVE                                             */
/* ═══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .booking-success__icon {
        width: 66px;
        height: 66px;
        margin-bottom: 14px;
    }

    .booking-success__icon .checkmark {
        width: 36px;
        height: 36px;
    }

    .booking-success__title {
        font-size: 19px;
    }

    .booking-success__text {
        font-size: 12.5px;
        margin-bottom: 14px;
    }

    .booking-success__ref {
        padding: 7px 12px;
        font-size: 11.5px;
        margin-bottom: 14px;
    }

    .booking-success__details {
        padding: 10px;
        gap: 4px;
        margin-bottom: 14px;
    }

    .booking-success__row {
        font-size: 12.5px;
        padding: 7px 2px;
    }

    .booking-success__row i {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .booking-success__btn {
        padding: 11px 16px;
        font-size: 13px;
        min-height: 42px;
    }
}


/* ═══════════════════════════════════════════════════════ */
/* HIDE PRICE ELEMENTS WHEN ON REQUEST                    */
/* ═══════════════════════════════════════════════════════ */
.booking-box__price[style*="display: none"],
.bk-total[style*="display: none"],
.tour-geo__item[style*="display: none"] {
    display: none !important;
}

/* إخفاء Total في Success إذا لم يوجد سعر */
.booking-success__row[style*="display: none"] {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════ */
/* PRICE ON REQUEST — بديل أنيق                            */
/* ═══════════════════════════════════════════════════════ */
.booking-box__price--on-request {
    text-align: center;
    padding: 20px 16px;
    background: linear-gradient(135deg, #fef3e7, #fde4cc);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px dashed #E07A3F;
}

.booking-box__price--on-request strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #E07A3F;
    margin-bottom: 4px;
}

.booking-box__price--on-request small {
    display: block;
    font-size: 13px;
    color: #8B5A2B;
}


/* ═══════════════════════════════════════════════════════ */
/* ITINERARY — MODERN TIMELINE ACCORDION                  */
/* ═══════════════════════════════════════════════════════ */

.tour-itinerary {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 0;
}

/* ═══════════════════════════════════════════════════════ */
/* DAY ROW                                                */
/* ═══════════════════════════════════════════════════════ */
.tl-day {
    position: relative;
    display: flex;
    gap: 16px;
    padding-bottom: 10px;
}

.tl-day:last-child {
    padding-bottom: 0;
}

/* ═══════════════════════════════════════════════════════ */
/* MARKER (رقم + خط رأسي)                                  */
/* ═══════════════════════════════════════════════════════ */
.tl-day__marker {
    position: relative;
    flex-shrink: 0;
    width: 38px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

/* الخط الرأسي */
.tl-day__marker::before {
    content: '';
    position: absolute;
    top: 44px;
    bottom: -10px;
    left: 50%;
    width: 2px;
    background: linear-gradient(
        to bottom,
        #E07A3F 0%,
        #E07A3F 60%,
        #f0e6dc 100%
    );
    transform: translateX(-50%);
    border-radius: 2px;
}

.tl-day:last-child .tl-day__marker::before {
    display: none;
}

/* دائرة الرقم */
.tl-day__num {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fff;
    border: 2px solid #E07A3F;
    color: #E07A3F;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(224, 122, 63, 0.12);
}

.tl-day--open .tl-day__num {
    background: linear-gradient(135deg, #E07A3F, #C4632A);
    color: #fff;
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(224, 122, 63, 0.35);
}

/* ═══════════════════════════════════════════════════════ */
/* CARD                                                   */
/* ═══════════════════════════════════════════════════════ */
.tl-day__card {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid #f0e6dc;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tl-day__card:hover {
    border-color: #e8d5c0;
    box-shadow: 0 4px 14px rgba(224, 122, 63, 0.06);
}

.tl-day--open .tl-day__card {
    border-color: #E07A3F;
    box-shadow: 0 8px 24px rgba(224, 122, 63, 0.1);
}

/* ═══════════════════════════════════════════════════════ */
/* HEADER (قابل للنقر)                                     */
/* ═══════════════════════════════════════════════════════ */
.tl-day__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.2s ease;
}

.tl-day__head:hover {
    background: #fdf9f5;
}

.tl-day--open .tl-day__head {
    background: linear-gradient(135deg, #fdf6f0 0%, #fef9f5 100%);
    border-bottom: 1px solid #f0e6dc;
}

.tl-day__head-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Label صغير فوق العنوان */
.tl-day__label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #E07A3F;
    opacity: 0.85;
}

/* العنوان الرئيسي */
.tl-day__title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 15.5px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.35;
    transition: color 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tl-day--open .tl-day__title {
    color: #1a1a1a;
}

/* ═══════════════════════════════════════════════════════ */
/* TOGGLE BUTTON (+ / −)                                   */
/* ═══════════════════════════════════════════════════════ */
.tl-day__toggle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #f5ede4;
    color: #E07A3F;
    font-size: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tl-day__toggle i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tl-day__head:hover .tl-day__toggle {
    background: #E07A3F;
    color: #fff;
}

/* عند الفتح: تحويل + إلى × */
.tl-day--open .tl-day__toggle {
    background: #E07A3F;
    color: #fff;
}

.tl-day--open .tl-day__toggle i {
    transform: rotate(135deg);
}

/* ═══════════════════════════════════════════════════════ */
/* BODY (collapsible)                                      */
/* ═══════════════════════════════════════════════════════ */
.tl-day__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tl-day--open .tl-day__body {
    grid-template-rows: 1fr;
}

.tl-day__inner {
    overflow: hidden;
    min-height: 0;
}

/* ═══════════════════════════════════════════════════════ */
/* DESCRIPTION                                             */
/* ═══════════════════════════════════════════════════════ */
.tl-day__desc {
    padding: 14px 16px 12px;
    color: #4a4a4a;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    line-height: 1.7;
}

.tl-day__desc p {
    margin: 0 0 10px;
}

.tl-day__desc p:last-child {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════ */
/* META CHIPS (meals, accommodation)                       */
/* ═══════════════════════════════════════════════════════ */
.tl-day__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px 14px;
    border-top: 1px dashed #f0e6dc;
    background: #fefaf6;
}

.tl-day__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    background: #fff;
    border: 1px solid #f0e6dc;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    color: #6a4a2a;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.tl-day__chip:hover {
    border-color: #E07A3F;
    background: #fdf6f0;
    color: #C4632A;
}

.tl-day__chip i {
    color: #E07A3F;
    font-size: 10.5px;
}

/* ═══════════════════════════════════════════════════════ */
/* RESPONSIVE                                              */
/* ═══════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .tl-day {
        gap: 12px;
        padding-bottom: 8px;
    }

    .tl-day__marker {
        width: 32px;
    }

    .tl-day__marker::before {
        top: 38px;
        bottom: -8px;
        width: 2px;
    }

    .tl-day__num {
        width: 28px;
        height: 28px;
        font-size: 11px;
        border-radius: 8px;
    }

    .tl-day__head {
        padding: 12px 13px;
        gap: 10px;
    }

    .tl-day__label {
        font-size: 9px;
    }

    .tl-day__title {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    .tl-day__toggle {
        width: 26px;
        height: 26px;
        font-size: 10px;
        border-radius: 7px;
    }

    .tl-day__desc {
        padding: 12px 13px 10px;
        font-size: 12.5px;
        line-height: 1.65;
    }

    .tl-day__meta {
        padding: 10px 13px 12px;
        gap: 6px;
    }

    .tl-day__chip {
        font-size: 10.5px;
        padding: 4px 9px;
        gap: 5px;
    }

    .tl-day__chip i {
        font-size: 9.5px;
    }
}

/* ═══════════════════════════════════════════════════════ */
/* RTL SUPPORT                                             */
/* ═══════════════════════════════════════════════════════ */
[dir="rtl"] .tl-day__head {
    text-align: right;
}

[dir="rtl"] .tl-day__desc {
    text-align: right;
}

[dir="rtl"] .tl-day__label {
    letter-spacing: 0.08em;
}


/* ═══════════════════════════════════════════════════════ */
/* TOUR HERO — VIEWS BADGE                                */
/* ═══════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════ */
/* TOUR HERO — VIEWS BADGE (Sahara Sand Theme)            */
/* ═══════════════════════════════════════════════════════ */
.tour-hero__views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #fdf6ed 0%, #f5e6ce 100%);
    border: 1px solid #e8d5b0;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: #8b5c04;
    line-height: 1;
    transition: all 0.25s ease;
}

.tour-hero__views:hover {
    background: linear-gradient(135deg, #f5e6ce 0%, #ecd9b3 100%);
    border-color: #d4b87a;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(139, 92, 4, 0.15);
}

.tour-hero__views i {
    font-size: 13px;
    color: #b8860b;
}

.tour-hero__views span:last-child {
    font-weight: 500;
    opacity: 0.85;
    font-size: 11.5px;
}

/* ═══════════════════════════════════════════════════════ */
/* RESPONSIVE                                             */
/* ═══════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .tour-hero__views {
        font-size: 11.5px;
        padding: 4px 10px;
        gap: 5px;
    }

    .tour-hero__views i {
        font-size: 11.5px;
    }

    .tour-hero__views span:last-child {
        font-size: 10.5px;
    }
}





/* ═══════════════════════════════════════════════════ */
/* ═══ BOOKING BOX — Soft Pulse (Ultra Light) ════════ */
/* ═══════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
/* ═══ BOOKING BOX — Elegant Golden Breathe ══════════════════ */
/* ═══ إطار ذهبي "يتنفس" — واضح، احترافي، غير مزعج ═════════ */
/* ═══════════════════════════════════════════════════════════ */

.booking-box {
    position: relative;
    border-radius: 20px;
    
    /* ═══ الإطار الأساسي — ذهبي صحراوي احترافي ═══ */
    border: 2px solid rgba(212, 165, 116, 0.55);
    
    /* ═══ توهج ذهبي هادئ ومستمر (خلفية ثابتة أنيقة) ═══ */
    box-shadow: 
        0 0 0 1px rgba(212, 165, 116, 0.08),
        0 4px 24px rgba(212, 165, 116, 0.12),
        0 8px 32px rgba(0, 0, 0, 0.06);
    
    /* ═══ النبض الناعم ═══ */
    animation: bookingBoxBreathe 4.5s ease-in-out infinite;
    
    /* ═══ تحسينات الأداء ═══ */
    will-change: border-color, box-shadow;
    contain: layout style paint;
    backface-visibility: hidden;
}

/* ═══════════════════════════════════════════════════════════ */
/* ═══ النبض — "تنفس" ذهبي ناعم ═════════════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
@keyframes bookingBoxBreathe {
    0%, 100% {
        /* حالة الهدوء — ذهبي واضح لكن هادئ */
        border-color: rgba(212, 165, 116, 0.50);
        box-shadow: 
            0 0 0 1px rgba(212, 165, 116, 0.06),
            0 4px 24px rgba(212, 165, 116, 0.10),
            0 8px 32px rgba(0, 0, 0, 0.06);
    }
    50% {
        /* حالة "الشهيق" — ذهبي أوضح + توهج هادئ */
        border-color: rgba(212, 165, 116, 0.85);
        box-shadow: 
            0 0 0 1px rgba(212, 165, 116, 0.15),
            0 4px 28px rgba(212, 165, 116, 0.22),
            0 0 20px 2px rgba(212, 165, 116, 0.15),
            0 8px 32px rgba(0, 0, 0, 0.06);
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* ═══ احترام تفضيلات المستخدم ══════════════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .booking-box {
        animation: none !important;
        border-color: rgba(212, 165, 116, 0.65);
        box-shadow: 
            0 0 0 1px rgba(212, 165, 116, 0.10),
            0 4px 24px rgba(212, 165, 116, 0.15),
            0 8px 32px rgba(0, 0, 0, 0.06) !important;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* ═══ الأجهزة الضعيفة / الجوال ═════════════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
@media (max-width: 480px), (hover: none) {
    .booking-box {
        /* نبض أبطأ = أخف على المعالج + أقل إزعاجاً */
        animation-duration: 5.5s;
    }
}


/* ═══════════════════════════════════════════════════════════ */
/* ═══ MOBILE STICKY BAR — Floating Bottom CTA ═══════════════ */
/* ═══ شريط سفلي عائم للجوال — خفيف واحترافي ═══════════════ */
/* ═══════════════════════════════════════════════════════════ */

.tour-sticky-bar {
    /* ═══ مخفي افتراضياً على الديسكتوب ═══ */
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    pointer-events: none;
    
    /* ═══ تراجع ناعم عند الإخفاء ═══ */
    transform: translateY(100%);
    opacity: 0;
    transition: 
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.25s ease;
    
    /* ═══ حماية من safe-area على iPhone ═══ */
    padding-bottom: env(safe-area-inset-bottom, 0);
    
    will-change: transform, opacity;
    contain: layout style;
}

/* ═══ الحالة المرئية ═══ */
.tour-sticky-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
}

/* ═══ فقط على الجوال (≤ 992px) ═══ */
@media (max-width: 992px) {
    .tour-sticky-bar {
        display: block;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* ═══ الخلفية الشفافة الضبابية ═════════════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
.tour-sticky-bar__inner {
    pointer-events: auto;
    background: rgba(20, 20, 20, 0.72);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    backdrop-filter: blur(14px) saturate(180%);
    border-top: 1px solid rgba(212, 165, 116, 0.25);
    padding: 10px 14px 12px;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}

/* ═══════════════════════════════════════════════════════════ */
/* ═══ الزر — كامل العرض، ذهبي، احترافي ════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
.tour-sticky-bar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 0 20px;
    
    /* ═══ خلفية ذهبية متدرجة ═══ */
    background: linear-gradient(135deg, #D4A574 0%, #C8945E 100%);
    color: #1a1a1a;
    
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    
    /* ═══ ظل ذهبي هادئ ═══ */
    box-shadow: 
        0 4px 16px rgba(212, 165, 116, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    
    /* ═══ انتقال سريع ═══ */
    transition: 
        transform 0.15s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
    
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    will-change: transform;
}

/* ═══ ضغط سريع عند اللمس — لا يسبب layout shift ═══ */
.tour-sticky-bar__btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
}

/* ═══ Hover (للأجهزة اللوحية) ═══ */
@media (hover: hover) {
    .tour-sticky-bar__btn:hover {
        background: linear-gradient(135deg, #E0B588 0%, #D4A574 100%);
        box-shadow: 0 6px 20px rgba(212, 165, 116, 0.45);
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* ═══ الأيقونة والنص والسهم ════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
.tour-sticky-bar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(26, 26, 26, 0.15);
    border-radius: 50%;
    font-size: 14px;
    flex-shrink: 0;
}

.tour-sticky-bar__text {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tour-sticky-bar__arrow {
    font-size: 14px;
    opacity: 0.7;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.tour-sticky-bar__btn:active .tour-sticky-bar__arrow {
    transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════ */
/* ═══ احترام تفضيلات المستخدم ══════════════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .tour-sticky-bar,
    .tour-sticky-bar__btn,
    .tour-sticky-bar__arrow {
        transition: none !important;
        animation: none !important;
    }
    .tour-sticky-bar__btn:active {
        transform: none;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* ═══ دعم اللغة العربية (RTL) ═════════════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
[dir="rtl"] .tour-sticky-bar__btn:active .tour-sticky-bar__arrow {
    transform: translateX(-3px) scaleX(-1);
}

[dir="rtl"] .tour-sticky-bar__arrow {
    transform: scaleX(-1);
}

/* ═══════════════════════════════════════════════════════════ */
/* ═══ احتياطي إذا لم يدعم backdrop-filter ═════════════════ */
/* ═══════════════════════════════════════════════════════════ */
@supports not (backdrop-filter: blur(10px)) {
    .tour-sticky-bar__inner {
        background: rgba(20, 20, 20, 0.92);
    }
}


/* ═══════════════════════════════════════════════════════════ */
/* ═══ TOUR MAP LOGO — شعار شفاف في الزاوية السفلية ═════════ */
/* ═══════════════════════════════════════════════════════════ */

/* ═══ حاوية الشعار — تحمي من قواعد Leaflet الافتراضية ═══ */
.leaflet-control-tour-logo {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;

    /* ═══ مسافة 5% من اليمين + مسافة قليلة من الأسفل ═══ */
    margin-right: 5% !important;
}

/* ═══ الشعار نفسه ═══ */
.tour-map-logo {
    /* لا يحجب تفاعل الخريطة */
    pointer-events: none !important;

    /* شفاف دائماً — بدون hover */
    opacity: 0.4 !important;

    /* انتقال ناعم للشفافية (فقط عند إعادة الإرفاق) */
    transition: opacity 0.3s ease;
}

/* ═══ الصورة داخل الشعار ═══ */
.tour-map-logo img {
    pointer-events: none !important;
    -webkit-user-drag: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

/* ═══ احترام تفضيلات المستخدم ═══ */
@media (prefers-reduced-motion: reduce) {
    .tour-map-logo {
        transition: none !important;
    }
}

/* ═══ الجوال — شفافية أقل قليلاً (أوضح للقراءة) ═══ */
@media (max-width: 480px) {
    .tour-map-logo {
        opacity: 0.4 !important;
    }
    .leaflet-control-tour-logo {
        margin-right: 5% !important;
   
    }
}

/* ═══ الشاشات الكبيرة — مسافة 5% أيضاً ═══ */
@media (min-width: 993px) {
    .leaflet-control-tour-logo {
        margin-right: 5% !important;
   
    }
}