/* LocoSpot MVC components: additive styles only; template base is assets/css/style.css */
.main-content {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
    min-height: 68vh
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.6rem 0 1rem
}

    .page-head h1, .page-head h2 {
        margin: 0;
        letter-spacing: -.035em
    }

    .page-head h1 {
        font-size: clamp(1.45rem,3vw,2rem)
    }

    .page-head h2 {
        font-size: 1.35rem
    }

.muted {
    color: var(--muted)
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 1rem
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 1rem
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 1rem
}

.mt {
    margin-top: 1rem
}

.panel, .stat-card, .mvc-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--rl);
    padding: 1.25rem;
    box-shadow: var(--sh1)
}

    .panel h1, .panel h2, .panel h3 {
        margin-bottom: .75rem
    }

.btn.small {
    height: 36px;
    padding: 0 .75rem;
    font-size: .8rem;
    margin:2px;
}

.btn.secondary {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #dbeafe
}

.btn.danger {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca
}

.btn.outline {
    background: #fff;
    color: var(--navy)
}

.actions {
    display: flex;
    gap: .65rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem
}

.field {
    display: grid;
    gap: .45rem;
    min-width: 0
}

    .field label {
        font-size: .88rem;
        font-weight: 700
    }

    .field input, .field select, .field textarea, .searchbox input, .form-control {
        width: 100%;
        min-width: 0;
        border: 1px solid var(--line);
        border-radius: var(--r);
        padding: .75rem .85rem;
        background: #fff;
        color: var(--navy);
        font: inherit;
        transition: border .2s,box-shadow .2s
    }

        .field input:focus, .field select:focus, .field textarea:focus, .searchbox input:focus, .form-control:focus {
            outline: 0;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px #2563eb20
        }

    .field textarea {
        min-height: 120px;
        resize: vertical
    }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 1rem
}

.field.full {
    grid-column: 1/-1
}

.searchbox {
    display: flex;
    gap: .5rem
}

    .searchbox input {
        flex: 1
    }

.alert {
    border-radius: 12px;
    padding: .8rem 1rem;
    margin: .8rem 0
}

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

    .alert.error {
        background: #fef2f2;
        color: #b91c1c;
        border: 1px solid #fecaca
    }

.table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--rl);
    background: #fff
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px
}

    .table th, .table td {
        padding: .8rem 1rem;
        border-bottom: 1px solid var(--line);
        text-align: start;
        vertical-align: middle
    }

    .table th {
        background: #f8fafc;
        font-size: .8rem;
        color: #475569
    }

    .table tr:hover td {
        background: #f8fbff
    }

.badge.inactive {
    background: #fee2e2;
    color: #991b1b
}

.store-card .store-image, .product-card .product-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(135deg,#dbeafe,#e0e7ff)
}

.store-card img, .product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease)
}

.store-card:hover img, .product-card:hover img {
    transform: scale(1.04)
}

.store-card h3, .product-card h3 {
    margin: .25rem 0;
    font-size: 1.03rem
}

.store-card .card-body, .product-card .card-body {
    padding: 1rem
}

.pager {
    display: flex;
    gap: .6rem;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0
}

    .pager a {
        padding: .55rem .85rem;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: #fff
    }

.search input {
    color: var(--navy)
}

.home-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.6rem
}

.section-intro {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1rem
}

    .section-intro h2 {
        margin: 0;
        font-size: 1.4rem
    }

    .section-intro p {
        margin: .3rem 0 0;
        color: var(--muted);
        font-size: .88rem
    }

.category-strip {
    display: flex;
    gap: .65rem;
    overflow-x: auto;
    padding: .25rem 0 .7rem;
    scrollbar-width: none
}

    .category-strip::-webkit-scrollbar {
        display: none
    }

.category-tile {
    flex: 0 0 130px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    transition: .25s
}

    .category-tile:hover {
        transform: translateY(-3px);
        box-shadow: var(--sh2);
        border-color: #bfdbfe
    }

    .category-tile .category-icon {
        width: 44px;
        height: 44px;
        margin: 0 auto .5rem;
        border-radius: 14px;
        display: grid;
        place-items: center;
        background: #eff6ff;
        color: var(--primary);
        font-size: 1.3rem
    }

    .category-tile strong {
        font-size: .82rem
    }

.empty-state {
    border: 1px dashed #cbd5e1;
    background: #fff;
    border-radius: 16px;
    padding: 1.6rem;
    text-align: center;
    color: var(--muted)
}

    .empty-state .ms {
        font-size: 2rem;
        color: #94a3b8
    }

.footer-content {
    display: flex;
    flex-direction: column;
    gap: .75rem
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap
}

.account-link {
    display: flex;
    align-items: center;
    gap: .25rem;
    font-weight: 600;
    color: var(--navy)
}

.lang {
    min-width: 40px
}

.mobile-nav {
    top: calc(60px + var(--sat));
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: 1.5rem;
    padding: .25rem
}

[dir=rtl] .page-head, [dir=rtl] .section-intro {
    flex-direction: row-reverse
}

[dir=rtl] .search, [dir=rtl] .searchbox {
    direction: rtl
}

[dir=rtl] .table th, [dir=rtl] .table td {
    text-align: right
}

@media(max-width:900px) {
    .grid-4 {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .grid-3 {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
}

@media(max-width:767px) {
    .main-content {
        padding-top: 1rem;
        padding-bottom: 1rem
    }

    .menu-toggle {
        display: block
    }

    .hide-m {
        display: none !important
    }

    .grid-2, .grid-3, .grid-4, .form-grid {
        grid-template-columns: 1fr
    }

    .field.full {
        grid-column: auto
    }

    .page-head, .section-intro {
        align-items: flex-start;
        flex-direction: column
    }

    .searchbox {
        flex-direction: column
    }

    .footer-content {
        padding-bottom: 1rem
    }

    .table {
        min-width: 640px
    }
}

/* Admin and merchant cards/forms */
.card:not(.store-card):not(.product-card) {
    padding: 1.15rem
}

.stat-card {
    background: linear-gradient(145deg,#fff,#f8fbff);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.15rem;
    box-shadow: var(--sh1)
}

    .stat-card .value {
        font-size: 1.7rem;
        font-weight: 800;
        color: var(--navy);
        margin-top: .35rem
    }

.store-card:not(.rv) {
    padding: 1rem
}

    .store-card:not(.rv) > img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 12px;
        margin-bottom: .8rem
    }

    .store-card:not(.rv) h3 {
        margin: .35rem 0
    }

.mvc-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap
}

@media(prefers-reduced-motion:reduce) {
    *, *:before, *:after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important
    }
}

/* ===== Template parity (auth, lists, forms, store detail) ===== */
.seg a {
    display: grid;
    place-items: center;
    height: 40px;
    font-weight: 700;
    color: var(--muted);
    position: relative;
    z-index: 1;
    transition: color .3s
}

    .seg a.on {
        color: var(--primary)
    }

.in[type=file] {
    height: auto;
    padding: .6rem .8rem
}

.in[type=checkbox] {
    width: auto;
    height: auto
}

.chk {
    display: flex;
    gap: .5rem;
    align-items: center;
    font-weight: 600;
    min-height: 44px
}

    .chk input {
        width: 18px;
        height: 18px;
        accent-color: var(--primary)
    }

.fld.full {
    grid-column: 1/-1
}

.acts {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    align-items: center
}

    .acts form {
        margin: 0;
        display: inline-flex;
        gap: .3rem
    }

    .acts select.in {
        height: 36px;
        width: auto;
        font-size: .8rem
    }

.tr .th0 {
    width: 44px;
    height: 44px;
    border-radius: .6rem;
    object-fit: cover;
    background: var(--primary-t);
    overflow: hidden;
    flex: 0 0 44px
}

    .tr .th0 img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

@media(min-width:800px) {
    .tr.c4 {
        grid-template-columns: 2fr 1.5fr 1fr 2.2fr
    }

    .tr.c5 {
        grid-template-columns: 2fr 1.2fr 1.2fr 1fr 2fr
    }

    .tr.c6 {
        grid-template-columns: 2.4fr 1.6fr 1.2fr .8fr 1fr 150px
    }
}

.tr .nm {
    font-weight: 700
}

.st.off {
    background: #fee2e2;
    color: #b91c1c
}

.hero2.in-wrap {
    border-radius: 1.25rem;
    overflow: hidden;
    margin-top: 1rem;
    height: clamp(180px,32vw,340px)
}

.ov {
    margin-top: -56px
}

.mlink {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem 0;
    font-size: .9rem
}

.filters {
    display: grid;
    gap: .8rem;
    padding: 1rem
}

@media(min-width:800px) {
    .filters {
        grid-template-columns: 1fr 1.2fr auto;
        align-items: end
    }
}

.quick {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr))
}

    .quick a {
        display: flex;
        align-items: center;
        gap: .6rem;
        font-weight: 700;
        padding: 1rem
    }

    .quick .ms {
        color: var(--primary)
    }

.login-wrap {
    max-width: 520px;
    margin: 2rem auto
}

.chk-note {
    font-size: .78rem
}

.mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 55;
    display: none;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh2);
    padding: .5rem 1rem;
    transform-origin: top;
    animation: pageIn .3s var(--ease) both
}

    .mobile-nav.open {
        display: flex
    }

    .mobile-nav a {
        padding: .8rem .25rem;
        font-weight: 600;
        border-bottom: 1px solid var(--line)
    }

@media(min-width:768px) {
    .mobile-nav {
        display: none !important
    }
}

.ph > a {
    display: block;
    width: 100%;
    height: 100%
}

.loc-note {
    font-size: .82rem;
    color: var(--muted);
    margin: .4rem .25rem 0
}

.store-card .ph, .product-card .ph {
    aspect-ratio: 16/9
}

.trend .chip.loc-btn {
    background: var(--primary-t);
    color: var(--primary);
    border-color: #bfdbfe
}

.product-detail {
    align-items: start
}

@media(min-width:900px) {
    .product-detail.two {
        grid-template-columns: 1.1fr 1fr
    }
}

.product-main-image {
    aspect-ratio: 1/1;
    background: #f1f5f9;
    overflow: hidden
}

    .product-main-image img {
        width: 100%;
        height: 100%;
        object-fit: contain
    }

.product-thumbs {
    display: flex;
    gap: .5rem;
    padding: .7rem;
    overflow: auto
}

.thumb {
    width: 72px;
    height: 72px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    flex: 0 0 auto;
    transition: transform .2s
}

    .thumb:hover {
        transform: translateY(-2px)
    }

    .thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

.product-info {
    align-self: start
}

    .product-info h1 {
        font-size: clamp(1.5rem,4vw,2.2rem);
        margin: .5rem 0
    }

.price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: .6rem 0
}

.stock {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-weight: 700
}

.available {
    color: #047857
}

.unavailable {
    color: #b91c1c
}

/* Blog, story pages, and responsive public navigation */
.mobile-logout {
    padding: .65rem 0;
    border-top: 1px solid var(--line)
}

    .mobile-logout button {
        border: 0;
        background: #fff;
        color: #dc2626;
        font-weight: 800;
        padding: .45rem .25rem;
        font: inherit;
        cursor: pointer
    }

@media(max-width:767px) {
    .hdr .account-link {
        display: none !important
    }

    .tabs {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 100 !important
    }

    .main-content {
        padding-bottom: calc(var(--tab) + var(--sab) + 1rem) !important
    }

    .foot {
        padding-bottom: calc(var(--tab) + var(--sab) + 2rem) !important
    }

    .mobile-nav {
        max-height: calc(100dvh - 72px);
        overflow-y: auto
    }

    .blog-grid {
        grid-template-columns: 1fr !important
    }

    .blog-hero {
        grid-template-columns: 1fr !important
    }

    .blog-hero-art {
        min-height: 210px
    }

    .contact-layout {
        grid-template-columns: 1fr !important
    }

    .story-hero, .story-split, .contact-hero {
        grid-template-columns: 1fr !important
    }

        .story-image, .contact-hero > img {
            min-height: 230px
        }

    .blog-article-head h1 {
        font-size: 2rem !important
    }
}

.blog-hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem;
    margin: 1rem 0 1.5rem;
    border-radius: 1.4rem;
    background: linear-gradient(125deg,#0f172a,#172554 60%,#1e40af);
    color: #fff;
    overflow: hidden;
    position: relative
}

.blog-hero-copy {
    padding: .5rem
}

.blog-hero h1 {
    font-size: clamp(2rem,5vw,3.4rem);
    font-weight: 850;
    line-height: 1.08;
    margin: 1rem 0
}

    .blog-hero h1 span {
        color: #93c5fd
    }

.blog-hero p {
    max-width: 560px;
    color: #cbd5e1;
    margin-bottom: 1.3rem
}

.blog-search {
    display: flex;
    gap: .5rem;
    background: #fff;
    padding: .4rem;
    border-radius: 12px;
    max-width: 560px
}

    .blog-search input {
        border: 0;
        outline: 0;
        flex: 1;
        min-width: 0;
        padding: .4rem .75rem
    }

.blog-hero-art {
    position: relative;
    min-height: 330px;
    border-radius: 1rem;
    overflow: hidden;
    transform: rotate(1deg);
    box-shadow: 0 24px 50px #0004
}

    .blog-hero-art img {
        width: 100%;
        height: 100%;
        position: absolute;
        object-fit: cover;
        inset: 0
    }

.floating-tag {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: #fff;
    color: #0f172a;
    border-radius: 99px;
    padding: .7rem 1rem;
    font-weight: 800;
    box-shadow: var(--sh2);
    animation: float 5s ease-in-out infinite
}

.blog-categories {
    display: flex;
    gap: .5rem;
    overflow: auto;
    padding: .2rem 0 1rem;
    scrollbar-width: none
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 1.2rem
}

.blog-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    overflow: hidden;
    box-shadow: var(--sh1);
    transition: transform .35s var(--ease),box-shadow .35s
}

    .blog-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--sh2)
    }

.blog-card-image {
    display: block;
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #e2e8f0
}

    .blog-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .7s var(--ease)
    }

.blog-card:hover img {
    transform: scale(1.07)
}

.blog-category {
    position: absolute;
    left: .75rem;
    bottom: .75rem;
    background: rgba(255,255,255,.93);
    color: #1d4ed8;
    padding: .3rem .7rem;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 800
}

.blog-card-body {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .65rem
}

.blog-meta {
    font-size: .78rem;
    color: var(--muted)
}

.blog-card h2 {
    font-size: 1.12rem;
    line-height: 1.35
}

    .blog-card h2 a:hover {
        color: var(--primary)
    }

.blog-card-body p {
    font-size: .9rem;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.blog-read {
    font-weight: 800;
    color: var(--primary);
    margin-top: .2rem
}

.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0
}

.blog-newsletter {
    margin: 2rem 0;
    padding: 1.6rem;
    border-radius: 1.2rem;
    background: linear-gradient(120deg,#eff6ff,#e0e7ff);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem
}

    .blog-newsletter h2 {
        margin: .6rem 0;
        font-size: clamp(1.25rem,3vw,2rem)
    }

.blog-empty {
    margin: 2rem 0
}

.blog-article {
    max-width: 850px;
    margin: 1rem auto 3rem
}

.back-blog {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    margin: 1rem 0
}

.blog-article-head {
    padding: 1rem 0 1.5rem
}

    .blog-article-head h1 {
        font-size: clamp(2rem,5vw,3.3rem);
        margin: .8rem 0;
        line-height: 1.15
    }

.blog-lead {
    font-size: 1.2rem;
    color: var(--muted);
    line-height: 1.65
}

.blog-location {
    margin-top: .8rem;
    color: #2563eb;
    font-weight: 700
}

.blog-cover {
    border-radius: 1.2rem;
    overflow: hidden;
    margin: 1rem 0 2rem;
    max-height: 500px
}

    .blog-cover img {
        width: 100%;
        object-fit: cover;
        max-height: 500px
    }

.blog-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #334155
}

    .blog-content h2 {
        margin: 2rem 0 .8rem;
        font-size: 1.7rem;
        color: var(--navy)
    }

    .blog-content h3 {
        margin: 1.5rem 0 .6rem;
        font-size: 1.3rem
    }

    .blog-content p {
        margin: 1rem 0
    }

    .blog-content ul, .blog-content ol {
        padding-inline-start: 1.5rem;
        margin: 1rem 0
    }

    .blog-content a {
        color: var(--primary);
        text-decoration: underline
    }

    .blog-content blockquote {
        border-inline-start: 4px solid var(--primary);
        padding: 1rem;
        background: #eff6ff;
        border-radius: .5rem;
        margin: 1rem 0
    }

    .blog-content img {
        max-width: 100%;
        height: auto;
        border-radius: 1rem;
        margin: 1.2rem auto
    }

.blog-faq {
    margin: 2rem 0;
    padding: 1.3rem;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 1rem
}

    .blog-faq h2 {
        margin-bottom: 1rem
    }

    .blog-faq details {
        padding: .9rem 0;
        border-top: 1px solid var(--line)
    }

    .blog-faq summary {
        font-weight: 800;
        cursor: pointer
    }

    .blog-faq details p {
        color: var(--muted);
        margin: .7rem 0
    }

.blog-article-footer {
    border-top: 1px solid var(--line);
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem
}

.blog-editor .blog-body {
    min-height: 240px;
    font-family: ui-monospace,monospace
}

.blog-admin-list .tr {
    align-items: center
}

.story-hero, .story-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin: 1.5rem 0
}

.story-copy {
    padding: 1rem 0
}

    .story-copy h1, .contact-hero h1 {
        font-size: clamp(2.1rem,5vw,3.6rem);
        line-height: 1.1;
        margin: 1rem 0
    }

        .story-copy h1 span, .contact-hero h1 span {
            color: var(--primary)
        }

    .story-copy p, .story-split p, .contact-hero p {
        font-size: 1.05rem;
        color: var(--muted);
        max-width: 600px
    }

.story-actions {
    display: flex;
    gap: .7rem;
    flex-wrap: wrap;
    margin-top: 1.3rem
}

.story-image {
    position: relative;
    min-height: 360px;
    border-radius: 1.25rem;
    overflow: hidden
}

    .story-image img {
        width: 100%;
        height: 100%;
        position: absolute;
        inset: 0;
        object-fit: cover
    }

.story-float {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: #fff;
    padding: .85rem 1rem;
    border-radius: 1rem;
    box-shadow: var(--sh2);
    display: flex;
    flex-direction: column;
    animation: float 6s ease-in-out infinite
}

    .story-float span {
        font-size: .8rem;
        color: var(--muted)
    }

.story-values {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1rem;
    margin: 2rem 0
}

.story-value {
    padding: 1.2rem;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 1.1rem;
    box-shadow: var(--sh1);
    transition: transform .3s
}

    .story-value:hover {
        transform: translateY(-5px)
    }

.story-icon {
    font-size: 2rem
}

.story-value h2 {
    margin: .6rem 0;
    font-size: 1.15rem
}

.story-value p {
    color: var(--muted);
    font-size: .9rem
}

.story-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0
}

    .story-list li {
        padding: .55rem 0
    }

        .story-list li:before {
            content: '✓';
            color: #10b981;
            font-weight: 900;
            margin-inline-end: .6rem
        }

.story-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    margin: 2rem 0;
    background: linear-gradient(120deg,#dbeafe,#eff6ff);
    border-radius: 1.2rem
}

    .story-cta p {
        color: var(--muted)
    }

.contact-hero {
    display: grid;
    grid-template-columns: 1fr .85fr;
    gap: 2rem;
    align-items: center;
    padding: 1.5rem 0
}

    .contact-hero > img {
        width: 100%;
        height: 330px;
        object-fit: cover;
        border-radius: 1.2rem
    }

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 1.2rem;
    margin: 1rem 0 2rem
}

.contact-cards {
    display: grid;
    gap: 1rem
}

.contact-card {
    padding: 1.2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: var(--sh1);
    display: block;
    transition: transform .3s
}

    .contact-card:hover {
        transform: translateY(-4px)
    }

    .contact-card > span {
        font-size: 1.7rem
    }

    .contact-card h2 {
        margin: .5rem 0;
        font-size: 1.15rem
    }

    .contact-card p {
        font-size: .9rem;
        color: var(--muted);
        margin-bottom: .5rem
    }

    .contact-card strong, .contact-card a {
        color: var(--primary);
        font-weight: 800
    }

.contact-form-card {
    padding: 1.3rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    box-shadow: var(--sh1)
}

    .contact-form-card h2 {
        margin-bottom: .5rem
    }

    .contact-form-card form {
        display: grid;
        gap: .9rem;
        margin-top: 1rem
    }

/* Navigation, location pill, legal and category selectors */
.location-pill {
    display: flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    padding: .4rem .7rem;
    font: 600 .78rem inherit;
    max-width: 190px;
    cursor: pointer
}

    .location-pill #locationName {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap
    }

.legal-page {
    max-width: 900px;
    margin: 1rem auto;
    padding: clamp(1rem,3vw,2rem);
    line-height: 1.75
}

    .legal-page h1 {
        margin-bottom: 1rem
    }

    .legal-page h2 {
        margin: 1.4rem 0 .5rem
    }

    .legal-page p, .legal-page ul {
        margin: .7rem 0
    }

.tabs {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    z-index: 9999 !important;
    transform: none !important;
    margin: 0 !important;
    display: flex !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
    background: rgba(255,255,255,.96) !important;
    backdrop-filter: blur(16px) !important
}

@media(min-width:768px) {
    .tabs {
        display: none !important
    }
}

@media(max-width:767px) {
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important
    }

    .main-content {
        padding-bottom: 1rem
    }

    .foot {
        padding-bottom: calc(64px + env(safe-area-inset-bottom))
    }

    .hdr .location-pill {
        display: none
    }

    .mobile-nav {
        position: fixed !important;
        left: 0;
        right: 0;
        top: calc(60px + env(safe-area-inset-top));
        bottom: auto;
        z-index: 999;
        max-height: calc(100vh - 130px);
        overflow: auto;
        width: 100vw;
        box-shadow: var(--sh2)
    }
}

.mobile-location {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    padding: .85rem 1rem;
    border: 0;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    text-align: left
}
/* Dashboard navigation container */
.dashboard-nav {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 20px;
    margin: 10px 0 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-sizing: border-box;
}

    /* Dashboard title */
    .dashboard-nav .dashboard-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 700;
        font-size: 16px;
        color: #172033;
        margin-right: 12px;
        white-space: nowrap;
    }

    /* Navigation links */
    .dashboard-nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px 14px;
        border-radius: 9px;
        color: #334155;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
        transition: all .2s ease;
    }

        .dashboard-nav a:hover {
            color: #2563eb;
            background: #eff6ff;
        }

        .dashboard-nav a.active {
            color: #2563eb;
            background: #eff6ff;
            font-weight: 600;
        }

    /* Logout */
    .dashboard-nav .logout-btn {
        margin-left: 8px;
        border: 1px solid #dbe3ef;
        background: white;
        color: #172033;
        font-weight: 600;
    }

        .dashboard-nav .logout-btn:hover {
            background: #fef2f2;
            color: #dc2626;
            border-color: #fecaca;
        }

/* Responsive */
@media (max-width: 768px) {
    .dashboard-nav {
        gap: 6px;
        padding: 10px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

        .dashboard-nav .dashboard-brand {
            flex-shrink: 0;
            margin-right: 5px;
        }

        .dashboard-nav a {
            flex-shrink: 0;
            padding: 9px 12px;
            font-size: 13px;
        }

        .dashboard-nav .logout-btn {
            margin-left: 0;
        }
}

/* Select2 multi-select container */
.select2-container--default .select2-selection--multiple {
    min-height: 44px !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 10px !important;
    background: #fff !important;
    padding: 4px 8px !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

    /* Selected category tags */
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
        display: inline-flex !important;
        align-items: center !important;
        flex-direction: row-reverse !important;
        gap: 6px !important;
        margin: 3px 5px 3px 0 !important;
        padding: 4px 8px 4px 10px !important;
        background: #eff6ff !important;
        border: 1px solid #bfdbfe !important;
        border-radius: 8px !important;
        color: #1d4ed8 !important;
        line-height: 24px !important;
        height: 32px !important;
        box-sizing: border-box !important;
    }

    /* Remove button */
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove {
        position: static !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 18px !important;
        height: 18px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 50% !important;
        color: #64748b !important;
        font-size: 20px !important;
        padding-bottom: 4px !important;
        line-height: 1 !important;
        flex-shrink: 0 !important;
        order: 0 !important;
    }

        .select2-container--default
        .select2-selection--multiple
        .select2-selection__choice__remove:hover {
            color: #dc2626 !important;
            background: #fee2e2 !important;
        }

    /* Selected category text */
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__display {
        display: inline-flex !important;
        align-items: center !important;
        line-height: 22px !important;
    }

    /* Search input inside multi-select */
    .select2-container--default
    .select2-selection--multiple
    .select2-search--inline {
        display: inline-flex !important;
        align-items: center !important;
        margin: 0 !important;
    }

    .select2-container--default
    .select2-selection--multiple
    .select2-search__field {
        margin: 0 !important;
        height: 30px !important;
        line-height: 30px !important;
        min-width: 100px !important;
        outline: none !important;
        box-shadow: none !important;
    }

/* Prevent Select2 from creating short vertical alignment */
.select2-container {
    width: 100% !important;
}

.select2-container--default
.select2-selection--multiple
.select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    min-height: 32px !important;
    box-sizing: border-box !important;
}
/* Dashboard navigation - centered menus */
.dashboard-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    min-height: 80px;
    padding: 16px 24px;
    box-sizing: border-box;
}

    /* Portal title positioned at left */
    .dashboard-nav .dashboard-brand {
        position: absolute;
        left: 24px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Navigation items centered */
    .dashboard-nav .dashboard-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin: 0 auto;
    }

    /* Logout button */
    .dashboard-nav .logout-btn {
        position: absolute;
        right: 24px;
    }

/* Responsive layout */
@media (max-width: 900px) {
    .dashboard-nav {
        position: static;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

        .dashboard-nav .dashboard-brand,
        .dashboard-nav .logout-btn {
            position: static;
        }

        .dashboard-nav .dashboard-menu {
            justify-content: center;
            width: 100%;
            flex-wrap: wrap;
        }
}


/* LocoSpot mobile bottom navigation - definitive viewport-fixed layout */
:root {
    --locospot-mobile-nav-height: 68px;
}

#mobileBottomNav.tabs {
    display: none;
    box-sizing: border-box;
}

@media screen and (max-width: 767px) {
    html {
        min-height: 100%;
    }

    body {
        min-height: 100vh;
        min-height: 100dvh;
        padding-bottom: calc(var(--locospot-mobile-nav-height) + env(safe-area-inset-bottom, 0px) + 16px) !important;
    }

    #mobileBottomNav.tabs {
        display: flex !important;
        position: fixed !important;
        inset: auto 0 0 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: calc(var(--locospot-mobile-nav-height) + env(safe-area-inset-bottom, 0px)) !important;
        min-height: calc(var(--locospot-mobile-nav-height) + env(safe-area-inset-bottom, 0px)) !important;
        margin: 0 !important;
        padding: 7px 5px calc(7px + env(safe-area-inset-bottom, 0px)) !important;
        border: 0 !important;
        border-top: 1px solid #e5eaf2 !important;
        border-radius: 0 !important;
        box-shadow: 0 -8px 28px rgba(15, 23, 42, .09) !important;
        background: rgba(255,255,255,.97) !important;
        backdrop-filter: blur(18px) saturate(160%) !important;
        -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
        z-index: 2147483000 !important;
        transform: none !important;
        animation: none !important;
        overflow: visible !important;
        flex-direction: row !important;
        align-items: stretch !important;
        justify-content: space-around !important;
        gap: 0 !important;
    }

        #mobileBottomNav.tabs > a {
            flex: 1 1 20% !important;
            min-width: 0 !important;
            max-width: 20% !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 3px !important;
            margin: 0 !important;
            padding: 4px 2px !important;
            border: 0 !important;
            border-radius: 10px !important;
            background: transparent !important;
            color: #64748b !important;
            text-decoration: none !important;
            font-size: 10px !important;
            line-height: 1.15 !important;
            font-weight: 600 !important;
            white-space: nowrap !important;
            overflow: hidden !important;
            box-sizing: border-box !important;
        }

            #mobileBottomNav.tabs > a .ms {
                display: block !important;
                font-size: 19px !important;
                line-height: 22px !important;
                margin: 0 !important;
            }

            #mobileBottomNav.tabs > a.on,
            #mobileBottomNav.tabs > a[aria-current="page"] {
                color: #2563eb !important;
                background: #eff6ff !important;
            }

            #mobileBottomNav.tabs > a:active {
                background: #e0ecff !important;
            }

    .main-content {
        padding-bottom: 1rem !important;
    }

    .foot {
        padding-bottom: 1rem !important;
    }
}

@media screen and (min-width: 768px) {
    #mobileBottomNav.tabs {
        display: none !important;
    }
}


/* LocoSpot native-app style bottom bar - final override */
#mobileBottomNav.tabs {
    display: none !important;
}

@media (max-width: 767px) {
    html, body {
        width: 100%;
    }

    body {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    }

    #mobileBottomNav.tabs {
        display: flex !important;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
        height: calc(66px + env(safe-area-inset-bottom, 0px)) !important;
        box-sizing: border-box !important;
        z-index: 2147483647 !important;
        border: 0 !important;
        border-top: 1px solid #e5eaf2 !important;
        border-radius: 0 !important;
        background: rgba(255,255,255,.98) !important;
        box-shadow: 0 -5px 22px rgba(15,23,42,.10) !important;
        backdrop-filter: blur(18px) !important;
        -webkit-backdrop-filter: blur(18px) !important;
        transform: none !important;
        animation: none !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-around !important;
        gap: 0 !important;
        overflow: visible !important;
    }

        #mobileBottomNav.tabs > a {
            display: flex !important;
            flex: 1 1 0 !important;
            width: auto !important;
            max-width: none !important;
            min-width: 0 !important;
            height: 100% !important;
            margin: 0 !important;
            padding: 4px 1px !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 3px !important;
            border: 0 !important;
            border-radius: 11px !important;
            background: transparent !important;
            text-decoration: none !important;
            color: #64748b !important;
            font-size: 10px !important;
            line-height: 1.1 !important;
            font-weight: 600 !important;
            white-space: nowrap !important;
            overflow: visible !important;
            box-sizing: border-box !important;
        }

            #mobileBottomNav.tabs > a .ms {
                display: block !important;
                font-size: 20px !important;
                line-height: 22px !important;
                margin: 0 !important;
            }

            #mobileBottomNav.tabs > a.on, #mobileBottomNav.tabs > a[aria-current="page"] {
                color: #2563eb !important;
                background: #eff6ff !important;
            }
}

@media (min-width: 768px) {
    #mobileBottomNav.tabs {
        display: none !important;
    }
}

/* ===== FIX: bottom menu not sticking on mobile =====
   Cause: style.css animates <body> with a transform (pageIn, fill-mode both).
   A transform animation makes <body> the containing block for position:fixed,
   so the tab bar sat at the end of the page instead of the screen bottom.
   Fix: never animate/transform html or body; fade only the page content. */
html, body {
    transform: none !important;
    filter: none !important;
    perspective: none !important;
    will-change: auto !important;
    contain: none !important;
    animation: none !important;
}

@keyframes pageFade {
    from {
        opacity: 0;
    }
}

.main-content {
    animation: pageFade .35s ease both;
}

@media (max-width: 767px) {
    #mobileBottomNav.tabs {
        position: fixed !important;
        bottom: 0 !important;
    }
}

.search-attention {
    animation: searchPulse 2s ease-in-out infinite;
}

@keyframes searchPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.12);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(13, 148, 136, 0.08);
    }
}

.search-pointer {
    animation: searchBounce 1s ease-in-out infinite;
}

@keyframes searchBounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

/* ===== Search results grid: 3 per row on desktop, 2 per row on mobile ===== */
.grid.c3 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    width: 100%;
}

@media (min-width: 768px) {
    .grid.c3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

.grid.c3 > * {
    min-width: 0;
    max-width: none;
    width: 100%;
}

.grid.c3 .card .bd {
    padding: .8rem;
    gap: .35rem;
}

.grid.c3 .card h3 {
    font-size: 1rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* compact cards so two fit on a phone */
@media (max-width: 767px) {
    .grid.c3 .card .ph {
        aspect-ratio: 4 / 3;
    }

    .grid.c3 .card .bd {
        padding: .6rem;
    }

    .grid.c3 .card h3 {
        font-size: .9rem;
    }

    .grid.c3 .card .meta {
        font-size: .72rem;
    }

    .grid.c3 .card .row {
        flex-wrap: wrap;
        gap: .35rem;
    }

        .grid.c3 .card .row .btn {
            flex: 1 1 100%;
            height: 34px;
            font-size: .75rem;
            padding: 0 .5rem;
        }

    .grid.c3 .fav {
        width: 30px;
        height: 30px;
        top: .35rem;
        right: .35rem;
    }

    .grid.c3 .card .ph .badge {
        font-size: .6rem;
        padding: .15rem .45rem;
        top: .4rem;
        left: .4rem;
    }
}
