:root {
    --app-primary: #1D4ED8;
    --app-primary-dark: #1E3A8A;
    --app-accent: #F97316;
    --app-accent-light: #FB923C;
    --app-gray: #6B7280;
    --app-surface-dark: #0F172A;
    --app-bg: #f4f8fb;
    --bs-primary: #1D4ED8;
    --bs-secondary: #6B7280;
    --bs-success: #1D4ED8;
    --bs-info: #1E3A8A;
    --bs-warning: #FB923C;
    --bs-danger: #F97316;
    --bs-dark: #0F172A;
    --bs-primary-rgb: 29, 78, 216;
    --bs-secondary-rgb: 107, 114, 128;
    --bs-success-rgb: 29, 78, 216;
    --bs-info-rgb: 30, 58, 138;
    --bs-warning-rgb: 251, 146, 60;
    --bs-danger-rgb: 249, 115, 22;
    --bs-dark-rgb: 15, 23, 42;
    --bs-link-color: #1D4ED8;
    --bs-link-hover-color: #1E3A8A;
}

body {
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 400;
    color: #111827;
    background: radial-gradient(circle at top left, #eef2ff, #f8fbff 45%, #f8fafc);
    min-height: 100vh;
}

.app-nav {
    background: linear-gradient(90deg, var(--app-surface-dark), var(--app-primary-dark));
}

.navbar-brand {
    font-weight: 700 !important;
    letter-spacing: 0.01em;
}

.app-logo {
    display: inline-block;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: #fff;
}

.app-logo-nav {
    width: 34px;
    height: 34px;
}

.app-logo-login {
    width: 52px;
    height: 52px;
    border-color: #dbe4f2;
}

.app-logo-login-top {
    width: 240px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border-color: #cbd9ef;
    border-radius: 10px;
}

.login-slogan {
    font-size: 0.98rem;
    color: #4b5563;
    font-weight: 500;
}

.login-brand-block {
    padding-top: 18px;
    padding-bottom: 14px;
}

.login-tabs {
    margin-top: 10px;
    margin-bottom: 18px;
}

.login-tabs .nav-link {
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
}

.login-page {
    background:
        radial-gradient(circle at 12% 18%, rgba(29, 78, 216, 0.2), transparent 38%),
        radial-gradient(circle at 92% 84%, rgba(249, 115, 22, 0.16), transparent 36%),
        linear-gradient(140deg, #eef2ff 0%, #f7faff 48%, #fff7ef 100%);
}

.landing-page {
    background:
        radial-gradient(circle at 10% 12%, rgba(29, 78, 216, 0.18), transparent 34%),
        radial-gradient(circle at 88% 82%, rgba(249, 115, 22, 0.12), transparent 34%),
        linear-gradient(145deg, #f3f7ff 0%, #f8fbff 55%, #fff8f1 100%);
}

.landing-hero {
    padding: 10px 0 2px;
}

.landing-title {
    font-size: clamp(1.8rem, 3.2vw, 2.7rem);
    line-height: 1.12;
    color: var(--app-primary-dark);
}

.landing-subtitle {
    font-size: 1.02rem;
    color: #475569;
    max-width: 680px;
}

.landing-preview {
    border-radius: 14px;
}

.landing-logo {
    width: min(320px, 100%);
    height: auto;
    object-fit: contain;
    border-color: #d6e2f3;
}

.landing-list {
    padding-left: 1rem;
}

.landing-feature-card {
    border-radius: 12px;
}

.landing-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #cddcf3;
    background: #eef4ff;
    color: var(--app-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.landing-shot-card {
    border: 1px solid #d8e5f5;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    height: 100%;
}

.landing-shot-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.landing-shot-card figcaption {
    padding: 10px 12px;
    font-size: 0.84rem;
    color: #4b5563;
}

.landing-flow-card {
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.landing-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--app-primary), var(--app-primary-dark));
}

.landing-cta {
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(29, 78, 216, 0.06), rgba(249, 115, 22, 0.06));
}

.landing-faq .accordion-item {
    border: 1px solid #dbe6f5;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.landing-faq .accordion-button {
    font-weight: 600;
    color: #1e3a8a;
    background: #f8fbff;
}

.landing-faq .accordion-button:not(.collapsed) {
    background: #edf3ff;
    color: #1e3a8a;
    box-shadow: none;
}

.landing-footer {
    background: linear-gradient(90deg, var(--app-surface-dark), var(--app-primary-dark));
}

.expense-table th {
    font-size: 0.82rem;
    color: #475569;
    white-space: nowrap;
}

.expense-table {
    table-layout: fixed;
}

.expense-table thead th:nth-child(1),
.expense-table tbody td:nth-child(1) {
    width: 38%;
}

.expense-table thead th:nth-child(2),
.expense-table tbody td:nth-child(2) {
    width: 12%;
}

.expense-table thead th:nth-child(3),
.expense-table tbody td:nth-child(3) {
    width: 16%;
}

.expense-table thead th:nth-child(4),
.expense-table tbody td:nth-child(4) {
    width: 16%;
}

.expense-table thead th:nth-child(5),
.expense-table tbody td:nth-child(5) {
    width: 8%;
}

.expense-table thead th:nth-child(6),
.expense-table tbody td:nth-child(6) {
    width: 10%;
}

.expense-row-form {
    margin: 0;
}

.expense-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 90px 120px 120px 80px 92px;
    gap: 6px;
    align-items: center;
}

.expense-table tfoot th {
    background: #f8fbff;
    color: #1e293b;
}

@media (max-width: 991.98px) {
    .expense-table {
        min-width: 780px;
    }
}

.legal-content h2 {
    margin-top: 1.4rem;
    margin-bottom: 0.45rem;
    font-size: 1.1rem;
    color: var(--app-primary-dark);
}

.legal-content p,
.legal-content li {
    color: #334155;
    line-height: 1.65;
}

.cookie-consent-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2055;
}

.cookie-consent-inner {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #d6e3f5;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    padding: 10px 12px;
}

.cookie-consent-text {
    font-size: 0.9rem;
    color: #334155;
}

.cookie-consent-link {
    color: var(--app-primary-dark);
    font-weight: 600;
}

.cookie-consent-link:hover {
    color: var(--app-primary);
}

@media (max-width: 767.98px) {
    .cookie-consent-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-accept {
        width: 100%;
    }
}

.login-shell {
    max-width: 980px;
}

.login-wrap {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #dbe7f7;
    background: #fff;
}

.login-visual {
    position: relative;
    min-height: 640px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 58, 138, 0.9)),
        url("images/logo.jpg") center/cover no-repeat;
}

.login-visual-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 26%, rgba(251, 146, 60, 0.42), transparent 40%);
}

.login-visual-content {
    position: relative;
    z-index: 1;
    align-self: flex-end;
    padding: 28px 24px;
    color: #fff;
}

.login-visual-content p {
    color: rgba(255, 255, 255, 0.88);
}

.login-visual-logo {
    width: 74px;
    height: 74px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
    background: #fff;
}

.login-card {
    padding: 30px 28px;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.google-g-logo {
    width: 18px;
    height: 18px;
    display: inline-block;
}

@media (max-width: 991.98px) {
    .login-shell {
        max-width: 760px;
    }

    .login-wrap {
        border-radius: 14px;
    }

    .login-card {
        padding: 24px 16px;
    }

    .landing-shot-card img {
        height: 190px;
    }
}

h1, h2, h3, h4, h5, h6,
.fw-semibold,
.fw-bold {
    font-weight: 700 !important;
}

.form-label,
.card-header .small,
.trip-tabs-nav .nav-link,
.btn {
    font-weight: 500;
}

.stat-card {
    border: 0;
    box-shadow: 0 10px 25px rgba(18, 46, 77, 0.08);
}

.card {
    border-radius: 0.8rem;
}

.trip-active-header {
    border: 1px solid #dbe8f5;
    background: linear-gradient(180deg, #f7fbff 0%, #f3f8fd 100%);
    border-radius: 12px;
    padding: 14px;
}

.trip-active-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--app-primary-dark);
    line-height: 1.25;
}

.trip-active-destinations {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.trip-active-map-wrap {
    width: 100%;
}

.trip-active-map-frame {
    width: 100%;
    height: 240px;
    border: 1px solid #cfe2f5;
    border-radius: 10px;
    display: block;
    background: #f5f8fb;
}

.trip-active-summary {
    border-top: 1px dashed #cddff1;
    padding-top: 10px;
}

.trip-transfer-progress {
    border-top: 1px dashed #d4deea;
    padding-top: 10px;
}

.trip-transfer-track {
    display: flex;
    align-items: flex-start;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 2px;
}

.trip-transfer-node {
    min-width: 84px;
    max-width: 84px;
    text-align: center;
}

.trip-transfer-pin {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #bdd2ef;
    background: #edf4ff;
    color: var(--app-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.trip-transfer-label {
    margin-top: 4px;
    font-size: 0.74rem;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trip-transfer-status {
    margin-top: 2px;
    font-size: 0.65rem;
    line-height: 1.2;
    white-space: nowrap;
}

.trip-transfer-status i {
    margin-right: 2px;
}

.trip-transfer-status.is-booked {
    color: #0f766e;
}

.trip-transfer-status.is-missing {
    color: #9a3412;
}

.trip-transfer-segment {
    flex: 1 1 auto;
    min-width: 26px;
    height: 30px;
    margin-top: 14px;
    border-top: 4px solid #cfd8e3;
}

.trip-transfer-segment.is-complete {
    border-top-color: var(--app-accent);
}

.trip-transfer-segment.is-missing {
    border-top-style: dashed;
}

.trip-transfer-legend {
    display: inline-block;
    width: 18px;
    height: 0;
    border-top: 3px solid #cfd8e3;
    vertical-align: middle;
    margin: 0 4px;
}

.trip-transfer-legend.complete {
    border-top-color: var(--app-accent);
}

.trip-transfer-legend.missing {
    border-top-style: dashed;
}

.trip-narrative-text {
    font-size: 1.02rem;
    line-height: 1.55;
    color: #1f3347;
}

.price-compare-compact .card-header h5 {
    font-size: 1rem;
}

.price-compare-compact .card-body {
    font-size: 0.86rem;
}

.price-compare-compact .form-label {
    font-size: 0.72rem;
    margin-bottom: 0.2rem;
}

.price-compare-compact .form-control,
.price-compare-compact .form-select {
    font-size: 0.8rem;
    padding: 0.3rem 0.45rem;
    min-height: 30px;
}

.price-compare-compact .btn {
    font-size: 0.76rem;
    padding: 0.28rem 0.45rem;
}

.price-compare-compact .btn-sm {
    font-size: 0.72rem;
    padding: 0.22rem 0.38rem;
}

.price-compare-compact .border.rounded.p-3,
.price-compare-compact .border.rounded.p-2 {
    padding: 0.6rem !important;
}

.price-compare-compact .row.g-2 {
    --bs-gutter-y: 0.35rem;
    --bs-gutter-x: 0.45rem;
}

.price-compare-compact .pc-inline-row {
    overflow-x: auto;
}

.price-compare-compact .pc-grid {
    display: grid;
    grid-template-columns: 30px 46px 210px 78px 94px 58px 74px 74px;
    gap: 0.25rem;
    align-items: center;
    min-width: 760px;
}

.price-compare-compact .pc-grid-row .form-control,
.price-compare-compact .pc-grid-row .form-select {
    min-width: 0;
    width: 100%;
}

.price-compare-compact .pc-grid-row .btn {
    width: 30px;
    min-width: 30px;
    padding-left: 0;
    padding-right: 0;
}

.price-compare-compact .pc-inline-head {
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding-bottom: 0.1rem;
    border-bottom: 1px dashed #d8e2ed;
}

.price-compare-compact .pc-head-cell {
    display: block;
    color: #3e4b59;
    text-align: left;
}

.price-compare-compact .pc-head-empty {
    color: transparent;
}

.price-compare-compact .pc-row-extra .form-control {
    font-size: 0.82rem;
}

.price-compare-compact .pc-row-extra .form-label {
    font-size: 0.69rem;
    color: #516274;
    margin-bottom: 0.15rem;
}

.price-compare-compact .pc-row-actions .btn {
    width: auto;
    min-width: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.price-compare-compact .pc-group-title-input {
    font-size: 1.08rem;
    font-weight: 700;
}

.price-compare-compact .pc-row-title {
    font-size: 0.84rem;
}

.price-compare-group-map {
    width: 100%;
    height: 240px;
    border: 1px solid #d7e3ef;
    border-radius: 10px;
    background: #f5f8fb;
}

.price-compare-ai-text {
    background: #f5f9ff;
    border: 1px solid #d7e3ef;
    border-radius: 10px;
    padding: 10px;
    white-space: pre-wrap;
    font-size: 0.9rem;
    line-height: 1.35;
}

.price-compare-ai-result {
    min-height: 180px;
}

.price-compare-ai-result.is-empty .price-compare-ai-text::before {
    content: "La recomendación de IA de duovolo va a aparecer acá.";
    color: #6c7b8a;
    font-style: italic;
}

.list-group-item {
    border-left: 0;
    border-right: 0;
}

.btn-primary {
    background-color: var(--app-primary);
    border-color: var(--app-primary);
}

.btn-primary:hover {
    background-color: var(--app-primary-dark);
    border-color: var(--app-primary-dark);
}

.btn-outline-primary {
    color: var(--app-primary);
    border-color: var(--app-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    color: #fff;
    background-color: var(--app-primary);
    border-color: var(--app-primary);
}

.btn-secondary {
    background-color: var(--app-gray);
    border-color: var(--app-gray);
    color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: #4b5563;
    border-color: #4b5563;
    color: #fff;
}

.btn-outline-secondary {
    color: var(--app-gray);
    border-color: var(--app-gray);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    color: #fff;
    background-color: var(--app-gray);
    border-color: var(--app-gray);
}

.btn-success {
    background-color: var(--app-primary);
    border-color: var(--app-primary);
    color: #fff;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background-color: var(--app-primary-dark);
    border-color: var(--app-primary-dark);
    color: #fff;
}

.btn-outline-success {
    color: var(--app-primary);
    border-color: var(--app-primary);
}

.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active {
    color: #fff;
    background-color: var(--app-primary);
    border-color: var(--app-primary);
}

.btn-danger {
    background-color: var(--app-accent);
    border-color: var(--app-accent);
    color: #fff;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
    background-color: var(--app-accent-light);
    border-color: var(--app-accent-light);
    color: #fff;
}

.btn-outline-danger {
    color: var(--app-accent);
    border-color: var(--app-accent);
}

.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger:active {
    color: #fff;
    background-color: var(--app-accent);
    border-color: var(--app-accent);
}

.btn-warning {
    background-color: var(--app-accent);
    border-color: var(--app-accent);
    color: #fff;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
    background-color: var(--app-accent-light);
    border-color: var(--app-accent-light);
    color: #fff;
}

.btn-info {
    background-color: var(--app-primary-dark);
    border-color: var(--app-primary-dark);
    color: #fff;
}

.btn-info:hover,
.btn-info:focus,
.btn-info:active {
    background-color: var(--app-surface-dark);
    border-color: var(--app-surface-dark);
    color: #fff;
}

.btn-outline-info {
    color: var(--app-primary-dark);
    border-color: var(--app-primary-dark);
}

.btn-outline-info:hover,
.btn-outline-info:focus,
.btn-outline-info:active {
    color: #fff;
    background-color: var(--app-primary-dark);
    border-color: var(--app-primary-dark);
}

.text-success {
    color: var(--app-primary) !important;
}

.text-danger {
    color: var(--app-accent) !important;
}

.alert-success {
    color: var(--app-primary-dark);
    background-color: #eaf1ff;
    border-color: #cfe0ff;
}

.alert-danger {
    color: #9a3412;
    background-color: #fff4ec;
    border-color: #ffd9bf;
}

.alert-warning {
    color: #9a3412;
    background-color: #fff6ee;
    border-color: #ffe0c7;
}

.badge.bg-success {
    background-color: var(--app-primary) !important;
}

.badge.bg-danger {
    background-color: var(--app-accent) !important;
}

.dropzone {
    border: 2px dashed #8eb5d6;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: #f8fbff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropzone:hover,
.dropzone.is-dragging {
    border-color: var(--app-primary);
    background: #eef6ff;
}

.dropzone-text-paste {
    border: 1px dashed #b5cbe0;
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
    min-height: 44px;
    text-align: left;
    color: #6c757d;
    cursor: text;
}

.dropzone-text-paste:focus {
    outline: none;
    border-color: var(--app-primary);
    box-shadow: 0 0 0 0.12rem rgba(29, 78, 216, 0.2);
    color: #212529;
}

.map-picker {
    width: 100%;
    height: 250px;
    border: 1px solid #d7e3ef;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f8fb;
}

.doc-kind-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #eaf4ff;
    color: var(--app-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    border: 1px solid #cfe2f5;
}

.doc-file-item {
    position: relative;
}

.doc-file-item .doc-kind-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.doc-file-item h6,
.doc-file-item .small,
.doc-file-item p {
    padding-right: 72px;
}

.file-meta-row {
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
}

.timeline-wrap {
    position: relative;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0 0 16px 0;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 46px;
    bottom: 0;
    width: 2px;
    background: #d6e4f2;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eaf4ff;
    color: var(--app-primary);
    border: 1px solid #cfe2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.72rem;
    flex: 0 0 40px;
    z-index: 1;
}

.timeline-content {
    min-width: 0;
    flex: 1 1 auto;
}

.timeline-date-main {
    font-size: 1.08rem;
    line-height: 1.25;
    color: #1f2937;
}

.timeline-date-main a {
    text-decoration-thickness: 1px;
}

.trip-tabs-nav .nav-link {
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    justify-content: center;
    width: 100%;
    font-size: clamp(0.72rem, 0.85vw, 0.9rem);
    padding: 0.56rem 0.26rem;
    overflow: hidden;
}

.trip-tabs-nav .nav-link:hover,
.trip-tabs-nav .nav-link:focus {
    color: #4b5563;
}

.trip-tabs-nav .nav-link.active {
    color: #111827;
    font-weight: 700;
}

.trip-tabs-nav {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    overflow: visible;
    white-space: normal;
}

.trip-tabs-nav .nav-item {
    min-width: 0;
}

.trip-tabs-nav .tab-icon {
    font-size: 0.95rem;
    line-height: 1;
    flex: 0 0 auto;
}

.trip-tabs-nav .tab-label {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;
    line-height: 1.1;
    text-align: left;
    flex-wrap: nowrap !important;
}

.trip-tabs-nav .tab-count {
    display: inline !important;
    white-space: nowrap !important;
    flex: 0 0 auto;
}

@media (max-width: 1220px) {
    .trip-tabs-nav .nav-link {
        font-size: clamp(0.74rem, 0.92vw, 0.88rem);
    }
}

.mini-map-wrap {
    max-width: 320px;
}

.mini-map-frame {
    width: 100%;
    height: 120px;
    border: 1px solid #d7e3ef;
    border-radius: 10px;
    display: block;
    background: #f5f8fb;
}

.mini-map-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.8rem;
    text-decoration: none;
}

.timeline-map-wrap {
    max-width: none;
    width: 100%;
    min-width: 100%;
}

.timeline-map-wrap .mini-map-frame {
    height: 240px;
}

.timeline-route-map {
    width: 100%;
    height: 240px;
    border: 1px solid #d7e3ef;
    border-radius: 10px;
    background: #f5f8fb;
}

.timeline-drive-gallery {
    width: 100%;
}

.timeline-photo-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 0 4px;
}

.timeline-photo-item {
    flex: 0 0 auto;
    width: 132px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid #d7e3ef;
    overflow: hidden;
    background: #f5f8fb;
    display: block;
}

.timeline-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.timeline-web-photo-item {
    height: auto;
    text-decoration: none;
    color: inherit;
}

.timeline-web-photo-caption {
    font-size: 0.68rem;
    line-height: 1.2;
    padding: 4px 6px 6px;
    color: #475569;
    background: #fff;
    border-top: 1px solid #d7e3ef;
}

.timeline-web-photo-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2px;
}

.timeline-web-photo-source {
    font-size: 0.66rem;
    color: #64748b;
}

.activity-chip-list {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
}

.activity-chip {
    white-space: nowrap;
    cursor: grab;
}

.activity-chip.is-dragging {
    opacity: 0.65;
}

.activity-chip-home {
    border-color: #f59e0b;
    color: #92400e;
    background: #fffbeb;
}

.activity-chip-home:hover {
    border-color: #d97706;
    color: #7c2d12;
    background: #fef3c7;
}

.upload-overlay {
    position: fixed;
    inset: 0;
    background: rgba(33, 37, 41, 0.38);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.upload-overlay.is-visible {
    display: flex;
}

.upload-overlay-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    width: min(560px, 100%);
    padding: 20px 22px;
    text-align: center;
}

.upload-overlay-file {
    font-weight: 600;
    color: var(--app-primary);
    word-break: break-word;
}

.checklist-list .list-group-item {
    border-left: 0;
    border-right: 0;
}

.checklist-item.is-done .checklist-content {
    opacity: 0.85;
}

.checklist-actions {
    flex-wrap: nowrap;
}

.checklist-item {
    transition: background-color 0.15s ease;
}

.checklist-item.is-dragging {
    opacity: 0.75;
    background: #f4f8ff;
}

.checklist-drag-handle {
    width: 36px;
    min-width: 36px;
    height: 34px;
    line-height: 1;
    cursor: grab;
    padding: 0;
}

.checklist-drag-handle:active {
    cursor: grabbing;
}

.checklist-action-btn {
    min-width: 98px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.today-event-row {
    width: 100%;
}

.today-event-main {
    min-width: 0;
    flex: 1 1 auto;
}

.today-event-main .mini-map-frame {
    width: 100%;
    max-width: 100%;
}

.today-transport-actions {
    flex-wrap: wrap;
}

.today-inline-map-btn {
    flex: 0 0 auto;
}

.destination-badge {
    font-size: 0.78rem;
    font-weight: 500;
}

.destination-row {
    background: #f8fbff;
}

.destination-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 2px);
    z-index: 2000;
    background: #fff;
    border: 1px solid #d7e3ef;
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(13, 61, 97, 0.16);
    max-height: 220px;
    overflow-y: auto;
}

.destination-suggestion-item {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #edf2f7;
    background: transparent;
    text-align: left;
    padding: 8px 10px;
    font-size: 0.85rem;
}

.destination-suggestion-item:last-child {
    border-bottom: 0;
}

.destination-suggestion-item:hover {
    background: #f1f7ff;
}

.trip-destination-rows-scroll {
    max-height: 52vh;
    overflow-y: auto;
    padding-right: 2px;
    padding-bottom: 120px;
}

.trip-destination-suggestions-spacer {
    height: 88px;
}

.trip-destination-suggestions {
    position: static;
    margin-top: 6px;
    box-shadow: 0 6px 16px rgba(13, 61, 97, 0.12);
    max-height: 180px;
}

.ai-ask-answer {
    background: #f5f9ff;
    border: 1px solid #d7e3ef;
    border-radius: 10px;
    padding: 12px;
    white-space: pre-wrap;
    line-height: 1.35;
    font-size: 0.94rem;
}

.ai-chat-thread {
    min-height: 120px;
    max-height: 44vh;
    overflow-y: auto;
    background: #f8fafc;
    border: 1px solid #e3ebf3;
    border-radius: 10px;
    padding: 10px;
}

.ai-chat-msg {
    margin-bottom: 10px;
}

.ai-chat-msg:last-child {
    margin-bottom: 0;
}

.ai-chat-msg-label {
    font-size: 0.72rem;
    color: #637a93;
    margin-bottom: 2px;
}

.ai-chat-bubble {
    border-radius: 10px;
    padding: 8px 10px;
    white-space: pre-wrap;
    line-height: 1.35;
    font-size: 0.92rem;
}

.ai-chat-msg-user .ai-chat-bubble {
    background: #e8f1ff;
    border: 1px solid #c6dcff;
}

.ai-chat-msg-assistant .ai-chat-bubble {
    background: #f3f7fc;
    border: 1px solid #d7e3ef;
}

.wishlist-compact-list .wishlist-card-item {
    border: 1px solid #dbe6f5;
    border-radius: 10px;
    background: #fff;
    padding: 10px 12px !important;
    margin-bottom: 8px;
}

.wishlist-compact-list .wishlist-card-item .fw-semibold {
    font-size: 0.93rem;
}

.wishlist-compact-list .wishlist-card-item .small {
    font-size: 0.78rem;
}

.wishlist-compact-list .wishlist-card-item .btn.btn-sm {
    font-size: 0.74rem;
    padding: 0.22rem 0.5rem;
}

:root {
    --trip-row-height: 560px;
}

@media (min-width: 992px) {
    [data-current-trip-panel] {
        position: sticky;
        top: 56px;
        z-index: 12;
        max-height: calc(100vh - 84px);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    body[data-trip-header-expanded="1"] [data-current-trip-panel] {
        position: static;
        top: 0;
        max-height: none;
        overflow: visible;
    }

    [data-current-trip-panel] #trip-active-panel-collapse {
        min-height: 0;
        overflow: hidden;
    }

    [data-current-trip-panel] #trip-active-panel-collapse .card-body {
        overflow-y: auto;
        min-height: 0;
    }

    .trip-right-col {
        position: sticky;
        top: 56px;
        max-height: var(--trip-row-height);
        overflow-y: auto;
    }

    .trip-main-col {
        max-height: var(--trip-row-height);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .trip-tabs-nav {
        flex: 0 0 auto;
        position: sticky;
        top: 0;
        z-index: 5;
        background: #fff;
        padding-top: 2px;
    }

    #tripTabsContent {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding-right: 4px;
    }

    body[data-trip-header-expanded="1"] .trip-main-col,
    body[data-trip-header-expanded="1"] .trip-right-col {
        position: static;
        top: auto;
        max-height: none;
        overflow: visible;
    }

    body[data-trip-header-expanded="1"] .trip-main-col {
        display: block;
    }

    body[data-trip-header-expanded="1"] .trip-tabs-nav {
        position: static;
        top: auto;
    }

    body[data-trip-header-expanded="1"] #tripTabsContent {
        overflow: visible;
        min-height: auto;
        max-height: none;
        padding-right: 0;
    }

    body[data-trip-header-expanded="1"] [data-current-trip-panel] #trip-active-panel-collapse {
        overflow: visible;
    }

    body[data-trip-header-expanded="1"] [data-current-trip-panel] #trip-active-panel-collapse .card-body {
        overflow: visible;
    }
}

@media (max-width: 767.98px) {
    .trip-tabs-nav {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .trip-tabs-nav .tab-label {
        display: none;
    }

    .trip-tabs-nav .nav-link {
        padding-left: 0.2rem;
        padding-right: 0.2rem;
        min-width: 0;
        justify-content: center;
    }

    .trip-tabs-nav .tab-icon {
        font-size: 1.12rem;
    }

    .today-event-row {
        flex-direction: column;
        align-items: stretch;
    }

    .today-inline-map-btn {
        align-self: flex-start;
    }

    .trip-destination-suggestions-spacer {
        height: 112px;
    }
}

.timeline-item.timeline-item-focus {
    outline: 2px solid rgba(23, 73, 132, 0.35);
    border-radius: 12px;
    background: rgba(23, 73, 132, 0.06);
    transition: background-color .4s ease, outline-color .4s ease;
}

.onboarding-open {
    overflow: hidden;
}

.onboarding-spotlight {
    position: fixed;
    z-index: 3000;
    pointer-events: none;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.72);
    transition: all 0.18s ease;
}

.onboarding-card {
    position: fixed;
    z-index: 3001;
    width: min(360px, calc(100vw - 24px));
    background: #fff;
    border: 1px solid #dbe4f2;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.3);
    padding: 12px;
}

.onboarding-title {
    font-size: 1rem;
    margin: 0 0 6px;
    color: #0f172a;
}

.onboarding-text {
    font-size: 0.9rem;
    color: #334155;
    margin: 0 0 10px;
    white-space: pre-line;
}

.onboarding-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.onboarding-progress {
    font-size: 0.78rem;
    color: #64748b;
}
