.ba-trip-header {
    display: flex;
    align-items: center;
    gap: 2px;
}

.ba-trip-header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    min-height: 44px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.ba-trip-header-text, .ba-trip-header-cabinet-text { display: none; }

.ba-trip-header-count {
    min-width: 18px;
    padding: 1px 4px;
    border-radius: 10px;
    background: var(--ba-tint);
    color: var(--ba-ink);
    font-size: 12px;
    line-height: 16px;
    text-align: center;
}

.ba-trip-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid #d8e5ef;
    border-radius: 24px;
    background: #fff;
    color: var(--ba-ink);
    font: inherit;
    cursor: pointer;
}

.ba-trip-heart[aria-pressed="true"] {
    border-color: var(--ba-tint);
    background: var(--ba-tint);
    color: #15598f;
}

.ba-trip-heart[aria-pressed="true"] svg path { fill: currentColor; }

.ba-trip-heart:focus-visible, .ba-trip-header-link:focus-visible, .ba-trips-nav a:focus-visible {
    outline: 2px solid #15598f;
    outline-offset: 2px;
}

.ba-trip-card-cover, .ba-trip-list-card { position: relative; }
.ba-trip-card-cover > .ba-trip-heart, .ba-trip-list-card > .ba-trip-heart {
    position: absolute;
    inset: 8px 8px auto auto;
    z-index: 2;
}
.ba-trip-list-card > .ba-trip-heart { margin-left: 0; }
.ba-trip-heart-label { margin: 0 0 var(--ba-gap); }

.ba-trips {
    max-width: 900px;
    margin: 0 auto;
    padding: 8px 0 36px;
    color: var(--ba-ink);
}

.ba-trips h1 { margin: 16px 0 8px; }
.ba-trips h2 { font-size: clamp(21px, 4vw, 26px); margin: 0; }

.ba-trips-nav {
    display: flex;
    gap: 22px;
    border-bottom: 1px solid #d8e5ef;
}

.ba-trips-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: inherit;
    text-decoration: none;
}

.ba-trips-nav a[aria-current="page"] {
    box-shadow: inset 0 -2px #15598f;
    color: #15598f;
    font-weight: 700;
}

.ba-trips-status:empty { display: none; }

.ba-trips-empty {
    margin-top: 24px;
    padding: 22px;
    border-radius: var(--ba-radius);
    background: var(--ba-tint);
}

.ba-trips-empty p { margin-top: 0; }
.ba-trips-section { margin-top: 28px; }

.ba-trips-heading, .ba-trips-actions, .ba-trip-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.ba-trips-list, .ba-trips-history {
    display: grid;
    gap: 10px;
    margin: 12px 0;
    padding: 0;
    list-style: none;
}

.ba-trip-row, .ba-trip-history-row {
    padding: 12px;
    border: 1px solid #d8e5ef;
    border-radius: var(--ba-radius);
    background: #fff;
}

.ba-trip-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
}

.ba-trip-image {
    grid-column: 1;
    width: 68px;
    height: 54px;
    border-radius: 7px;
    object-fit: cover;
}

.ba-trip-info { grid-column: 2; }
.ba-trip-info:first-child { grid-column: 1 / span 2; }
.ba-trip-row > .ba-trip-heart { grid-column: 3; }

.ba-trip-title {
    color: var(--ba-ink);
    font-size: 17px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.ba-trip-details, .ba-trip-facts, .ba-trip-history-row p { margin: 4px 0 0; }

.ba-trip-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 12px;
}

.ba-trip-price { white-space: nowrap; font-weight: 700; }

.ba-trip-select {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    cursor: pointer;
}

.ba-trips-actions {
    position: sticky;
    z-index: 3;
    bottom: 0;
    padding: 10px 68px 10px 0;
    border-top: 1px solid #d8e5ef;
    background: #fff;
}

.ba-trips-actions span { font-size: 14px; }
.ba-trip-history-row > div { min-width: 0; overflow-wrap: anywhere; }

.ba-trip-header [hidden], .ba-trip-heart[hidden], .ba-trips [hidden] { display: none; }

@media (min-width: 640px) {
    .ba-trip-image { width: 108px; height: 70px; }
    .ba-trip-row, .ba-trip-history-row { padding: 14px 16px; }
    .ba-trips-actions { padding-right: 0; }
}

.ba-trip-feedback {
    position: fixed;
    z-index: 1001;
    left: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    max-width: min(320px, calc(100vw - 96px));
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #d8e5ef;
    border-radius: var(--ba-radius);
    background: #fff;
    color: var(--ba-ink);
    box-shadow: 0 4px 14px #000a1622;
}

.ba-trip-feedback:empty { display: none; }
.ba-trip-feedback a { margin-left: 4px; white-space: nowrap; }

.ba-trip-profile {
    margin: 16px 0;
    padding: 12px 16px;
    border: 1px solid #d8e5ef;
    border-radius: var(--ba-radius);
}

.ba-trip-profile p { margin: 0 0 8px; }
.ba-trip-profile p:last-child { margin-bottom: 0; }

.ba-profile-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.ba-profile-actions .uk-button { white-space: normal; }

.ba-profile-dialog {
    max-width: min(520px, calc(100vw - 32px));
    box-sizing: border-box;
    padding: 20px;
    border: 1px solid #d8e5ef;
    border-radius: var(--ba-radius);
    color: var(--ba-ink);
}

.ba-profile-dialog::backdrop { background: #000a1666; }
.ba-profile-dialog h2 { font-size: 24px; margin: 0; }

.ba-profile-landing {
    --ba-ink: #000a16;
    --ba-radius: 12px;
    margin: 0;
    padding: 24px;
    color: var(--ba-ink);
    font: 16px/1.5 system-ui, sans-serif;
}

.ba-profile-landing main { max-width: 540px; margin: 8vh auto; }
.ba-profile-landing h1 { font-size: clamp(22px, 6vw, 32px); }

.ba-profile-landing .uk-button {
    padding: 8px 12px;
    border: 1px solid #bac9d7;
    border-radius: 8px;
    background: #fff;
    color: var(--ba-ink);
    font: inherit;
    cursor: pointer;
}

.ba-profile-landing .uk-button-primary {
    border-color: #15598f;
    background: #15598f;
    color: #fff;
}

.ba-profile-bot-frame {
    display: block;
    width: 100%;
    height: 265px;
    border: 0;
}

.ba-trips {
    --ba-trips-link: #134c7e;
    --ba-trips-line: #dce6ef;
    --ba-trips-muted: #4d6072;
    max-width: 1000px;
    padding: 18px 0 48px;
}

.ba-trips h1, .ba-trips h2 {
    font-family: inherit;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.ba-trips-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0 24px;
}

.ba-trips-top h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.02; margin: 0 0 10px; }
.ba-trips-top p, .ba-trips-muted { color: var(--ba-trips-muted); margin: 0; }
.ba-trips-back { display: inline-flex; gap: 8px; align-items: center; color: var(--ba-trips-link); min-height: 44px; white-space: nowrap; }
.ba-trips-nav { gap: clamp(15px, 4vw, 32px); margin: 0; }
.ba-trips-nav a { gap: 7px; font-size: 17px; font-weight: 600; }
.ba-trips-nav a[aria-current="page"] { color: var(--ba-trips-link); box-shadow: inset 0 -2px var(--ba-trips-link); }
.ba-trips-tab-count { background: #e9f2f9; color: var(--ba-trips-link); padding: 1px 7px; border-radius: 15px; font-size: 13px; }
.ba-trips-content { padding-top: 19px; min-height: 310px; }
.ba-trip-profile { border: 0; border-radius: 0; padding: 0; margin: 0 0 14px; }
.ba-trip-profile { min-height: 40px; }
.ba-trip-profile .ba-profile-actions { margin: 0; }
.ba-trip-profile .uk-button { min-height: 40px; line-height: 1.2; padding: 8px 14px; font-size: 14px; }
.ba-trips-empty { margin: 14px 0; padding: clamp(20px, 5vw, 38px); background: #f0f6fb; }
.ba-trips-empty > span { color: var(--ba-trips-link); }
.ba-trips-empty h2 { margin: 13px 0 7px; }
.ba-trips-empty p { color: var(--ba-trips-muted); }
.ba-trips-section { padding: 16px 0 20px; margin: 0; border-top: 1px solid var(--ba-trips-line); }
.ba-trips-section:first-child { border-top: 0; padding-top: 4px; }
.ba-trips-section > .ba-trips-muted { margin: 8px 0 0; }
.ba-trip-row { padding: 14px; }
.ba-trip-title { font-size: 19px; line-height: 1.25; }
.ba-trip-details, .ba-trip-facts { color: var(--ba-trips-muted); }
.ba-trips-actions { padding-top: 12px; padding-bottom: 12px; }
.ba-trips-status {
    position: fixed;
    z-index: 1000;
    max-width: min(400px, calc(100vw - 96px));
    left: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    padding: 10px 14px;
    margin: 0;
    background: #fff;
    border: 1px solid var(--ba-trips-line);
    border-radius: var(--ba-radius);
    box-shadow: 0 5px 16px #000a1620;
}
.ba-trips-contact-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px 18px; max-width: 700px; margin: 20px 0 0; }
.ba-trips-contact-form label { display: grid; gap: 6px; font-size: 15px; }
.ba-trips-contact-message { grid-column: 1 / -1; }
.ba-trips-contact-message textarea { resize: vertical; }
.ba-trips-contact-form input:not([type="checkbox"]), .ba-trips-contact-form select { min-height: 44px; }
.ba-trips-contact-form .ba-trips-consent { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 9px; color: var(--ba-trips-muted); }
.ba-trips-consent input { flex: none; margin-top: 4px; }
.ba-trips-contact-submit { grid-column: 1 / -1; }
.ba-trips-contact-submit p { margin: 8px 0 0; }
.ba-trips [data-trip-pane="contacts"] > p { margin-top: 8px; }

@media (max-width: 639px) {
    .ba-trips { margin-inline: 14px; padding-top: 10px; }
    .ba-trips-top { flex-direction: column; align-items: flex-start; gap: 3px; padding-bottom: 11px; }
    .ba-trips-top h1 { margin-bottom: 8px; }
    .ba-trips-nav a { font-size: 16px; }
    .ba-trips-content { padding-top: 12px; }
    .ba-trips-contact-form { grid-template-columns: 1fr; }
    .ba-trips-actions { position: static; padding-right: 0; }
}

#tm-main .ba-trips {
    font-family: "TTCommons", system-ui, sans-serif;
}

#tm-main .ba-trips :is(h1, h2, a, button, .ba-trip-price) {
    font-family: inherit;
}

#tm-main .ba-trips .ba-trips-nav a,
#tm-main .ba-trips .ba-trips-nav a:hover { text-decoration: none; }

#tm-main .ba-trip-profile .uk-button {
    border-color: var(--ba-trips-line);
    color: var(--ba-trips-link);
}

#tm-main .ba-trips-actions {
    position: static;
    border-top: 0;
    border-bottom: 1px solid var(--ba-trips-line);
    padding: 7px 0 12px;
}

body:has(.ba-trips) #ai-sales-helper-greeting { display: none !important; }

.tm-header .uk-navbar:has(.ba-trip-header) > :is(.uk-navbar-left, .uk-navbar-right) {
    flex-wrap: nowrap;
}

.tm-header .uk-navbar:has(.ba-trip-header) > .uk-navbar-left {
    min-width: 0;
    gap: clamp(12px, 1.6vw, 24px);
}

.tm-header .uk-navbar:has(.ba-trip-header) > .uk-navbar-right {
    flex-shrink: 0;
    margin-inline-start: clamp(8px, 1.3vw, 20px);
    gap: clamp(8px, 1.15vw, 18px);
}

.tm-header .uk-navbar:has(.ba-trip-header) .uk-navbar-nav {
    gap: clamp(12px, 1.4vw, 24px);
}

.ba-trip-header-favorites { position: relative; }

.ba-trip-header-count {
    position: absolute;
    top: 4px;
    inset-inline-end: 0;
    min-width: 16px;
    padding: 0 3px;
    line-height: 16px;
}

@media (min-width: 960px) and (max-width: 1199px) {
    .tm-header .uk-navbar:has(.ba-trip-header) .uk-logo img {
        width: clamp(134px, 14.6vw, 174px);
        height: auto;
    }
}

.tm-header-mobile .uk-navbar:has(.ba-trip-header) > .uk-navbar-right {
    flex-wrap: nowrap;
    flex-shrink: 0;
    margin-inline-start: 8px;
    gap: clamp(3px, 1.4vw, 10px);
}

.tm-header-mobile .uk-navbar:has(.ba-trip-header) > .uk-navbar-left {
    min-width: 0;
}

@media (max-width: 360px) {
    .tm-header-mobile .ba-trip-header-link { min-width: 40px; }
}
