﻿/* Shared presentation for the traveller and guide app screens. */
.tf-contentApp {
    box-sizing: border-box;
    flex: 1 0 auto;
    width: 100%;
    min-width: 0;
    max-width: 1440px;
    margin-inline: auto;
    padding: 24px clamp(16px, 3vw, 32px);
}

.tf-contentApp > * {
    min-width: 0;
}

.tf-contentApp .tf-page-header {
    align-items: flex-start;
}

.tf-contentApp .tf-detail-value,
.tf-contentApp .field-text .val,
.tf-contentApp .tf-card {
    overflow-wrap: anywhere;
}

.tf-contentApp .tf-table-wrap,
.tf-contentApp .table-responsive {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.tf-navbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

@media (max-width: 900px) {
    .tf-navbar-actions {
        gap: 8px;
    }

    .tf-navbar-links {
        gap: 7px;
    }

    .tf-navbar-links .tf-nav-btn-label,
    .tf-navbar-links .tf-chat-nav-label,
    .tf-navbar-links .tf-chat-nav-chevron {
        display: none !important;
    }

    .tf-navbar-links .tf-nav-btn,
    .tf-navbar-links .tf-chat-nav-trigger {
        box-sizing: border-box;
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
        flex: 0 0 40px;
    }

    .tf-navbar-links .tf-nav-language {
        width: 44px;
        min-width: 44px;
        flex-basis: 44px;
        gap: 0;
    }

    .tf-navbar-links .tf-nav-language #currentLang {
        display: none;
    }

    /* The actual language picker markup uses .tf-language-picker (a <label> wrapping
       the #siteLanguagePicker <select>), not .tf-nav-language. Without this override it
       inherits the fixed 40px icon-button box above and the <select> gets clipped. */
    .tf-navbar-links .tf-language-picker {
        box-sizing: border-box;
        width: auto;
        min-width: 56px;
        height: 40px;
        padding: 0 8px;
        flex: 0 0 auto;
        justify-content: center;
    }

    .tf-navbar-links .tf-chat-nav-trigger .tf-nav-count {
        position: absolute;
        top: -4px;
        inset-inline-end: -4px;
    }
}

.tf-app-logout {
    min-height: 40px;
    text-decoration: none;
}

.tf-client-bottom-nav {
    display: none;
}

.tf-guide-bottom-nav {
    display: none;
}

body[data-user-type="Guied"] .tf-guide-nav-link {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    padding-inline: 12px;
    border-radius: 10px;
}

body[data-user-type="Guied"] .tf-guide-nav-link .tf-nav-btn-label {
    display: inline;
}

@media (min-width: 769px) and (max-width: 1100px) {
    body[data-user-type="Guied"] .tf-guide-nav-link {
        width: 38px;
        min-width: 38px;
        padding: 0;
    }

    body[data-user-type="Guied"] .tf-guide-nav-link .tf-nav-btn-label {
        display: none;
    }
}

.tf-customer-home {
    width: min(100%, 1200px);
    margin-inline: auto;
    padding-bottom: 24px;
    color:var(--theme-secondary,#1e293b);
}

.tf-customer-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 22px;
    overflow: hidden;
    margin-bottom: 16px;
    padding: 26px 30px;
    border-radius: 22px;
    background: linear-gradient(115deg, #102a43 0%, #174d66 62%, #21768a 100%);
    box-shadow: 0 16px 36px rgb(16 42 67 / 18%);
    color: #fff;
}

.tf-customer-hero::after {
    position: absolute;
    inset-inline-start: 38%;
    bottom: -150px;
    width: 300px;
    height: 300px;
    border: 34px solid rgb(255 255 255 / 7%);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.tf-customer-hero-copy,
.tf-customer-booking-chip,
.tf-customer-hero-action {
    position: relative;
    z-index: 1;
}

.tf-customer-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: #c7e7f1;
    font-size: 12px;
    font-weight: 700;
}

.tf-customer-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 750;
}

.tf-customer-hero p {
    margin: 7px 0 0;
    color: #d8e9f1;
    font-size: 14px;
}

.tf-customer-booking-chip {
    display: grid;
    gap: 4px;
    min-width: 112px;
    padding: 12px 16px;
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 15px;
    background: rgb(255 255 255 / 10%);
    text-align: center;
}

.tf-customer-booking-chip span {
    color: #d8e9f1;
    font-size: 11px;
}

.tf-customer-booking-chip strong {
    color: #fff;
    font-size: 19px;
}

.tf-customer-hero-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 12px;
    background: var(--theme-card,#fff);
    color:var(--theme-secondary,#173d53);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.tf-customer-hero-action:hover {
    background:var(--theme-raised,#eaf7fb);
    color:var(--theme-secondary,#102a43);
}

.tf-customer-trip-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.tf-customer-trip-summary > div {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid var(--theme-line,#e2e8f0);
    border-radius: 15px;
    background: var(--theme-card,#fff);
    box-shadow: 0 4px 15px rgb(15 23 42 / 4%);
}

.tf-customer-summary-icon {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background:var(--theme-raised,#eaf4f8);
    color: var(--theme-copy,#17617a);
}

.tf-customer-trip-summary small,
.tf-customer-trip-summary strong {
    display: block;
}

.tf-customer-trip-summary small {
    margin-bottom: 3px;
    color: var(--theme-muted,#64748b);
    font-size: 11px;
}

.tf-customer-trip-summary strong {
    overflow: hidden;
    color:var(--theme-secondary,#173d53);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tf-customer-section-nav {
    position: sticky;
    top: calc(var(--tf-navbar-h) + 8px);
    z-index: 5;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    margin: 0 0 16px;
    padding: 5px 2px 9px;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
}

.tf-customer-section-nav::-webkit-scrollbar {
    display: none;
}

.tf-customer-section-nav a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--theme-line,#dbe4ed);
    border-radius: 99px;
    background: var(--theme-card,#fff);
    color: var(--theme-secondary,#334155);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.tf-customer-section-nav a:hover,
.tf-customer-section-nav a:focus-visible {
    border-color: #70a9bb;
    background:var(--theme-raised,#f1f8fa);
    color:var(--theme-secondary,#14566d);
}

.tf-customer-home [id^="customer"] {
    scroll-margin-top: calc(var(--tf-navbar-h) + 58px);
}

.tf-customer-home > .tf-card {
    margin-bottom: 16px;
    border: 1px solid var(--theme-line,#e2e8f0);
    border-radius: 17px;
    box-shadow: 0 6px 20px rgb(15 23 42 / 5%);
}

.tf-customer-home .tf-card-header {
    min-height: 52px;
    font-size: 15px;
}

.tf-customer-home .booking-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 14px;
}

.tf-customer-home .booking-card {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid var(--theme-line,#e2e8f0);
    box-shadow: 0 5px 18px rgb(15 23 42 / 6%);
    transition: transform .18s ease, box-shadow .18s ease;
}

.tf-customer-home .booking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgb(15 23 42 / 10%);
}

.tf-customer-home .booking-card img.card-img-top {
    height: 148px;
    object-position: center;
}

.tf-customer-home .booking-card.bc-pax img.card-img-top {
    height: 124px;
    object-position: center 30%;
}

.tf-customer-home .pax-card-avatar {
    display: flex;
    min-height: 124px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background:
        radial-gradient(circle at 50% 15%, rgb(255 255 255 / 20%), transparent 55%),
        linear-gradient(145deg, var(--theme-inset,#dceef2), var(--theme-inset,#c5e0e7));
    color: var(--theme-copy,#17617a);
}

.tf-customer-home .pax-card-avatar i {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 75%);
    border-radius: 50%;
    background: rgb(255 255 255 / 72%);
    box-shadow: 0 5px 16px rgb(23 97 122 / 12%);
    font-size: 24px;
}

.tf-customer-home .pax-card-avatar span {
    font-size: 11px;
    font-weight: 750;
}

.tf-customer-home .booking-card .card-header {
    position: relative;
    min-height: 80px;
    padding: 12px 15px;
}

.tf-customer-home .booking-card .card-header-top {
    gap: 8px;
    margin-bottom: 8px;
}

.tf-customer-home .booking-card .hotel-name {
    overflow-wrap: anywhere;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.45;
}

.tf-customer-home .booking-card .card-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 9px;
    padding: 14px;
}

.tf-customer-home .booking-card .field {
    min-height: 54px;
    align-items: center;
    gap: 9px;
    padding: 9px;
    border: 1px solid var(--theme-line,#edf1f5);
    border-radius: 11px;
    background:var(--theme-raised,#fbfcfd);
}

.tf-customer-home .booking-card .field-icon {
    width: 32px;
    height: 32px;
    margin: 0;
    border-radius: 10px;
}

.tf-customer-home .booking-card .field-text .lbl {
    margin-bottom: 4px;
    font-size: 10px;
    line-height: 1.2;
}

.tf-customer-home .booking-card .field-text .val {
    color:var(--theme-secondary,#1e293b);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
}

.tf-customer-home .booking-card .tf-tour-status-bar {
    padding: 0 14px 12px;
}

.tf-customer-home .booking-card .card-header.status-completed,
.tf-customer-home .booking-card .card-header.status-pending,
.tf-customer-home .booking-card .card-header.status-today,
.tf-customer-home .booking-card .card-header.status-red,
.tf-customer-home .booking-card .card-header.status-scheduled {
    animation: none !important;
}

.tf-customer-home .booking-card .tf-badge-block {
    min-height: 34px;
    border-radius: 10px;
    font-size: 12px;
}

.tf-customer-home .tf-tour-actions {
    display: grid;
    gap: 8px;
}

.tf-customer-home .tf-tour-actions > * {
    width: 100%;
    min-height: 44px;
    margin: 0;
}

.tf-notif-dropdown {
    text-align: start;
}

body[data-user-type="Clint"] {
    background:var(--theme-raised,#f3f7fa);
}

body[data-user-type="Clint"] .tf-navbar {
    background: #12374a;
    border-bottom-color: rgb(255 255 255 / 8%);
    box-shadow: 0 4px 18px rgb(15 35 50 / 12%);
}

body[data-user-type="Clint"] .tf-content {
    background:
        radial-gradient(ellipse at 8% 0%, rgb(21 112 135 / 5%), transparent 34rem),
        var(--theme-inset,#f3f7fa);
}

body[data-user-type="Clint"] .tf-footer {
    background: var(--theme-page,#f8fafc);
}

body[data-user-type="Clint"] .tf-notif-dropdown {
    overflow: hidden auto;
    border: 1px solid var(--theme-line,#dce7ec);
    border-radius: 18px;
    box-shadow: 0 20px 55px rgb(16 42 67 / 20%);
}

body[data-user-type="Clint"] .tf-customer-home > .tf-card {
    overflow: hidden;
    background: var(--theme-card,#fff);
}

body[data-user-type="Clint"] .tf-customer-home > .tf-card > .tf-card-header {
    min-height: 58px;
    padding: 14px 18px;
    border: 0;
    background: linear-gradient(110deg, #174b61, #216d80);
    color: #fff;
    font-size: 15px;
    font-weight: 750;
}

body[data-user-type="Clint"] .tf-customer-home > .tf-card > .tf-card-header > i {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
    background: rgb(255 255 255 / 15%);
}

body[data-user-type="Clint"] .tf-customer-home > .tf-card > .tf-card-header .tf-badge-light {
    margin-inline-start: auto;
    border: 1px solid rgb(255 255 255 / 22%);
    background: rgb(255 255 255 / 13%);
    color: #fff;
}

body[data-user-type="Clint"] .tf-customer-home .client-store-launch {
    margin-block: 18px;
}

body[data-user-type="Clint"] .tf-customer-home .client-store-overview {
    border-color: var(--theme-line,#dce7ec);
    border-radius: 20px;
    box-shadow: 0 8px 26px rgb(16 42 67 / 6%);
}

body[data-user-type="Clint"] .tf-customer-home .client-store-overview-head {
    background: linear-gradient(110deg, #174b61, #216d80);
}

body[data-user-type="Clint"] .tf-customer-home .client-store-type {
    min-height: 112px;
    border-width: 1px;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgb(16 42 67 / 4%);
}

body[data-user-type="Clint"] .tf-customer-home .client-store-type > i {
    color: #16758a;
}

body[data-user-type="Clint"] .tf-customer-home .booking-card {
    border-color: var(--theme-line,#e1e9ee);
    border-top-width: 3px;
    box-shadow: 0 5px 18px rgb(16 42 67 / 6%);
}

body[data-user-type="Clint"] .tf-customer-home .booking-card .card-header {
    background-image: linear-gradient(130deg, rgb(18 55 74 / 96%), rgb(32 94 112 / 92%));
}

body[data-user-type="Clint"] .tf-customer-home .booking-card .tf-tour-status-bar {
    margin-top: auto;
}

body[data-user-type="Clint"] .tf-customer-home .booking-card .tf-tour-actions .btn-info {
    border-color: #16758a;
    background: #16758a;
}

body[data-user-type="Clint"] .tf-customer-home .booking-card .tf-tour-actions .btn-danger,
body[data-user-type="Clint"] .tf-customer-home .booking-card .tf-tour-actions .btn-success {
    border-radius: 10px;
}

body[data-user-type="Clint"] .store-page,
body[data-user-type="Clint"] .customer-requests,
body[data-user-type="Clint"] .addon-order-details {
    max-width: 1120px;
    padding-bottom: 34px;
}

body[data-user-type="Clint"] .store-hero,
body[data-user-type="Clint"] .customer-requests-hero,
body[data-user-type="Clint"] .addon-detail-hero {
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 22px;
    background: linear-gradient(115deg, #102a43, #174d66 65%, #21768a);
    box-shadow: 0 16px 36px rgb(16 42 67 / 15%);
}

body[data-user-type="Clint"] .store-addon,
body[data-user-type="Clint"] .customer-request-card,
body[data-user-type="Clint"] .addon-detail-card {
    border-color: var(--theme-line,#e1e9ee);
    border-radius: 17px;
    box-shadow: 0 6px 22px rgb(16 42 67 / 5%);
}

body[data-user-type="Clint"] .store-addon-action {
    min-height: 42px;
    border-radius: 11px;
}

body[data-user-type="Clint"] .store-addon-request textarea,
body[data-user-type="Clint"] .addon-order-form textarea,
body[data-user-type="Clint"] .rumapp-chat-input {
    border-color: var(--theme-line,#d4e0e7);
    border-radius: 13px;
    background:var(--theme-raised,#fbfdfe);
}

body[data-user-type="Clint"] .rumapp-chat-card {
    border: 1px solid var(--theme-line,#e1e9ee);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgb(16 42 67 / 8%);
}

body[data-user-type="Clint"] .rumapp-chat-messages {
    background:
        radial-gradient(circle at 10% 10%, rgb(21 112 135 / 5%), transparent 20rem),
        var(--theme-inset,#f7fafc);
}

body[data-user-type="Clint"] .chat-bubble.customer {
    border-radius: 18px 18px 5px 18px;
    background: linear-gradient(135deg, #17657b, #238198);
    box-shadow: 0 4px 12px rgb(23 101 123 / 14%);
}

body[data-user-type="Clint"] .chat-bubble.staff {
    border-color: var(--theme-line,#e1e9ee);
    border-radius: 18px 18px 18px 5px;
    box-shadow: 0 3px 10px rgb(16 42 67 / 4%);
}

body[data-user-type="Clint"] .rumapp-chat-send {
    background: #17657b;
}

body[data-user-type="Clint"] .tf-client-nav-item.is-active {
    background:var(--theme-raised,#e8f4f6);
    color:var(--theme-secondary,#13566b);
}

@media (max-width: 768px) {
    body[data-user-type="Clint"] .tf-content {
        padding: 13px 12px calc(92px + env(safe-area-inset-bottom));
    }

    body[data-user-type="Guied"] .tf-content {
        padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }

    body[data-user-type="Clint"] .tf-footer,
    body[data-user-type="Clint"] #customerChatMenu,
    body[data-user-type="Guied"] .tf-footer {
        display: none !important;
    }

    body[data-user-type="Clint"] .tf-navbar,
    body[data-user-type="Guied"] .tf-navbar {
        padding-inline: 10px;
    }

    /* الناف بار العلوي على الموبايل للعميل/المرشد يبقى ظاهرًا دائمًا،
       ويقتصر على: الشعار/القائمة الجانبية + اللغة + جرس الإشعارات + تسجيل الدخول/الخروج.
       روابط المحادثات والطلبات تُخفى هنا لأنها انتقلت إلى الناف بار السفلي. */
    body[data-user-type="Clint"] .tf-navbar-links .tf-nav-chat,
    body[data-user-type="Guied"] .tf-navbar-links .tf-nav-chat,
    body[data-user-type="Clint"] .tf-navbar-links a.tf-nav-orders,
    body[data-user-type="Guied"] .tf-navbar-links a.tf-nav-orders {
        display: none !important;
    }

    body[data-user-type="Clint"] .tf-navbar-user,
    body[data-user-type="Guied"] .tf-navbar-user {
        display: none;
    }

    body[data-user-type="Guied"] .tf-guide-nav-link {
        display: none !important;
    }

    body[data-user-type="Clint"] .tf-client-bottom-nav {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 1025;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-height: calc(62px + env(safe-area-inset-bottom));
        padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--theme-line,#dbe4ed);
        background: rgb(255 255 255 / 97%);
        box-shadow: 0 -8px 24px rgb(15 23 42 / 9%);
        backdrop-filter: blur(14px);
    }

    .tf-client-nav-item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        min-height: 50px;
        padding-inline: 2px;
        border-radius: 12px;
        color: var(--theme-muted,#64748b);
        font-size: 9px;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
        -webkit-tap-highlight-color: transparent;
    }

    button.tf-client-nav-item,
    button.tf-guide-nav-item {
        border: 0;
        background: transparent;
        width: 100%;
        font-family: inherit;
    }
    .tf-client-nav-item i {
        font-size: 17px;
    }

    .tf-client-nav-item.is-active {
        background:var(--theme-raised,#edf6f8);
        color:var(--theme-secondary,#14566d);
    }

    .tf-client-nav-count {
        position: absolute;
        top: 1px;
        inset-inline-start: calc(50% + 7px);
        display: none;
        min-width: 17px;
        height: 17px;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        border: 2px solid var(--theme-line,#fff);
        border-radius: 99px;
        background: #dc3545;
        color: #fff;
        font-size: 9px;
        line-height: 1;
    }

    body[data-user-type="Guied"] .tf-guide-bottom-nav {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 1025;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-height: calc(62px + env(safe-area-inset-bottom));
        padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--theme-line,#dbe4ed);
        background: rgb(255 255 255 / 97%);
        box-shadow: 0 -8px 24px rgb(15 23 42 / 9%);
        backdrop-filter: blur(14px);
    }

    .tf-guide-nav-item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        min-height: 50px;
        padding-inline: 2px;
        border-radius: 12px;
        color: var(--theme-muted,#64748b);
        font-size: 9px;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
        -webkit-tap-highlight-color: transparent;
    }

    .tf-guide-nav-item i {
        font-size: 17px;
    }

    .tf-guide-nav-item.is-active {
        background:var(--theme-raised,#edf6f8);
        color:var(--theme-secondary,#14566d);
    }

    .tf-guide-nav-count {
        position: absolute;
        top: 1px;
        inset-inline-start: calc(50% + 7px);
        display: none;
        min-width: 17px;
        height: 17px;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        border: 2px solid var(--theme-line,#fff);
        border-radius: 99px;
        background: #dc3545;
        color: #fff;
        font-size: 9px;
        line-height: 1;
    }

    .tf-customer-hero {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        margin-bottom: 12px;
        padding: 19px;
        border-radius: 18px;
    }

    .tf-customer-hero-action {
        grid-column: 1 / -1;
        min-height: 44px;
    }

    .tf-customer-booking-chip {
        min-width: 80px;
        padding: 9px 11px;
    }

    .tf-customer-trip-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 9px;
    }

    .tf-customer-trip-summary > div {
        gap: 8px;
        padding: 10px;
        border-radius: 13px;
    }

    .tf-customer-summary-icon {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .tf-customer-trip-summary strong {
        font-size: 12px;
    }

    .tf-customer-section-nav {
        top: calc(var(--tf-navbar-h) + 3px);
        margin-inline: -12px;
        padding-inline: 12px;
    }

    .tf-customer-section-nav a {
        min-height: 36px;
        padding-inline: 11px;
        font-size: 11px;
    }

    .tf-customer-home > .tf-card {
        margin-bottom: 12px;
        border-radius: 14px;
    }

    .tf-customer-home .tf-card-body {
        padding: 12px;
    }

    .tf-customer-home .booking-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .tf-customer-home .booking-card .card-img-top {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        height: 136px;
        min-height: 136px;
        object-fit: cover;
    }

    .tf-customer-home .booking-card.bc-pax .card-img-top {
        height: 136px;
    }

    .tf-customer-home .pax-card-avatar {
        grid-column: 1;
        grid-row: 1;
        min-height: 136px;
        height: 136px;
        gap: 6px;
    }

    .tf-customer-home .pax-card-avatar i {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .tf-customer-home .booking-card {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        grid-template-rows: minmax(136px, auto) auto auto auto;
    }

    .tf-customer-home .booking-card .card-header {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
        min-height: 136px;
        padding: 11px;
        border-bottom: 0;
    }

    .tf-customer-home .booking-card .card-header-top {
        align-items: flex-start;
        flex-wrap: wrap;
        margin-bottom: 8px;
    }

    .tf-customer-home .booking-card .hotel-name {
        font-size: 13px;
    }

    .tf-customer-home .booking-card .card-body {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        padding: 10px;
    }

    .tf-customer-home .booking-card .field {
        min-height: 50px;
        gap: 7px;
        padding: 7px;
        border-radius: 9px;
    }

    .tf-customer-home .booking-card .field-icon {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
    }

    .tf-customer-home .booking-card .field-text .val {
        font-size: 12px;
    }

    .tf-customer-home .booking-card .tf-tour-status-bar,
    .tf-customer-home .booking-card .card-footer {
        grid-column: 1 / -1;
    }

    .tf-customer-home .tf-tour-actions {
        grid-template-columns: 1fr 1fr;
        padding: 10px;
    }

    .tf-customer-home .tf-tour-actions > :first-child {
        grid-column: 1 / -1;
    }

    .tf-customer-home .booking-card .tf-tour-actions > * {
        min-height: 42px;
        padding: 8px;
        font-size: 12px;
        white-space: normal;
    }

    body[data-user-type="Clint"] .rumapp-chat-card {
        display: flex;
        flex-direction: column;
        height: calc(100dvh - var(--tf-navbar-h) - 112px - env(safe-area-inset-bottom));
        min-height: 320px;
    }

    body[data-user-type="Clint"] .rumapp-chat-messages {
        flex: 1 1 auto;
        height: auto;
        min-height: 0;
    }

    body[data-user-type="Clint"] .rumapp-chat-composer {
        position: sticky;
        bottom: 0;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }

    body[data-user-type="Clint"] #trackMap {
        height: min(58dvh, 520px) !important;
        min-height: 280px;
    }
}

@media (max-width: 380px) {
    .tf-customer-hero {
        padding: 16px;
    }

    .tf-customer-hero h1 {
        font-size: 21px;
    }

    .tf-customer-eyebrow {
        font-size: 10px;
    }

    .tf-customer-trip-summary > div {
        padding: 8px;
    }
}

.rumapp-chat-card {
    width: min(100%, 720px);
    margin-inline: auto;
    overflow: hidden;
    padding: 0;
}

.rumapp-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: min(55vh, 560px);
    min-height: 320px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px;
    background:var(--theme-raised,#f8f9fb);
}

.rumapp-chat-composer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--theme-line,#eee);
    background: var(--theme-card,#fff);
}

.rumapp-chat-input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--theme-line,#ddd);
    border-radius: 24px;
    outline: none;
}

.rumapp-chat-input:focus {
    border-color: var(--tf-indigo);
    box-shadow: 0 0 0 3px rgb(79 70 229 / 12%);
}

.rumapp-chat-send {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    background: var(--tf-indigo);
    color: #fff;
}

@media (max-width: 768px) {
    :root {
        --tf-navbar-h: calc(56px + env(safe-area-inset-top));
    }

    html,
    body {
        max-width: 100%;
        overflow-x: clip;
    }

    .tf-contentApp {
        padding: 16px 14px 22px;
    }

    .tf-contentApp .tf-page-header {
        gap: 10px;
        margin-bottom: 16px;
    }

    .tf-contentApp .tf-page-title {
        align-items: flex-start;
        gap: 10px;
        min-width: 0;
    }

    .tf-contentApp .tf-page-title h1 {
        font-size: clamp(17px, 5vw, 20px);
        line-height: 1.35;
    }

    .tf-contentApp .tf-page-title p {
        line-height: 1.5;
    }

    .tf-contentApp .tf-page-title-icon {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    .tf-contentApp .tf-stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 14px;
    }

    .tf-contentApp .tf-stat {
        gap: 8px;
        padding: 10px;
    }

    .tf-contentApp .tf-stat-icon {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
    }

    .tf-contentApp .tf-stat-num {
        font-size: 14px;
    }

    .tf-contentApp .tf-stat-lbl {
        font-size: 10px;
        white-space: normal;
    }

    .tf-contentApp .tf-card {
        border-radius: 14px;
    }

    .tf-contentApp .tf-card-header {
        flex-wrap: wrap;
        gap: 7px;
        padding: 12px 14px;
    }

    .tf-contentApp .tf-card-body {
        padding: 14px;
    }

    .tf-contentApp .booking-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
        gap: 12px;
    }

    .tf-contentApp .booking-card {
        min-height: 0;
    }

    .tf-contentApp .tf-btn,
    .tf-contentApp button,
    .tf-contentApp input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    .tf-contentApp select,
    .tf-contentApp textarea {
        min-height: 44px;
    }

    .tf-contentApp input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    .tf-contentApp select,
    .tf-contentApp textarea {
        font-size: 16px;
    }

    .tf-navbar {
        height: var(--tf-navbar-h);
        padding-inline: 12px;
        padding-top: env(safe-area-inset-top);
        box-sizing: border-box;
    }

    .tf-navbar-actions {
        gap: 7px;
    }

    .tf-app-logout {
        justify-content: center;
        padding-inline: 10px;
    }

    .rumapp-chat-messages {
        height: min(54vh, 480px);
        height: min(54dvh, 480px);
        min-height: 240px;
        padding: 12px;
    }

    .chat-bubble {
        max-width: 88%;
        padding: 10px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tf-contentApp {
        padding: 12px 10px 18px;
    }

    .tf-contentApp .tf-stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tf-contentApp .tf-stat {
        align-items: flex-start;
        padding: 9px 8px;
    }

    .tf-contentApp .tf-card-body {
        padding: 12px;
    }

    .tf-navbar-actions {
        gap: 6px;
    }

    .tf-navbar-actions .tf-nav-btn {
        width: 36px;
        height: 36px;
    }

    .tf-navbar-actions .tf-language-picker {
        width: auto;
        min-width: 52px;
        height: 36px;
        padding: 0 6px;
    }

    .tf-app-logout {
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 0;
    }

    .tf-app-logout span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .rumapp-chat-messages {
        height: min(52vh, 440px);
        height: min(52dvh, 440px);
        min-height: 220px;
    }

    .rumapp-chat-composer {
        gap: 7px;
        padding: 9px;
    }
}

@media (max-width: 360px) {
    .tf-contentApp .tf-stats-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .tf-contentApp .tf-page-title-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }
}

body[data-user-type="Employees"] .tf-navbar {
    gap: 8px;
    padding-inline: 12px;
}

body[data-user-type="Employees"] .tf-navbar-brand-area {
    flex: 0 1 auto;
}

body[data-user-type="Employees"] .tf-navbar-actions {
    flex: 1 1 auto;
    gap: 8px;
    justify-content: flex-end;
}

body[data-user-type="Employees"] .tf-navbar-links {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 4px;
}

body[data-user-type="Employees"] .tf-navbar-links > a.tf-nav-btn {
    box-sizing: border-box;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    flex: 0 0 40px;
    justify-content: center;
}

body[data-user-type="Employees"] .tf-navbar-links .tf-nav-btn-label {
    display: none !important;
}

body[data-user-type="Employees"] .tf-navbar-user {
    min-width: 0;
    gap: 6px;
    padding-inline: 7px;
    flex: 0 1 auto;
}

body[data-user-type="Employees"] .tf-user-info {
    min-width: 0;
    max-width: 180px;
}

body[data-user-type="Employees"] .tf-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-user-type="Employees"] .tf-nav-logout {
    box-sizing: border-box;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    flex: 0 0 40px;
}

body[data-user-type="Employees"] .tf-nav-logout span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1200px) {
    body[data-user-type="Employees"] .tf-navbar-user {
        padding-inline: 5px;
    }

    body[data-user-type="Employees"] .tf-user-info {
        max-width: 120px;
    }
}

@media (max-width: 700px) {
    body[data-user-type="Employees"] .tf-navbar-user {
        display: none;
    }
}

/* Guide polish: card images sit above the text on phones; bigger tap targets in bus file tables. */
[data-file-time-row] .btn-sm{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
[data-file-time-row] td{vertical-align:middle}
button.badge[data-hotel-notify]{min-height:44px;padding:8px 14px;font-size:13px;white-space:normal;text-align:start}
.tf-contentApp .badge.bg-primary.align-self-center{padding:10px 14px;font-size:13px}
@media (max-width: 768px) {
    .tf-customer-home .booking-card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto auto auto;
    }

    .tf-customer-home .booking-card .card-img-top,
    .tf-customer-home .booking-card .pax-card-avatar {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .tf-customer-home .booking-card .card-header {
        grid-column: 1 / -1;
        grid-row: 2;
        min-height: 0;
    }

    .tf-contentApp .d-flex.flex-wrap.mb-3 > .btn {
        flex: 1 1 auto;
    }
}
@media (min-width: 769px) and (max-width: 1100px) {
    .tf-contentApp .table-responsive table th,
    .tf-contentApp .table-responsive table td {
        padding: 8px 10px;
        font-size: 13px;
    }
}