/* =========================================================
   Tours (Views/Tour/TourList, Views/Tour/TourDetail)
   ========================================================= */

:root {
    --tm-primary: #1e88e5;
    --tm-primary-dark: #1565c0;
    --tm-primary-soft: #e8f2fd;
    --tm-accent: #fb9017;
    --tm-accent-soft: #fff3e3;
    --tm-green: #10b981;
    --tm-green-soft: #e7f8f1;
    --tm-red: #ef4444;
    --tm-ink: #1f2937;
    --tm-text: #374151;
    --tm-muted: #6b7280;
    --tm-line: #edf1f6;
    --tm-bg: #f5f8fc;
    --tm-radius: 18px;
    --tm-shadow: 0 10px 28px -18px rgba(15, 35, 70, .38);
    --tm-shadow-lg: 0 24px 48px -22px rgba(15, 35, 70, .45);
    --tm-ease: cubic-bezier(.22, .61, .36, 1);
}

body {
    background: var(--tm-bg);
}

[ng-cloak] {
    display: none !important;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.tm-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 52px 0 96px;
    color: #fff;
    background: linear-gradient(135deg, #0f2c52 0%, #1565c0 55%, #1e88e5 100%);
}

.tm-hero-bg {
    position: absolute;
    inset: -20px;
    z-index: -2;
    background-size: cover;
    background-position: center;
    filter: blur(3px);
    transform: scale(1.05);
}

.tm-hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(10, 30, 60, .78) 0%, rgba(15, 44, 82, .82) 60%, rgba(21, 101, 192, .88) 100%);
}

.tm-hero-inner {
    position: relative;
    text-align: center;
    max-width: 860px;
}

.tm-breadcrumb {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 10px;
    padding: 6px 16px;
    margin-bottom: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(6px);
    font-size: 13px;
    color: rgba(255, 255, 255, .85);
}

    .tm-breadcrumb a {
        color: #fff;
        text-decoration: none !important;
    }

        .tm-breadcrumb a:hover {
            color: #ffd29a;
        }

    .tm-breadcrumb .fa-chevron-left {
        font-size: 9px;
        opacity: .6;
    }

.tm-hero h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.5;
}

.tm-hero p {
    margin: 0 auto 24px;
    max-width: 620px;
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
    line-height: 2;
}

.tm-hero-stats {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

    .tm-hero-stats > div {
        min-width: 130px;
        padding: 12px 18px;
        border-radius: 16px;
        background: rgba(255, 255, 255, .12);
        border: 1px solid rgba(255, 255, 255, .18);
        backdrop-filter: blur(6px);
    }

    .tm-hero-stats b {
        display: block;
        font-size: 21px;
        font-weight: 900;
        color: #fff;
    }

    .tm-hero-stats span {
        font-size: 12.5px;
        color: rgba(255, 255, 255, .8);
    }

.tm-hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

    .tm-hero-chips > span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 8px 15px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .14);
        border: 1px solid rgba(255, 255, 255, .2);
        font-size: 13.5px;
        color: #fff;
    }

        .tm-hero-chips > span i {
            color: #ffc27a;
        }

.tm-hero.is-detail {
    padding-bottom: 90px;
}

/* ---------------------------------------------------------
   Page
   --------------------------------------------------------- */
.tm-page {
    position: relative;
    margin-top: -60px;
    padding-bottom: 70px;
}

    .tm-page.is-detail {
        margin-top: 0;
    }

@media (min-width: 1200px) {
    .tm-page > .container,
    .tm-detail .container {
        max-width: 1240px;
    }
}

.tm-card-box {
    position: relative;
    background: #fff;
    border: 1px solid var(--tm-line);
    border-radius: var(--tm-radius);
    box-shadow: var(--tm-shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.tm-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 800;
    color: var(--tm-ink);
}

    .tm-section-title i {
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        border-radius: 11px;
        background: var(--tm-primary-soft);
        color: var(--tm-primary);
        font-size: 15px;
    }

.tm-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

    .tm-box-head .tm-section-title {
        margin: 0;
    }

.tm-muted {
    color: var(--tm-muted);
    font-size: 14px;
    line-height: 2;
}

.tm-rich {
    color: var(--tm-text);
    font-size: 14.5px;
    line-height: 2.1;
    overflow-wrap: anywhere;
}

    .tm-rich p {
        margin: 0 0 8px;
    }

    .tm-rich img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
    }

    .tm-rich table {
        max-width: 100%;
        display: block;
        overflow-x: auto;
    }

    .tm-rich * {
        font-family: inherit !important;
    }

/* ---------- buttons ---------- */
.tm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 13px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform .25s var(--tm-ease), box-shadow .25s var(--tm-ease), background .25s var(--tm-ease), color .25s var(--tm-ease);
}

    .tm-btn.is-primary {
        color: #fff;
        background: linear-gradient(135deg, var(--tm-primary), var(--tm-primary-dark));
        box-shadow: 0 12px 22px -12px rgba(30, 136, 229, .85);
    }

        .tm-btn.is-primary:hover {
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 16px 26px -12px rgba(30, 136, 229, .95);
        }

    .tm-btn.is-ghost {
        color: var(--tm-primary);
        background: #fff;
        border: 1.5px solid #cfe2f8;
    }

        .tm-btn.is-ghost:hover {
            color: var(--tm-primary);
            background: var(--tm-primary-soft);
        }

    .tm-btn.is-sm {
        height: 38px;
        padding: 0 14px;
        font-size: 13px;
        border-radius: 11px;
    }

    .tm-btn:disabled {
        opacity: .55;
        cursor: not-allowed;
        transform: none;
    }

.tm-btn-block {
    width: 100%;
}

.tm-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--tm-primary-soft);
    color: var(--tm-primary);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .25s var(--tm-ease);
}

    .tm-more:hover {
        background: #d9e9fb;
    }

    .tm-more i {
        font-size: 11px;
    }

/* ---------------------------------------------------------
   List page: toolbar
   --------------------------------------------------------- */
.tm-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--tm-line);
    border-radius: var(--tm-radius);
    box-shadow: var(--tm-shadow-lg);
}

.tm-search {
    position: relative;
    flex: 1 1 300px;
}

    .tm-search i {
        position: absolute;
        top: 50%;
        right: 16px;
        transform: translateY(-50%);
        color: var(--tm-muted);
    }

    .tm-search input {
        width: 100%;
        height: 48px;
        padding: 0 44px 0 16px;
        border: 1.5px solid var(--tm-line);
        border-radius: 13px;
        background: var(--tm-bg);
        font-size: 14.5px;
        color: var(--tm-ink);
        outline: none;
        transition: border-color .25s, background .25s, box-shadow .25s;
    }

        .tm-search input:focus {
            border-color: var(--tm-primary);
            background: #fff;
            box-shadow: 0 0 0 4px rgba(30, 136, 229, .12);
        }

.tm-toolbar-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.tm-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 14px;
    color: var(--tm-text);
    cursor: pointer;
    user-select: none;
}

    .tm-switch input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.tm-switch-track {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #d6dee8;
    transition: background .25s var(--tm-ease);
}

    .tm-switch-track span {
        position: absolute;
        top: 3px;
        right: 3px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
        transition: transform .25s var(--tm-ease);
    }

.tm-switch input:checked + .tm-switch-track {
    background: var(--tm-green);
}

    .tm-switch input:checked + .tm-switch-track span {
        transform: translateX(-18px);
    }

.tm-switch input:focus-visible + .tm-switch-track {
    box-shadow: 0 0 0 3px rgba(30, 136, 229, .3);
}

.tm-select {
    position: relative;
}

    .tm-select i {
        position: absolute;
        top: 50%;
        right: 14px;
        transform: translateY(-50%);
        color: var(--tm-primary);
        pointer-events: none;
    }

    .tm-select select {
        height: 48px;
        padding: 0 40px 0 18px;
        border: 1.5px solid var(--tm-line);
        border-radius: 13px;
        background: #fff;
        font-size: 14px;
        color: var(--tm-ink);
        cursor: pointer;
        outline: none;
    }

        .tm-select select:focus {
            border-color: var(--tm-primary);
        }

.tm-count {
    margin: 18px 4px 14px;
    font-size: 14px;
    color: var(--tm-muted);
}

    .tm-count b {
        color: var(--tm-ink);
    }

/* ---------------------------------------------------------
   List page: cards
   --------------------------------------------------------- */
.tm-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.tm-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--tm-line);
    border-radius: 20px;
    box-shadow: var(--tm-shadow);
    overflow: hidden;
    transition: transform .4s var(--tm-ease), box-shadow .4s var(--tm-ease);
}

    .tm-card[hidden] {
        display: none;
    }

    .tm-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--tm-shadow-lg);
    }

.tm-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e7edf5;
}

    .tm-card-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .8s var(--tm-ease);
    }

.tm-card:hover .tm-card-media img {
    transform: scale(1.07);
}

.tm-card.is-soldout .tm-card-media img {
    filter: grayscale(.7);
}

.tm-ribbon {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
}

    .tm-ribbon.is-soldout {
        background: rgba(239, 68, 68, .92);
    }

.tm-chip-float {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(15, 30, 55, .7);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 12.5px;
}

.tm-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 18px 16px;
}

.tm-card-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.8;
}

    .tm-card-title a {
        color: var(--tm-ink);
        text-decoration: none !important;
    }

        .tm-card-title a:hover {
            color: var(--tm-primary);
        }

.tm-card-route {
    display: flex;
    gap: 7px;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--tm-text);
}

    .tm-card-route i {
        margin-top: 6px;
        color: var(--tm-accent);
    }

.tm-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    font-size: 12.5px;
    color: var(--tm-muted);
}

    .tm-card-meta i {
        margin-left: 4px;
        color: var(--tm-primary);
    }

    .tm-card-meta b {
        color: var(--tm-ink);
        font-weight: 700;
    }

.tm-facilities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

    .tm-facilities li {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 10px 4px 8px;
        border-radius: 999px;
        background: var(--tm-bg);
        border: 1px solid var(--tm-line);
        font-size: 12px;
        color: var(--tm-text);
    }

    .tm-facilities img {
        width: 18px;
        height: 18px;
        object-fit: contain;
    }

.tm-card-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed #e3e9f1;
}

.tm-price small {
    display: block;
    font-size: 12px;
    color: var(--tm-muted);
}

.tm-price b {
    font-size: 18px;
    font-weight: 900;
    color: var(--tm-primary-dark);
}

    .tm-price b span {
        font-size: 12px;
        font-weight: 600;
        color: var(--tm-muted);
    }

    .tm-price b.is-call {
        font-size: 15px;
        color: var(--tm-accent);
    }

.tm-card-foot .tm-btn {
    height: 42px;
    padding: 0 14px;
    font-size: 13.5px;
}

.tm-empty {
    padding: 50px 20px;
    text-align: center;
    background: #fff;
    border: 1px dashed #d5dfeb;
    border-radius: var(--tm-radius);
}

    .tm-empty[hidden] {
        display: none;
    }

    .tm-empty > i {
        display: grid;
        place-items: center;
        width: 64px;
        height: 64px;
        margin: 0 auto 14px;
        border-radius: 50%;
        background: var(--tm-primary-soft);
        color: var(--tm-primary);
        font-size: 24px;
    }

    .tm-empty b {
        display: block;
        font-size: 17px;
        color: var(--tm-ink);
    }

    .tm-empty p {
        margin: 6px 0 16px;
        color: var(--tm-muted);
    }

.tm-about {
    margin-top: 34px;
}

.tm-about-body {
    position: relative;
    max-height: 260px;
    overflow: hidden;
    transition: max-height .5s var(--tm-ease);
}

    .tm-about-body::after {
        content: "";
        position: absolute;
        inset: auto 0 0 0;
        height: 90px;
        background: linear-gradient(transparent, #fff);
        pointer-events: none;
    }

.tm-about.is-open .tm-about-body {
    max-height: none;
}

    .tm-about.is-open .tm-about-body::after {
        display: none;
    }

/* ---------------------------------------------------------
   Detail page
   --------------------------------------------------------- */
.tm-loading {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    background: rgba(245, 248, 252, .96);
}

.tm-loading-box {
    text-align: center;
    color: var(--tm-ink);
}

    .tm-loading-box b {
        display: block;
        margin-top: 16px;
        font-size: 15px;
    }

.tm-spinner {
    display: inline-block;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 4px solid var(--tm-primary-soft);
    border-top-color: var(--tm-primary);
    animation: tm-spin .9s linear infinite;
}

@keyframes tm-spin {
    to { transform: rotate(360deg); }
}

/* steps */
.tm-steps {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: -34px auto 26px;
    padding: 10px;
    max-width: 640px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--tm-line);
    border-radius: 999px;
    box-shadow: var(--tm-shadow-lg);
}

    .tm-steps li {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 8px 10px;
        border-radius: 999px;
        font-size: 13.5px;
        font-weight: 700;
        color: var(--tm-muted);
        white-space: nowrap;
    }

        .tm-steps li span {
            display: grid;
            place-items: center;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: var(--tm-bg);
            border: 1px solid var(--tm-line);
            font-size: 12.5px;
        }

        .tm-steps li.is-active {
            background: var(--tm-primary-soft);
            color: var(--tm-primary);
        }

            .tm-steps li.is-active span {
                background: var(--tm-primary);
                border-color: var(--tm-primary);
                color: #fff;
            }

        .tm-steps li.is-done {
            color: var(--tm-green);
        }

            .tm-steps li.is-done span {
                background: var(--tm-green);
                border-color: var(--tm-green);
                color: #fff;
            }

/* cover */
.tm-cover {
    margin-bottom: 18px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--tm-shadow-lg);
    background: #e7edf5;
    aspect-ratio: 16 / 8;
}

    .tm-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* section tabs */
.tm-tabs {
    position: sticky;
    top: 70px;
    z-index: 5;
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    padding: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    border: 1px solid var(--tm-line);
    border-radius: 16px;
    box-shadow: var(--tm-shadow);
}

    .tm-tabs::-webkit-scrollbar {
        display: none;
    }

    .tm-tabs a {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 9px 14px;
        border-radius: 11px;
        font-size: 13.5px;
        font-weight: 700;
        color: var(--tm-text);
        white-space: nowrap;
        text-decoration: none !important;
        transition: background .25s, color .25s;
    }

        .tm-tabs a i {
            color: var(--tm-primary);
            font-size: 12.5px;
        }

        .tm-tabs a:hover {
            background: var(--tm-primary-soft);
            color: var(--tm-primary);
        }

/* facilities */
.tm-facility-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .tm-facility-grid li {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 13px;
        background: var(--tm-bg);
        border: 1px solid var(--tm-line);
        font-size: 13.5px;
        color: var(--tm-text);
    }

.tm-facility-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 10px -6px rgba(15, 35, 70, .3);
}

    .tm-facility-icon img {
        width: 22px;
        height: 22px;
        object-fit: contain;
    }

.tm-long {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px dashed #e3e9f1;
}

/* itinerary accordion */
.tm-accordion {
    display: grid;
    gap: 10px;
}

.tm-acc-item {
    border: 1px solid var(--tm-line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.tm-acc-head {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    background: var(--tm-bg);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--tm-ink);
    text-align: right;
    cursor: pointer;
}

    .tm-acc-head .fa-chevron-down {
        margin-right: auto;
        font-size: 12px;
        color: var(--tm-muted);
        transition: transform .3s var(--tm-ease);
    }

.tm-acc-num {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--tm-primary);
    color: #fff;
    font-size: 13px;
}

.tm-acc-body {
    display: none;
    padding: 14px 18px;
}

.tm-acc-item.is-open .tm-acc-body {
    display: block;
}

.tm-acc-item.is-open .tm-acc-head .fa-chevron-down {
    transform: rotate(180deg);
}

/* flight fares */
.tm-fare {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--tm-line);
    border-radius: 14px;
}

    .tm-fare + .tm-fare {
        margin-top: 10px;
    }

    .tm-fare b {
        display: block;
        color: var(--tm-ink);
    }

    .tm-fare span {
        font-size: 13px;
        color: var(--tm-muted);
    }

.tm-fare-logo {
    width: 54px;
    height: 36px;
    object-fit: contain;
}

.tm-fare-dates {
    margin-right: auto;
    text-align: left;
}

    .tm-fare-dates small {
        display: block;
        color: var(--tm-muted);
    }

    .tm-fare-dates b {
        font-size: 13.5px;
    }

/* packages */
.tm-package {
    border: 1.5px solid var(--tm-line);
    border-radius: 18px;
    padding: 16px;
    transition: border-color .3s var(--tm-ease), box-shadow .3s var(--tm-ease);
}

    .tm-package + .tm-package {
        margin-top: 14px;
    }

    .tm-package.is-selected {
        border-color: var(--tm-primary);
        box-shadow: 0 0 0 4px rgba(30, 136, 229, .1);
    }

.tm-package-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.tm-package-from {
    font-size: 13px;
    color: var(--tm-muted);
}

    .tm-package-from b {
        font-size: 17px;
        color: var(--tm-primary-dark);
    }

.tm-radio {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--tm-ink);
    cursor: pointer;
}

    .tm-radio input {
        position: absolute;
        opacity: 0;
    }

.tm-radio-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #c7d4e4;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.tm-radio input:checked + .tm-radio-dot {
    border-color: var(--tm-primary);
    box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 11px var(--tm-primary);
}

.tm-radio input:focus-visible + .tm-radio-dot {
    box-shadow: 0 0 0 3px rgba(30, 136, 229, .3);
}

.tm-hotels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

.tm-hotel {
    border-radius: 14px;
    overflow: hidden;
    background: var(--tm-bg);
    border: 1px solid var(--tm-line);
}

.tm-hotel-img {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #e7edf5;
}

    .tm-hotel-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.tm-hotel-city {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 30, 55, .72);
    color: #fff;
    font-size: 12px;
}

    .tm-hotel-city i {
        color: #ffc27a;
    }

.tm-hotel-body {
    padding: 10px 12px 12px;
}

    .tm-hotel-body b {
        display: block;
        font-size: 14px;
        color: var(--tm-ink);
    }

.tm-hotel-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--tm-muted);
}

.tm-stars {
    height: 14px;
}

.tm-price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

    .tm-price-grid li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 9px 12px;
        border-radius: 11px;
        background: var(--tm-accent-soft);
        font-size: 12.5px;
        color: var(--tm-text);
    }

        .tm-price-grid li b {
            font-size: 13.5px;
            color: var(--tm-ink);
        }

/* sidebar */
.tm-side {
    position: sticky;
    top: 90px;
}

.tm-price-card {
    border-top: 4px solid var(--tm-accent);
}

.tm-price-label {
    font-size: 13px;
    color: var(--tm-muted);
}

.tm-price-big {
    margin: 4px 0 16px;
    font-size: 28px;
    font-weight: 900;
    color: var(--tm-primary-dark);
}

    .tm-price-big small {
        font-size: 14px;
        color: var(--tm-muted);
        font-weight: 600;
    }

.tm-side-list {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

    .tm-side-list li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 0;
        border-bottom: 1px dashed #e3e9f1;
        font-size: 13.5px;
    }

        .tm-side-list li span {
            color: var(--tm-muted);
        }

        .tm-side-list li i {
            width: 18px;
            margin-left: 6px;
            color: var(--tm-primary);
        }

        .tm-side-list li b {
            color: var(--tm-ink);
            text-align: left;
        }

.tm-side-note {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.9;
    color: var(--tm-muted);
}

    .tm-side-note i {
        color: var(--tm-primary);
    }

.tm-help {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: var(--tm-radius);
    background: linear-gradient(135deg, #0f2c52, #1565c0);
    color: #fff;
    text-decoration: none !important;
    box-shadow: var(--tm-shadow);
    transition: transform .3s var(--tm-ease);
}

    .tm-help:hover {
        color: #fff;
        transform: translateY(-3px);
    }

    .tm-help > i {
        display: grid;
        place-items: center;
        width: 46px;
        height: 46px;
        border-radius: 14px;
        background: var(--tm-accent);
        font-size: 19px;
    }

    .tm-help b {
        display: block;
        font-size: 14.5px;
    }

    .tm-help span {
        font-size: 15px;
        letter-spacing: .5px;
        opacity: .9;
    }

.tm-similar .tm-section-title {
    font-size: 16px;
}

.tm-similar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    margin: 0 -8px;
    border-radius: 14px;
    text-decoration: none !important;
    transition: background .25s;
}

    .tm-similar-item:hover {
        background: var(--tm-bg);
    }

    .tm-similar-item img {
        flex: none;
        width: 84px;
        height: 64px;
        border-radius: 11px;
        object-fit: cover;
        background: #e7edf5;
    }

    .tm-similar-item b {
        display: block;
        font-size: 13.5px;
        line-height: 1.8;
        color: var(--tm-ink);
    }

    .tm-similar-item span {
        font-size: 12px;
        color: var(--tm-muted);
    }

    .tm-similar-item em {
        font-style: normal;
        font-weight: 800;
        color: var(--tm-primary-dark);
    }

.tm-similar-soldout {
    color: var(--tm-red) !important;
}

.tm-similar-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e3e9f1;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--tm-primary);
    text-decoration: none !important;
}

/* forms */
.tm-checks {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.tm-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 14px;
    color: var(--tm-text);
    cursor: pointer;
}

    .tm-check input {
        position: absolute;
        opacity: 0;
    }

.tm-check-box {
    flex: none;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 2px solid #c7d4e4;
    background: #fff;
    color: transparent;
    font-size: 11px;
    transition: background .2s, border-color .2s, color .2s;
}

.tm-check input:checked + .tm-check-box {
    background: var(--tm-primary);
    border-color: var(--tm-primary);
    color: #fff;
}

.tm-check input:focus-visible + .tm-check-box {
    box-shadow: 0 0 0 3px rgba(30, 136, 229, .3);
}

.tm-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.tm-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--tm-muted);
}

.tm-field-btn {
    display: flex;
    align-items: flex-end;
}

    .tm-field-btn .tm-btn {
        width: 100%;
    }

.tm-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1.5px solid #e1e8f0;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    color: var(--tm-ink);
    outline: none;
    transition: border-color .25s, box-shadow .25s;
}

    .tm-input:focus {
        border-color: var(--tm-primary);
        box-shadow: 0 0 0 4px rgba(30, 136, 229, .12);
    }

.tm-ltr {
    direction: ltr;
    text-align: left;
}

    .tm-ltr::placeholder {
        text-align: left;
    }

.tm-ltr-inline {
    direction: ltr;
    unicode-bidi: embed;
}

.tm-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
}

    .tm-alert.is-ok {
        background: var(--tm-green-soft);
        color: #047857;
    }

.tm-badge {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--tm-primary-soft);
    color: var(--tm-primary);
    font-size: 13px;
    font-weight: 700;
}

.tm-notice {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--tm-accent-soft);
    color: #9a5b06;
    font-size: 13px;
    line-height: 1.9;
}

    .tm-notice i {
        margin-top: 5px;
    }

.tm-pax {
    padding: 16px;
    border: 1px solid var(--tm-line);
    border-radius: 16px;
    background: #fbfcfe;
}

    .tm-pax + .tm-pax {
        margin-top: 12px;
    }

.tm-pax-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

    .tm-pax-head b {
        font-size: 14.5px;
        color: var(--tm-ink);
    }

.tm-pax-num {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: var(--tm-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.tm-pax-remove {
    margin-right: auto;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: #fdecec;
    color: var(--tm-red);
    cursor: pointer;
    transition: background .2s;
}

    .tm-pax-remove:hover {
        background: #fbd5d5;
    }

.tm-add-pax {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 13px;
    border: 1.5px dashed #b9d3f1;
    border-radius: 14px;
    background: var(--tm-primary-soft);
    color: var(--tm-primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

    .tm-add-pax:hover {
        background: #d9e9fb;
    }

    .tm-add-pax:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

.tm-card-box > .tm-btn-block {
    margin-top: 20px;
    height: 52px;
    font-size: 15.5px;
}

/* review */
.tm-review {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed #e3e9f1;
}

.tm-review-main {
    min-width: 160px;
}

    .tm-review-main b {
        display: block;
        color: var(--tm-ink);
    }

    .tm-review-main span {
        font-size: 12.5px;
        color: var(--tm-muted);
    }

.tm-review-meta {
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-auto-flow: column;
    grid-template-rows: auto auto;
    gap: 2px 26px;
    margin: 0 auto 0 0;
    font-size: 13px;
}

    .tm-review-meta dt {
        font-weight: 400;
        color: var(--tm-muted);
        font-size: 12px;
    }

    .tm-review-meta dd {
        margin: 0;
        font-weight: 700;
        color: var(--tm-ink);
    }

.tm-contact-review {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 16px;
    font-size: 13.5px;
    color: var(--tm-muted);
}

    .tm-contact-review i {
        color: var(--tm-primary);
    }

    .tm-contact-review b {
        color: var(--tm-ink);
    }

.tm-finalize {
    text-align: center;
    padding: 30px 24px;
}

.tm-finalize-icon {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--tm-green-soft);
    color: var(--tm-green);
    font-size: 26px;
}

.tm-finalize h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    color: var(--tm-ink);
}

.tm-finalize p {
    max-width: 520px;
    margin: 0 auto 20px;
    font-size: 14px;
    line-height: 2;
    color: var(--tm-muted);
}

.tm-finalize-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

    .tm-finalize-actions .tm-btn {
        height: 50px;
    }

/* mobile booking bar */
.tm-mobile-bar {
    display: none;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .tm-form-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .tm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tm-side {
        position: static;
        margin-top: 10px;
    }

    .tm-tabs {
        top: 60px;
    }

    .tm-facility-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tm-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tm-detail .tm-price-card {
        display: none;
    }

    .tm-mobile-bar {
        position: fixed;
        inset: auto 0 0 0;
        z-index: 900;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid var(--tm-line);
        box-shadow: 0 -10px 24px -14px rgba(15, 35, 70, .35);
    }

        .tm-mobile-bar small {
            display: block;
            font-size: 11.5px;
            color: var(--tm-muted);
        }

        .tm-mobile-bar b {
            font-size: 17px;
            font-weight: 900;
            color: var(--tm-primary-dark);
        }

            .tm-mobile-bar b span {
                font-size: 12px;
                color: var(--tm-muted);
            }

    body:has(.tm-mobile-bar) .sf-to-top {
        bottom: 84px;
    }

    .tm-page.is-detail {
        padding-bottom: 100px;
    }

    .tm-review {
        flex-wrap: wrap;
    }

    .tm-review-meta {
        width: 100%;
        margin: 4px 44px 0 0;
    }
}

@media (max-width: 767.98px) {
    .tm-hero {
        padding: 34px 0 84px;
    }

        .tm-hero h1 {
            font-size: 24px;
        }

        .tm-hero p {
            font-size: 13.5px;
        }

    .tm-hero-stats > div {
        min-width: 0;
        flex: 1 1 90px;
        padding: 10px;
    }

    .tm-hero-stats b {
        font-size: 17px;
    }

    .tm-hero-chips > span {
        font-size: 12.5px;
        padding: 6px 12px;
    }

    .tm-toolbar {
        padding: 12px;
    }

    .tm-toolbar-left {
        width: 100%;
        justify-content: space-between;
    }

    .tm-select {
        flex: 1;
    }

        .tm-select select {
            width: 100%;
        }

    .tm-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .tm-card-box {
        padding: 18px 16px;
    }

    .tm-steps {
        margin: -30px 0 18px;
        border-radius: 16px;
        gap: 4px;
        padding: 6px;
    }

        .tm-steps li {
            flex-direction: column;
            gap: 4px;
            padding: 6px 4px;
            font-size: 11.5px;
            border-radius: 12px;
        }

    .tm-cover {
        aspect-ratio: 16 / 10;
        border-radius: 18px;
    }

    .tm-facility-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tm-form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .tm-fare {
        flex-wrap: wrap;
    }

    .tm-fare-dates {
        width: 100%;
        margin: 0;
        text-align: right;
    }

    .tm-hotels {
        grid-template-columns: minmax(0, 1fr);
    }

    .tm-price-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tm-review-meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2px 10px;
        margin-right: 0;
    }

    .tm-finalize-actions {
        flex-direction: column;
    }

        .tm-finalize-actions .tm-btn {
            width: 100%;
            white-space: normal;
        }
}

@media (prefers-reduced-motion: reduce) {
    .tm-card,
    .tm-card-media img,
    .tm-btn {
        transition: none;
    }
}

/* admin-entered HTML often carries inline font sizes; keep it on the page scale */
.tm-rich [style*="font-size"],
.tm-rich font[size] {
    font-size: inherit !important;
    line-height: inherit !important;
}

.tm-alert.is-error {
    align-items: flex-start;
    margin: 0 0 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

    .tm-alert.is-error i {
        margin-top: 4px;
    }

    .tm-alert.is-error ul {
        margin: 0;
        padding: 0 18px 0 0;
        line-height: 1.9;
        font-size: 13px;
    }
