.msn-save-trip-host {
    position: relative;
}

.msn-save-trip {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 12;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: transform .2s ease, color .2s ease;
}

.msn-save-trip svg {
    width: 26px;
    height: 26px;
    display: block;
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.45));
}

.msn-save-trip:hover {
    transform: scale(1.08);
}

.msn-save-trip.is-saved {
    color: #c93d34;
    background: transparent;
    border-color: transparent;
}

.msn-save-trip.is-saved svg {
    fill: currentColor;
}

.msn-saved-trips-menu-link {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
}

.msn-saved-trips-menu-heart {
    width: 18px;
    height: 18px;
    display: inline-flex;
    flex: 0 0 auto;
}

.msn-saved-trips-menu-heart svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.msn-saved-trips-menu-link.has-saved-trips .msn-saved-trips-menu-heart {
    color: #c93d34;
}

.msn-saved-trips-menu-link.has-saved-trips .msn-saved-trips-menu-heart svg {
    fill: currentColor;
}

.msn-saved-trips-count {
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    font-size: 11px;
    line-height: 1;
}

.msn-saved-trips-count.is-empty {
    opacity: .55;
}

.msn-saved-toast {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: min(520px, calc(100vw - 40px));
    padding: 15px 18px;
    background: #171717;
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
    box-shadow: 0 14px 40px rgba(0,0,0,.22);
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.msn-saved-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.msn-saved-toast a {
    flex: 0 0 auto;
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.msn-saved-trips-page {
    min-height: 100vh;
    background: #eeebe4;
    color: #171717;
}

.msn-saved-trips-hero {
    padding: 170px 5vw 58px;
    background: #171717;
    color: #fff;
}

.msn-saved-trips-shell {
    width: min(1480px, 100%);
    margin: 0 auto;
}

.msn-saved-trips-kicker {
    margin: 0 0 16px;
    color: rgba(255,255,255,.7);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.msn-saved-trips-hero h1 {
    max-width: 1050px;
    margin: 0;
    font-family: var(--msn-display-serif, Georgia, "Times New Roman", serif);
    font-size: clamp(54px, 7vw, 98px);
    font-weight: 400;
    line-height: .95;
    letter-spacing: -.035em;
}

.msn-saved-trips-lead {
    max-width: 760px;
    margin: 24px 0 0;
    color: rgba(255,255,255,.78);
    font-size: 18px;
    line-height: 1.55;
}

.msn-saved-trips-summary {
    padding: 30px 5vw 8px;
}

.msn-saved-trips-summary p {
    margin: 0;
    color: #69655e;
    font-size: 15px;
}

.msn-saved-trips-summary strong {
    color: #171717;
}

.msn-saved-trips-results {
    padding: 22px 5vw 50px;
}

.msn-saved-trips-results .cesty-result-list {
    width: min(1480px, 100%);
    margin: 0 auto;
}

.msn-saved-trips-loading,
.msn-saved-trips-error,
.msn-saved-trips-empty {
    width: min(1480px, 100%);
    margin: 0 auto;
}

.msn-saved-trips-loading,
.msn-saved-trips-error {
    padding: 42px 0;
    color: #6b675f;
}

.msn-saved-trips-empty {
    padding: 70px 0 100px;
}

.msn-saved-trips-empty h2 {
    margin: 0;
    font-family: var(--msn-display-serif, Georgia, "Times New Roman", serif);
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 400;
    line-height: 1;
}

.msn-saved-trips-empty p {
    max-width: 650px;
    margin: 18px 0 28px;
    color: #625e57;
    font-size: 17px;
    line-height: 1.55;
}

.msn-saved-trips-empty a,
.msn-saved-trips-enquiry-button,
.msn-tailor-trip-cta a,
.msn-saved-compare-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 24px;
    background: #171717;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

/* Prázdný stav teď nabízí dva odkazy (cesty i hotely) vedle sebe - je to
   pořád ".msn-saved-trips-empty p" (zachovává odsazení/max-width), jen s
   flex řádkem místo běžného textu. */
.msn-saved-trips-empty p.msn-saved-trips-empty-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 520px) {
    .msn-saved-trips-empty-links a {
        width: 100%;
    }
}

.msn-saved-card-compare {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(23,23,23,.12);
}

.msn-saved-card-compare label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #4f4b45;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.msn-saved-card-compare input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #171717;
}

/*
 * Porovnávat lze jen cesty MEZI SEBOU nebo hotely MEZI SEBOU, ne mix
 * (viz updateCompareUi() v saved-trips.js) - dokud je vybraná první
 * položka, checkbox opačného typu se zablokuje (ne skryje).
 */
.msn-saved-card-compare.is-locked-out label {
    opacity: .4;
    cursor: not-allowed;
}

.msn-saved-card-compare.is-locked-out input {
    cursor: not-allowed;
}

.msn-saved-trips-compare {
    padding: 12px 5vw 84px;
}

.msn-saved-compare-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 42px;
    align-items: end;
    padding: 42px 0 34px;
    border-top: 1px solid rgba(23,23,23,.16);
}

.msn-saved-trips-compare .msn-saved-trips-kicker {
    color: #746f67;
}

.msn-saved-compare-heading h2 {
    margin: 0;
    font-family: var(--msn-display-serif, Georgia, "Times New Roman", serif);
    font-size: clamp(38px, 4vw, 60px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.035em;
}

.msn-saved-compare-heading p:not(.msn-saved-trips-kicker) {
    max-width: 700px;
    margin: 16px 0 0;
    color: #625e57;
    font-size: 16px;
    line-height: 1.5;
}

.msn-saved-compare-open {
    min-width: 210px;
    padding: 15px 22px;
    border: 1px solid #171717;
    background: #171717;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.msn-saved-compare-open:disabled {
    border-color: #bcb6ad;
    background: transparent;
    color: #9a948b;
    cursor: default;
}

.msn-saved-compare-open span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    margin-left: 8px;
    padding: 2px 6px;
    background: rgba(255,255,255,.14);
}

.msn-saved-compare-open:disabled span {
    background: rgba(23,23,23,.06);
}

.msn-saved-compare-panel {
    padding: 32px;
    background: #f7f4ee;
    border: 1px solid rgba(23,23,23,.14);
    scroll-margin-top: 110px;
}

.msn-saved-compare-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.msn-saved-compare-panel-head h3 {
    margin: 0;
    font-family: var(--msn-display-serif, Georgia, "Times New Roman", serif);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 400;
}

.msn-saved-compare-panel-head button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #171717;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

.msn-saved-compare-table-wrap {
    overflow-x: auto;
}

.msn-saved-compare-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    table-layout: fixed;
}

.msn-saved-compare-table th,
.msn-saved-compare-table td {
    padding: 17px 18px;
    border-top: 1px solid rgba(23,23,23,.12);
    text-align: left;
    vertical-align: top;
}

.msn-saved-compare-table thead th {
    border-top: 0;
    font-size: 19px;
    line-height: 1.2;
}

.msn-saved-compare-table thead th:first-child,
.msn-saved-compare-table tbody th {
    width: 150px;
}

.msn-saved-compare-table thead a {
    color: #171717;
    text-decoration: none;
}

.msn-saved-compare-table tbody th {
    color: #716c64;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.msn-saved-compare-table td {
    color: #36332f;
    font-size: 15px;
    line-height: 1.45;
}

.msn-saved-compare-detail {
    padding: 11px 16px;
    font-size: 14px;
}

.msn-saved-trips-enquiry {
    padding: 0 5vw 100px;
}

.msn-saved-trips-enquiry-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 48px;
    align-items: end;
    padding: 54px 58px;
    background: #ded8ce;
}

.msn-saved-trips-enquiry .msn-saved-trips-kicker {
    color: #716c64;
}

.msn-saved-trips-enquiry h2,
.msn-tailor-trip-cta h2,
.msn-recent-trips h2 {
    margin: 0;
    font-family: var(--msn-display-serif, Georgia, "Times New Roman", serif);
    font-weight: 400;
    letter-spacing: -.035em;
}

.msn-saved-trips-enquiry h2 {
    font-size: clamp(38px, 4vw, 62px);
    line-height: 1;
}

.msn-saved-trips-enquiry p:not(.msn-saved-trips-kicker) {
    max-width: 760px;
    margin: 18px 0 0;
    color: #57534d;
    font-size: 17px;
    line-height: 1.55;
}

.msn-tailor-trip-cta {
    padding: 76px 5vw;
    background: #ded8ce;
    color: #171717;
}

.msn-tailor-trip-cta-inner {
    width: min(1480px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 48px;
    align-items: end;
}

.msn-tailor-trip-cta p,
.msn-recent-trips-heading p {
    margin: 0 0 14px;
    color: #746f67;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
}

.msn-tailor-trip-cta h2 {
    max-width: 900px;
    font-size: clamp(38px, 4.2vw, 64px);
    line-height: 1;
}

.msn-tailor-trip-cta span {
    display: block;
    max-width: 760px;
    margin-top: 18px;
    color: #59554f;
    font-size: 17px;
    line-height: 1.55;
}

.msn-recent-trips {
    padding: 82px 5vw;
    background: #f3f0e9;
}

.msn-recent-trips-inner {
    width: min(1480px, 100%);
    margin: 0 auto;
}

.msn-recent-trips h2 {
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1;
}

.msn-recent-trips-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.msn-recent-card {
    min-width: 0;
    background: #ebe7df;
}

.msn-recent-card-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.msn-recent-card-media > a,
.msn-recent-card-media img {
    display: block;
    width: 100%;
    height: 100%;
}

.msn-recent-card-media img {
    object-fit: cover;
}

.msn-recent-card-content {
    padding: 22px 22px 25px;
}

.msn-recent-card-content > p {
    margin: 0 0 10px;
    color: #716d66;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.msn-recent-card h3 {
    margin: 0;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.02;
}

.msn-recent-card h3 a {
    color: #171717;
    text-decoration: none;
}

.msn-recent-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 15px;
    color: #5e5a54;
    font-size: 14px;
}

@media (max-width: 980px) {
    .msn-saved-trips-enquiry-inner,
    .msn-tailor-trip-cta-inner,
    .msn-saved-compare-heading {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .msn-recent-trips-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .msn-save-trip {
        top: 12px;
        right: 12px;
        width: 30px;
        height: 30px;
    }

    .msn-saved-toast {
        right: 20px;
        bottom: 20px;
        left: 20px;
        max-width: none;
        justify-content: space-between;
    }

    .msn-saved-trips-hero {
        padding: 125px 20px 44px;
    }

    .msn-saved-trips-hero h1 {
        font-size: clamp(48px, 15vw, 68px);
    }

    .msn-saved-trips-summary,
    .msn-saved-trips-results,
    .msn-saved-trips-compare,
    .msn-saved-trips-enquiry,
    .msn-tailor-trip-cta,
    .msn-recent-trips {
        padding-left: 20px;
        padding-right: 20px;
    }

    .msn-saved-compare-open {
        width: 100%;
    }

    .msn-saved-compare-panel {
        margin-left: -20px;
        margin-right: -20px;
        padding: 26px 20px;
        border-left: 0;
        border-right: 0;
    }

    .msn-saved-compare-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .msn-saved-trips-enquiry-inner {
        padding: 38px 26px;
    }

    .msn-tailor-trip-cta {
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .msn-recent-trips {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .msn-recent-trips-row {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        margin-right: -20px;
        padding-right: 20px;
        scrollbar-width: none;
    }

    .msn-recent-trips-row::-webkit-scrollbar {
        display: none;
    }

    .msn-recent-card {
        flex: 0 0 78vw;
    }
}
