/* OUTbound Mobile Interface */

/* ── Shell ──────────────────────────────────────────────────────────────────── */

#mobileApp {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    background: #f5f5f7;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */

.mob-header,
.mob-back-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(56px + env(safe-area-inset-top, 0px));
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.mob-logo {
    height: 26px;
    width: auto;
}

.mob-avatar-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary, #ff1491);
    color: #fff;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.mob-back-btn {
    display: flex;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    color: var(--primary, #ff1491);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 8px 0;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    min-width: 64px;
}

.mob-back-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
    font-size: 0.95rem;
    color: #111;
    white-space: nowrap;
    pointer-events: none;
}

.mob-back-action {
    background: none;
    border: none;
    color: var(--primary, #ff1491);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    padding: 8px 0;
    min-width: 64px;
    text-align: right;
    -webkit-tap-highlight-color: transparent;
}

/* ── Scrollable content area ─────────────────────────────────────────────────── */

#mobContent {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Section headers ─────────────────────────────────────────────────────────── */

.mob-section-header {
    padding: 20px 16px 10px;
    font-size: 1.3rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.3px;
}

/* ── Hero (Next Trip) card ───────────────────────────────────────────────────── */

.mob-hero-card {
    margin: 16px 16px 0;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.mob-hero-card:active { transform: scale(0.98); }

.mob-hero-image-wrap { position: relative; }

.mob-hero-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.mob-hero-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2c3077 0%, #0683d7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mob-hero-countdown {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary, #ff1491);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}

.mob-hero-info { padding: 14px 16px 16px; }

.mob-hero-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111;
    line-height: 1.3;
    margin-bottom: 4px;
}

.mob-hero-date {
    font-size: 0.83rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.mob-hero-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mob-info-tile {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 10px 12px;
}

.mob-info-tile-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

.mob-info-tile-label {
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 2px;
}

/* ── Trip card grid ──────────────────────────────────────────────────────────── */

.mob-trip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 8px 16px 4px;
}

.mob-trip-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.mob-trip-card:active { transform: scale(0.97); }

.mob-trip-card-image {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}

.mob-trip-card-placeholder {
    width: 100%;
    height: 110px;
    background: linear-gradient(135deg, #2c3077 0%, #0683d7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mob-trip-card-info { padding: 8px 10px 10px; }

.mob-trip-card-name {
    font-weight: 700;
    font-size: 0.82rem;
    line-height: 1.3;
    color: #111;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.1em;
}

.mob-trip-card-date {
    font-size: 0.72rem;
    color: #6b7280;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.mob-trip-card-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
}

/* ── Past trips accordion ────────────────────────────────────────────────────── */

.mob-past-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px 10px;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

.mob-past-toggle-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
}

.mob-past-toggle-chevron {
    color: #9ca3af;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.mob-past-toggle.open .mob-past-toggle-chevron { transform: rotate(180deg); }

/* ── Trip detail ─────────────────────────────────────────────────────────────── */

.mob-detail-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.mob-detail-hero-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #2c3077 0%, #0683d7 100%);
}

.mob-detail-body { padding: 0 16px 32px; }

.mob-detail-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111;
    line-height: 1.3;
    margin: 16px 0 4px;
}

.mob-detail-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mob-detail-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

/* Section cards */
.mob-section-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mob-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.mob-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 7px 0;
    border-bottom: 1px solid #f3f4f6;
}
.mob-info-row:last-child { border-bottom: none; }

.mob-info-row-label {
    font-size: 0.85rem;
    color: #6b7280;
}

.mob-info-row-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111;
    text-align: right;
    max-width: 58%;
    word-break: break-word;
}

/* ── Friends / Reminders list ────────────────────────────────────────────────── */

.mob-list { padding: 0 16px; }

.mob-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}
.mob-list-item:last-child { border-bottom: none; }

.mob-list-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary, #ff1491);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.mob-list-name {
    font-weight: 600;
    font-size: 0.93rem;
    color: #111;
}

.mob-list-sub {
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 2px;
}

/* ── Status badge colors ─────────────────────────────────────────────────────── */
.mob-badge-green  { background: rgba(16, 185, 129, 0.12); color: #065f46; }
.mob-badge-blue   { background: rgba(6, 131, 215, 0.12);  color: #1e40af; }
.mob-badge-red    { background: rgba(239, 68, 68, 0.12);  color: #991b1b; }
.mob-badge-gray   { background: rgba(107, 114, 128, 0.12); color: #374151; }

/* ── Profile ─────────────────────────────────────────────────────────────────── */

.mob-profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 16px 16px;
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 16px;
}

.mob-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary, #ff1491);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.mob-profile-name { font-size: 1.15rem; font-weight: 800; color: #111; }
.mob-profile-email { font-size: 0.82rem; color: #6b7280; margin-top: 2px; }

.mob-form { padding: 0 16px 32px; }

.mob-form-card {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mob-form-label {
    display: block;
    font-size: 0.73rem;
    font-weight: 600;
    color: #9ca3af;
    padding: 12px 16px 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mob-form-input {
    display: block;
    width: 100%;
    padding: 6px 16px 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.97rem;
    color: #111;
    background: none;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    box-sizing: border-box;
    outline: none;
}
.mob-form-input:last-child { border-bottom: none; }
.mob-form-input:disabled { color: #9ca3af; }

.mob-form-save-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary, #ff1491);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.97rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    -webkit-tap-highlight-color: transparent;
}
.mob-form-save-btn:disabled { opacity: 0.6; }

/* ── User menu (slide-in from right) ────────────────────────────────────────── */

.mob-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.mob-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mob-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: #fff;
    z-index: 201;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: env(safe-area-inset-top, 0px);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}
.mob-menu.open { transform: translateX(0); }

.mob-menu-header {
    padding: 16px 20px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.mob-menu-close-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.mob-menu-close {
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    -webkit-tap-highlight-color: transparent;
}

#mobMenuAvatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary, #ff1491);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

#mobMenuName { font-weight: 700; font-size: 0.97rem; color: #111; }
#mobMenuEmail { font-size: 0.78rem; color: #6b7280; margin-top: 2px; }

.mob-menu-nav {
    flex: 1;
    padding: 6px 0;
    overflow-y: auto;
}

.mob-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    background: none;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.97rem;
    font-weight: 500;
    color: #111;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}
.mob-menu-item:active { background: #f5f5f7; }
.mob-menu-item svg { color: var(--primary, #ff1491); flex-shrink: 0; }
.mob-menu-item.danger { color: #ef4444; }
.mob-menu-item.danger svg { color: #ef4444; }

.mob-menu-divider { height: 1px; background: #f3f4f6; margin: 4px 0; }

/* ── Empty / loading states ──────────────────────────────────────────────────── */

.mob-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    color: #9ca3af;
    font-size: 0.93rem;
}

.mob-empty {
    padding: 60px 32px;
    text-align: center;
    color: #9ca3af;
}
.mob-empty svg { opacity: 0.35; margin: 0 auto 16px; display: block; }
.mob-empty p { font-size: 0.97rem; font-weight: 500; }

/* ── Safe area bottom padding ────────────────────────────────────────────────── */
.mob-bottom-pad {
    height: max(env(safe-area-inset-bottom, 0px), 24px);
}

/* ── Pull-to-refresh indicator ───────────────────────────────────────────────── */
.mob-ptr {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 0;
    overflow: hidden;
    transition: height 0.2s ease;
    color: #9ca3af;
    font-size: 0.82rem;
    gap: 6px;
}
.mob-ptr.pulling { height: 44px; }
.mob-ptr.refreshing { height: 44px; }
.mob-ptr-spinner {
    width: 16px; height: 16px;
    border: 2px solid #e5e7eb;
    border-top-color: var(--primary, #ff1491);
    border-radius: 50%;
    animation: mob-spin 0.7s linear infinite;
}
@keyframes mob-spin { to { transform: rotate(360deg); } }

/* ── Current trip banner ─────────────────────────────────────────────────────── */
.mob-current-card {
    margin: 16px 16px 0;
    background: linear-gradient(135deg, #2c3077 0%, #0683d7 100%);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 16px rgba(6, 131, 215, 0.3);
}
.mob-current-card:active { transform: scale(0.98); }
.mob-current-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mob-current-name { font-size: 1rem; font-weight: 800; color: #fff; line-height: 1.3; }
.mob-current-date { font-size: 0.78rem; color: rgba(255,255,255,0.8); margin-top: 2px; }

/* ── Make a Reservation section ──────────────────────────────────────────────── */
.mob-make-res-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    gap: 0;
}
.mob-make-res-card:active { transform: scale(0.97); }
.mob-make-res-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}
.mob-make-res-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2c3077, #0683d7);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mob-make-res-info { padding: 10px 12px; flex: 1; min-width: 0; }
.mob-make-res-name { font-weight: 700; font-size: 0.88rem; color: #111; line-height: 1.3; }
.mob-make-res-date { font-size: 0.75rem; color: #6b7280; margin-top: 3px; }
.mob-make-res-btn {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary, #ff1491);
    margin-top: 5px;
}
.mob-make-res-list { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }

/* ── Trip pin overlay ────────────────────────────────────────────────────────── */
.mob-pin-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 2px solid #fff;
}
.mob-pin-overlay-lg {
    width: 72px;
    height: 72px;
    bottom: 12px;
    right: 12px;
}

/* ── Trip detail sections ────────────────────────────────────────────────────── */
.mob-detail-hero-wrap { position: relative; }

.mob-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.mob-chip {
    background: #f0f0f5;
    color: #374151;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.mob-section-loading {
    padding: 20px 0;
    text-align: center;
    color: #9ca3af;
    font-size: 0.82rem;
}

.mob-announcement-item {
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
}
.mob-announcement-item:last-child { border-bottom: none; }
.mob-ann-subject { font-weight: 600; font-size: 0.9rem; color: #111; }
.mob-ann-date { font-size: 0.75rem; color: #9ca3af; margin-top: 2px; }
.mob-ann-body {
    display: none;
    font-size: 0.85rem;
    color: #374151;
    margin-top: 8px;
    line-height: 1.5;
    white-space: pre-wrap;
}
.mob-announcement-item.open .mob-ann-body { display: block; }

.mob-itinerary-day {
    font-size: 0.78rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 0 4px;
}
.mob-itinerary-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f9f9f9;
}
.mob-itinerary-row:last-child { border-bottom: none; }
.mob-itinerary-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #f0f0f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #6b7280;
}
.mob-itinerary-name { font-weight: 600; font-size: 0.88rem; color: #111; }
.mob-itinerary-time { font-size: 0.75rem; color: #9ca3af; margin-top: 2px; }

.mob-hotel-card, .mob-flight-card {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}
.mob-hotel-card:last-child, .mob-flight-card:last-child { border-bottom: none; padding-bottom: 0; }
.mob-hotel-name, .mob-flight-route { font-weight: 700; font-size: 0.93rem; color: #111; }
.mob-hotel-dates, .mob-flight-info { font-size: 0.78rem; color: #6b7280; margin-top: 3px; }
.mob-hotel-conf, .mob-flight-conf { font-size: 0.75rem; color: #9ca3af; margin-top: 3px; }

.mob-places-list { display: flex; flex-direction: column; }
.mob-place-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f9f9f9;
}
.mob-place-item:last-child { border-bottom: none; }
.mob-place-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary, #ff1491);
    flex-shrink: 0;
}
.mob-place-name { font-size: 0.88rem; font-weight: 600; color: #111; }
.mob-place-loc { font-size: 0.75rem; color: #9ca3af; }

.mob-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
}
.mob-photo-item {
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
    background: #f0f0f5;
}

.mob-trip-action-row {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}
.mob-trip-action-btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.mob-trip-action-btn.primary { background: var(--primary, #ff1491); color: #fff; }
.mob-trip-action-btn.secondary { background: #f0f0f5; color: #374151; }

/* ── Friends — invitations + companion groups ────────────────────────────────── */
.mob-invitation-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    margin: 0 16px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.mob-invitation-name { font-weight: 700; font-size: 0.93rem; color: #111; }
.mob-invitation-sub { font-size: 0.78rem; color: #6b7280; margin-top: 2px; }
.mob-invitation-actions { display: flex; gap: 8px; margin-top: 12px; }
.mob-invite-accept, .mob-invite-decline {
    flex: 1;
    padding: 9px;
    border-radius: 10px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.mob-invite-accept { background: var(--primary, #ff1491); color: #fff; }
.mob-invite-decline { background: #f3f4f6; color: #6b7280; }
.mob-invite-accept:disabled, .mob-invite-decline:disabled { opacity: 0.5; }

.mob-companion-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.mob-companion-group:last-child { border-bottom: none; }
.mob-companion-group-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2c3077, #0683d7);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.mob-companion-group-name { font-weight: 600; font-size: 0.93rem; color: #111; }
.mob-companion-group-trip { font-size: 0.75rem; color: #9ca3af; margin-top: 2px; }

/* ── Reminders — add form ────────────────────────────────────────────────────── */
.mob-add-fab {
    position: fixed;
    bottom: max(env(safe-area-inset-bottom, 16px), 16px);
    right: 16px;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--primary, #ff1491);
    color: #fff;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 20, 145, 0.4);
    z-index: 50;
    -webkit-tap-highlight-color: transparent;
}
.mob-reminder-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
}
.mob-reminder-item:last-child { border-bottom: none; }
.mob-reminder-delete {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

/* ── Chat ─────────────────────────────────────────────────────────────────────── */
#mobContent.chat-mode {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.mob-chat-list { flex: 1; overflow-y: auto; }
.mob-chat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.mob-chat-item:active { background: #f9f9f9; }
.mob-chat-avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c3077, #0683d7);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.mob-chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mob-chat-meta { flex: 1; min-width: 0; }
.mob-chat-name { font-weight: 700; font-size: 0.93rem; color: #111; }
.mob-chat-preview {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mob-chat-time { font-size: 0.72rem; color: #9ca3af; flex-shrink: 0; }
.mob-unread-badge {
    background: var(--primary, #ff1491);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
    flex-shrink: 0;
}

.mob-messages-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mob-msg-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}
.mob-msg-row.sent { justify-content: flex-end; }
.mob-msg-row.received { justify-content: flex-start; }
.mob-msg-bubble {
    max-width: 72%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.45;
    word-break: break-word;
}
.mob-msg-row.sent .mob-msg-bubble {
    background: var(--primary, #ff1491);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.mob-msg-row.received .mob-msg-bubble {
    background: #fff;
    color: #111;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.mob-msg-time {
    font-size: 0.65rem;
    color: #9ca3af;
    padding: 0 4px 4px;
    flex-shrink: 0;
}
.mob-msg-sender {
    font-size: 0.68rem;
    color: #9ca3af;
    margin-bottom: 2px;
    padding-left: 4px;
}

.mob-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    padding-bottom: max(env(safe-area-inset-bottom, 10px), 10px);
    background: #fff;
    border-top: 1px solid #f3f4f6;
    flex-shrink: 0;
}
.mob-input-field {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    outline: none;
    background: #f9f9f9;
    max-height: 100px;
    resize: none;
    overflow-y: auto;
}
.mob-input-send {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--primary, #ff1491);
    border: none;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.mob-input-send:disabled { opacity: 0.4; }

/* ── iOS parity additions ───────────────────────────────────────────────────── */

/* Home title */
.mob-home-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111;
    padding: 8px 16px 4px;
    letter-spacing: -0.5px;
}

/* Avatar capsule (matching iOS UserMenu) */
.mob-avatar-capsule {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0f2a47;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 5px 14px 5px 5px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    max-width: 200px;
    -webkit-tap-highlight-color: transparent;
}
.mob-avatar-photo-wrap {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}
.mob-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
    display: block;
}
.mob-avatar-ini {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}
.mob-avatar-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 1.5px solid #0f2a47;
}
.mob-avatar-capsule-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
}

/* Trip name accent color */
.mob-trip-name { color: var(--secondary, #0683d7) !important; }

/* Itinerary type-colored circles */
.mob-itinerary-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Passenger screen */
.mob-passenger-row { align-items: center; }
.mob-passenger-pending {
    font-size: 0.75rem;
    font-weight: 600;
    color: #f59e0b;
    padding: 4px 10px;
    background: rgba(245,158,11,0.12);
    border-radius: 20px;
    border: 1px solid rgba(245,158,11,0.4);
}

/* Companion invite row */
.mob-invite-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px !important;
}

/* Danger button */
.mob-danger-btn {
    width: 100%;
    padding: 12px;
    background: none;
    border: 1.5px solid #ef4444;
    border-radius: 12px;
    color: #ef4444;
    font-size: 0.93rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}
.mob-danger-btn:hover { background: rgba(239,68,68,0.06); }

/* Profile photo in list items */
.mob-list-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Trip route map (Leaflet) */
.mob-trip-map {
    width: 100%;
    height: 240px;
    border-radius: 14px;
    overflow: hidden;
    margin-top: 8px;
    z-index: 0;
}
.mob-trip-map .leaflet-control-attribution {
    font-size: 9px;
}
/* Numbered place badge marker — matches iOS numberedBadge */
.mob-map-badge-wrap { background: none; border: none; }
.mob-map-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--secondary, #0683d7);
    color: #fff;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
/* Companion avatar marker — initials or profile image */
.mob-map-avatar-wrap { background: none; border: none; }
.mob-map-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary, #6b46c1);
    color: #fff;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.mob-map-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mob-companion-intro p strong { color: var(--primary, #6b46c1); }
.mob-companion-map-empty {
    margin: 0;
    font-size: 0.82rem;
    color: #9ca3af;
    text-align: center;
    padding: 18px 0;
}
