/* ─── Hero ────────────────────────────────────────────────────────── */
.tp-hero {
    position: relative;
    height: 460px;
    background: #0d47a1;
    overflow: hidden;
}
.tp-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
    transition: transform 8s ease;
}
.tp-hero:hover .tp-hero__bg { transform: scale(1.04); }
.tp-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}
.tp-hero__body {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    padding: 2rem 0;
}
.tp-hero__tag {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: .25rem .75rem;
    border-radius: 99px;
    background: rgba(255,255,255,.18);
    color: #fff;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.25);
    margin-bottom: .75rem;
}
.tp-hero__title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: .5rem;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
    line-height: 1.25;
}
.tp-hero__route {
    font-size: .9rem;
    color: rgba(255,255,255,.8);
    display: flex;
    align-items: center;
    gap: .4rem;
}
.tp-hero__route i { opacity: .7; }
.tp-hero__route-path { display: inline; }
.tp-route-arrow {
    display: inline-block;
    margin-inline: .15rem;
    opacity: .7;
}

/* gallery pill */
.tp-gallery-btn {
    position: absolute;
    bottom: 1.25rem;
    inset-inline-end: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem 1.1rem;
    border-radius: 99px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    text-decoration: none;
    transition: background .2s;
}
.tp-gallery-btn:hover { background: rgba(255,255,255,.32); color: #fff; }

/* ─── Breadcrumb row ──────────────────────────────────────────────── */
.tp-nav-row {
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    padding: .65rem 0;
}

/* ─── Layout ──────────────────────────────────────────────────────── */
.tp-layout { padding: 2rem 0 5rem; background: #f4f6f9; }

/* ─── Section card ───────────────────────────────────────────────── */
.tp-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.tp-card-head {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: .65rem;
}
.tp-card-head h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}
.tp-card-head .tp-card-icon {
    width: 2rem;
    height: 2rem;
    border-radius: .5rem;
    background: #eff6ff;
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
}
.tp-card-body { padding: 1.5rem; }

/* ─── Description ────────────────────────────────────────────────── */
.tp-description {
    font-size: .93rem;
    line-height: 1.75;
    color: #374151;
    white-space: pre-line;
}

/* ─── Itinerary / stops (inline timeline) ─────────────────────────── */
.tp-stops {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0;
    overflow-x: auto;
    padding-bottom: .25rem;
}
.tp-stop {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    flex: 1 1 0;
    min-width: 110px;
    padding: 0 .5rem;
}
.tp-stop__head {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: .75rem;
    position: relative;
}
.tp-stop__dot {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .75rem;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(13,110,253,.3);
    margin-inline: auto;
}
.tp-stop:not(:last-child) .tp-stop__head::after {
    content: '';
    position: absolute;
    top: 50%;
    inset-inline-start: calc(50% + .9rem);
    width: calc(100% - .05rem);
    height: 2px;
    background: linear-gradient(to right, var(--bs-primary), #90caf9);
    transform: translateY(-50%);
}
html[dir="rtl"] .tp-stop:not(:last-child) .tp-stop__head::after {
    background: linear-gradient(to left, var(--bs-primary), #90caf9);
}
.tp-stop__content { min-width: 0; width: 100%; }
.tp-stop__city {
    font-size: .95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 .2rem;
    line-height: 1.3;
}
.tp-stop__country { font-size: .82rem; color: #64748b; margin: 0; }

/* ─── Schedules (selectable) ─────────────────────────────────────── */
.tp-schedule-grid { display: flex; flex-direction: column; gap: .65rem; }
.tp-schedule-item {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .85rem 1.1rem;
    border-radius: .75rem;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    transition: border-color .15s, background .15s, box-shadow .15s;
    cursor: pointer;
    user-select: none;
}
.tp-schedule-item:hover { border-color: var(--bs-primary); background: #eff6ff; }
.tp-schedule-item.is-selected {
    border-color: var(--bs-primary);
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(13,110,253,.12);
}
.tp-schedule-item input[type="radio"] { display: none; }
.tp-schedule-radio {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    position: relative;
    transition: border-color .15s;
    background: #fff;
}
.tp-schedule-item.is-selected .tp-schedule-radio {
    border-color: var(--bs-primary);
    background: var(--bs-primary);
}
.tp-schedule-item.is-selected .tp-schedule-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #fff;
}
.tp-schedule-dates { display: flex; align-items: center; gap: .6rem; font-size: .88rem; font-weight: 600; color: #1e293b; flex: 1 1 auto; }
.tp-schedule-dates i { color: var(--bs-primary); }
.tp-schedule-duration {
    font-size: .75rem;
    font-weight: 700;
    color: var(--bs-primary);
    background: #eff6ff;
    border-radius: 99px;
    padding: .2rem .65rem;
    white-space: nowrap;
}
.tp-schedule-item.is-selected .tp-schedule-duration {
    background: #dbeafe;
}

/* ─── Options (informational cards) ─────────────────────────────── */
.tp-option {
    border: 1.5px solid #e2e8f0;
    border-radius: .85rem;
    padding: 1.1rem 1.25rem;
    background: #fff;
    height: 100%;
}
.tp-option__name { font-size: .95rem; font-weight: 700; color: #1e293b; margin-bottom: .35rem; }
.tp-option__desc { font-size: .82rem; color: #6b7280; line-height: 1.55; }
.tp-option__price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--bs-primary);
    margin-top: .65rem;
}
.tp-option__price small { font-size: .78rem; color: #64748b; font-weight: 600; }
.tp-option__per { font-size: .72rem; color: #94a3b8; margin-top: .2rem; }

.tp-schedule-options__date {
    font-size: .82rem;
    font-weight: 700;
    color: #475569;
}

/* ─── Per-option quantity rows (booking sidebar) ─────────────────── */
.tb-opts-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .5rem; }
.tb-opt-row {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem .75rem;
    border: 1.5px solid #e2e8f0;
    border-radius: .65rem;
    background: #f8fafc;
    transition: border-color .15s, background .15s;
}
.tb-opt-row.has-qty {
    border-color: var(--bs-primary);
    background: #eff6ff;
}
.tb-opt-row__info { flex: 1 1 auto; min-width: 0; }
.tb-opt-row__name {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tb-opt-row__price {
    display: block;
    font-size: .75rem;
    color: var(--bs-primary);
    font-weight: 600;
    margin-top: .1rem;
}
.tb-opt-row__qty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    flex-shrink: 0;
}
.tb-opt-row__qty-label {
    font-size: .65rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1;
    white-space: nowrap;
}
.tb-opt-row.has-qty .tb-opt-row__qty-label { color: var(--bs-primary); }
.tb-opt-row__counter {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #e2e8f0;
    border-radius: .5rem;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}
.tb-opt-row.has-qty .tb-opt-row__counter { border-color: var(--bs-primary); }
.tb-qty-btn {
    width: 1.85rem;
    height: 1.85rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 700;
    color: var(--bs-primary);
    cursor: pointer;
    transition: background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.tb-qty-btn:hover { background: #eff6ff; }
.tb-qty-btn:disabled { color: #cbd5e1; cursor: default; }
.tb-qty-val {
    min-width: 1.6rem;
    text-align: center;
    font-size: .88rem;
    font-weight: 700;
    color: #1e293b;
    padding: 0 .1rem;
}

/* ─── Sticky booking sidebar ─────────────────────────────────────── */
.tp-sidebar {
    position: sticky;
    top: 8.25rem;
}
.tp-booking-card {
    background: #fff;
    border-radius: 1.1rem;
    box-shadow: 0 4px 28px rgba(0,0,0,.11);
    overflow: hidden;
}
.tp-booking-card__price-bar {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    padding: 1.25rem 1.5rem;
    color: #fff;
}
.tp-booking-card__from { font-size: .75rem; opacity: .8; margin-bottom: .15rem; }
.tp-booking-card__amount {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
}
.tp-booking-card__amount small { font-size: .85rem; opacity: .75; font-weight: 500; }
.tp-booking-card__body { padding: 1.2rem 1.4rem 1.4rem; }

/* booking fields */
.tb-field { margin-bottom: .95rem; }
.tb-field__label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: .35rem;
}
.tb-field__hint {
    font-size: .72rem;
    color: #64748b;
    line-height: 1.45;
    margin: -.05rem 0 .55rem;
}
.tb-field select,
.tb-field .tb-select {
    width: 100%;
    padding: .6rem .85rem;
    border: 1.5px solid #e2e8f0;
    border-radius: .65rem;
    font-size: .88rem;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color .15s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - .75rem) center;
}
html[dir="rtl"] .tb-field select,
html[dir="rtl"] .tb-field .tb-select {
    background-position: .75rem center;
}
.tb-field select:focus,
.tb-field .tb-select:focus {
    outline: none;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(13,110,253,.1);
    background-color: #fff;
}

/* total row */
.tb-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 0;
    border-top: 1px solid #f1f5f9;
    margin-top: .5rem;
    margin-bottom: .85rem;
}
.tb-total__label { font-size: .82rem; color: #64748b; }
.tb-total__price {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e293b;
    direction: ltr;
}
.tb-total__price small { font-size: .78rem; color: #64748b; font-weight: 600; }
.tb-total__na { font-size: .82rem; color: #94a3b8; }

/* CTA button */
.tb-cta {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--bs-primary);
    color: #fff;
    border: none;
    border-radius: .8rem;
    padding: .9rem;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: background .15s, box-shadow .15s, transform .1s;
}
.tb-cta:hover {
    background: #0b5ed7;
    box-shadow: 0 8px 22px rgba(13,110,253,.35);
    transform: translateY(-1px);
}
.tb-payment-note {
    font-size: .73rem;
    color: #94a3b8;
    text-align: center;
    margin-top: .65rem;
}

/* company block */
.tp-company {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.tp-company__logo {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: .7rem;
    object-fit: cover;
    flex-shrink: 0;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.tp-company__name { font-size: 1.05rem; font-weight: 800; color: #1e293b; }
.tp-company__verified {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .72rem;
    font-weight: 700;
    color: #16a34a;
    margin-top: .15rem;
}

@keyframes tb-shake {
    0%,100% { transform: translateX(0); }
    25%      { transform: translateX(-4px); }
    75%      { transform: translateX(4px); }
}

/* ─── Mobile sticky bar ──────────────────────────────────────────── */
.tp-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 1040;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: .75rem 1.25rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,.1);
    align-items: center;
    gap: .75rem;
}
.tp-mobile-bar__price { flex: 1 1 auto; }
.tp-mobile-bar__from { font-size: .68rem; color: #94a3b8; }
.tp-mobile-bar__amount {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    direction: ltr;
}
.tp-mobile-bar__amount small { font-size: .75rem; font-weight: 600; color: #64748b; }
.tp-mobile-bar__btn {
    padding: .65rem 1.4rem;
    background: var(--bs-primary);
    color: #fff;
    border: none;
    border-radius: .7rem;
    font-weight: 800;
    font-size: .9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}
.tp-mobile-bar__btn:hover { background: #0b5ed7; }

/* ─── Auth modal ─────────────────────────────────────────────────── */
#bookAuthModal .modal-content {
    border-radius: 1.1rem;
    border: none;
    box-shadow: 0 24px 60px rgba(0,0,0,.18);
}
#bookAuthModal .modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem .5rem;
}
#bookAuthModal .modal-body { padding: .75rem 1.5rem 1.5rem; }
#bookAuthModal .auth-icon {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto .9rem;
}

@media (max-width: 991.98px) {
    .tp-hero { height: 320px; }
    .tp-sidebar { position: static; }
    .tp-mobile-bar { display: flex; }
    .tp-layout { padding-bottom: 6rem; }
}
@media (max-width: 767.98px) {
    .tp-hero { height: 260px; }
    .tp-hero__title { font-size: 1.4rem; }
    .tp-booking-card__amount { font-size: 1.6rem; }
}
.tp-gallery-strip {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}
.tp-gallery-thumb {
    width: 210px;
    height: 156px;
    border-radius: .6rem;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: border-color .15s;
}
.tp-gallery-thumb:hover { border-color: var(--bs-primary); }
.tp-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tp-gallery-more {
    width: 210px;
    height: 156px;
    border-radius: .6rem;
    background: #1e293b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
}
.tp-gallery-more:hover { background: var(--bs-primary); color: #fff; }

/* ─── Similar trips ──────────────────────────────────────────────── */
.tp-similar-section { padding: 3rem 0; background: #fff; border-top: 1px solid #f1f5f9; }
.tp-similar-section .section-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bs-primary);
    margin-bottom: .35rem;
}
.tp-similar-section .section-title { font-size: 1.5rem; font-weight: 800; color: #1e293b; margin-bottom: 0; }
