/* ═══ WRAPPER & LAYOUT ═══ */

html.stp-modal-open,
body.stp-modal-open {
    overflow: hidden;
}

#stp-wrapper {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #e5f3fb;
    line-height: 1.6;
    background: #020617;
}

.stp-header-section {
    position: static !important;
    overflow: visible !important;
}

.stp-header-section,
.stp-header-section > .elementor-container,
.stp-header-section .elementor-widget-wrap,
.stp-header-section .elementor-widget-html,
.stp-header-section .elementor-widget-container,
.stp-header-section .elementor-column,
.stp-header-section .e-con,
.stp-header-section .e-con-inner {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.elementor-widget-html {
    background: transparent !important;
}

/* ═══ PHASE 1 HERO ═══ */
.stp-phase1-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 20px;
}
.stp-hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
}
.stp-hero-sub {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 36px;
}

.stp-config-card {
    background: #0d1526;
    border: 1px solid #1e2d45;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

/* ═══ LABELS ═══ */
.stp-field-group { margin-bottom: 20px; }
.stp-field-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.82rem;
    color: #7dd3fc;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ═══ INPUTS & SELECTS ═══ */
.stp-field-group select,
.stp-field-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #1e2d45;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #111d30;
    color: #e5f3fb;
    transition: border-color .2s, background .2s;
    font-family: inherit;
}
.stp-field-group select option { background: #0d1526; color: #e5f3fb; }
.stp-field-group select:focus,
.stp-field-group input:focus {
    outline: none;
    border-color: rgba(25,169,221,0.7);
    background: #0d1a2e;
    box-shadow: 0 0 0 1px rgba(25,169,221,0.2);
}
.stp-field-group input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.6); }

.stp-field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
    gap: 16px;
}

/* ═══ PAYMENT INLINE ═══ */
.stp-payment-inline {
    padding: 10px 12px;
    border-radius: 10px;
    background: #111d30;
    border: 1px solid #1e2d45;
    margin-top: 12px;
}
.stp-payment-inline-label { font-size: 0.85rem; font-weight: 600; color: #7dd3fc; margin-bottom: 6px; }

/* ═══ SERVICE TYPE CARDS ═══ */
.stp-service-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
    gap: 12px;
    margin-bottom: 8px;
}
.stp-service-card {
    border: 1px solid #1e2d45;
    border-radius: 12px;
    padding: 10px 12px;
    background: #111d30;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.85rem;
}
.stp-service-card strong { display: block; font-size: 0.9rem; margin-bottom: 3px; color: #f1f5f9; }
.stp-service-card span { color: #64748b; font-size: 0.8rem; }
.stp-service-card:hover { border-color: rgba(25,169,221,0.5); background: #0f1e33; }
.stp-service-card.selected { border-color: #19a9dd; background: rgba(25,169,221,0.12); box-shadow: 0 3px 12px rgba(25,169,221,0.2); }
.stp-service-card.selected strong { color: #7dd3fc; }

/* ═══ VEHICLE CARDS ═══ */
.stp-vehicle-cards { display: flex; gap: 14px; flex-wrap: wrap; }
.stp-vcard {
    flex: 1;
    min-width: 100px;
    border: 1px solid #1e2d45;
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: #111d30;
}
.stp-vcard:hover { border-color: rgba(25,169,221,0.5); background: #0f1e33; transform: translateY(-2px); }
.stp-vcard.selected { border-color: #19a9dd; background: rgba(25,169,221,0.12); box-shadow: 0 4px 16px rgba(25,169,221,0.2); }
.stp-vcard-icon { font-size: 2rem; display: block; }
.stp-vcard-label { font-weight: 700; font-size: 0.95rem; display: block; margin-top: 4px; color: #f1f5f9; }
.stp-vcard-sub { font-size: 0.8rem; color: #19a9dd; font-weight: 600; }

/* ═══ PASSENGER DROPDOWN ═══ */
.stp-pax-wrapper { position: relative; }
.stp-pax-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #1e2d45;
    border-radius: 8px;
    background: #111d30;
    font-size: 0.95rem;
    color: #e5f3fb;
    cursor: pointer;
    text-align: left;
    transition: border-color .2s, background .2s;
    font-family: inherit;
}
.stp-pax-trigger:hover,
.stp-pax-trigger.open { border-color: rgba(25,169,221,0.6); background: #0d1a2e; }
.stp-pax-icon { font-size: 1rem; flex-shrink: 0; }
#stp-pax-summary { flex: 1; font-weight: 500; color: #e5f3fb; }
.stp-pax-chevron { font-size: 0.85rem; color: #64748b; transition: transform .2s; }
.stp-pax-trigger.open .stp-pax-chevron { transform: rotate(180deg); }

.stp-pax-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: #0d1526;
    border: 1px solid #1e2d45;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.7);
    padding: 8px 0 4px;
    z-index: 9999;
    min-width: 280px;
}
.stp-pax-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #1a2840;
}
.stp-pax-row:last-of-type { border-bottom: none; }
.stp-pax-label { display: flex; flex-direction: column; }
.stp-pax-row-title { font-weight: 600; font-size: 0.95rem; color: #f1f5f9; }
.stp-pax-row-sub { font-size: 0.78rem; color: #64748b; margin-top: 2px; }
.stp-pax-counter { display: flex; align-items: center; gap: 10px; }
.stp-pax-counter input[type="number"] {
    width: 36px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    padding: 0;
    pointer-events: none;
    -moz-appearance: textfield;
}
.stp-pax-counter input[type="number"]::-webkit-inner-spin-button,
.stp-pax-counter input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }
.stp-pax-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid #1e2d45;
    background: #111d30;
    color: #19a9dd;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
    flex-shrink: 0;
}
.stp-pax-btn:hover:not(:disabled) { border-color: #19a9dd; background: rgba(25,169,221,0.12); }
.stp-pax-btn:disabled { color: #2d3f57; border-color: #1a2840; cursor: default; }
.stp-pax-done-wrap { padding: 10px 20px 12px; text-align: right; }
.stp-pax-done {
    background: #19a9dd;
    color: #020617;
    border: none;
    padding: 8px 22px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}
.stp-pax-done:hover { background: #7dd3fc; }

/* ═══ NIGHTS DISPLAY ═══ */
.stp-nights-display {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(25,169,221,0.1);
    border: 1px solid rgba(25,169,221,0.3);
    border-radius: 8px;
    color: #7dd3fc;
    font-size: 0.95rem;
}

/* ═══ BUTTONS (GLOBAL BASE) ═══ */
.stp-btn-primary {
    background: linear-gradient(135deg, #19a9dd, #1f2a44);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: transform .15s, box-shadow .15s;
    font-family: inherit;
}
.stp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(25,169,221,0.4); }
.stp-btn-ghost {
    background: transparent;
    border: 1px solid #1e2d45;
    color: #64748b;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all .2s;
}
.stp-btn-ghost:hover { border-color: rgba(25,169,221,0.5); color: #19a9dd; }
.stp-btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s;
    font-family: inherit;
}
.stp-btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.35); }

/* ═══ PHASE 2 MAP LAYOUT ═══ */
.stp-map-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    height: calc(100vh - 60px);
    min-height: 600px;
    max-height: calc(100vh - 60px);
    overflow: hidden;
}

.stp-sidebar {
    background: #0d1526;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid #1e2d45;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
}

.stp-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 12px;
    border-bottom: 1px solid #1e2d45;
    position: sticky;
    top: 0;
    background: #0d1526;
    z-index: 5;
    flex-shrink: 0;
}
.stp-sidebar-header h3 { margin: 0; font-size: 1.1rem; color: #f1f5f9; }

.stp-section {
    padding: 16px 20px;
    border-bottom: 1px solid #1a2840;
    flex-shrink: 0;
}
.stp-section label {
    font-weight: 700;
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .5px;
    display: block;
    margin-bottom: 10px;
}
.stp-section select,
.stp-section input[type="text"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #1e2d45;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #111d30;
    color: #e5f3fb;
    font-family: inherit;
}
.stp-section select option { background: #0d1526; color: #e5f3fb; }
.stp-link { color: #7dd3fc; font-size: 0.85rem; cursor: pointer; margin-top: 6px; display: inline-block; }

/* Add-ons */
.stp-addon-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 0.9rem; color: #cbd5e1; }
.stp-addon-row input { width: 18px; height: 18px; accent-color: #19a9dd; flex-shrink: 0; }
.stp-price-badge { background: rgba(25,169,221,0.12); color: #7dd3fc; padding: 2px 8px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; margin-left: 4px; }

/* Stops */
.stp-stop-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #1a2840; font-size: 0.9rem; }
.stp-stop-num { background: #19a9dd; color: #020617; border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }
.stp-stop-name { flex: 1; font-weight: 600; color: #f1f5f9; }
.stp-stop-nights { color: #64748b; font-size: 0.8rem; }
.stp-stop-edit, .stp-stop-remove { background: none; border: none; color: #475569; cursor: pointer; font-size: 0.9rem; padding: 0; line-height: 1; }
.stp-stop-edit:hover { color: #19a9dd; }
.stp-stop-remove:hover { color: #f87171; }

/* Map */
#stp-map-container {
    position: relative;
    overflow: hidden;
}
#stp-map {
    width: 100%;
    height: 100%;
    min-height: 600px;
    touch-action: none; /* prevents page scroll while panning map */
}
#stp-map-hint {
    position: absolute; bottom: 24px; left: 50%;
    transform: translateX(-50%);
    background: rgba(13,21,38,0.9);
    color: #cbd5e1;
    padding: 10px 20px; border-radius: 30px;
    font-size: 0.9rem; pointer-events: none;
    white-space: nowrap;
    border: 1px solid #1e2d45;
    z-index: 10;
}

/* ═══ LEAFLET TOUCH ENHANCEMENTS — bigger tap targets ═══ */
.leaflet-marker-icon,
.leaflet-marker-shadow {
    cursor: pointer;
}
.leaflet-interactive {
    cursor: pointer;
    stroke-width: 8; /* wider invisible hit area on SVG markers */
}

/* ═══ PHASE 2 SIDEBAR BUTTONS ═══ */
#stp-next-phase3 {
    display: block !important;
    flex-shrink: 0 !important;
    width: calc(100% - 40px) !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 18px !important;
    margin: 16px 20px 10px !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

#stp-back-phase1 {
    display: block !important;
    flex-shrink: 0 !important;
    width: calc(100% - 40px) !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 18px !important;
    margin: 0 20px 24px !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

/* ═══ LOCATION MODAL — desktop ═══ */
.stp-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.stp-modal-content {
    background: #0d1526;
    border: 1px solid #1e2d45;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    position: relative;
    box-shadow: 0 18px 40px rgba(0,0,0,0.8);
}

#stp-location-modal.stp-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    background: rgba(0,0,0,0.8);
}

#stp-location-modal .stp-modal-content { margin: 0 auto; }

.stp-modal-close {
    position: absolute; top: 14px; right: 18px;
    background: none; border: none;
    font-size: 1.4rem; cursor: pointer; color: #475569;
    transition: color .2s;
    /* bigger touch target */
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
}
.stp-modal-close:hover { color: #f1f5f9; }
#stp-modal-image-wrap { margin: -28px -28px 20px; }
#stp-modal-image { width: 100%; height: 200px; object-fit: cover; border-radius: 16px 16px 0 0; }
.stp-modal-content h2 { margin: 0 0 8px; font-size: 1.5rem; color: #f1f5f9; }
.stp-modal-content h4 { margin: 16px 0 10px; font-size: 0.82rem; color: #64748b; text-transform: uppercase; letter-spacing: .5px; }
.stp-modal-content p { color: #94a3b8; }

.stp-modal-content .stp-field-group select,
.stp-modal-content .stp-field-group input[type="date"] { background: #111d30; border: 1px solid #1e2d45; color: #e5f3fb; }
.stp-modal-content .stp-field-group select option { background: #0d1526; color: #e5f3fb; }

/* Activity tags */
.stp-activity-tag { display: inline-block; background: rgba(25,169,221,0.1); border: 1px solid rgba(25,169,221,0.3); color: #7dd3fc; padding: 4px 12px; border-radius: 20px; font-size: 0.82rem; margin: 3px 3px 3px 0; font-weight: 500; }
.stp-activity-hint { font-size: 0.8rem; color: #64748b; margin: -4px 0 8px; }
.stp-activity-selectable { cursor: pointer; transition: all 0.15s ease; user-select: none; min-height: 36px; display: inline-flex; align-items: center; }
.stp-activity-selectable:hover { background: rgba(25,169,221,0.18); border-color: rgba(25,169,221,0.6); }
.stp-activity-selected { background: #19a9dd !important; color: #020617 !important; border-color: #19a9dd !important; }

/* Radio */
.stp-payment-types { display: flex; gap: 16px; flex-wrap: wrap; }
.stp-radio { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; cursor: pointer; color: #cbd5e1; }
.stp-radio input[type="radio"] { width: 16px; height: 16px; accent-color: #19a9dd; }

/* ═══ PHASE 3 SUMMARY ═══ */
.stp-summary-wrapper { max-width: 800px; margin: 0 auto; padding: 48px 24px; }
.stp-summary-wrapper h2 { font-size: 2rem; font-weight: 800; margin-bottom: 28px; color: #f1f5f9; }

.stp-meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; margin-bottom: 32px; }
.stp-meta-grid > div { background: #0d1526; border: 1px solid #1e2d45; border-radius: 10px; padding: 14px; }
.stp-meta-grid strong { display: block; font-size: 0.8rem; color: #64748b; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; }
.stp-meta-grid span { color: #f1f5f9; font-weight: 600; }

.stp-route-cards { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 28px; }
.stp-route-card { display: flex; align-items: center; gap: 16px; background: #0d1526; border: 1px solid #1e2d45; border-radius: 10px; padding: 14px 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.stp-route-num { background: #19a9dd; color: #020617; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.stp-route-info strong { display: block; font-size: 1rem; color: #f1f5f9; }
.stp-route-info span { font-size: 0.85rem; color: #64748b; }

/* ═══ PHASE 3 SUBMIT FORM ═══ */
#stp-phase3 .stp-submit-form { margin-top: 24px; padding: 24px 24px 28px; background: #0d1526; border: 1px solid #1e2d45; border-radius: 18px; box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
#stp-phase3 .stp-submit-form h3 { margin: 0 0 20px; font-size: 1.2rem; color: #f1f5f9; }
#stp-phase3 .stp-submit-form .stp-field-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 28px; margin-bottom: 16px; }
#stp-phase3 .stp-submit-form label { display: block; font-size: 12px; font-weight: 600; color: #64748b; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.08em; }
#stp-phase3 .stp-submit-form input[type="text"],
#stp-phase3 .stp-submit-form input[type="email"],
#stp-phase3 .stp-submit-form input[type="tel"],
#stp-phase3 .stp-submit-form input[type="number"],
#stp-phase3 .stp-submit-form select,
#stp-phase3 .stp-submit-form textarea {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #1e2d45;
    background: #111d30;
    padding: 10px 16px;
    font-size: 14px;
    color: #e5f3fb;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    font-family: inherit;
}
#stp-phase3 .stp-submit-form textarea { border-radius: 18px; min-height: 110px; resize: vertical; }
#stp-phase3 .stp-submit-form input:focus,
#stp-phase3 .stp-submit-form select:focus,
#stp-phase3 .stp-submit-form textarea:focus { border-color: rgba(25,169,221,0.6); box-shadow: 0 0 0 1px rgba(25,169,221,0.25); background: #0d1a2e; }
#stp-phase3 .stp-submit-form input::placeholder,
#stp-phase3 .stp-submit-form textarea::placeholder { color: #2d3f57; }
#stp-phase3 .stp-submit-form select {
    appearance: none; -webkit-appearance: none;
    padding-right: 36px;
    background-image: linear-gradient(45deg, transparent 50%, #475569 50%), linear-gradient(135deg, #475569 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    background-color: #111d30;
}
#stp-phase3 .stp-submit-form select option { background: #0d1526; color: #e5f3fb; }
#stp-sub-title, #stp-sub-gender { background-color: #1a2840 !important; }
#stp-phase3 .stp-dob-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
#stp-phase3 .stp-phone-row { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 8px; }

/* ═══ PHASE 3 SUBMIT BUTTONS ═══ */
#stp-phase3 .stp-submit-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; align-items: stretch; }
#stp-phase3 .stp-btn-primary,
#stp-phase3 .stp-btn-whatsapp {
    flex: 1 1 0;
    min-width: 220px;
    height: 48px;
    min-height: 48px;
    border-radius: 999px;
    padding: 0 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
    line-height: 1;
    width: auto;
}

/* ═══ MESSAGES ═══ */
.stp-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.4); color: #4ade80; padding: 14px 18px; border-radius: 8px; margin-top: 16px; font-weight: 600; }
.stp-error { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.4); color: #f87171; padding: 14px 18px; border-radius: 8px; margin-top: 16px; font-weight: 600; }

/* ═══ HIDDEN ═══ */
#stp-start-custom-toggle,
#stp-start-custom { display: none !important; }

/* ═══ RESPONSIVE (MOBILE) – FINAL SAFE VERSION ═══ */
@media (max-width: 768px) {

    /* Layout: stack map then mobile panel, hide desktop sidebar */
    .stp-map-layout {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #stp-map-container {
        order: 1;
        width: 100%;
        height: 45vh;
        min-height: 260px;
        position: relative;
        z-index: 1;
        overflow: hidden;
        pointer-events: auto;
    }

    #stp-map {
        width: 100%;
        height: 45vh !important;
        min-height: 260px;
        touch-action: pan-x pan-y !important;
    }

    .stp-sidebar {
        order: 2;
        display: none !important; /* we use mobile panel instead */
    }

    /* Mobile panel wrapper */
    #stp-mobile-panel {
        order: 3;
        display: flex;
        flex-direction: column;
        width: 100%;
        max-height: 55vh;
        overflow: hidden;
        background: #005687;               /* blue background */
        border-radius: 16px;
        margin-top: 16px;
        padding: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.18);
        box-sizing: border-box;
        color: #ffffff;
    }

    /* Panel header */
    #stp-mobile-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px 10px;
        background: transparent;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        flex-shrink: 0;
    }

    #stp-mobile-panel-header h3 {
        margin: 0;
        font-size: 0.95rem;
        font-weight: 700;
        color: #ffffff;
    }

    /* Starting point select */
    #stp-mobile-start-wrap {
        padding: 10px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        flex-shrink: 0;
    }

    #stp-mobile-start-wrap label {
        display: block;
        font-size: 0.75rem;
        font-weight: 700;
        color: #ffffff;
        text-transform: uppercase;
        letter-spacing: .5px;
        margin-bottom: 6px;
    }

    #stp-mobile-start-point {
        width: 100%;
        height: 44px;
        border-radius: 10px;
        border: 1px solid rgba(255,255,255,0.35);
        padding: 0 12px;
        font-size: 14px;
        background: #ffffff;
        color: #0f172a;
        box-sizing: border-box;
    }

    /* Scrollable city list */
    #stp-mobile-location-list {
        flex: 1;
        padding: 10px 12px 10px 16px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        align-content: start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #stp-mobile-location-list::-webkit-scrollbar {
        width: 6px;
    }

    #stp-mobile-location-list::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.45);
        border-radius: 10px;
    }

    .stp-mob-loc-card {
        background: #19A9DD;
        border: 1px solid rgba(255,255,255,0.4);
        border-radius: 12px;
        padding: 12px 14px;
        cursor: pointer;
        text-align: left;
        transition: background 0.15s, border-color 0.15s, transform 0.1s;
        -webkit-tap-highlight-color: transparent;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .stp-mob-loc-card:active {
        background: #0f96c8;
        border-color: #ffffff;
        transform: scale(0.98);
    }

    .stp-mob-loc-card span {
        font-size: 0.9rem;
        font-weight: 600;
        color: #ffffff;
    }

    .stp-mob-loc-card small {
        font-size: 0.75rem;
        color: #e0f2fe;
    }

    /* Mobile actions */
    #stp-mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 10px 16px 14px;
        flex-shrink: 0;
        border-top: 1px solid rgba(255,255,255,0.25);
        background: rgba(0,0,0,0.08);
    }

    #stp-mobile-next-phase3,
    #stp-mobile-back-phase1 {
        width: 100%;
        min-height: 46px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        border: none;
    }

    #stp-mobile-next-phase3 {
        background: #ffffff;
        color: #005687;
    }

    #stp-mobile-back-phase1 {
        background: transparent;
        border: 1px solid rgba(255,255,255,0.5);
        color: #ffffff;
    }

    /* Hide map hint on mobile */
    #stp-map-hint {
        display: none !important;
    }

    /* Phase 3 mobile layout (keep your existing good behaviour) */
    #stp-phase3 .stp-submit-form .stp-field-row {
        grid-template-columns: 1fr;
    }
    #stp-phase3 .stp-submit-btns {
        flex-direction: column;
    }
    #stp-phase3 .stp-btn-primary,
    #stp-phase3 .stp-btn-whatsapp {
        width: 100%;
        min-width: 100%;
    }

    /* Modal as bottom sheet */
    #stp-location-modal.stp-modal {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    #stp-location-modal .stp-modal-content {
        border-radius: 20px 20px 0 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        max-height: 88vh !important;
        margin: 0 !important;
        padding: 20px 20px 32px !important;
    }

    #stp-location-modal .stp-modal-content::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: rgba(255,255,255,0.2);
        border-radius: 2px;
        margin: 0 auto 16px;
    }

    /* Make all phase-2 titles/labels visible on blue */
    #stp-phase2 h2,
    #stp-phase2 h3,
    #stp-phase2 h4,
    #stp-phase2 .stp-section label,
    #stp-phase2 .stp-addon-row,
    #stp-phase2 .stp-addons-title,
    #stp-phase2 .stp-summary-title,
    #stp-phase2 .stp-box-title {
        color: #ffffff !important;
    }

    #stp-phase2 .stp-addon-row input {
        accent-color: #ffffff;
    }
}

/* ═══ RESPONSIVE (MOBILE) – CLEAN VERSION ═══ */
@media (max-width: 768px) {

    .stp-map-layout {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .stp-sidebar {
        display: none !important;
    }

    #stp-map-container {
        order: 1;
        width: 100%;
        height: 42vh;
        min-height: 240px;
        position: relative;
        z-index: 1;
        overflow: hidden;
        pointer-events: auto;
    }

    #stp-map {
        width: 100%;
        height: 42vh !important;
        min-height: 240px !important;
        touch-action: pan-x pan-y !important;
    }

    #stp-map-hint {
        display: none !important;
    }

    #stp-mobile-panel {
        order: 2;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        background: #005687;
        border-radius: 16px;
        margin-top: 16px;
        padding: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.18);
        box-sizing: border-box;
        color: #ffffff;
    }

    #stp-mobile-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px 10px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        flex-shrink: 0;
    }

    #stp-mobile-panel-header h3 {
        margin: 0;
        font-size: 0.95rem;
        font-weight: 700;
        color: #ffffff;
    }

    #stp-mobile-start-wrap {
        padding: 10px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        flex-shrink: 0;
    }

    #stp-mobile-start-wrap label {
        display: block;
        font-size: 0.75rem;
        font-weight: 700;
        color: #ffffff;
        text-transform: uppercase;
        letter-spacing: .5px;
        margin-bottom: 6px;
    }

    #stp-mobile-start-point {
        width: 100%;
        height: 44px;
        border-radius: 10px;
        border: 1px solid rgba(255,255,255,0.35);
        padding: 0 12px;
        font-size: 14px;
        background: #ffffff;
        color: #0f172a;
        box-sizing: border-box;
    }

    #stp-mobile-location-list,
    #stp-mobile-summary,
    #stp-mobile-addons,
    #stp-mobile-actions {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        margin: 0 !important;
        clear: both !important;
        width: 100%;
        box-sizing: border-box;
    }

    #stp-mobile-location-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px;
        padding: 12px 16px;
        max-height: 180px;
        min-height: 120px;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    #stp-mobile-location-list::-webkit-scrollbar {
        width: 6px;
    }

    #stp-mobile-location-list::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.45);
        border-radius: 10px;
    }

    .stp-mob-loc-card {
        background: #19A9DD;
        border: 1px solid rgba(255,255,255,0.35);
        border-radius: 12px;
        padding: 12px 14px;
        cursor: pointer;
        text-align: left;
        transition: background 0.15s, border-color 0.15s, transform 0.1s;
        -webkit-tap-highlight-color: transparent;
        display: block !important;
        width: 100%;
        min-height: 44px;
        flex: 0 0 auto;
    }

    .stp-mob-loc-card:active {
        background: #0f96c8;
        border-color: #ffffff;
        transform: scale(0.98);
    }

    .stp-mob-loc-card span {
        display: block;
        font-size: 0.9rem;
        font-weight: 600;
        color: #ffffff;
    }

    .stp-mob-loc-card small {
        display: block;
        margin-top: 3px;
        font-size: 0.75rem;
        color: #e0f2fe;
    }

    #stp-mobile-summary,
    #stp-mobile-addons {
        padding: 14px 16px;
        border-top: 1px solid rgba(255,255,255,0.15);
    }

    #stp-mobile-summary h4,
    #stp-mobile-addons h4 {
        margin: 0 0 10px;
        font-size: 0.95rem;
        font-weight: 700;
        color: #ffffff;
    }

    #stp-mobile-stops-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .stp-mobile-stop-card {
        background: rgba(255,255,255,0.12);
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 12px;
        padding: 12px;
    }

    .stp-mobile-stop-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        margin-bottom: 6px;
    }

    .stp-mobile-stop-top strong {
        color: #ffffff;
        font-size: 0.9rem;
    }

    .stp-mobile-stop-meta {
        color: #dbeafe;
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .stp-mobile-stop-actions {
        display: flex;
        gap: 6px;
        flex-shrink: 0;
    }

    .stp-mobile-edit,
    .stp-mobile-remove {
        border: none;
        border-radius: 8px;
        padding: 6px 10px;
        font-size: 0.75rem;
        font-weight: 700;
        cursor: pointer;
    }

    .stp-mobile-edit {
        background: #ffffff;
        color: #005687;
    }

    .stp-mobile-remove {
        background: #ef4444;
        color: #ffffff;
    }

    .stp-mobile-empty {
        color: #dbeafe;
        font-size: 0.85rem;
        margin: 0;
    }

    .stp-mobile-addon-row {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.9rem;
        color: #ffffff;
        margin-bottom: 10px;
    }

    .stp-mobile-addon-row input {
        width: 18px;
        height: 18px;
        accent-color: #ffffff;
        flex-shrink: 0;
    }

    #stp-mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 12px 16px 16px;
        border-top: 1px solid rgba(255,255,255,0.2);
        background: rgba(0,0,0,0.08);
    }

    #stp-mobile-next-phase3,
    #stp-mobile-back-phase1 {
        width: 100%;
        min-height: 46px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        border: none;
    }

    #stp-mobile-next-phase3 {
        background: #ffffff;
        color: #005687;
    }

    #stp-mobile-back-phase1 {
        background: transparent;
        border: 1px solid rgba(255,255,255,0.5);
        color: #ffffff;
    }

    #stp-phase2 h2,
    #stp-phase2 h3,
    #stp-phase2 h4,
    #stp-phase2 .stp-section label,
    #stp-phase2 .stp-addon-row,
    #stp-phase2 .stp-addons-title,
    #stp-phase2 .stp-summary-title,
    #stp-phase2 .stp-box-title {
        color: #ffffff !important;
    }

    #stp-phase2 .stp-addon-row input {
        accent-color: #ffffff;
    }

    #stp-phase3 .stp-submit-form .stp-field-row {
        grid-template-columns: 1fr;
    }

    #stp-phase3 .stp-submit-btns {
        flex-direction: column;
    }

    #stp-phase3 .stp-btn-primary,
    #stp-phase3 .stp-btn-whatsapp {
        width: 100%;
        min-width: 100%;
    }

    #stp-location-modal.stp-modal {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    #stp-location-modal .stp-modal-content {
        border-radius: 20px 20px 0 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        max-height: 88vh !important;
        margin: 0 !important;
        padding: 20px 20px 32px !important;
    }

    #stp-location-modal .stp-modal-content::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: rgba(255,255,255,0.2);
        border-radius: 2px;
        margin: 0 auto 16px;
    }
}

@media (max-width: 390px) {
    #stp-map-container,
    #stp-map {
        height: 48vh !important;
        min-height: 260px !important;
    }

    #stp-mobile-location-list {
        max-height: 160px;
    }
}