/* ============================================================
   Lipslay Web — U5 parity chrome (W9 · W0)
   Tokens (locked): BG #F8FAFC · Text #0F172A · Coral #E11D48 · Navy #2563EB
   Bottom nav: Home · Chats · Services · Experts · Me
   Scoped to .ls-u5-* so it never clobbers lipslay-ae.css / site.css.
   ============================================================ */

:root {
    --ls-u5-bg: #F8FAFC;
    --ls-u5-text: #0F172A;
    --ls-u5-coral: #E11D48;
    --ls-u5-navy: #2563EB;
    --ls-u5-mute: #475569;
}

/* ------------------------------------------------------------------
   Mobile bottom nav — fixed, 5 tabs (U5 locked)
   ------------------------------------------------------------------ */
.ls-u5-bottomnav {
    display: none;
}

@media (max-width: 991.98px) {
    .ls-u5-bottomnav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1030;
        height: 60px;
        background: #ffffff;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
        align-items: stretch;
        justify-content: space-around;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .ls-u5-bottomnav-item {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--ls-u5-mute);
        font-size: 0.68rem;
        font-weight: 600;
        text-decoration: none;
        transition: color 0.15s ease;
    }
    .ls-u5-bottomnav-item i {
        font-size: 1.15rem;
        line-height: 1;
    }
    .ls-u5-bottomnav-item:hover {
        text-decoration: none;
        color: var(--ls-u5-navy);
    }
    .ls-u5-bottomnav-item.is-active {
        color: var(--ls-u5-navy);
    }

    /* Pad body so the fixed nav never covers footer CTAs / booking bars. */
    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    }
}

/* ------------------------------------------------------------------
   Home discovery rails — Stories rings + Reels (U01). Empty → hide.
   ------------------------------------------------------------------ */
.ls-u5-discover[hidden],
.ls-u5-stories[hidden],
.ls-u5-reels[hidden] {
    display: none !important;
}

.ls-u5-story-rail {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.25rem 0 0.5rem;
    scrollbar-width: none;
}
.ls-u5-story-rail::-webkit-scrollbar {
    display: none;
}
.ls-u5-story-ring {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    width: 72px;
    color: var(--ls-u5-text);
    text-decoration: none;
}
.ls-u5-story-ring:hover {
    text-decoration: none;
}
.ls-u5-story-ring .ls-u5-ring-ava {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #E11D48, #F59E0B);
}
.ls-u5-story-ring .ls-u5-ring-ava img,
.ls-u5-story-ring .ls-u5-ring-ava span {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid #ffffff;
    font-weight: 700;
    color: var(--ls-u5-coral);
    font-size: 1.1rem;
}
.ls-u5-story-ring .ls-u5-ring-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ls-u5-mute);
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-u5-reel-rail {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}
.ls-u5-reel-rail::-webkit-scrollbar {
    display: none;
}
.ls-u5-reel-card {
    flex: 0 0 auto;
    width: 128px;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: var(--ls-u5-text);
}
.ls-u5-reel-card:hover {
    text-decoration: none;
}
.ls-u5-reel-thumb {
    width: 128px;
    height: 170px;
    object-fit: cover;
    background: linear-gradient(180deg, #E2E8F0, #CBD5E1);
}
.ls-u5-reel-cap {
    display: block;
    padding: 0.45rem 0.55rem;
    font-size: 0.72rem;
    color: var(--ls-u5-mute);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Reel video: real video frame + play badge */
video.ls-u5-reel-thumb {
    display: block;
}
.ls-u5-reel-card {
    position: relative;
}
.ls-u5-reel-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    pointer-events: none;
}

/* Story viewer overlay (fullscreen) */
.ls-u5-story-viewer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(2, 6, 23, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ls-u5-story-viewer[hidden] {
    display: none !important;
}
.ls-u5-story-stage {
    position: relative;
    width: min(100vw, 420px);
    height: min(100vh, 90vh);
    max-height: 780px;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
}
.ls-u5-story-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    gap: 4px;
    padding: 12px 12px 0;
}
.ls-u5-story-pseg {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.35);
    overflow: hidden;
    position: relative;
}
.ls-u5-story-pseg.is-on::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    transform-origin: left center;
    animation: lsU5StoryProg var(--dur, 5s) linear forwards;
}
.ls-u5-story-pseg.is-done {
    background: #fff;
}
@keyframes lsU5StoryProg {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
.ls-u5-story-head {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    color: #fff;
}
.ls-u5-story-head-ava {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #334155;
    border: 2px solid rgba(255, 255, 255, 0.8);
}
.ls-u5-story-head-ava img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ls-u5-story-head-ava .ls-u5-story-ava-initial {
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}
.ls-u5-story-head-meta {
    flex: 1;
    min-width: 0;
}
.ls-u5-story-head-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ls-u5-story-close {
    flex: 0 0 auto;
    border: 0;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}
.ls-u5-story-media {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
.ls-u5-story-media-el {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.ls-u5-story-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    z-index: 3;
    color: #fff;
    text-align: center;
    padding: 0 18px;
    font-size: 0.85rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
.ls-u5-story-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    z-index: 2;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.ls-u5-story-prev { left: 0; }
.ls-u5-story-next { right: 0; }
body.ls-u5-no-scroll { overflow: hidden; }

/* ------------------------------------------------------------------
   List | Map segmented toggle (U02/U03 spirit)
   ------------------------------------------------------------------ */
.ls-u5-viewtoggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #EDF2F7;
    border-radius: 999px;
    padding: 3px;
}
.ls-u5-viewtoggle button {
    border: 0;
    background: transparent;
    color: var(--ls-u5-mute);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
}
.ls-u5-viewtoggle button.is-active {
    background: #ffffff;
    color: var(--ls-u5-navy);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

/* ------------------------------------------------------------------
   Profile sticky bar (U04 lock) — Chat + Continue · AED …
   ------------------------------------------------------------------ */
.ls-sticky-book .ls-u5-continue {
    font-weight: 700;
}

/* Profile sticky bar — round chat icon + Continue in one row (U04 parity) */
.ls-u5-sticky-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ls-u5-sticky-row .ls-u5-continue {
    flex: 1 1 auto;
    width: auto;
}

.ls-u5-chat-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ls-u5-navy);
    color: #ffffff;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.ls-u5-chat-icon:hover,
.ls-u5-chat-icon:focus {
    background: #1d4ed8;
    color: #ffffff;
    text-decoration: none;
}

.ls-u5-chat-icon svg {
    width: 24px;
    height: 24px;
}

/* ------------------------------------------------------------------
   W8 — lift profile sticky book bar above the fixed bottom nav (mobile)
   ------------------------------------------------------------------ */
@media (max-width: 991.98px) {
    .ls-sticky-book {
        bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    }
}

/* ------------------------------------------------------------------
   WEB-U5-SHOP — Home Shop & Restaurant (HomeU5ShopRestaurantSection parity)
   Scoped to .ls-u5-shop-* so .ls-cat-tile / lipslay-ae are untouched.
   ------------------------------------------------------------------ */
.ls-u5-shop-rail {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.25rem 0 0.5rem;
    scrollbar-width: none;
}
.ls-u5-shop-rail::-webkit-scrollbar {
    display: none;
}
.ls-u5-shop-tile {
    flex: 0 0 auto;
    width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.ls-u5-shop-tile-img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;               /* clip — never let photos bleed onto pills */
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ls-u5-shop-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;              /* crop, never stretch */
    display: block;
}
.ls-u5-shop-tile-initial {
    font-weight: 700;
    font-size: 18px;
    color: var(--ls-u5-text);
}
.ls-u5-shop-tile-title {
    font-size: 11px;
    line-height: 13px;
    color: var(--ls-u5-text);
    text-align: center;
    max-width: 72px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* bottom sheet + overlay */
.ls-u5-shop-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 1040;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}
.ls-u5-shop-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.ls-u5-shop-sheet {
    width: 100%;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    max-height: 82vh;
    overflow-y: auto;
    transform: translateY(24px);
    transition: transform 0.18s ease;
}
.ls-u5-shop-overlay.is-open .ls-u5-shop-sheet {
    transform: translateY(0);
}
.ls-u5-shop-sheet-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.ls-u5-shop-sheet-head-copy {
    flex: 1 1 auto;
    min-width: 0;
}
.ls-u5-shop-sheet-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ls-u5-text);
    margin: 0;
}
.ls-u5-shop-sheet-sub {
    font-size: 0.82rem;
    color: var(--ls-u5-mute);
    margin: 2px 0 0;
}
.ls-u5-shop-close,
.ls-u5-shop-back {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background: #F1F5F9;
    color: var(--ls-u5-text);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}
.ls-u5-shop-search {
    width: 100%;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
}
.ls-u5-shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem 0.5rem;
}
.ls-u5-shop-sub {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--ls-u5-text);
}
.ls-u5-shop-sub-ava {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #F1F5F9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ls-u5-shop-sub-ava img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ls-u5-shop-sub-initial {
    font-weight: 700;
    font-size: 16px;
    color: var(--ls-u5-text);
}
.ls-u5-shop-sub-name {
    font-size: 0.72rem;
    line-height: 1.2;
    text-align: center;
    color: var(--ls-u5-text);
}

/* dual Find / Post actions */
.ls-u5-shop-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
}
.ls-u5-shop-action-primary,
.ls-u5-shop-action-secondary {
    display: block;
    width: 100%;
    text-align: center;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
}
.ls-u5-shop-action-primary {
    background: var(--ls-u5-navy);
    color: #ffffff;
    border: 1.5px solid var(--ls-u5-navy);
}
.ls-u5-shop-action-primary:hover {
    text-decoration: none;
    color: #ffffff;
}
.ls-u5-shop-action-secondary {
    background: #ffffff;
    color: var(--ls-u5-navy);
    border: 1.5px solid #CBD5E1;
}
.ls-u5-shop-action-secondary:hover {
    text-decoration: none;
    color: var(--ls-u5-navy);
}

/* ------------------------------------------------------------------
   Services hub (WEB-U5-HUB) — /hub matches android ExploreHubScreen.
   Scoped to .ls-u5-hub-* only; never touches .ls-cat-tile or .ls-u5-shop-*.
   ------------------------------------------------------------------ */
.ls-u5-hub-hero {
    background: linear-gradient(135deg, #1E40AF 0%, #2563EB 55%, #3B82F6 100%);
    color: #ffffff;
    padding: 2.5rem 0 4rem;
}
.ls-u5-hub-hero-eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
}
.ls-u5-hub-hero-title {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.ls-u5-hub-hero-sub {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 560px;
}
.ls-u5-hub-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.ls-u5-hub-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
}
.ls-u5-hub-hero-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}
.ls-u5-hub-hero-btn-solid {
    background: #ffffff;
    color: #1E40AF;
}
.ls-u5-hub-hero-btn-solid:hover {
    color: #1E40AF;
}
.ls-u5-hub-hero-btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}
.ls-u5-hub-hero-btn-ghost:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.ls-u5-hub-search-wrap {
    margin-top: -1.75rem;
    position: relative;
    z-index: 2;
}
.ls-u5-hub-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 0.4rem 0.4rem 0.4rem 0.9rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}
.ls-u5-hub-search-icon {
    color: var(--ls-u5-mute);
    font-size: 0.95rem;
}
.ls-u5-hub-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 0.95rem;
    color: var(--ls-u5-text);
    padding: 0.55rem 0;
}
.ls-u5-hub-search-btn {
    border: 0;
    border-radius: 10px;
    background: var(--ls-u5-navy);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.55rem 1rem;
    cursor: pointer;
}

.ls-u5-hub-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.25rem;
}
.ls-u5-hub-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1.5px solid #E2E8F0;
    color: var(--ls-u5-text);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.ls-u5-hub-chip i {
    color: var(--ls-u5-navy);
}
.ls-u5-hub-chip:hover {
    text-decoration: none;
    border-color: var(--ls-u5-navy);
    color: var(--ls-u5-navy);
}

.ls-u5-hub-section {
    padding: 1.75rem 0 0.5rem;
}

.ls-u5-hub-post {
    padding: 0.5rem 0 2rem;
}
.ls-u5-hub-post-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, #E11D48, #BE123C);
    color: #ffffff;
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
}
.ls-u5-hub-post-title {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
    font-weight: 800;
}
.ls-u5-hub-post-sub {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}
.ls-u5-hub-post-btn {
    background: #ffffff;
    color: #BE123C;
    font-weight: 700;
    padding: 0.65rem 1.35rem;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
}
.ls-u5-hub-post-btn:hover {
    text-decoration: none;
    color: #BE123C;
}
