/* Tokens compartidos con dashboard.css (panel proveedor + mi cuenta) */
:root {
    --cts-brand:         #047857;
    --cts-brand-hover:   #059669;
    --cts-brand-dark:    #065f46;
    --cts-brand-light:   #d1fae5;
    --cts-brand-mid:     #6ee7b7;
    --cts-brand-border:  #a7f3d0;
    --cts-font-body:     'Montserrat', system-ui, sans-serif;
    --cts-font-head:     'Montserrat', system-ui, sans-serif;
    --cts-slate-50:      #f8fafc;
    --cts-slate-200:     #e2e8f0;
    --cts-slate-600:     #475569;
    --cts-slate-800:     #1e293b;
    --cts-slate-900:     #0f172a;
    --cts-radius:        12px;
    --cts-radius-lg:     16px;

    --tbk-brand:         var(--cts-brand);
    --tbk-brand-dark:    var(--cts-brand-dark);
    --tbk-brand-light:   var(--cts-brand-light);
    --tbk-brand-mid:     var(--cts-brand-mid);
    --tbk-brand-border:  var(--cts-brand-border);
    --tbk-danger:        #dc2626;
    --tbk-warn:          #d97706;
    --tbk-info:          #2563eb;
}

/* ====== Base ====== */
.tbk-alert {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 14px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;

    max-width: 820px;
    margin: 40px auto;
}
.tbk-alert--error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.tbk-alert--warn  { background: #fffbeb; border-color: #fcd34d; color: #92400e; }

.tbk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #fff;
    color: #0f172a;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s ease;
}
.tbk-btn--primary { background: var(--tbk-brand); color: #fff; }
.tbk-btn--primary:hover { background: var(--tbk-brand-dark); }
.tbk-btn--ghost { background: #fff; color: #475569; border-color: #e2e8f0; }
.tbk-btn--ghost:hover { background: #f8fafc; }
.tbk-btn--danger { background: var(--tbk-danger); color: #fff; }
.tbk-btn--danger:hover { background: #991b1b; }
.tbk-btn--success { background: #16a34a; color: #fff; }
.tbk-btn--success:hover { background: #15803d; }
.tbk-btn--sm { padding: 6px 12px; font-size: 13px; }
.tbk-btn--block { width: 100%; }

.req { color: var(--tbk-danger); }

/* ====== Booking form ====== */
.tbk-booking-form {
    background: #fff;
    border: 1px solid var(--tbk-brand-border);
    border-radius: var(--cts-radius-lg);
    padding: 20px;
    font-family: var(--cts-font-body);
}
.tbk-bf__head h3 {
    margin: 0 0 16px;
    font-family: var(--cts-font-head);
    font-size: 22px;
    color: var(--tbk-brand-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}
.tbk-bf__price {
    display: flex;
    gap: 16px;
    padding: 12px 14px;
    background: var(--tbk-brand-light);
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--tbk-brand-dark);
}
.tbk-bf__label { opacity: .8; }
.tbk-bf__field { margin-bottom: 12px; }
.tbk-bf__field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 6px;
}
.tbk-bf__field input,
.tbk-bf__field select,
.tbk-bf__field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    transition: border-color .15s;
    box-sizing: border-box;
}
.tbk-bf__field input:focus,
.tbk-bf__field select:focus,
.tbk-bf__field textarea:focus {
    outline: none;
    border-color: var(--tbk-brand);
    box-shadow: 0 0 0 3px var(--tbk-brand-light);
}
.tbk-bf__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.tbk-bf__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 10px;
    margin: 14px 0;
    font-size: 15px;
}
.tbk-bf__total strong {
    font-size: 22px;
    color: var(--tbk-brand);
    font-family: 'Montserrat', sans-serif;
}
.tbk-bf__disclaimer {
    font-size: 12px;
    color: #64748b;
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 8px;
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.tbk-bf__disclaimer i { color: var(--tbk-brand); margin-top: 2px; }
.tbk-bf__success {
    text-align: center;
    padding: 30px 20px;
    background: var(--tbk-brand-light);
    border-radius: 12px;
}
.tbk-bf__success i {
    font-size: 48px;
    color: var(--tbk-brand);
    margin-bottom: 12px;
}
.tbk-bf__success h4 {
    margin: 0 0 6px;
    font-family: 'Montserrat', sans-serif;
    color: var(--tbk-brand-dark);
    font-size: 20px;
}
.tbk-err {
    color: var(--tbk-danger);
    font-size: 12px;
    margin-top: 4px;
    min-height: 14px;
}

/* ====== Panel (provider / tourist) ====== */
.tbk-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    overflow: hidden;
    font-family: 'DM Sans', system-ui, sans-serif;
}
.tbk-panel__head {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}
.tbk-panel__head h2 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--tbk-brand-dark);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tbk-panel__body { padding: 14px 16px; }

/* Tabs */
.tbk-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 18px;
}
.tbk-tab {
    position: relative;
    padding: 10px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #64748b;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color .15s;
}
.tbk-tab:hover { color: var(--tbk-brand); }
.tbk-tab.is-active { color: var(--tbk-brand-dark); border-bottom-color: var(--tbk-brand); }
.tbk-tab__badge {
    background: var(--tbk-danger);
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 600;
}
.tbk-tab-pane { display: none; }
.tbk-tab-pane.is-active { display: block; }

/* Filters */
.tbk-filters {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.tbk-filters__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tbk-chip {
    background: #f1f5f9;
    border: 1px solid transparent;
    color: #475569;
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}
.tbk-chip:hover { background: #e2e8f0; }
.tbk-chip.is-active { background: var(--tbk-brand); color: #fff; }
.tbk-filters__search {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 320px;
}
.tbk-filters__search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
}
.tbk-filters__search input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}
.tbk-filters__search input:focus { border-color: var(--tbk-brand); }

/* Bookings list */
.tbk-loading, .tbk-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 14px;
}
.tbk-empty i { font-size: 42px; margin-bottom: 10px; display: block; color: #cbd5e1; }

.tbk-booking-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: border-color .15s;
    align-items: center;
}
.tbk-booking-card:hover { border-color: var(--tbk-brand-mid); }
.tbk-booking-card__main h4 {
    margin: 0 0 3px;
    font-size: 13px;
    color: #0f172a;
    font-weight: 600;
}
.tbk-booking-card__meta {
    font-size: 11px;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tbk-booking-card__meta span { display: inline-flex; align-items: center; gap: 3px; }
.tbk-booking-card__actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Badges */
.tbk-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.tbk-badge--green  { background: #dcfce7; color: #166534; }
.tbk-badge--blue   { background: #dbeafe; color: #1e40af; }
.tbk-badge--amber  { background: #fef3c7; color: #92400e; }
.tbk-badge--red    { background: #fee2e2; color: #991b1b; }
.tbk-badge--slate  { background: #f1f5f9; color: #475569; }
.tbk-badge--purple { background: #ede9fe; color: #6b21a8; }

/* Modal */
.tbk-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.tbk-modal.is-open { display: flex; }
.tbk-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.55);
    backdrop-filter: blur(3px);
}
.tbk-modal__content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 620px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 24px 48px rgba(0,0,0,.18);
    padding: 24px;
    animation: tbkPop .2s ease;
}
@keyframes tbkPop {
    from { opacity: 0; transform: scale(.95); }
    to   { opacity: 1; transform: scale(1); }
}
.tbk-modal__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 10px;
}
.tbk-modal__head h3 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--tbk-brand-dark);
}
.tbk-modal__close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    color: #64748b;
}
.tbk-modal__close:hover { background: #fee2e2; color: #dc2626; }
.tbk-modal__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 13px;
    margin-bottom: 16px;
}
.tbk-modal__field small {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 2px;
}
.tbk-modal__field strong { color: #0f172a; }
.tbk-modal__notes {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #334155;
    margin-bottom: 16px;
}
.tbk-modal__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}
.tbk-modal__actions textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    margin-bottom: 8px;
    resize: vertical;
    box-sizing: border-box;
}

/* Inbox layout */
.tbk-inbox {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
    min-height: 500px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}
.tbk-inbox__list {
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    max-height: 600px;
    background: #f8fafc;
}
.tbk-inbox__item {
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background .15s;
    position: relative;
}
.tbk-inbox__item:hover { background: #fff; }
.tbk-inbox__item.is-active { background: #fff; }
.tbk-inbox__item:not(.tbk-inbox__item--support).is-active { border-left: 3px solid var(--tbk-brand); }
.tbk-inbox__item-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 2px;
    display: flex;
    justify-content: space-between;
    gap: 6px;
}
.tbk-inbox__item-sub {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 2px;
}
.tbk-inbox__item-preview {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tbk-inbox__unread {
    background: var(--tbk-danger);
    color: #fff;
    font-size: 10px;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 700;
}

.tbk-inbox__chat {
    display: flex;
    flex-direction: column;
    background: #fff;
    height: 600px;
    max-height: 600px;
    overflow: hidden;
}
/* Full-height variant used in standalone messenger */
.tbk-inbox__chat--full {
    height: 100%;
    max-height: 100%;
}
.tbk-inbox__empty {
    margin: auto;
    text-align: center;
    color: #cbd5e1;
}
.tbk-inbox__empty i { font-size: 54px; display: block; margin-bottom: 10px; }

.tbk-chat__head {
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tbk-chat__head strong { font-size: 13px; color: #0f172a; }
.tbk-chat__head small { font-size: 11px; color: #64748b; display: block; }
.tbk-chat__body {
    flex: 1;
    min-height: 0;          /* critical for flex children to scroll */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 12px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tbk-msg {
    max-width: 72%;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.35;
    word-wrap: break-word;
}
.tbk-msg--mine {
    align-self: flex-end;
    background: var(--tbk-brand);
    color: #fff;
    border-bottom-right-radius: 3px;
}
.tbk-msg--other {
    align-self: flex-start;
    background: #fff;
    color: #0f172a;
    border-bottom-left-radius: 3px;
    border: 1px solid #e2e8f0;
}
.tbk-msg--system {
    align-self: center;
    background: transparent;
    color: #94a3b8;
    font-size: 10px;
    font-style: italic;
    max-width: 90%;
    text-align: center;
    padding: 2px 6px;
}
.tbk-msg__meta {
    font-size: 9px;
    opacity: .7;
    margin-top: 2px;
    text-align: right;
}
.tbk-chat__composer {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    flex-shrink: 0;
}
.tbk-chat__composer textarea {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 12.5px;
    resize: none;
    min-height: 34px;
    max-height: 110px;
    outline: none;
}
.tbk-chat__composer textarea:focus { border-color: var(--tbk-brand); }

/* Responsive */
@media (max-width: 640px) {
    .tbk-bf__grid { grid-template-columns: 1fr; }
    .tbk-modal__grid { grid-template-columns: 1fr; }
    .tbk-inbox:not(.tbk-messenger__sidebar .tbk-inbox) { grid-template-columns: 1fr; }
    .tbk-booking-card { grid-template-columns: 1fr; }
    .tbk-booking-card__actions { justify-content: flex-start; }
}

/* ==========================================================
   Booking form (v2) — sidebar card, sin Tailwind fallback
   ========================================================== */
.tbk-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 25px -5px rgba(148,163,184,.15), 0 8px 10px -6px rgba(148,163,184,.1);
    font-family: 'DM Sans', system-ui, sans-serif;
}
.tbk-card--flat { padding: 20px; box-shadow: none; }

.tbk-card__title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tbk-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.tbk-muted-xs { font-size: 12px; color: #94a3b8; }
.tbk-muted-sm { font-size: 14px; color: #94a3b8; }

.tbk-price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 30px;
    color: #0f172a;
    line-height: 1;
    margin-top: 2px;
}

/* Sección (label + contenido) */
.tbk-section { margin-bottom: 18px; }
.tbk-section__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .025em;
    color: #94a3b8;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tbk-section__label i { color: var(--tbk-brand); }

/* Calendario inline (Flatpickr) */
.tbk-cal-wrap {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px;
    background: #fff;
    overflow: hidden;
}
.tbk-cal-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 13px;
}
#tbk-cal-inline { width: 100%; }

/* Flatpickr redondeado, look amable */
.tbk-cal-wrap .flatpickr-calendar,
.tbk-cal-wrap .flatpickr-calendar.inline {
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    width: 100% !important;
    max-width: 100% !important;
}
.tbk-cal-wrap .flatpickr-day {
    border-radius: 50% !important;
    margin: 2px !important;
    height: 36px !important;
    line-height: 36px !important;
    max-width: 36px !important;
    font-size: 13px;
    color: #334155;
    transition: all .15s;
    border: 1px solid transparent !important;
}
.tbk-cal-wrap .flatpickr-day:hover:not(.flatpickr-disabled) {
    background: var(--tbk-brand-light) !important;
    color: var(--tbk-brand-dark) !important;
    border-color: var(--tbk-brand-mid) !important;
}
.tbk-cal-wrap .flatpickr-day.selected,
.tbk-cal-wrap .flatpickr-day.selected:hover {
    background: var(--tbk-brand) !important;
    color: #fff !important;
    border-color: var(--tbk-brand) !important;
}
.tbk-cal-wrap .flatpickr-day.flatpickr-disabled {
    color: #cbd5e1 !important;
    background: transparent !important;
    border-color: transparent !important;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: .5;
}
.tbk-cal-wrap .flatpickr-day.today {
    border-color: var(--tbk-brand) !important;
    color: var(--tbk-brand-dark);
    font-weight: 700;
}
.tbk-cal-wrap .flatpickr-day.tbk-full {
    background: #fee2e2 !important;
    color: #991b1b !important;
    cursor: not-allowed !important;
    text-decoration: line-through;
}
.tbk-cal-wrap .flatpickr-weekday {
    color: #94a3b8;
    font-weight: 600;
    font-size: 11px;
}
.tbk-cal-wrap .flatpickr-month {
    padding-top: 6px;
    color: #1e293b;
}
.tbk-cal-wrap .flatpickr-current-month .cur-month,
.tbk-cal-wrap .flatpickr-current-month .cur-year {
    font-weight: 700;
    color: #1e293b;
}
.tbk-cal-wrap .flatpickr-prev-month,
.tbk-cal-wrap .flatpickr-next-month {
    color: #64748b;
}
.tbk-cal-wrap .flatpickr-prev-month:hover,
.tbk-cal-wrap .flatpickr-next-month:hover {
    color: var(--tbk-brand) !important;
}

/* Info de la fecha seleccionada */
.tbk-date-info {
    margin-top: 10px;
    padding: 10px 12px;
    background: var(--tbk-brand-light);
    border-radius: 10px;
    font-size: 13px;
    color: var(--tbk-brand-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.tbk-date-info.is-full {
    background: #fee2e2;
    color: #991b1b;
}
.tbk-date-info strong { font-weight: 700; }

/* Personas */
.tbk-people__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}
.tbk-people__row + .tbk-people__row { margin-top: 6px; }
.tbk-people__title { font-size: 14px; font-weight: 500; color: #1e293b; }
.tbk-people__sub   { font-size: 12px; color: #94a3b8; margin-top: 1px; }
.tbk-counter {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tbk-counter__val {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    min-width: 20px;
    text-align: center;
}
.tbk-counter-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    transition: all .15s;
    padding: 0;
    font-family: inherit;
    font-size: 11px;
}
.tbk-counter-btn:hover:not(:disabled) {
    background: var(--tbk-brand-light);
    border-color: var(--tbk-brand);
    color: var(--tbk-brand-dark);
}
.tbk-counter-btn:disabled { opacity: .4; cursor: not-allowed; }

/* Input teléfono */
.tbk-input-flat {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color .15s;
}
.tbk-input-flat:focus {
    border-color: var(--tbk-brand);
    box-shadow: 0 0 0 3px var(--tbk-brand-light);
}

/* Total */
.tbk-total-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
}
.tbk-total__line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #475569;
    padding: 2px 0;
}
.tbk-total__line + .tbk-total__line { margin-top: 4px; }
.tbk-total__grand {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px solid #e2e8f0;
    font-weight: 700;
    color: #0f172a;
    font-size: 15px;
}

/* Botón reservar */
.tbk-reserve-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tbk-brand);
    color: #fff;
    font-weight: 700;
    padding: 16px;
    border-radius: 12px;
    transition: background .15s, transform .12s;
    font-size: 14px;
    box-shadow: 0 10px 15px -3px rgba(4,120,87,.25), 0 4px 6px -4px rgba(4,120,87,.2);
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}
.tbk-reserve-btn:hover  { background: var(--tbk-brand-dark); color: #fff; }
.tbk-reserve-btn:active { transform: scale(0.99); }
.tbk-reserve-btn:disabled { opacity: .65; cursor: not-allowed; }
.tbk-reserve-btn.mr-2   { margin-right: 8px; }
.tbk-reserve-btn i.mr-2 { margin-right: 8px; }

.tbk-disclaimer {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin: 12px 0 0;
}

/* Trust signals */
.tbk-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}
.tbk-trust > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.tbk-trust i { font-size: 16px; color: var(--tbk-brand); }
.tbk-trust span { font-size: 11px; color: #64748b; line-height: 1.25; }

/* Gate (no logueado) */
.tbk-gate {
    text-align: center;
    padding: 30px 20px;
    background: #f8fafc;
    border-radius: 12px;
}
.tbk-gate__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--tbk-brand-light);
    color: var(--tbk-brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
}
.tbk-gate h4 {
    margin: 0 0 6px;
    font-family: 'Montserrat', sans-serif;
    color: #0f172a;
    font-size: 19px;
}
.tbk-gate p {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px;
}
.tbk-gate .tbk-reserve-btn { width: auto; padding: 12px 24px; display: inline-flex; }

/* Próximas salidas */
.tbk-next-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 10px;
}
.tbk-next-item:last-child { border-bottom: none; }
.tbk-next-item.is-full { opacity: .55; }
.tbk-next-item__date {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}
.tbk-next-item__meta {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tbk-next-item__meta i { font-size: 11px; }
.tbk-spots.is-low { color: #d97706; font-weight: 600; }
.tbk-spots.is-full { color: #dc2626; font-weight: 600; }

.tbk-quick-select {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--tbk-brand-border);
    background: var(--tbk-brand-light);
    color: var(--tbk-brand);
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}
.tbk-quick-select:hover:not(:disabled) {
    background: var(--tbk-brand-mid);
    color: var(--tbk-brand-dark);
}
.tbk-quick-select:disabled {
    opacity: .4;
    cursor: not-allowed;
    background: #f1f5f9;
    color: #94a3b8;
    border-color: transparent;
}

/* Ask-guide button */
.tbk-ask-btn {
    width: 100%;
    border: 1px solid var(--tbk-brand-border);
    background: var(--tbk-brand-light);
    color: var(--tbk-brand);
    font-weight: 500;
    padding: 10px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}
.tbk-ask-btn:hover { filter: brightness(0.96); }

/* Success */
.tbk-success {
    margin-top: 20px;
    text-align: center;
    padding: 28px 20px;
    background: var(--tbk-brand-light);
    border-radius: 12px;
}
.tbk-success i {
    font-size: 48px;
    color: var(--tbk-brand);
    margin-bottom: 12px;
    display: block;
}
.tbk-success h4 {
    margin: 0 0 6px;
    font-family: 'Montserrat', sans-serif;
    color: var(--tbk-brand-dark);
    font-size: 20px;
}
.tbk-success p { font-size: 13px; color: #64748b; margin: 0; }

.mr-2 { margin-right: 8px; }

/* ==========================================================
   Mi cuenta — account dashboard (sidebar layout)
   ========================================================== */
.tbk-account {
    display: grid;
    grid-template-columns: 248px 1fr;
    gap: 14px;
    padding: 16px 14px 24px;
    min-height: 100vh;
    background: var(--cts-slate-50);
    font-family: var(--cts-font-body);
    font-size: 14px;
    line-height: 1.5;
    color: var(--cts-slate-800);
}
.tbk-account__sidebar {
    background: #fff;
    border: 1px solid var(--cts-slate-200);
    border-radius: 14px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 16px;
    height: calc(100vh - 32px);
    overflow-y: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.tbk-account__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--cts-font-head);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cts-slate-900);
    padding: 6px 8px 14px;
    border-bottom: 1px solid var(--cts-slate-50);
}
.tbk-account__brand i { color: var(--tbk-brand); font-size: 20px; }

.tbk-account__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.tbk-account__nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    text-align: left;
    transition: all .15s;
}
.tbk-account__nav-item i {
    width: 18px;
    color: #94a3b8;
}
.tbk-account__nav-item span:not(.tbk-account__badge) { flex: 1; }
.tbk-account__nav-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.tbk-account__nav-item:hover i { color: var(--tbk-brand); }
.tbk-account__nav-item.is-active {
    background: var(--tbk-brand-light);
    color: var(--tbk-brand-dark);
    font-weight: 600;
}
.tbk-account__nav-item.is-active i { color: var(--tbk-brand); }
.tbk-account__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.tbk-account__user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
}
.tbk-account__avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}
.tbk-account__user-meta { flex: 1; min-width: 0; }
.tbk-account__user-meta strong {
    display: block;
    font-size: 13px;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tbk-account__user-meta small {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.tbk-account__logout {
    color: #64748b;
    padding: 6px 8px;
    border-radius: 8px;
    transition: all .15s;
    text-decoration: none;
}
.tbk-account__logout:hover {
    background: #fee2e2;
    color: #dc2626;
}

.tbk-account__main {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    overflow-x: hidden;
    box-shadow: none;
    min-height: calc(100vh - 32px);
}
.tbk-account__topbar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 18px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.tbk-account__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}
.tbk-account__sub {
    margin: 0;
    color: #64748b;
    font-size: 0.75rem;
}

.tbk-acc-view { display: none; }
.tbk-acc-view.is-active { display: block; }

/* Panel mensajes — todo el alto */
.tbk-panel--messages .tbk-panel__body { padding: 0; }
.tbk-panel--messages .tbk-inbox {
    border: none;
    border-radius: 0;
    min-height: 500px;
}

/* Profile card */
.tbk-profile-card {
    max-width: 640px;
}
.tbk-profile-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}
.tbk-profile-card__avatar {
    border-radius: 50%;
}
.tbk-profile-card__header h3 {
    margin: 0 0 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    color: #0f172a;
}
.tbk-profile-card__header small {
    color: #94a3b8;
    font-size: 13px;
}
.tbk-profile-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}
.tbk-profile-card__field {
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 10px;
}
.tbk-profile-card__field small {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 4px;
}
.tbk-profile-card__field strong {
    color: #0f172a;
    font-size: 14px;
}
.tbk-profile-card__hint {
    color: #64748b;
    font-size: 13px;
    margin: 0;
}
.tbk-profile-card__hint a { color: var(--tbk-brand); }

@media (max-width: 900px) {
    .tbk-account {
        grid-template-columns: 1fr;
        padding: 12px 0 0;
        gap: 12px;
    }
    .tbk-account__sidebar {
        position: static;
        height: auto;
        border-radius: 0 0 16px 0;
        padding: 10px 12px 12px;
        gap: 8px;
    }
    .tbk-account__brand {
        padding: 4px 8px 10px;
    }
    .tbk-account__nav {
        flex: 0 0 auto;
        flex-direction: row;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 6px;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .tbk-account__nav::-webkit-scrollbar {
        display: none;
    }
    .tbk-account__nav-item {
        flex: 0 0 auto;
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 0.82rem;
        white-space: nowrap;
        gap: 8px;
    }
    .tbk-account__nav-link {
        width: auto;
        flex: 0 0 auto;
    }
    .tbk-account__user { display: none; }
    .tbk-account__main {
        padding: 16px 14px 28px;
        border-radius: 16px 0 0 16px;
    }
    .tbk-profile-card__grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   Profile form (mi-cuenta)
   ========================================================== */
.tbk-profile-form { max-width: 720px; }

.tbk-avatar-upload {
    position: relative;
    width: 88px;
    height: 88px;
    flex-shrink: 0;
}
.tbk-avatar-upload__img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--tbk-brand-light);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transition: opacity .2s;
}
.tbk-avatar-upload__btn {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--tbk-brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    transition: all .15s;
    border: 2px solid #fff;
}
.tbk-avatar-upload__btn:hover {
    background: var(--tbk-brand-dark);
    transform: scale(1.05);
}

.tbk-profile-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 18px;
}
.tbk-profile-form__field { display: flex; flex-direction: column; }
.tbk-profile-form__field label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.tbk-profile-form__field input {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    outline: none;
    transition: border-color .15s;
    box-sizing: border-box;
}
.tbk-profile-form__field input:focus {
    border-color: var(--tbk-brand);
    box-shadow: 0 0 0 3px var(--tbk-brand-light);
}
.tbk-profile-form__field input:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}
.tbk-profile-form__field.has-error input { border-color: #dc2626; }
.tbk-profile-form__field .tbk-err {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
}

.tbk-profile-form__divider {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}
.tbk-profile-form__divider span {
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
}
.tbk-profile-form__divider small { color: #94a3b8; font-size: 12px; }

.tbk-profile-form__actions {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.tbk-profile-form__status {
    font-size: 13px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .2s;
}
.tbk-profile-form__status.is-ok   { color: #047857; }
.tbk-profile-form__status.is-ok::before { content: "✓"; font-weight: 700; }
.tbk-profile-form__status.is-error{ color: #dc2626; }

/* Panel single (sin tabs internos) */
.tbk-panel--single { background: transparent; box-shadow: none; border-radius: 0; }
.tbk-panel--single .tbk-panel__body { padding: 0; }
.tbk-panel__body--flush { padding: 0 !important; }

@media (max-width: 640px) {
    .tbk-profile-form__grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   Review stars (dentro del modal de booking)
   ========================================================== */
.tbk-review {
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #fefce8 0%, #fff7ed 100%);
    border: 1px solid #fde68a;
    border-radius: 12px;
}
.tbk-review__title {
    margin: 0 0 4px;
    font-size: 15px;
    color: #713f12;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
}
.tbk-review__title i { color: #f59e0b; }
.tbk-review__meta {
    display: block;
    color: #78716c;
    font-size: 12px;
    margin-bottom: 10px;
}
.tbk-review__stars {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}
.tbk-star {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #e5e7eb;
    padding: 2px;
    transition: all .1s;
    line-height: 1;
}
.tbk-star:hover { transform: scale(1.15); }
.tbk-star.is-on, .tbk-star.is-hover {
    color: #f59e0b;
}
.tbk-review__body {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
    resize: vertical;
    box-sizing: border-box;
    outline: none;
    margin-bottom: 10px;
}
.tbk-review__body:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}
.tbk-review__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tbk-review__status { font-size: 12px; font-weight: 600; }
.tbk-review__status.is-ok    { color: #047857; }
.tbk-review__status.is-error { color: #dc2626; }
.tbk-review__loading { color: #a8a29e; font-size: 13px; padding: 8px 0; }

/* ==========================================================
   Time slot chips (multi-tour-per-day)
   ========================================================== */
.tbk-times-wrap {
    margin-top: 10px;
    padding: 10px 12px;
    background: var(--tbk-brand-light);
    border: 1px solid var(--tbk-brand-border);
    border-radius: 10px;
}
.tbk-times-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--tbk-brand-dark);
    margin-bottom: 8px;
}
.tbk-times-label i { margin-right: 4px; }
.tbk-times-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tbk-time-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border: 1.5px solid var(--tbk-brand-border);
    background: #fff;
    color: var(--tbk-brand-dark);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}
.tbk-time-chip:hover:not(.is-full):not(.is-selected) {
    background: #fff;
    border-color: var(--tbk-brand);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(4,120,87,.12);
}
.tbk-time-chip.is-selected {
    background: var(--tbk-brand);
    color: #fff;
    border-color: var(--tbk-brand);
}
.tbk-time-chip.is-full {
    opacity: .5;
    cursor: not-allowed;
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    text-decoration: line-through;
}

/* ==========================================================
   Tour action buttons state
   ========================================================== */
[data-tour-action="favorite"].is-favorite i {
    color: #dc2626 !important;
}
[data-tour-action="favorite"].is-favorite {
    background: #fef2f2;
    border-color: #fecaca !important;
}

/* ==========================================================
   Generic tour-actions modal (share / report)
   ========================================================== */
.tbk-tour-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.tbk-tour-modal.is-open { display: flex; }
.tbk-tour-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.55);
    backdrop-filter: blur(3px);
}
.tbk-tour-modal__content {
    position: relative;
    background: #fff;
    border-radius: 14px;
    max-width: 460px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,.2);
    animation: tbkPop .2s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes tbkPop {
    from { opacity: 0; transform: scale(.94) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.tbk-tour-modal__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
}
.tbk-tour-modal__head h3 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tbk-tour-modal__head h3 i { color: var(--tbk-brand); }
.tbk-tour-modal__x {
    background: #f1f5f9;
    border: none;
    width: 30px; height: 30px;
    border-radius: 8px;
    cursor: pointer;
    color: #64748b;
    display: flex; align-items: center; justify-content: center;
}
.tbk-tour-modal__x:hover { background: #fee2e2; color: #dc2626; }
.tbk-tour-modal__body {
    padding: 18px;
}
.tbk-tour-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

/* Share grid */
.tbk-share-title {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 14px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
}
.tbk-share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}
.tbk-share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    text-decoration: none;
    color: #334155 !important;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    transition: all .15s;
    font-size: 12px;
    font-weight: 600;
}
.tbk-share-item:hover {
    border-color: var(--c, var(--tbk-brand));
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,.06);
}
.tbk-share-item__ic {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--c, var(--tbk-brand));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.tbk-share-copy {
    display: flex;
    gap: 6px;
    align-items: stretch;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}
.tbk-share-copy input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    background: #f8fafc;
    color: #475569;
    outline: none;
    font-family: monospace;
}

/* Report form rows */
.tbk-form-row {
    margin-bottom: 12px;
}
.tbk-form-row label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 4px;
}
.tbk-form-row input,
.tbk-form-row select,
.tbk-form-row textarea {
    width: 100%;
    padding: 8px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    background: #fff;
    box-sizing: border-box;
    resize: vertical;
}
.tbk-form-row input:focus,
.tbk-form-row select:focus,
.tbk-form-row textarea:focus {
    border-color: var(--tbk-brand);
    box-shadow: 0 0 0 3px var(--tbk-brand-light);
}
.tbk-report-sub {
    font-size: 13px;
    color: #475569;
    margin: 0 0 16px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
}
.tbk-report-sub small { color: #94a3b8; font-size: 11px; }
.tbk-form-status {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}
.tbk-form-status.is-error { color: #dc2626; }

/* Toast */
.tbk-toast-global {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #0f172a;
    color: #fff;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: all .25s;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.tbk-toast-global.is-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================
   Favoritos — tarjetas en Mi cuenta
   ========================================================== */
.tbk-favs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.tbk-fav-card {
    display: block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    transition: all .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.tbk-fav-card:hover {
    border-color: var(--tbk-brand-mid);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
.tbk-fav-card__thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
}
.tbk-fav-card__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.tbk-fav-card__noimg {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #cbd5e1;
    font-size: 32px;
}
.tbk-fav-card__heart {
    position: absolute;
    top: 8px; right: 8px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    border: none;
    cursor: pointer;
    color: #dc2626;
    font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    transition: all .15s;
}
.tbk-fav-card__heart:hover { background: #fee2e2; transform: scale(1.1); }
.tbk-fav-card__body {
    padding: 12px;
}
.tbk-fav-card__body h4 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tbk-fav-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 6px;
}
.tbk-fav-card__meta span { display: inline-flex; align-items: center; gap: 3px; }
.tbk-fav-card__price {
    font-size: 13px;
    font-weight: 700;
    color: var(--tbk-brand-dark);
    margin-top: 4px;
}

/* ==========================================================
   Support / system messages (estilo neutro, sin resaltado verde)
   ========================================================== */
.tbk-inbox__item-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.tbk-inbox__item-body {
    flex: 1;
    min-width: 0;
}
.tbk-inbox__item-avatar {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--tbk-brand-light);
    color: var(--tbk-brand-dark);
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tbk-inbox__item-avatar--support {
    background: #e2e8f0;
    color: #475569;
    font-size: 16px;
    border-radius: 12px;
}
.tbk-inbox__item--support {
    border-left: none;
    background: #fff;
}
.tbk-inbox__item--support:hover,
.tbk-inbox__item--support.is-active {
    background: #f8fafc;
}
.tbk-inbox__item--support.is-active {
    box-shadow: inset 3px 0 0 #64748b;
}
.tbk-inbox__item--support .tbk-inbox__item-title span {
    color: #334155;
    font-weight: 600;
}
.tbk-inbox__item:not(.tbk-inbox__item--support).is-active {
    border-left: 3px solid var(--tbk-brand);
}

.tbk-chat__head-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.tbk-chat__back {
    display: none;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background .15s, border-color .15s;
}
.tbk-chat__back:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.tbk-chat__head--support {
    background: #f8fafc;
    border-bottom-color: #e2e8f0;
}
.tbk-chat__head--support strong {
    color: #334155;
}
.tbk-chat__head--support small {
    color: #64748b;
}

.tbk-msg--support {
    align-self: stretch;
    max-width: 100%;
    padding: 0;
    background: transparent;
}
.tbk-msg__support-card {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.tbk-msg__support-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.tbk-msg__support-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #e2e8f0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.tbk-msg__support-name {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}
.tbk-msg__support-subject {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}
.tbk-msg--support .tbk-msg__bubble {
    background: #fff;
    color: #334155;
    border: 1px solid #e2e8f0;
    max-width: 100%;
    margin: 0;
}
.tbk-msg--support .tbk-msg__tourlink {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
}
.tbk-msg--support .tbk-msg__meta {
    text-align: left;
    opacity: 1;
    color: #94a3b8;
    margin-top: 8px;
}

.tbk-chat__composer--disabled {
    padding: 12px 16px;
    background: #f8fafc;
    text-align: center;
}
.tbk-chat__composer-note {
    color: #64748b;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* System message "card" — appears both in support view and inside regular booking chats */
.tbk-msg--system-card {
    align-self: stretch;
    max-width: 100%;
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--tbk-brand-border);
    border-left: 3px solid var(--tbk-brand);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.tbk-msg__sys-avatar {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--tbk-brand-light);
    color: var(--tbk-brand);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
}
.tbk-msg__sys-body { flex: 1; min-width: 0; }
.tbk-msg__subject {
    font-size: 11px;
    font-weight: 700;
    color: var(--tbk-brand-dark);
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 4px;
}
.tbk-msg__sys-text {
    font-size: 12.5px;
    color: #334155;
    line-height: 1.45;
}
.tbk-msg__tourlink {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 11px;
    color: var(--tbk-brand-dark);
    text-decoration: none;
    padding: 3px 8px;
    background: var(--tbk-brand-light);
    border-radius: 999px;
}
.tbk-msg__tourlink:hover { text-decoration: underline; }

/* ==========================================================
   Review photos (modal + public listing)
   ========================================================== */
.tbk-review__photos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 4px;
}
.tbk-review__photos-hint {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    margin-bottom: 10px;
}
.tbk-review-photo {
    position: relative;
    width: 68px; height: 68px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}
.tbk-review-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.tbk-review-photo__rm {
    position: absolute;
    top: 2px; right: 2px;
    background: rgba(15,23,42,.75);
    color: #fff;
    border: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    font-size: 10px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.tbk-review-photo__rm:hover { background: #dc2626; }
.tbk-review-photo__spinner {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tbk-brand);
    font-size: 16px;
}
.tbk-review-photo.is-uploading img { opacity: .4; }
.tbk-review-photo--add {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #94a3b8;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    transition: all .15s;
    font-size: 18px;
}
.tbk-review-photo--add:hover {
    border-color: var(--tbk-brand);
    color: var(--tbk-brand);
    background: var(--tbk-brand-light);
}

/* Public listing — gallery thumbs */
.tbk-review-gallery {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.tbk-review-gallery__item {
    display: block;
    width: 72px; height: 72px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: transform .15s;
}
.tbk-review-gallery__item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.tbk-review-gallery__item:hover { transform: scale(1.04); border-color: var(--tbk-brand); }

/* Lightbox */
.tbk-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.tbk-lightbox.is-open { display: flex; }
.tbk-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.88);
}
.tbk-lightbox img {
    position: relative;
    max-width: 96vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.tbk-lightbox__close {
    position: absolute;
    top: 16px; right: 16px;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.95);
    color: #0f172a;
    font-size: 16px;
    cursor: pointer;
    z-index: 2;
}
.tbk-lightbox__close:hover { background: #fff; }

/* ===== Messenger standalone / embedded ===== */
.tbk-messenger {
    font-family: var(--cts-font-body);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.tbk-messenger__layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 14px;
    min-height: clamp(480px, 72vh, 820px);
    background: var(--cts-slate-50);
    border-radius: var(--cts-radius-lg);
    padding: 14px;
    box-sizing: border-box;
}
.tbk-messenger__sidebar {
    background: #fff;
    border: 1px solid var(--cts-slate-200);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}
.tbk-messenger__sidebar-head {
    padding: 16px;
    border-bottom: 1px solid var(--cts-slate-200);
    flex-shrink: 0;
}
.tbk-messenger__sidebar-head h2 {
    margin: 0 0 4px;
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--cts-slate-900);
    display: flex;
    align-items: center;
    gap: 8px;
}
.tbk-messenger__sidebar-head p { margin: 0; font-size: .85rem; color: var(--cts-slate-600); line-height: 1.4; }
.tbk-messenger__role-tabs {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}
.tbk-messenger__role-tab {
    flex: 1;
    border: 1px solid var(--cts-slate-200);
    background: #fff;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--cts-slate-600);
    min-height: 40px;
}
.tbk-messenger__role-tab.is-active {
    background: var(--tbk-brand-light);
    border-color: var(--tbk-brand-border);
    color: var(--tbk-brand-dark);
}
.tbk-messenger__layout--embedded { min-height: 520px; }
.tbk-messenger__sidebar .tbk-inbox {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border: none;
    border-radius: 0;
    grid-template-columns: 1fr;
    min-height: 0;
}
.tbk-messenger__sidebar .tbk-inbox__list {
    flex: 1;
    overflow-y: auto;
    padding: 6px;
    max-height: none;
    border-right: none;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}
.tbk-messenger__sidebar .tbk-inbox__item {
    border-radius: 10px;
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: 4px;
    padding: 10px 12px;
}
.tbk-messenger__sidebar .tbk-inbox__item:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.tbk-messenger__main {
    background: #fff;
    border: 1px solid var(--cts-slate-200);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
}
.tbk-inbox__chat--full {
    flex: 1;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    max-height: none;
}
.tbk-messenger .tbk-chat__body {
    flex: 1;
    min-height: 0;
    max-height: none;
}
.tbk-messenger .tbk-chat__composer textarea {
    font-size: 16px;
    min-height: 42px;
}
.tbk-inbox__empty--large {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--cts-slate-600);
    gap: 10px;
    padding: 40px 20px;
    text-align: center;
}
.tbk-inbox__empty--large i { font-size: 2.5rem; opacity: .35; }
.tbk-inbox__empty--large p { margin: 0; max-width: 280px; line-height: 1.45; }

/* ── Listing contact card (sidebar + mobile) ── */
.tbk-contact-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--cts-slate-200, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    font-family: var(--cts-font, 'Montserrat', system-ui, sans-serif);
    color: var(--cts-slate-800, #1e293b);
    overflow: hidden;
}

.tbk-contact-card *,
.tbk-contact-card *::before,
.tbk-contact-card *::after {
    box-sizing: border-box;
}

.tbk-contact-card__price {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--cts-slate-100, #f1f5f9);
}

.tbk-contact-card__price-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cts-slate-400, #94a3b8);
    margin-bottom: 4px;
}

.tbk-contact-card__price-value {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    line-height: 1.2;
}

.tbk-contact-card__price-amount {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--tbk-brand-dark, #065f46);
    letter-spacing: -0.02em;
}

.tbk-contact-card__price-suffix {
    font-size: 0.875rem;
    color: var(--cts-slate-400, #94a3b8);
    font-weight: 500;
}

.tbk-contact-card__meta {
    list-style: none;
    margin: 0 0 16px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--cts-slate-100, #f1f5f9);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tbk-contact-card__meta li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.35;
}

.tbk-contact-card__meta li > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cts-slate-500, #64748b);
    flex-shrink: 0;
}

.tbk-contact-card__meta li > span i {
    width: 1rem;
    text-align: center;
    color: var(--tbk-brand, #047857);
}

.tbk-contact-card__meta li strong {
    font-weight: 600;
    color: var(--cts-slate-800, #1e293b);
    text-align: right;
}

.tbk-contact-card__intro {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 16px;
    padding: 12px 14px;
    background: var(--cts-slate-50, #f8fafc);
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--cts-slate-600, #475569);
}

.tbk-contact-card__intro i {
    color: var(--tbk-brand, #047857);
    margin-top: 2px;
    flex-shrink: 0;
}

.tbk-contact-card__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.tbk-contact-card__chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.tbk-contact-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.25;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.tbk-contact-card__btn--primary {
    background: var(--tbk-brand, #047857);
    color: #fff;
    border-color: var(--tbk-brand, #047857);
}

.tbk-contact-card__btn--primary:hover {
    opacity: 0.92;
    color: #fff;
}

.tbk-contact-card__btn--wa {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}

.tbk-contact-card__btn--wa:hover {
    opacity: 0.92;
    color: #fff;
}

.tbk-contact-card__btn--email {
    background: #fff;
    color: var(--cts-slate-700, #334155);
    border-color: var(--cts-slate-200, #e2e8f0);
}

.tbk-contact-card__btn--email:hover {
    background: var(--cts-slate-50, #f8fafc);
    color: var(--cts-slate-800, #1e293b);
}

.tbk-contact-card__btn--icon {
    width: auto;
    min-width: 44px;
    flex-shrink: 0;
    padding: 10px 14px;
}

.tbk-contact-card__chat-panel {
    width: 100%;
    border: 1px solid var(--cts-slate-200, #e2e8f0);
    border-radius: 12px;
    padding: 12px;
    background: var(--cts-slate-50, #f8fafc);
}

.tbk-contact-card__chat-panel[hidden] {
    display: none !important;
}

.tbk-contact-card__chat-messages {
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.tbk-contact-card__chat-compose {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    width: 100%;
}

.tbk-contact-card__chat-compose textarea {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: 1px solid var(--cts-slate-200, #e2e8f0);
    border-radius: 10px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.4;
    resize: vertical;
    min-height: 44px;
    max-height: 120px;
    background: #fff;
}

.tbk-contact-card__chat-compose textarea:focus {
    outline: 2px solid rgba(4, 120, 87, 0.25);
    outline-offset: 0;
    border-color: var(--tbk-brand, #047857);
}

.tbk-contact-card__chat-link {
    display: block;
    margin-top: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--tbk-brand-dark, #065f46);
    text-decoration: none;
}

.tbk-contact-card__chat-link:hover {
    text-decoration: underline;
}

.tbk-contact-card__guest-note {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #92400e;
}

.tbk-contact-card__guest-note > i {
    font-size: 1rem;
    opacity: 0.85;
}

.tbk-contact-card__guest-note p {
    margin: 0;
}

.tbk-contact-card__guest-note a {
    font-weight: 600;
    color: var(--tbk-brand-dark, #065f46);
    text-decoration: underline;
}

.tbk-contact-card__notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    background: var(--cts-slate-50, #f8fafc);
    border-radius: 12px;
    font-size: 0.8125rem;
    color: var(--cts-slate-500, #64748b);
    line-height: 1.4;
}

.tbk-contact-card__trust {
    list-style: none;
    margin: 16px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--cts-slate-100, #f1f5f9);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.tbk-contact-card__trust li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--cts-slate-500, #64748b);
    line-height: 1.25;
}

.tbk-contact-card__trust li i {
    font-size: 0.875rem;
    color: var(--tbk-brand, #047857);
}

@media (max-width: 380px) {
    .tbk-contact-card__trust {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .tbk-contact-card__trust li {
        flex-direction: row;
        justify-content: center;
        font-size: 0.75rem;
    }
}

/* Unread badge header */
.tbk-unread-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
}
.tbk-unread-badge__count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tbk-account__nav-link {
    text-decoration: none;
    color: inherit;
}

/* Chat bubbles */
.tbk-msg__bubble {
    padding: 10px 14px;
    border-radius: 14px;
    line-height: 1.45;
    max-width: 85%;
}
.tbk-msg--mine .tbk-msg__bubble {
    background: var(--tbk-brand);
    color: #fff;
    margin-left: auto;
}
.tbk-msg--other .tbk-msg__bubble {
    background: #f1f5f9;
    color: var(--cts-slate-800);
}

/* Admin messenger */
.tbk-admin-messenger {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
    min-height: 520px;
    margin-top: 16px;
}
.tbk-admin-messenger__list {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    overflow-y: auto;
    max-height: 70vh;
}
.tbk-admin-user {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border: none;
    border-bottom: 1px solid #f0f0f1;
    background: #fff;
    cursor: pointer;
}
.tbk-admin-user:hover, .tbk-admin-user.is-active { background: #f0fdf4; }
.tbk-admin-user strong { display: block; }
.tbk-admin-user small { color: #646970; font-size: 11px; }
.tbk-admin-user__preview { display: block; font-size: 12px; color: #50575e; margin-top: 4px; }
.tbk-admin-messenger__chat {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}
.tbk-admin-messenger__head {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f1;
}
.tbk-admin-messenger__empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #646970;
    gap: 8px;
    padding: 40px;
}

/* Messenger + inbox legacy: móvil tipo app (lista ↔ chat) */
@media (max-width: 900px) {
    .tbk-messenger__layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        min-height: calc(100dvh - 140px);
        border-radius: 12px;
        position: relative;
        overflow: hidden;
    }
    .tbk-messenger__sidebar {
        max-height: none;
        height: 100%;
        min-height: calc(100dvh - 140px);
        border-radius: 12px;
        border: 1px solid var(--cts-slate-200);
    }
    .tbk-messenger__sidebar .tbk-inbox__list {
        padding: 4px 6px 12px;
    }
    .tbk-messenger__sidebar .tbk-inbox__item {
        padding: 12px;
        min-height: 72px;
    }
    .tbk-messenger__main {
        position: absolute;
        inset: 0;
        z-index: 5;
        border-radius: 12px;
        transform: translateX(100%);
        transition: transform .22s ease;
        box-shadow: -8px 0 24px rgba(15, 23, 42, .08);
    }
    .tbk-messenger--chat-open .tbk-messenger__main {
        transform: translateX(0);
    }
    .tbk-chat__back {
        display: inline-flex;
    }
    .tbk-chat__head {
        padding: 10px 12px;
        flex-wrap: nowrap;
    }
    .tbk-chat__head-main {
        flex-wrap: wrap;
    }
    .tbk-chat__head-main .tbk-btn--sm {
        width: 100%;
        justify-content: center;
        margin-top: 4px;
    }
    .tbk-chat__composer {
        flex-shrink: 0;
        padding: 12px 10px;
        gap: 8px;
    }
    .tbk-msg {
        max-width: 88%;
        font-size: 14px;
    }
    .tbk-msg__bubble {
        max-width: 100%;
    }
    .tbk-messenger__main .tbk-inbox__chat {
        padding-bottom: 0;
        /* Make the chat pane fill the absolute-positioned main container */
        height: 100%;
        max-height: 100%;
    }
    .tbk-messenger__main .tbk-chat__body {
        flex: 1;
        min-height: 0;
        padding-bottom: 8px;
        /* Remove the fixed max-height — flex:1 + min-height:0 handles scrolling */
        max-height: none;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    /* Composer pinned to bottom on mobile */
    .tbk-messenger__main .tbk-chat__composer,
    .tbk-inbox__chat .tbk-chat__composer {
        flex-shrink: 0;
        position: sticky;
        bottom: 0;
        background: #fff;
        border-top: 1px solid #e2e8f0;
        z-index: 2;
        /* Extra padding for safe-area (iPhone notch/home bar) */
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
    /* Also fix the legacy inbox chat panel (mi-cuenta / panel) */
    .tbk-inbox:not(.tbk-messenger__sidebar .tbk-inbox) .tbk-inbox__chat {
        height: 100%;
        max-height: 100%;
        display: flex;
        flex-direction: column;
    }
    .tbk-inbox:not(.tbk-messenger__sidebar .tbk-inbox) .tbk-chat__body {
        flex: 1;
        min-height: 0;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        max-height: none;
    }

    /* Inbox en mi-cuenta / panel proveedor (grid 2 columnas) */
    .tbk-inbox:not(.tbk-messenger__sidebar .tbk-inbox) {
        display: flex;
        flex-direction: column;
        position: relative;
        min-height: calc(100dvh - 220px);
        border-radius: 12px;
        overflow: hidden;
    }
    .tbk-inbox:not(.tbk-messenger__sidebar .tbk-inbox) .tbk-inbox__list {
        flex: 1;
        max-height: none;
        border-right: none;
        border-bottom: none;
    }
    .tbk-inbox:not(.tbk-messenger__sidebar .tbk-inbox) .tbk-inbox__chat {
        position: absolute;
        inset: 0;
        z-index: 4;
        max-height: none;
        transform: translateX(100%);
        transition: transform .22s ease;
        box-shadow: -6px 0 20px rgba(15, 23, 42, .06);
    }
    .tbk-inbox--chat-open:not(.tbk-messenger__sidebar .tbk-inbox) .tbk-inbox__chat {
        transform: translateX(0);
    }
    .tbk-inbox--chat-open:not(.tbk-messenger__sidebar .tbk-inbox) .tbk-inbox__list {
        visibility: hidden;
        pointer-events: none;
    }
}

@media (max-width: 640px) {
    .tbk-messenger__layout,
    .tbk-messenger__sidebar {
        min-height: calc(100dvh - 120px);
    }
    .tbk-messenger__sidebar-head {
        padding: 14px 12px;
    }
    .tbk-messenger__role-tab {
        font-size: .72rem;
        padding: 8px 6px;
    }
}

/* ==========================================================
   Página /mensajes/ — shell como Mi cuenta / Panel alojamientos
   (solo contenedor exterior; el messenger interno no se toca)
   ========================================================== */
body.tbk-page-mensajes {
    --cdt-header-h: 4rem;
}

body.tbk-page-mensajes main {
    max-width: 100%;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    display: block;
}

/* Sin capas WP entre main y el shell (evita hueco bajo la cabecera) */
body.tbk-page-mensajes main :is(
    .entry-content,
    .wp-block-post-content,
    .wp-block-group,
    .wp-block-group__inner-container,
    article,
    .hentry,
    .is-layout-constrained,
    .is-layout-flow
) {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}

body.tbk-page-mensajes .wp-block-spacer {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
}

body.tbk-page-mensajes .wp-block-post-title,
body.tbk-page-mensajes main > h1,
body.tbk-page-mensajes .entry-title {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tbk-page-shell--mensajes {
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 24px 14px 24px;
    min-height: calc(100vh - var(--cdt-header-h));
    background: var(--cts-slate-50);
    box-sizing: border-box;
    font-family: var(--cts-font-body);
}

.tbk-page-shell--mensajes > .tbk-messenger--standalone {
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

/* Quitar padding exterior del layout solo en la página /mensajes/ */
body.tbk-page-mensajes .tbk-page-shell--mensajes .tbk-messenger__layout {
    padding: 0 !important;
    margin: 0 !important;
}

@media (max-width: 900px) {
    body.tbk-page-mensajes main,
    body.tbk-page-mensajes .entry-content,
    body.tbk-page-mensajes .wp-block-post-content {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    body.tbk-page-mensajes footer {
        display: block;
    }

    .tbk-page-shell--mensajes {
        padding: 0 !important;
        margin: 0 !important;
        min-height: auto;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        position: relative;
    }

    body.tbk-page-mensajes .tbk-page-shell--mensajes .tbk-messenger__layout {
        border-radius: 0 !important;
        min-height: 600px !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body.tbk-page-mensajes .tbk-page-shell--mensajes .tbk-messenger__sidebar {
        border-radius: 0 !important;
        border-left: none;
        border-right: none;
        min-height: auto !important;
        margin-top: 0 !important;
    }

    body.tbk-page-mensajes .tbk-page-shell--mensajes .tbk-messenger__main {
        border-radius: 0 !important;
        border-left: none;
        border-right: none;
    }
}