/* Wishlist pages & favorite control */

:root {
    --wl-ink: #0f172a;
    --wl-muted: #64748b;
    --wl-line: #e2e8f0;
    --wl-surface: #ffffff;
    --wl-brand: #0d47a1;
    --wl-brand-soft: #eff6ff;
    --wl-danger: #be123c;
    --wl-radius: 18px;
    --wl-shadow: 0 12px 28px rgba(15, 23, 42, .07);
}

.wl-page {
    padding: 2.4rem 0 4.5rem;
    background:
        radial-gradient(ellipse 70% 45% at 100% 0%, rgba(13, 71, 161, .08), transparent 55%),
        radial-gradient(ellipse 55% 40% at 0% 10%, rgba(14, 165, 233, .07), transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    min-height: 60vh;
}

.wl-page__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.wl-page__intro {
    min-width: 0;
    flex: 1 1 16rem;
}

.wl-page__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--wl-brand);
    margin-bottom: .4rem;
}

.wl-page__title {
    font-size: clamp(1.55rem, 2.6vw, 2rem);
    font-weight: 800;
    color: var(--wl-ink);
    margin: 0;
    letter-spacing: -.03em;
    line-height: 1.15;
}

.wl-page__subtitle {
    margin: .45rem 0 0;
    color: var(--wl-muted);
    font-size: .95rem;
    max-width: 36rem;
}

.wl-page__actions {
    flex-shrink: 0;
}

.wl-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 0;
    border-radius: 999px;
    background: var(--wl-brand);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    padding: .72rem 1.15rem;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(13, 71, 161, .22);
    transition: transform .15s, background .15s, box-shadow .15s;
}

.wl-btn-primary:hover {
    background: #0a3a85;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(13, 71, 161, .28);
}

.wl-icon-btn,
.wl-folder__menu-btn {
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #334155;
    display: inline-grid;
    place-items: center;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .12);
    transition: background .15s, color .15s, transform .15s;
}

.wl-page__actions .wl-icon-btn {
    border-color: var(--wl-line);
    background: var(--wl-surface);
}

.wl-icon-btn:hover,
.wl-folder__menu-btn:hover,
.wl-icon-btn[aria-expanded="true"],
.wl-folder__menu-btn[aria-expanded="true"] {
    background: #fff;
    color: var(--wl-brand);
    transform: scale(1.04);
}

.wl-alert {
    border-radius: 14px;
    padding: .85rem 1rem;
    margin-bottom: 1.1rem;
    font-weight: 600;
    font-size: .9rem;
}

.wl-alert--success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.wl-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .95rem;
}

.wl-toolbar__count {
    color: var(--wl-muted);
    font-size: .86rem;
    font-weight: 600;
}

.wl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.1rem;
}

.wl-folder {
    position: relative;
    border-radius: var(--wl-radius);
    background: var(--wl-surface);
    border: 1px solid rgba(226, 232, 240, .9);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.wl-folder:hover {
    transform: translateY(-3px);
    box-shadow: var(--wl-shadow);
    border-color: #c7d7f5;
}

.wl-folder__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.wl-folder__menu {
    position: absolute;
    top: .75rem;
    inset-inline-end: .75rem;
    z-index: 4;
}

.wl-folder__dropdown {
    min-width: 11.5rem;
    padding: .35rem;
    border: 1px solid var(--wl-line);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .14);
    margin-top: .35rem !important;
}

.wl-folder__dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    border-radius: 10px;
    padding: .6rem .7rem;
    font-weight: 600;
    font-size: .88rem;
    color: var(--wl-ink);
}

.wl-folder__dropdown .dropdown-item i {
    width: 1rem;
    text-align: center;
    color: var(--wl-muted);
}

.wl-folder__dropdown .dropdown-item:hover,
.wl-folder__dropdown .dropdown-item:focus {
    background: var(--wl-brand-soft);
    color: var(--wl-brand);
}

.wl-folder__dropdown .dropdown-item:hover i,
.wl-folder__dropdown .dropdown-item:focus i {
    color: var(--wl-brand);
}

.wl-folder__dropdown .dropdown-item.text-danger,
.wl-folder__dropdown .dropdown-item.text-danger i {
    color: var(--wl-danger);
}

.wl-folder__dropdown .dropdown-item.text-danger:hover,
.wl-folder__dropdown .dropdown-item.text-danger:focus {
    background: #fff1f2;
    color: var(--wl-danger);
}

.wl-folder__dropdown .dropdown-divider {
    margin: .3rem .35rem;
    opacity: .7;
}

.wl-folder__media {
    position: relative;
    height: 128px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1rem;
    color: #fff;
    border-radius: calc(var(--wl-radius) - 1px) calc(var(--wl-radius) - 1px) 0 0;
    overflow: hidden;
}

.wl-folder__cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.wl-folder__media-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .08) 0%, rgba(15, 23, 42, .45) 100%);
    pointer-events: none;
}

.wl-folder--has-cover .wl-folder__media {
    background: #0f172a;
}

.wl-folder--has-cover .wl-folder__chip {
    position: relative;
    z-index: 1;
    background: rgba(15, 23, 42, .45);
}

.wl-folder--tone-0 .wl-folder__media {
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .28), transparent 35%),
        linear-gradient(145deg, #0d47a1 0%, #1565c0 48%, #38bdf8 100%);
}

.wl-folder--tone-1 .wl-folder__media {
    background:
        radial-gradient(circle at 15% 80%, rgba(255, 255, 255, .22), transparent 40%),
        linear-gradient(145deg, #0f766e 0%, #0ea5e9 52%, #67e8f9 100%);
}

.wl-folder--tone-2 .wl-folder__media {
    background:
        radial-gradient(circle at 80% 75%, rgba(255, 255, 255, .2), transparent 38%),
        linear-gradient(145deg, #1e3a8a 0%, #4f46e5 50%, #818cf8 100%);
}

.wl-folder--tone-3 .wl-folder__media {
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .24), transparent 36%),
        linear-gradient(145deg, #075985 0%, #0284c7 45%, #22d3ee 100%);
}

.wl-folder__glyph {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -58%);
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(6px);
    font-size: 1.2rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}

.wl-folder__chip {
    display: inline-flex;
    align-items: center;
    padding: .28rem .65rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, .22);
    backdrop-filter: blur(8px);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.wl-folder__body {
    padding: 1rem 1.05rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: .7rem;
    flex: 1;
}

.wl-folder__name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--wl-ink);
    margin: 0;
    word-break: break-word;
    line-height: 1.3;
}

.wl-folder__cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--wl-brand);
    font-size: .84rem;
    font-weight: 700;
}

.wl-folder:hover .wl-folder__cta i {
    transform: translateX(2px);
}

html[dir="rtl"] .wl-folder:hover .wl-folder__cta i {
    transform: translateX(-2px);
}

.wl-folder__cta i {
    transition: transform .15s ease;
    font-size: .75rem;
}

.wl-empty {
    text-align: center;
    padding: 3.4rem 1.4rem;
    background: rgba(255, 255, 255, .85);
    border: 1px dashed #cbd5e1;
    border-radius: 22px;
    backdrop-filter: blur(6px);
}

.wl-empty__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 22px;
    background: linear-gradient(145deg, #eff6ff, #e0f2fe);
    color: var(--wl-brand);
    display: grid;
    place-items: center;
    font-size: 1.55rem;
    box-shadow: inset 0 0 0 1px rgba(13, 71, 161, .08);
}

.wl-empty__title {
    font-weight: 800;
    color: var(--wl-ink);
    margin: 0 0 .4rem;
    font-size: 1.2rem;
}

.wl-empty__text {
    color: var(--wl-muted);
    margin: 0 auto 1.25rem;
    max-width: 26rem;
}

.wl-trips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.1rem;
}

.wl-trip {
    position: relative;
}

.wl-trip__menu {
    position: absolute;
    top: .7rem;
    inset-inline-end: .7rem;
    z-index: 5;
}

.wl-trip__menu .wl-folder__menu-btn {
    border-color: transparent;
}

.wl-back {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--wl-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: .88rem;
    margin-bottom: 1rem;
    padding: .35rem .55rem .35rem 0;
    border-radius: 999px;
    transition: color .15s;
}

.wl-back:hover {
    color: var(--wl-brand);
}

/* Favorite button on cards / details */
.wl-fav {
    position: absolute;
    top: .7rem;
    inset-inline-end: .7rem;
    z-index: 3;
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .12);
    transition: color .15s, background .15s, transform .15s;
}

.wl-fav:hover {
    color: #e11d48;
    transform: scale(1.04);
}

.wl-fav.is-saved {
    color: #e11d48;
}

.wl-fav:disabled {
    opacity: .65;
}

.wl-fav--inline {
    position: static;
    width: auto;
    height: auto;
    padding: .55rem .9rem;
    border-radius: 999px;
    gap: .45rem;
    font-weight: 700;
    font-size: .9rem;
}

.flight-thumb-wrapper,
.sp-card__img,
.popFlights-item-overHidden,
.home-equal-media {
    position: relative;
}

.wl-modal .modal-content {
    border: 0;
}

.wl-modal__hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding: 1.35rem 1.35rem 1rem;
    background:
        radial-gradient(ellipse 70% 90% at 0% 0%, rgba(225, 29, 72, .1), transparent 55%),
        linear-gradient(180deg, #fff5f7 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(226, 232, 240, .8);
}

.wl-modal__hero-icon {
    flex-shrink: 0;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(225, 29, 72, .12);
    color: #e11d48;
    font-size: 1.05rem;
}

.wl-modal__hero-copy {
    min-width: 0;
    flex: 1;
    padding-inline-end: 1.5rem;
}

.wl-modal__title {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--wl-ink);
    letter-spacing: -.02em;
    line-height: 1.25;
}

.wl-modal__subtitle {
    margin: .3rem 0 0;
    color: var(--wl-muted);
    font-size: .88rem;
    line-height: 1.45;
}

.wl-modal__close {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
}

.wl-modal__body {
    padding: 1.1rem 1.35rem 0;
}

.wl-modal__folders {
    max-height: min(42vh, 280px);
    overflow: auto;
    margin: 0 -.2rem;
    padding: 0 .2rem;
}

.wl-modal .folder-check {
    position: relative;
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .85rem .95rem;
    border: 1px solid var(--wl-line);
    border-radius: 14px;
    margin-bottom: .55rem;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s, background .15s, box-shadow .15s;
}

.wl-modal .folder-check:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}

.wl-modal .folder-check.is-checked {
    border-color: #93c5fd;
    background: var(--wl-brand-soft);
    box-shadow: inset 0 0 0 1px rgba(13, 71, 161, .08);
}

.wl-modal .folder-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wl-modal .folder-check__mark {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: .4rem;
    border: 1.5px solid #cbd5e1;
    display: grid;
    place-items: center;
    color: transparent;
    background: #fff;
    font-size: .7rem;
    transition: background .15s, border-color .15s, color .15s;
}

.wl-modal .folder-check.is-checked .folder-check__mark {
    background: var(--wl-brand);
    border-color: var(--wl-brand);
    color: #fff;
}

.wl-modal .folder-check__body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.wl-modal .folder-check__name {
    font-weight: 700;
    color: var(--wl-ink);
    font-size: .95rem;
    line-height: 1.3;
}

.wl-modal .folder-check__count {
    color: var(--wl-muted);
    font-size: .78rem;
}

.wl-modal__empty {
    text-align: center;
    padding: 1.1rem .75rem;
    color: var(--wl-muted);
    font-size: .9rem;
    line-height: 1.5;
    background: #f8fafc;
    border: 1px dashed var(--wl-line);
    border-radius: 14px;
    margin-bottom: .75rem;
}

.wl-modal__empty-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto .65rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #94a3b8;
    border: 1px solid var(--wl-line);
}

.wl-modal__create {
    margin-top: .85rem;
    padding-top: .85rem;
    border-top: 1px solid var(--wl-line);
}

.wl-modal__create-label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--wl-muted);
    margin-bottom: .45rem;
}

.wl-modal__create-row {
    display: flex;
    gap: .5rem;
}

.wl-modal__create-row .form-control {
    flex: 1;
    min-width: 0;
}

.wl-modal__create-row .btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.wl-modal__error {
    color: var(--wl-danger);
    font-size: .86rem;
    margin-top: .7rem;
}

.wl-modal__footer {
    display: flex;
    gap: .65rem;
    padding: 1rem 1.35rem 1.35rem;
}

.wl-modal__footer .btn,
.wl-modal__footer .wl-btn-primary {
    flex: 1;
    justify-content: center;
    border-radius: .75rem;
    font-weight: 700;
    padding: .72rem 1rem;
    box-shadow: none;
}

.wl-modal__footer .btn-light {
    border: 1px solid var(--wl-line);
    background: #f8fafc;
    color: #334155;
}

.wl-modal__footer .wl-btn-primary:disabled,
.wl-modal__footer .wl-btn-primary.is-dimmed {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    pointer-events: none;
}

.wl-auth-modal .modal-content {
    border: 0;
}

.wl-auth-modal__body {
    text-align: center;
    padding: .35rem 1.35rem 1.45rem;
}

.wl-auth-modal__icon {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto .9rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(225, 29, 72, .1);
    color: #e11d48;
    font-size: 1.25rem;
}

.wl-auth-modal__title {
    margin: 0 0 .4rem;
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--wl-ink);
    letter-spacing: -.02em;
}

.wl-auth-modal__text {
    margin: 0 0 1.15rem;
    color: var(--wl-muted);
    font-size: .9rem;
    line-height: 1.5;
}

.wl-auth-modal__actions {
    display: grid;
    gap: .55rem;
}

.wl-auth-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border-radius: .75rem;
    font-weight: 700;
    padding: .72rem 1rem;
}

.wl-auth-modal__cancel {
    text-decoration: none;
    font-weight: 600;
    font-size: .88rem;
}

.wl-dialog {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(15, 23, 42, .18);
}

.wl-confirm-modal .modal-content {
    border: 0;
}

.wl-confirm-modal__body {
    padding: 1.85rem 1.5rem 1rem;
    text-align: center;
}

.wl-confirm-modal__icon {
    width: 3.35rem;
    height: 3.35rem;
    margin: 0 auto 1rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(190, 18, 60, .1);
    color: var(--wl-danger);
    font-size: 1.25rem;
}

.wl-confirm-modal__title {
    margin: 0 0 .45rem;
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--wl-ink);
    letter-spacing: -.02em;
}

.wl-confirm-modal__lead {
    margin: 0 0 .55rem;
    color: var(--wl-ink);
    font-size: .95rem;
    line-height: 1.45;
}

.wl-confirm-modal__lead strong {
    font-weight: 800;
}

.wl-confirm-modal__text {
    margin: 0;
    color: var(--wl-muted);
    font-size: .88rem;
    line-height: 1.55;
}

.wl-confirm-modal__actions {
    display: flex;
    gap: .65rem;
    padding: .35rem 1.5rem 1.5rem;
}

.wl-confirm-modal__actions .btn {
    flex: 1;
    border-radius: .75rem;
    font-weight: 700;
    padding: .7rem 1rem;
}

.wl-confirm-modal__actions .btn-light {
    border: 1px solid var(--wl-line);
    background: #f8fafc;
    color: #334155;
}

.wl-confirm-modal__actions .btn-danger {
    background: var(--wl-danger);
    border-color: var(--wl-danger);
}

.wl-input {
    border-radius: 12px;
    border-color: var(--wl-line);
    font-size: 1rem;
}

.wl-input:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 .2rem rgba(13, 71, 161, .12);
}

@media (max-width: 575.98px) {
    .wl-page {
        padding-top: 1.6rem;
    }

    .wl-folder__media {
        height: 112px;
    }

    .wl-btn-primary {
        width: 100%;
    }

    .wl-page__header {
        margin-bottom: 1.15rem;
    }
}
