/* =========================================================
   LUCKNOW GUIDE MODULE  (lucknow-guide.css)
   Pairs with Views/Shared/_LucknowGuide.cshtml
   Full-Bleed, Edge-to-Edge Layout with Enhanced Interactivity

   CHANGES IN THIS VERSION (phone block only, bottom of file):
   - FIX: the old phone rule `margin: 20px 0 30px` wiped the negative
     left/right margins that make the full-bleed work, so with
     `left: 50%` the whole module was pushed sideways. Now only
     margin-top / margin-bottom are set.
   - Compact phone layout: shorter images, tighter text, smaller
     gaps, cards narrower so the next one peeks in.
   Desktop and tablet are unchanged.
========================================================= */

.lg-module {
    --lg-green: #17634f;
    --lg-green-soft: #e8f4ef;
    --lg-gold: #8b641f;
    --lg-gold-soft: #f7ead0;
    --lg-ink: #172a25;
    --lg-muted: #5f6b67;
    --lg-line: rgba(20, 55, 45, .09);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 20px 0 50px;
    background: linear-gradient(180deg, #fcfefd 0%, #f4f8f6 100%);
    overflow-x: hidden;
}

    .lg-module *, .lg-module *::before, .lg-module *::after {
        box-sizing: border-box;
    }

.lg-section {
    width: min(1320px, 92%);
    margin: 0 auto;
}

    .lg-section + .lg-section {
        margin-top: 72px;
    }

/* ---------- HEADING ---------- */
.lg-heading {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
    padding: 0 15px;
}

.lg-pill {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 18px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.lg-pill--green {
    background: #d9efe5;
    color: #146c43;
}

.lg-pill--gold {
    background: #fdf0c9;
    color: #8a5d00;
}

.lg-heading h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.lg-heading p {
    margin: 0;
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ---------- TRACK: Grid on Desktop ---------- */
.lg-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

/* ---------- PLACE / DISH CARD (Interactive) ---------- */
.lg-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--lg-line);
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(20, 45, 38, .06);
    transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s cubic-bezier(.22,1,.36,1), border-color .3s ease;
}

    .lg-card:hover {
        transform: translateY(-8px);
        border-color: rgba(23, 99, 79, 0.25);
        box-shadow: 0 22px 50px rgba(20, 45, 38, .12);
    }

.lg-media {
    position: relative;
    height: 245px;
    overflow: hidden;
    background: linear-gradient(145deg, #e3eee9, #f3f7f5);
}

.lg-media-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b7c9c1;
    font-size: 2.4rem;
}

.lg-media img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.22,1,.36,1);
}

.lg-card:hover .lg-media img {
    transform: scale(1.06);
}

.lg-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(6px);
    color: var(--lg-green);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.lg-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 26px;
}

.lg-category {
    display: block;
    margin-bottom: 8px;
    color: #3b806d;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.lg-body h3 {
    margin: 0 0 10px;
    color: var(--lg-ink);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
}

.lg-body p {
    margin: 0 0 20px;
    color: var(--lg-muted);
    font-size: .95rem;
    line-height: 1.75;
}

.lg-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--lg-line);
    color: #56635f;
    font-size: .84rem;
    font-weight: 650;
}

    .lg-meta i {
        color: #39806b;
        font-size: 1.05rem;
        transition: transform .25s ease;
    }

.lg-card:hover .lg-meta i {
    transform: scale(1.15);
}

/* ---------- FOOD DESTINATION CARD (Interactive) ---------- */
.lg-spot {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    height: 100%;
    padding: 28px;
    background: linear-gradient(135deg, #fffdf9, #fff);
    border: 1px solid rgba(176, 132, 45, .18);
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(80, 65, 30, .05);
    transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s cubic-bezier(.22,1,.36,1), border-color .3s ease;
}

    .lg-spot:hover {
        transform: translateY(-6px);
        border-color: rgba(176, 132, 45, 0.4);
        box-shadow: 0 20px 45px rgba(80, 65, 30, .1);
    }

.lg-spot-icon {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lg-gold-soft);
    border-radius: 16px;
    color: #9a6b20;
    font-size: 1.4rem;
    transition: transform .3s ease, background-color .3s ease;
}

.lg-spot:hover .lg-spot-icon {
    transform: rotate(-6deg) scale(1.08);
    background: #f3dfb4;
}

.lg-spot-body span {
    display: block;
    margin-bottom: 5px;
    color: #94702f;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.lg-spot-body h3 {
    margin: 0 0 8px;
    color: #28241d;
    font-size: 1.3rem;
    font-weight: 800;
}

.lg-spot-body p {
    margin: 0 0 14px;
    color: #6b665b;
    font-size: .92rem;
    line-height: 1.7;
}

.lg-spot-body a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--lg-gold);
    font-size: .88rem;
    font-weight: 750;
    text-decoration: none;
    transition: gap .25s ease;
}

    .lg-spot-body a:hover {
        gap: 10px;
        text-decoration: underline;
    }

    .lg-spot-body a i {
        font-size: .8rem;
    }

/* =========================================================
   TABLET: 2 Columns
========================================================= */
@media (max-width: 991.98px) {
    .lg-section {
        width: 94%;
    }

    .lg-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

/* =========================================================
   PHONE: compact, full-bleed swipe track
========================================================= */
@media (max-width: 767.98px) {

    /* FIX: only top/bottom margins here. Setting left/right margins
       (the old `margin: 20px 0 30px`) broke the full-bleed centering. */
    .lg-module {
        margin-top: 14px;
        margin-bottom: 20px;
        padding: 6px 0 22px;
    }

    .lg-section {
        width: 100%;
    }

        .lg-section + .lg-section {
            margin-top: 28px;
        }

    /* ---------- heading ---------- */
    .lg-heading {
        margin-bottom: 14px;
        padding: 0 16px;
    }

    .lg-pill {
        margin-bottom: 8px;
        padding: 6px 14px;
        font-size: .7rem;
    }

    .lg-heading h2 {
        margin-bottom: 6px;
        font-size: 1.4rem;
    }

    .lg-heading p {
        font-size: .88rem;
        line-height: 1.5;
    }

    /* ---------- swipe track ---------- */
    .lg-track {
        display: flex;
        gap: 12px;
        width: 100%;
        margin-inline: 0;
        padding: 2px 16px 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

        .lg-track::-webkit-scrollbar {
            display: none;
        }

        /* narrower cards so the next one clearly peeks in */
        .lg-track > * {
            flex: 0 0 76%;
            max-width: 320px;
            scroll-snap-align: start;
        }

    .lg-card,
    .lg-spot {
        border-radius: 16px;
    }

        /* hover lift gets clipped inside a scroller and does nothing on touch */
        .lg-card:hover,
        .lg-spot:hover {
            transform: none;
        }

            .lg-card:hover .lg-media img {
                transform: none;
            }

    /* ---------- place / dish card ---------- */
    .lg-media {
        height: 140px;
    }

    .lg-tag {
        top: 10px;
        left: 10px;
        padding: 5px 10px;
        font-size: .64rem;
    }

    .lg-body {
        padding: 14px;
    }

    .lg-category {
        margin-bottom: 5px;
        font-size: .66rem;
    }

    .lg-body h3 {
        margin-bottom: 6px;
        font-size: 1.05rem;
    }

    .lg-body p {
        margin-bottom: 10px;
        font-size: .84rem;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 3; /* every card ends up the same height */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .lg-meta {
        padding-top: 10px;
        font-size: .76rem;
    }

    /* ---------- food destination card ---------- */
    .lg-spot {
        gap: 12px;
        padding: 16px;
    }

    .lg-spot-icon {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 1.15rem;
    }

    .lg-spot-body span {
        font-size: .66rem;
    }

    .lg-spot-body h3 {
        margin-bottom: 6px;
        font-size: 1.05rem;
    }

    .lg-spot-body p {
        margin-bottom: 10px;
        font-size: .84rem;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .lg-spot-body a {
        font-size: .82rem;
    }
}

@media (max-width: 360px) {
    .lg-track > * {
        flex-basis: 82%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lg-card,
    .lg-spot,
    .lg-media img,
    .lg-spot-icon {
        transition: none;
    }
}
/* =========================================================
   LUCKNOW GUIDE — SWIPE ROW CONTROLS (arrows + dots)
   Paste at the VERY BOTTOM of lucknow-guide.css.
   Pairs with wwwroot/js/lucknow-guide.js, which builds the markup.

   Hidden on tablet / desktop (cards sit in a grid there).
========================================================= */

.lg-controls {
    display: none;
}

@media (max-width: 767.98px) {

    .lg-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        margin-top: 2px;
        padding: 0 16px;
    }

    /* ---------- arrows ---------- */
    .lg-arrow {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid var(--lg-line);
        border-radius: 50%;
        background: #ffffff;
        color: var(--lg-green);
        font-size: 1rem;
        line-height: 1;
        box-shadow: 0 4px 12px rgba(20, 45, 38, .09);
        cursor: pointer;
        transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease, background .2s ease;
    }

        .lg-arrow:active {
            transform: scale(.92);
            background: var(--lg-green-soft);
        }

        .lg-arrow:disabled {
            opacity: .35;
            box-shadow: none;
            cursor: default;
        }

        .lg-arrow:focus-visible,
        .lg-dot:focus-visible {
            outline: 3px solid rgba(23, 99, 79, .35);
            outline-offset: 2px;
        }

    /* ---------- dots ---------- */
    .lg-dots {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .lg-dot {
        width: 8px;
        height: 8px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: #c9d8d2;
        cursor: pointer;
        transition: width .25s ease, background .25s ease;
    }

        .lg-dot.is-active {
            width: 22px;
            background: var(--lg-green);
        }

    /* keyboard focus on the row itself */
    .lg-track:focus-visible {
        outline: 2px solid rgba(23, 99, 79, .35);
        outline-offset: -2px;
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lg-arrow,
    .lg-dot {
        transition: none;
    }
}