/* Let Me Discover v2: favourites (fav/heart, fav/button, v2/favorites). Same rules as the rest of the tour site:
   white and the site's blues only, a small calm "pop" when a tour is saved, hover only a small scale. */

/* ───── the heart on a tour tile: a small round button at the top right of the photo ───── */
.lmd-heart {
    position: absolute; z-index: 2; top: 8px; right: 8px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
    border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); background: rgba(15, 61, 102, .45); color: #fff; cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}
.lmd-heart:hover, .lmd-heart:focus-visible { transform: scale(1.08); background: rgba(15, 61, 102, .62); }
.lmd-heart svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; transition: fill .2s ease; }
.lmd-heart.is-on svg { fill: currentColor; }
.lmd-heart.is-pop svg { animation: lmd-fav-pop .45s cubic-bezier(.22, 1, .36, 1); }
@keyframes lmd-fav-pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* the tile list (v2/country): the heart sits on the photo, the duration moves left of it */
.lmd-tour { position: relative; }
.lmd-tour:has(.lmd-heart) .lmd-tour__dur { right: 48px; top: 11px; }
.lmd-tour:has(a:hover) .lmd-heart { transform: scale(1.05) translate(-2px, -1px); }

/* the tour page: a bigger heart after the title */
.lmd-heart.is-big {
    position: relative; top: auto; right: auto; flex-shrink: 0; width: 44px; height: 44px;
    background: var(--lmd-btn, #55a6e0); border-color: rgba(255, 255, 255, .8); box-shadow: 0 12px 30px -16px rgba(15, 45, 90, .6);
}
.lmd-heart.is-big svg { width: 21px; height: 21px; }
.lmd-heart.is-big:hover { background: var(--lmd-wave, #3a8bd2); }
.lmd-tp__titlerow { display: flex; align-items: flex-start; gap: 14px; }
.lmd-tp__titlerow h1 { flex: 1 1 auto; min-width: 0; }
.lmd-tp__titlerow .lmd-heart.is-big { margin-top: 6px; }

/* ───── the nav button: same round outline as the cart ───── */
.lmd-favbtn {
    position: relative; flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .6);
    transition: background .2s ease, transform .2s ease;
}
.lmd-favbtn:hover { background: rgba(255, 255, 255, .16); color: #fff; transform: scale(1.04); }
.lmd-favbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.lmd-favbtn__n {
    position: absolute; top: -5px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
    display: grid; place-items: center; font: 700 11px/1 var(--lmd-body); color: #fff;
    background: var(--lmd-btn); border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 4px 10px -4px rgba(15, 45, 90, .6);
    transition: transform .3s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
}
.lmd-favbtn__n.is-zero { transform: scale(0); opacity: 0; }
.lmd-favbtn:has(.lmd-favbtn__n:not(.is-zero)) svg { fill: currentColor; }
.lmd-nav.is-solid .lmd-favbtn { width: 44px; height: 44px; }
.lmd-favbtn.is-phone { display: none; }
.lmd-favbtn.is-bump .lmd-favbtn__n { animation: lmd-fav-pop .5s cubic-bezier(.22, 1, .36, 1); }
@media (max-width: 900px) {
    .lmd-nav__in:has(.lmd-favbtn.is-phone) { grid-template-columns: 1fr auto auto auto; }
    .lmd-favbtn.is-phone { display: grid; }
    .lmd-nav.is-open .lmd-nav__actions .lmd-favbtn { display: none; }
}

/* pages without the nav bar (tour list, tour): a round button left of the floating cart (and of the search) */
.lmd-favbtn.is-float {
    position: fixed; z-index: 1000; top: 20px; right: calc(var(--lmd-gutter) + 58px); width: 46px; height: 46px;
    background: var(--lmd-btn); border: 1px solid rgba(255, 255, 255, .75); box-shadow: 0 12px 30px -16px rgba(15, 45, 90, .6);
}
.lmd-favbtn.is-float:hover { background: var(--lmd-wave); }
.lmd-favbtn.is-float2 { right: calc(var(--lmd-gutter) + 116px); }
body:has(.lmd-tp__book.is-form):has(.lmd-help) .lmd-favbtn.is-float2 { top: 16px; right: calc(clamp(16px, 2.4vw, 32px) + 168px); }

/* ───── the Favourites page (v2/favorites): white look, photo tiles ───── */
.lmd-fv { min-height: 100vh; padding: 96px var(--lmd-gutter, 24px) 60px; }
.lmd-fv__in { max-width: 1180px; margin: 0 auto; }
.lmd-fv h1 { margin: 0 0 6px; font: 600 clamp(26px, 3.4vw, 36px)/1.15 var(--lmd-display); color: #1f5f9e; }
.lmd-fv__lead { margin: 0 0 26px; color: #5b7f9f; font-size: 15px; }
.lmd-fv__empty {
    display: grid; justify-items: center; gap: 10px; padding: 56px 20px; text-align: center; border: 1px solid #dfe6ee; border-radius: 20px;
    background: #fff; color: #5b7f9f;
}
.lmd-fv__empty svg { width: 40px; height: 40px; fill: none; stroke: #7fb3e0; stroke-width: 1.6; stroke-linejoin: round; }
.lmd-fv__empty b { font: 600 18px var(--lmd-display); color: #1f5f9e; }
.lmd-fv__empty[hidden] { display: none; }
.lmd-fv .lmd-tours { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.lmd-fv .lmd-tour { animation: lmd-fv-rise .5s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i, 0) * .04s); transition: opacity .3s ease, transform .3s ease; }
.lmd-fv .lmd-tour.is-gone { opacity: 0; transform: scale(.94); }
.lmd-fv .lmd-tour a {
    position: relative; isolation: isolate; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; color: #fff; text-decoration: none;
    background: linear-gradient(160deg, #a9dcff 0%, #6cb8f6 60%, #4a9fe0 100%);
    border: 1px solid #dfe6ee; box-shadow: 0 16px 34px -18px rgba(11, 18, 51, .45); transition: transform .25s ease-out;
}
.lmd-fv .lmd-tour a:hover { transform: scale(1.03); }
.lmd-fv .lmd-tour img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.lmd-fv .lmd-tour__cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 12px 11px;
    background: linear-gradient(0deg, rgba(15, 61, 102, .8) 0%, rgba(15, 61, 102, .4) 60%, rgba(15, 61, 102, 0) 100%);
}
.lmd-fv .lmd-tour h3 {
    margin: 0; font: 600 14px/1.3 var(--lmd-display); color: #fff;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lmd-fv .lmd-tour__place { display: block; margin-top: 3px; font-size: 12px; color: rgba(255, 255, 255, .85); }
.lmd-fv .lmd-tour__price {
    position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 999px; font: 700 12px var(--lmd-display);
    color: #1f5f9e; background: rgba(255, 255, 255, .92);
}
@keyframes lmd-fv-rise { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
    .lmd-heart, .lmd-heart svg, .lmd-favbtn, .lmd-favbtn__n, .lmd-fv .lmd-tour { animation: none !important; transition: none !important; }
}
