/* ============================================================
   Trip Panel – Slide-out from Right (Half-screen with Cards)
   Ultra-smooth transitions, professional feel
   ============================================================ */

/* ---- Overlay ---- */
.trip-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 9998;
    pointer-events: none;
    transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}
.trip-panel-overlay.active {
    background: rgba(0, 0, 0, 0.45);
    pointer-events: auto;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ---- Panel Container (half screen) ---- */
.trip-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 55vw;
    max-width: 920px;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0);
    border-left: 3px solid #D4620F;
    border-radius: 18px 0 0 18px;
}
.trip-panel.open {
    transform: translateX(0);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.2);
}

/* ---- Floating Tab (child of panel) ---- */
.floating-trip-tab {
    position: absolute;
    left: 0;
    top: 40%;
    transform: translateX(-100%);
    z-index: 1;
    background: #D4620F;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 18px 13px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 8px 0 0 8px;
    box-shadow: -4px 0 14px rgba(0, 0, 0, 0.12);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: shake-tab 3s ease-in-out infinite;
}

@keyframes shake-tab {
    0%, 80%, 100% { transform: translateX(-100%); }
    84% { transform: translateX(-100%) translateY(-6px); }
    88% { transform: translateX(-100%) translateY(4px); }
    92% { transform: translateX(-100%) translateY(-3px); }
    96% { transform: translateX(-100%) translateY(1px); }
}
.floating-trip-tab:hover {
    background: #b8520d;
    color: #fff;
    box-shadow: -6px 0 22px rgba(0, 0, 0, 0.22);
}
.floating-trip-tab-text {
    display: inline;
}
/* When open: seamless with panel box */
.trip-panel.open .floating-trip-tab {
    background: #fff;
    color: #D4620F;
    border: 3px solid #D4620F;
    border-right: none;
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 0 14px rgba(0, 0, 0, 0.08);
}
.trip-panel.open .floating-trip-tab:hover {
    background: #D4620F;
    color: #fff;
}

/* ---- Header ---- */
.trip-panel-header {
    display: flex;
    align-items: center;
    padding: 14px 28px 14px 34px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    flex-shrink: 0;
    border-radius: 15px 0 0 0;
}
.trip-panel-subtitle {
    font-family: "Caveat", cursive;
    font-size: 18px;
    color: #777;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}
/* Close button — hidden on desktop, visible on mobile */
.tp-close-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #e5e5e5;
    background: #fff;
    color: #555;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 12px;
    transition: all 0.25s ease;
}
.tp-close-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #191D26;
}
.tp-close-btn:active {
    transform: scale(0.92);
}

/* ---- Body (scrollable) ---- */
.trip-panel-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px 28px 34px 34px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
/* ---- Loading Spinner ---- */
.trip-panel-loading {
    text-align: center;
    padding: 80px 0;
    animation: tpFadeIn 0.5s ease;
}
.tp-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid #f0f0f0;
    border-top-color: #D4620F;
    border-radius: 50%;
    animation: tpSpin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    margin: 0 auto 14px;
}
.tp-spinner-sm {
    width: 16px;
    height: 16px;
    border: 2px solid #eee;
    border-top-color: #D4620F;
    border-radius: 50%;
    animation: tpSpin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes tpSpin {
    to { transform: rotate(360deg); }
}
.trip-panel-loading p {
    color: #999;
    font-size: 14px;
    margin: 0;
}

/* ---- Inline AJAX Loading ---- */
.tp-select-loading {
    font-size: 13px;
    color: #999;
    padding: 10px 0;
    display: flex;
    align-items: center;
    animation: tpFadeIn 0.3s ease;
}

/* ---- Global Error Alert ---- */
.tp-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: tpSlideDown 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.tp-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.tp-alert-text {
    flex: 1;
}
.tp-alert-dismiss {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.6;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}
.tp-alert-dismiss:hover {
    opacity: 1;
}

/* ---- Section & Step Badges ---- */
.tp-section {
    margin-bottom: 20px;
}
.tp-step-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #D4620F;
    background: rgba(212, 98, 15, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.tp-step-final {
    background: rgba(25, 29, 38, 0.06);
    color: #191D26;
}
.tp-label {
    font-family: "Caveat", cursive;
    font-size: 22px;
    font-weight: 700;
    color: #191D26;
    margin-bottom: 10px;
    display: block;
    line-height: 1.2;
}
.tp-field-label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.tp-hint-block {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}
.tp-hint-block svg {
    flex-shrink: 0;
    color: #D4620F;
}
.tp-field-hint {
    font-size: 12px;
    color: #aaa;
    margin-top: 4px;
    display: block;
}

/* ---- Dynamic Sections (hidden by default, animated in) ---- */
.tp-dynamic-section {
    display: none;
    overflow: hidden;
}
.tp-dynamic-section.visible {
    display: block;
    animation: tpSlideDown 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Separator ---- */
.tp-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e5e5, transparent);
    margin: 24px 0;
}

/* ============================================================
   Card Grids — Base
   ============================================================ */
.tp-card-grid {
    display: grid;
    gap: 10px;
}

/* ============================================================
   STYLE A — Destination Cards (compact portrait image cards)
   3 columns, small with bottom gradient overlay
   ============================================================ */
#tpDestGrid {
    grid-template-columns: repeat(3, 1fr);
}
.tp-dest-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.tp-dest-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
.tp-dest-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 10px;
    border: 2.5px solid transparent;
    transition: border-color 0.25s ease;
    z-index: 3;
    pointer-events: none;
}
.tp-dest-card.selected::after {
    border-color: #D4620F;
}
.tp-dest-card .tp-card-img {
    position: relative;
    padding-bottom: 90%;
    overflow: hidden;
}
.tp-dest-card .tp-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.tp-dest-card:hover .tp-card-img img {
    transform: scale(1.05);
}
.tp-dest-card .tp-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px 10px 8px;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
    z-index: 1;
}
.tp-dest-card .tp-card-overlay h4 {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}
.tp-dest-card .tp-card-overlay p {
    font-size: 10px;
    color: rgba(255,255,255,0.7);
    margin: 2px 0 0;
    line-height: 1.3;
}
/* Destination checkmark */
.tp-dest-card .tp-card-check {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 4;
    background: #D4620F;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.tp-dest-card .tp-card-check svg { color: #fff; }
.tp-dest-card.selected .tp-card-check {
    opacity: 1;
    transform: scale(1);
}

/* ============================================================
   STYLE B — Region Cards (horizontal pill with thumbnail)
   Responsive: 2 cols desktop, 2 cols tablet, 1 col mobile
   ============================================================ */
#tpRegionGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.tp-region-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 10px;
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    min-height: 60px;
}
.tp-region-card:hover {
    border-color: #D4620F;
    background: #fff;
    box-shadow: 0 2px 10px rgba(212,98,15,0.1);
}
.tp-region-card.selected {
    border-color: #D4620F;
    background: rgba(212,98,15,0.04);
    box-shadow: 0 0 0 3px rgba(212,98,15,0.1);
}
.tp-region-card .tp-card-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.tp-region-card .tp-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tp-region-card .tp-card-text {
    flex: 1;
    min-width: 0;
}
.tp-region-card .tp-card-text h4 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}
.tp-region-card .tp-card-text p {
    font-size: 11px;
    color: #999;
    margin: 2px 0 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Region checkmark — small inline */
.tp-region-card .tp-card-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #D4620F;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.tp-region-card .tp-card-check svg { color: #fff; }
.tp-region-card.selected .tp-card-check {
    opacity: 1;
    transform: scale(1);
}

/* ============================================================
   STYLE C — Journey Type Cards (compact chip with round thumbnail)
   3 columns, small rounded image + bold label
   ============================================================ */
#tpJourneyGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.tp-journey-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px 7px 7px;
    border: 1.5px solid #e8e8e8;
    border-radius: 50px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.tp-journey-card:hover {
    border-color: #191D26;
    background: #fafafa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.tp-journey-card.selected {
    border-color: #D4620F;
    background: rgba(212,98,15,0.05);
    box-shadow: 0 0 0 3px rgba(212,98,15,0.1);
}
.tp-journey-card .tp-card-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.tp-journey-card .tp-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tp-journey-card .tp-card-text {
    flex: 1;
    min-width: 0;
}
.tp-journey-card .tp-card-text h4 {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Journey checkmark — inline pill */
.tp-journey-card .tp-card-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #D4620F;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.tp-journey-card .tp-card-check svg { color: #fff; }
.tp-journey-card.selected .tp-card-check {
    opacity: 1;
    transform: scale(1);
}

/* ---- Form Controls ---- */
.tp-select,
.trip-panel .form-control {
    border: 1.5px solid #e5e5e5;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px;
    background: #fafafa;
    width: 100%;
    transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: auto;
    appearance: auto;
}
.tp-select:focus,
.trip-panel .form-control:focus {
    border-color: #D4620F;
    box-shadow: 0 0 0 4px rgba(212, 98, 15, 0.08);
    background: #fff;
    outline: none;
}

/* ---- Field Spacing ---- */
.tp-field {
    margin-bottom: 14px;
}
.tp-field:last-child {
    margin-bottom: 0;
}

/* ---- intl-tel-input fix for panel ---- */
.tp-phone-field .iti {
    width: 100%;
}

/* ---- Duration Chips ---- */
.tp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tp-chip {
    padding: 9px 18px;
    border-radius: 50px;
    border: 2px solid #e5e5e5;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.tp-chip:hover {
    border-color: #D4620F;
    color: #D4620F;
    background: rgba(212, 98, 15, 0.03);
    transform: translateY(-1px);
}
.tp-chip.active {
    background: #D4620F;
    border-color: #D4620F;
    color: #fff;
    transform: scale(1.03);
}

/* ---- Guests ---- */
.tp-guests {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tp-guest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
    border: 1.5px solid #e5e5e5;
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.tp-guest-row:hover {
    border-color: #D4620F;
    box-shadow: 0 0 0 3px rgba(212, 98, 15, 0.06);
}
.tp-guest-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.tp-guest-type {
    font-size: 14px;
    font-weight: 600;
    color: #191D26;
}
.tp-guest-age {
    font-size: 11px;
    color: #999;
    font-weight: 500;
}
.tp-counter {
    display: flex;
    align-items: center;
    gap: 4px;
}
.tp-counter-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #ddd;
    font-size: 17px;
    font-weight: 700;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
}
.tp-counter-btn:hover {
    background: #D4620F;
    border-color: #D4620F;
    color: #fff;
    transform: scale(1.1);
}
.tp-counter-btn:active {
    transform: scale(0.95);
}
.tp-counter-input {
    width: 38px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    border: none;
    background: transparent;
    padding: 0;
    color: #191D26;
    transition: color 0.2s ease;
}
.tp-counter-input:focus {
    outline: none;
}

/* ---- Budget Row ---- */
.tp-budget-row {
    display: flex;
    gap: 8px;
}
.tp-currency-sel {
    max-width: 115px;
    flex-shrink: 0;
}

/* ---- Field Errors ---- */
.tp-field-error {
    color: #e03131;
    font-size: 12px;
    margin-top: 4px;
    display: block;
    animation: tpSlideDown 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Submit ---- */
.tp-submit-wrap {
    padding-top: 6px;
}
.tp-btn-submit {
    width: 100%;
    border-radius: 50px;
    padding: 14px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid #D4620F;
    background: #D4620F;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}
.tp-btn-submit:hover {
    background: #191D26;
    border-color: #191D26;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(25, 29, 38, 0.25);
}
.tp-btn-submit:active {
    transform: translateY(0) scale(0.98);
    box-shadow: none;
}
.tp-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.tp-btn-submit:disabled:hover {
    background: #D4620F;
    border-color: #D4620F;
    transform: none;
    box-shadow: none;
}
.tp-btn-arrow {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.tp-btn-submit:hover .tp-btn-arrow {
    transform: translateX(5px);
}
.tp-btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tpSpin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    display: inline-block;
    vertical-align: middle;
}

/* ---- Success State ---- */
.tp-success {
    text-align: center;
    padding: 60px 10px 40px;
    animation: tpFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.tp-success-animation {
    margin-bottom: 28px;
}
.tp-checkmark {
    width: 80px;
    height: 80px;
    display: block;
    margin: 0 auto;
}
.tp-checkmark-circle {
    stroke: #D4620F;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: tpStroke 0.8s cubic-bezier(0.65, 0, 0.45, 1) 0.2s forwards;
}
.tp-checkmark-check {
    stroke: #D4620F;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: tpStroke 0.5s cubic-bezier(0.65, 0, 0.45, 1) 0.7s forwards;
}
@keyframes tpStroke {
    to { stroke-dashoffset: 0; }
}
.tp-success h4 {
    font-size: 22px;
    font-weight: 700;
    color: #191D26;
    margin-bottom: 12px;
    line-height: 1.3;
    animation: tpFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}
.tp-success p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 28px;
    animation: tpFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}
.tp-success-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    animation: tpFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
}
.tp-btn-explore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    background: #D4620F;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.tp-btn-explore:hover {
    background: #191D26;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(25, 29, 38, 0.2);
}
.tp-btn-close-panel {
    background: none;
    border: none;
    color: #999;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    transition: color 0.25s ease;
}
.tp-btn-close-panel:hover {
    color: #191D26;
}

/* ---- Body scroll lock ---- */
body.trip-panel-open {
    overflow: hidden;
}

/* ---- Keyframe Animations ---- */
@keyframes tpFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes tpSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes tpFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Form fade-in on load */
#tripPanelForm {
    animation: tpFormReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes tpFormReveal {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Staggered section animation */
.tp-anim-section {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.trip-panel.open .tp-anim-section {
    opacity: 1;
    transform: translateY(0);
}
.trip-panel.open .tp-anim-section:nth-child(1)  { transition-delay: 0.08s; }
.trip-panel.open .tp-anim-section:nth-child(3)  { transition-delay: 0.14s; }
.trip-panel.open .tp-anim-section:nth-child(5)  { transition-delay: 0.20s; }
.trip-panel.open .tp-anim-section:nth-child(7)  { transition-delay: 0.26s; }
.trip-panel.open .tp-anim-section:nth-child(9)  { transition-delay: 0.32s; }
.trip-panel.open .tp-anim-section:nth-child(11) { transition-delay: 0.38s; }

/* ============================================================
   Responsive
   ============================================================ */

/* Large Tablet / iPad Landscape (1024px and below) */
@media (max-width: 1024px) {
    .trip-panel {
        width: 65vw;
        max-width: none;
    }
}

/* Tablet / iPad Portrait (991px and below) */
@media (max-width: 991.98px) {
    .trip-panel {
        width: 80vw;
    }
    .trip-panel-body {
        padding: 22px 24px 30px;
    }
    .trip-panel-header {
        padding: 14px 24px;
    }
    #tpDestGrid {
        grid-template-columns: repeat(3, 1fr);
    }
    #tpRegionGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .tp-region-card {
        padding: 8px 12px 8px 8px;
        gap: 10px;
        min-height: 54px;
    }
    .tp-region-card .tp-card-thumb {
        width: 40px;
        height: 40px;
    }
    .tp-region-card .tp-card-text h4 {
        font-size: 12px;
    }
    .tp-region-card .tp-card-text p {
        -webkit-line-clamp: 1;
        font-size: 10px;
    }
    #tpJourneyGrid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tp-label {
        font-size: 20px;
    }
    .tp-counter-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    .tp-chip {
        padding: 10px 16px;
    }
}

/* Small Tablet / iPad Mini Portrait (768px and below) */
@media (max-width: 767.98px) {
    .trip-panel {
        width: 100vw;
        max-width: 100vw;
    }
    .trip-panel-body {
        padding: 18px 18px 34px;
    }
    .trip-panel-header {
        padding: 14px 18px;
    }
    .tp-close-btn {
        display: flex;
    }
    .floating-trip-tab {
        font-size: 12px;
        padding: 14px 10px;
        gap: 6px;
    }
    .floating-trip-tab-arrow {
        font-size: 13px;
    }
    #tpDestGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    #tpRegionGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .tp-region-card {
        padding: 10px 12px 10px 10px;
        gap: 10px;
        min-height: 52px;
    }
    .tp-region-card .tp-card-thumb {
        width: 42px;
        height: 42px;
        border-radius: 8px;
    }
    .tp-region-card .tp-card-text h4 {
        font-size: 13px;
    }
    .tp-region-card .tp-card-text p {
        -webkit-line-clamp: 1;
        font-size: 10px;
    }
    .tp-region-card .tp-card-check {
        width: 20px;
        height: 20px;
    }
    #tpJourneyGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .tp-label {
        font-size: 19px;
    }
    .trip-panel-subtitle {
        font-size: 16px;
    }
    .tp-section {
        margin-bottom: 16px;
    }
    .tp-separator {
        margin: 18px 0;
    }
    .tp-dest-card .tp-card-overlay h4 {
        font-size: 11px;
    }
    .tp-dest-card .tp-card-overlay p {
        display: none;
    }
    .tp-dest-card .tp-card-img {
        padding-bottom: 100%;
    }
    .tp-journey-card {
        padding: 8px 12px 8px 8px;
    }
    .tp-journey-card .tp-card-thumb {
        width: 30px;
        height: 30px;
    }
    .tp-chips {
        gap: 6px;
    }
    .tp-chip {
        padding: 9px 14px;
        font-size: 12px;
    }
    .tp-counter-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .tp-counter-input {
        width: 40px;
        font-size: 17px;
    }
    .tp-guest-row {
        padding: 14px;
    }
    .tp-guest-type {
        font-size: 14px;
    }
    .tp-budget-row {
        flex-direction: column;
        gap: 8px;
    }
    .tp-currency-sel {
        max-width: 100%;
    }
    .trip-panel .form-control,
    .tp-select {
        padding: 12px 14px;
        font-size: 16px; /* prevents iOS zoom */
    }
    .tp-btn-submit {
        padding: 15px 24px;
        font-size: 14px;
    }
    .tp-success {
        padding: 40px 10px 30px;
    }
    .tp-success h4 {
        font-size: 20px;
    }
    .tp-success p {
        font-size: 13px;
    }
    .tp-checkmark {
        width: 65px;
        height: 65px;
    }
    .tp-btn-explore {
        padding: 12px 24px;
        font-size: 13px;
    }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    .trip-panel-body {
        padding: 16px 14px 30px;
    }
    .trip-panel-header {
        padding: 12px 14px;
    }
    .trip-panel-subtitle {
        font-size: 15px;
    }
    .tp-label {
        font-size: 18px;
    }
    .tp-step-badge {
        font-size: 10px;
        padding: 3px 10px;
    }
    .tp-field-label {
        font-size: 11px;
    }
    #tpDestGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .tp-dest-card .tp-card-overlay {
        padding: 20px 8px 6px;
    }
    .tp-dest-card .tp-card-overlay h4 {
        font-size: 10px;
    }
    .tp-dest-card .tp-card-check {
        width: 18px;
        height: 18px;
        top: 4px;
        right: 4px;
    }
    #tpRegionGrid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .tp-region-card {
        padding: 10px 14px 10px 10px;
        gap: 12px;
        min-height: 56px;
    }
    .tp-region-card .tp-card-thumb {
        width: 46px;
        height: 46px;
        border-radius: 10px;
    }
    .tp-region-card .tp-card-text h4 {
        font-size: 14px;
    }
    .tp-region-card .tp-card-text p {
        -webkit-line-clamp: 2;
        font-size: 11px;
    }
    .tp-region-card .tp-card-check {
        width: 22px;
        height: 22px;
    }
    #tpJourneyGrid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .tp-journey-card .tp-card-text h4 {
        font-size: 10px;
    }
    .tp-chip {
        padding: 8px 12px;
        font-size: 11px;
        border-width: 1.5px;
    }
    .tp-guest-row {
        padding: 10px 12px;
    }
    .tp-guest-type {
        font-size: 13px;
    }
    .tp-guest-age {
        font-size: 10px;
    }
    .tp-counter-btn {
        width: 36px;
        height: 36px;
    }
    .tp-counter-input {
        width: 34px;
        font-size: 15px;
    }
    .tp-btn-submit {
        padding: 14px 20px;
        font-size: 13px;
    }
}

/* Very small mobile (360px and below) */
@media (max-width: 360px) {
    .trip-panel-body {
        padding: 14px 12px 28px;
    }
    #tpDestGrid {
        gap: 5px;
    }
    .tp-dest-card .tp-card-img {
        padding-bottom: 110%;
    }
    .tp-region-card {
        padding: 8px 10px 8px 8px;
        gap: 10px;
        min-height: 50px;
    }
    .tp-region-card .tp-card-thumb {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }
    .tp-region-card .tp-card-text h4 {
        font-size: 13px;
    }
    .tp-region-card .tp-card-text p {
        -webkit-line-clamp: 1;
        font-size: 10px;
    }
    .tp-region-card .tp-card-check {
        width: 20px;
        height: 20px;
    }
    .tp-journey-card .tp-card-thumb {
        width: 26px;
        height: 26px;
    }
    .tp-chip {
        padding: 7px 10px;
        font-size: 11px;
    }
    .floating-trip-tab {
        font-size: 11px;
        padding: 12px 8px;
    }
}
