/*
 * LinkMe UI. Loaded after Bootstrap 4.1, on every page.
 * Colours come from the logo's two blues. Fonts are system fonts, so pages add
 * no font download for visitors on mobile data.
 */
:root {
    --lm-primary: #1b4cbd;
    --lm-primary-dark: #143a93;
    --lm-primary-deep: #0d2560;
    --lm-sky: #5b8def;
    --lm-tint: #eef3fd;
    --lm-ink: #14213d;
    --lm-body: #3c4761;
    --lm-muted: #667085;
    --lm-line: #e3e8f0;
    --lm-surface: #fff;
    --lm-bg: #f5f7fb;
    --lm-star: #e8a200;
    --lm-success: #0f7b4f;
    --lm-success-bg: #e5f6ee;
    --lm-warning: #8a5800;
    --lm-warning-bg: #fdf3dc;
    --lm-danger: #b42318;
    --lm-danger-bg: #fdecea;
    --lm-neutral: #475467;
    --lm-neutral-bg: #eef0f4;
    --lm-radius: 12px;
    --lm-radius-sm: 8px;
    --lm-shadow: 0 1px 2px rgba(20, 33, 61, .05), 0 1px 6px rgba(20, 33, 61, .05);
    --lm-shadow-lg: 0 8px 28px rgba(20, 33, 61, .12);
    --lm-sidebar: 248px;
    --lm-bar: 64px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--lm-bar) + 16px); }
body {
    margin: 0;
    background: var(--lm-bg);
    color: var(--lm-body);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--lm-ink); font-family: inherit; font-weight: 700; line-height: 1.25; }
h1 { font-size: 1.6rem; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
a { color: var(--lm-primary); }
a:hover { color: var(--lm-primary-dark); }
img, video { max-width: 100%; }
:focus-visible { outline: 2px solid var(--lm-primary); outline-offset: 2px; }
.text-muted { color: var(--lm-muted) !important; }
.lm-link-plain, .lm-link-plain:hover { color: inherit; text-decoration: none; }
.lm-rich-text p:last-child { margin-bottom: 0; }

/* ---------- Bootstrap adjustments ---------- */
.btn { border-radius: var(--lm-radius-sm); font-weight: 600; font-size: .9rem; padding: .5rem .95rem; }
.btn-sm { font-size: .8rem; padding: .3rem .6rem; }
.btn-lg { font-size: 1rem; padding: .7rem 1.25rem; }
.btn i { margin-right: .35rem; }
.btn-icon i { margin-right: 0; }
.btn-primary, .btn-primary:not(:disabled):not(.disabled):active { background: var(--lm-primary); border-color: var(--lm-primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--lm-primary-dark); border-color: var(--lm-primary-dark); color: #fff; }
.btn-outline-primary { border-color: var(--lm-primary); color: var(--lm-primary); }
.btn-outline-primary:hover { background: var(--lm-primary); border-color: var(--lm-primary); color: #fff; }
.btn-light { background: #fff; border-color: var(--lm-line); color: var(--lm-ink); }
.btn-light:hover, .btn-light:focus { background: var(--lm-tint); border-color: #c9d6f2; color: var(--lm-primary); }
.btn-danger-soft { background: var(--lm-danger-bg); border-color: transparent; color: var(--lm-danger); }
.btn-danger-soft:hover, .btn-danger-soft:focus { background: var(--lm-danger); color: #fff; }
.btn-whatsapp { background: #128c4b; border-color: #128c4b; color: #fff; }
.btn-whatsapp:hover { background: #0e6f3b; border-color: #0e6f3b; color: #fff; }

.form-control {
    border: 1px solid #cfd6e2;
    border-radius: var(--lm-radius-sm);
    color: var(--lm-ink);
    font-size: .92rem;
    height: calc(2.45rem + 2px);
}
textarea.form-control { height: auto; }
.form-control:focus { border-color: var(--lm-primary); box-shadow: 0 0 0 3px rgba(27, 76, 189, .15); }
.form-control-file { font-size: .88rem; }
label, .lm-label { color: var(--lm-ink); font-size: .84rem; font-weight: 600; margin-bottom: .3rem; }
.lm-required { color: var(--lm-danger); }
.lm-help { color: var(--lm-muted); display: block; font-size: .8rem; margin-top: .25rem; }
.invalid-feedback { font-size: .8rem; }

.alert { border: 0; border-radius: var(--lm-radius-sm); font-size: .9rem; }
.alert-success { background: var(--lm-success-bg); color: var(--lm-success); }
.alert-danger { background: var(--lm-danger-bg); color: var(--lm-danger); }
.alert-warning { background: var(--lm-warning-bg); color: var(--lm-warning); }
.alert-info { background: var(--lm-tint); color: var(--lm-primary-dark); }
.alert ul { margin: 0; padding-left: 1.1rem; }

.page-link { border-color: var(--lm-line); color: var(--lm-primary); }
.page-item.active .page-link { background: var(--lm-primary); border-color: var(--lm-primary); }
.pagination { flex-wrap: wrap; margin: 0; }

.dropdown-menu { border: 1px solid var(--lm-line); border-radius: var(--lm-radius-sm); box-shadow: var(--lm-shadow-lg); font-size: .9rem; }
.dropdown-item { padding: .45rem 1rem; }
.dropdown-item:active { background: var(--lm-primary); }
.dropdown-item i { color: var(--lm-muted); margin-right: .5rem; width: 1em; }
.modal-content { border: 0; border-radius: var(--lm-radius); }

/* ---------- Status badge ---------- */
.lm-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: .74rem;
    font-weight: 600;
    gap: .3rem;
    line-height: 1;
    padding: .32rem .6rem;
    white-space: nowrap;
}
.lm-badge::before { background: currentColor; border-radius: 50%; content: ""; height: 6px; width: 6px; }
.lm-badge--plain::before { display: none; }
.lm-badge--success { background: var(--lm-success-bg); color: var(--lm-success); }
.lm-badge--warning { background: var(--lm-warning-bg); color: var(--lm-warning); }
.lm-badge--danger { background: var(--lm-danger-bg); color: var(--lm-danger); }
.lm-badge--neutral { background: var(--lm-neutral-bg); color: var(--lm-neutral); }
.lm-badge--info { background: var(--lm-tint); color: var(--lm-primary); }

/* ---------- Cards ---------- */
.lm-card {
    background: var(--lm-surface);
    border: 1px solid var(--lm-line);
    border-radius: var(--lm-radius);
    box-shadow: var(--lm-shadow);
}
.lm-card__head {
    align-items: center;
    border-bottom: 1px solid var(--lm-line);
    color: var(--lm-ink);
    display: flex;
    flex-wrap: wrap;
    font-weight: 700;
    gap: .5rem;
    justify-content: space-between;
    padding: .85rem 1.25rem;
}
.lm-card__head h2, .lm-card__head h3 { font-size: 1rem; margin: 0; }
.lm-card__body { padding: 1.25rem; }
.lm-card__foot {
    align-items: center;
    border-top: 1px solid var(--lm-line);
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: space-between;
    padding: .75rem 1.25rem;
}
.lm-form-card { margin: 0 auto; max-width: 720px; }
.lm-form-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; margin-top: 1.25rem; }
.lm-form-section { border-top: 1px solid var(--lm-line); font-size: 1rem; margin: 1.5rem 0 1rem; padding-top: 1.25rem; }
.lm-form-section:first-child { border: 0; margin-top: 0; padding-top: 0; }

/* ---------- Page header ---------- */
.lm-page-head {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.lm-page-head h1 { margin: 0; }
.lm-page-head p { color: var(--lm-muted); margin: .2rem 0 0; }
.lm-page-head__back { color: var(--lm-muted); display: inline-block; font-size: .84rem; font-weight: 600; margin-bottom: .25rem; }
.lm-page-head__actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Filter bar ---------- */
.lm-filter {
    align-items: flex-end;
    background: var(--lm-surface);
    border: 1px solid var(--lm-line);
    border-radius: var(--lm-radius);
    box-shadow: var(--lm-shadow);
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-bottom: 1rem;
    padding: .9rem 1rem;
}
.lm-filter .form-group { margin: 0; min-width: 0; }
.lm-filter label { color: var(--lm-muted); font-size: .76rem; margin-bottom: .2rem; }
.lm-filter .form-control { font-size: .88rem; height: calc(2.2rem + 2px); padding-bottom: .25rem; padding-top: .25rem; }
.lm-filter__search { grid-column: span 2; position: relative; }
.lm-filter__search i { color: var(--lm-muted); font-size: .85rem; left: .75rem; position: absolute; bottom: .68rem; }
.lm-filter__search .form-control { padding-left: 2.1rem; }
.lm-filter__actions { display: flex; gap: .4rem; }
.lm-filter__actions .btn { padding-bottom: .42rem; padding-top: .42rem; white-space: nowrap; }

/* ---------- Tables ---------- */
.lm-table { color: var(--lm-body); font-size: .88rem; margin: 0; width: 100% !important; }
.lm-table thead th {
    background: #f9fafc;
    border-bottom: 1px solid var(--lm-line);
    border-top: 0;
    color: var(--lm-muted);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .03em;
    padding: .65rem 1rem;
    text-transform: uppercase;
    white-space: nowrap;
}
.lm-table td { border-top: 1px solid var(--lm-line); padding: .7rem 1rem; vertical-align: middle; }
.lm-table tbody tr:first-child td { border-top: 0; }
.lm-table tbody tr:hover { background: #fafbfe; }
.lm-table .lm-title { color: var(--lm-ink); font-weight: 600; }
.lm-table .lm-sub { color: var(--lm-muted); display: block; font-size: .8rem; }
.lm-table .lm-clip { display: block; max-width: 280px; }
.lm-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; }
.lm-actions form { display: inline-flex; margin: 0; }
@media (min-width: 768px) { .lm-actions { flex-wrap: nowrap; } }
.lm-order-items { list-style: none; margin: 0; padding: 0; }

/* DataTables only supplies the Excel button and column sorting here. */
.dt-buttons { margin: .75rem 1rem 0; }
button.dt-button, div.dt-button, a.dt-button {
    background: #fff !important;
    border: 1px solid var(--lm-line) !important;
    border-radius: var(--lm-radius-sm) !important;
    color: var(--lm-ink) !important;
    font-size: .8rem !important;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 .75rem !important;
    padding: .3rem .7rem !important;
}
button.dt-button:hover { background: var(--lm-tint) !important; color: var(--lm-primary) !important; }
table.dataTable { border-collapse: collapse !important; }
table.dataTable.no-footer { border-bottom: 0; }
table.dataTable thead th { border-bottom: 1px solid var(--lm-line) !important; padding: .65rem 1.6rem .65rem 1rem !important; }
table.dataTable thead th.no-sort { padding-right: 1rem !important; }
table.dataTable.lm-table tbody td { padding: .7rem 1rem; }
table.dataTable thead .sorting, table.dataTable thead .sorting_asc, table.dataTable thead .sorting_desc { background-image: none !important; }
table.dataTable thead .sorting::after { color: #b4bdcc; content: "\2195"; margin-left: .3rem; }
table.dataTable thead .sorting_asc::after { color: var(--lm-primary); content: "\2191"; margin-left: .3rem; }
table.dataTable thead .sorting_desc::after { color: var(--lm-primary); content: "\2193"; margin-left: .3rem; }

@media (max-width: 767.98px) {
    .lm-table thead { display: none; }
    .lm-table, .lm-table tbody, .lm-table tr, .lm-table td { display: block; width: 100%; }
    .lm-table tr { border-top: 1px solid var(--lm-line); padding: .6rem 1rem; }
    .lm-table tbody tr:first-child { border-top: 0; }
    .lm-table td { align-items: flex-start; border: 0 !important; display: flex; gap: 1rem; justify-content: space-between; padding: .3rem 0; text-align: right; }
    .lm-table td[data-label]::before {
        color: var(--lm-muted);
        content: attr(data-label);
        flex: 0 0 34%;
        font-size: .76rem;
        font-weight: 600;
        text-align: left;
    }
    .lm-table td.lm-cell-primary { display: flex; justify-content: flex-start; text-align: left; }
    table.dataTable.lm-table, table.dataTable.lm-table tbody td { box-sizing: border-box; }
    table.dataTable.lm-table tbody td { padding: .3rem 0; }
    .lm-table td:empty { display: none; }
    .lm-table .lm-clip { max-width: none; }
    .lm-actions { justify-content: flex-end; width: 100%; }
    .lm-filter__search { grid-column: 1 / -1; }
    .lm-filter__actions { grid-column: 1 / -1; }
    .lm-filter__actions .btn { flex: 1; }
}

/* ---------- Thumbnails and avatars ---------- */
.lm-thumb {
    align-items: center;
    background: var(--lm-tint);
    border-radius: var(--lm-radius-sm);
    color: var(--lm-primary);
    display: inline-flex;
    flex-shrink: 0;
    font-weight: 700;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.lm-thumb::before { content: attr(data-initial); }
.lm-thumb img, .lm-thumb video { background: #fff; height: 100%; left: 0; object-fit: cover; position: absolute; top: 0; width: 100%; }
.lm-thumb--round { border-radius: 50%; }
.lm-media { align-items: center; display: flex; gap: .7rem; min-width: 0; }

/* ---------- Empty state ---------- */
.lm-empty { padding: 3rem 1.5rem; text-align: center; }
.lm-empty__icon {
    align-items: center;
    background: var(--lm-tint);
    border-radius: 50%;
    color: var(--lm-primary);
    display: inline-flex;
    font-size: 1.3rem;
    height: 56px;
    justify-content: center;
    margin-bottom: .85rem;
    width: 56px;
}
.lm-empty h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.lm-empty p { color: var(--lm-muted); margin: 0 auto; max-width: 420px; }
.lm-empty .btn { margin-top: 1rem; }

/* ---------- Brand ---------- */
.lm-brand { align-items: center; color: var(--lm-ink); display: inline-flex; font-size: 1.1rem; font-weight: 800; gap: .5rem; letter-spacing: -.01em; }
.lm-brand:hover { color: var(--lm-ink); text-decoration: none; }
.lm-brand img { border-radius: 6px; height: 34px; width: auto; }

/* ---------- Dashboard shell ---------- */
.lm-sidebar {
    background: var(--lm-surface);
    border-right: 1px solid var(--lm-line);
    bottom: 0;
    display: flex;
    flex-direction: column;
    left: 0;
    overflow-y: auto;
    position: fixed;
    top: 0;
    width: var(--lm-sidebar);
    z-index: 1040;
}
.lm-sidebar__brand { align-items: center; display: flex; flex-shrink: 0; height: var(--lm-bar); padding: 0 1.1rem; }
.lm-sidebar nav { flex: 1; padding: .25rem .7rem 1rem; }
.lm-nav-heading { color: var(--lm-muted); font-size: .7rem; font-weight: 700; letter-spacing: .07em; margin: 1rem .6rem .35rem; text-transform: uppercase; }
.lm-nav-link {
    align-items: center;
    border-radius: var(--lm-radius-sm);
    color: var(--lm-body);
    display: flex;
    font-size: .9rem;
    font-weight: 500;
    gap: .7rem;
    padding: .5rem .6rem;
}
.lm-nav-link i { color: var(--lm-muted); font-size: .95rem; text-align: center; width: 1.2rem; }
.lm-nav-link:hover { background: var(--lm-bg); color: var(--lm-ink); text-decoration: none; }
.lm-nav-link.is-active { background: var(--lm-tint); color: var(--lm-primary); font-weight: 600; }
.lm-nav-link.is-active i { color: var(--lm-primary); }
.lm-main { display: flex; flex-direction: column; margin-left: var(--lm-sidebar); min-height: 100vh; }
.lm-appbar {
    align-items: center;
    background: var(--lm-surface);
    border-bottom: 1px solid var(--lm-line);
    display: flex;
    flex-shrink: 0;
    gap: .75rem;
    height: var(--lm-bar);
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}
.lm-appbar__spacer { flex: 1; }
.lm-menu-button { background: none; border: 0; color: var(--lm-ink); display: none; font-size: 1.15rem; padding: .35rem .5rem; }
.lm-user-button { align-items: center; background: none; border: 0; color: var(--lm-ink); display: flex; font-size: .88rem; font-weight: 600; gap: .55rem; padding: .25rem; }
.lm-user-button small { color: var(--lm-muted); display: block; font-size: .72rem; font-weight: 500; line-height: 1.2; text-align: left; text-transform: capitalize; }
.lm-content { flex: 1; padding: 1.5rem; }
.lm-content__inner { margin: 0 auto; max-width: 1240px; }
.lm-footer-note { color: var(--lm-muted); font-size: .8rem; padding: 1rem 1.5rem; text-align: center; }
.lm-backdrop { background: rgba(13, 37, 96, .45); bottom: 0; display: none; left: 0; position: fixed; right: 0; top: 0; z-index: 1035; }

@media (max-width: 991.98px) {
    .lm-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    .lm-main { margin-left: 0; }
    .lm-menu-button { display: inline-block; }
    body.lm-nav-open .lm-sidebar { box-shadow: var(--lm-shadow-lg); transform: none; }
    body.lm-nav-open .lm-backdrop { display: block; }
    .lm-appbar { padding: 0 .9rem; }
    .lm-content { padding: 1rem; }
}
@media (max-width: 575.98px) {
    .lm-user-button__name { display: none; }
}

/* ---------- Stat tiles ---------- */
.lm-stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 1.25rem; }
.lm-stat {
    align-items: center;
    background: var(--lm-surface);
    border: 1px solid var(--lm-line);
    border-radius: var(--lm-radius);
    box-shadow: var(--lm-shadow);
    color: inherit;
    display: flex;
    gap: .85rem;
    padding: 1rem 1.1rem;
}
a.lm-stat:hover { border-color: #c9d6f2; box-shadow: var(--lm-shadow-lg); color: inherit; text-decoration: none; }
.lm-stat__icon {
    align-items: center;
    background: var(--lm-tint);
    border-radius: 10px;
    color: var(--lm-primary);
    display: flex;
    flex-shrink: 0;
    font-size: 1.05rem;
    height: 44px;
    justify-content: center;
    width: 44px;
}
.lm-stat--warning .lm-stat__icon { background: var(--lm-warning-bg); color: var(--lm-warning); }
.lm-stat--success .lm-stat__icon { background: var(--lm-success-bg); color: var(--lm-success); }
.lm-stat__value { color: var(--lm-ink); display: block; font-size: 1.45rem; font-weight: 700; line-height: 1.1; }
.lm-stat__label { color: var(--lm-muted); display: block; font-size: .82rem; line-height: 1.3; }
.lm-subhead { font-size: .98rem; margin: 0 0 .6rem; }

/* ---------- Public site header ---------- */
.lm-site-header { background: var(--lm-surface); border-bottom: 1px solid var(--lm-line); position: sticky; top: 0; z-index: 1030; }
.lm-site-nav { align-items: center; display: flex; flex-wrap: wrap; gap: .25rem 1rem; min-height: var(--lm-bar); padding: .4rem 0; }
.lm-site-nav__toggle { background: none; border: 1px solid var(--lm-line); border-radius: var(--lm-radius-sm); color: var(--lm-ink); display: none; margin-left: auto; padding: .35rem .65rem; }
.lm-site-nav__menu { align-items: center; display: flex; flex: 1; gap: .25rem 1rem; }
.lm-site-nav__links { align-items: center; display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.lm-site-link { background: none; border: 0; border-radius: var(--lm-radius-sm); color: var(--lm-body); display: block; font-size: .92rem; font-weight: 500; padding: .45rem .7rem; }
.lm-site-link:hover, .lm-site-link:focus, .lm-site-link.is-active { background: var(--lm-tint); color: var(--lm-primary); text-decoration: none; }
.lm-site-search { flex: 1; margin-left: auto; max-width: 320px; position: relative; }
.lm-site-search i { color: var(--lm-muted); font-size: .85rem; left: .75rem; position: absolute; top: .72rem; }
.lm-site-search .form-control { background: var(--lm-bg); border-color: transparent; height: calc(2.2rem + 2px); padding-left: 2.1rem; }
.lm-site-search .form-control:focus { background: #fff; border-color: var(--lm-primary); }
.lm-site-auth { align-items: center; display: flex; flex-shrink: 0; gap: .5rem; }
.lm-mega { max-height: 70vh; min-width: 480px; overflow-y: auto; padding: .75rem; }
.lm-mega__grid { columns: 2; column-gap: .75rem; }
.lm-mega__grid a { border-radius: 6px; break-inside: avoid; color: var(--lm-body); display: block; font-size: .88rem; padding: .35rem .55rem; }
.lm-mega__grid a:hover { background: var(--lm-tint); color: var(--lm-primary); text-decoration: none; }
.lm-mega__foot { border-top: 1px solid var(--lm-line); margin-top: .5rem; padding-top: .5rem; }

@media (max-width: 991.98px) {
    .lm-site-nav__toggle { display: block; }
    .lm-site-nav__menu { align-items: stretch; display: none; flex: 0 0 100%; flex-direction: column; padding: .5rem 0 .75rem; }
    .lm-site-nav__menu.is-open { display: flex; }
    .lm-site-nav__links { align-items: stretch; flex-direction: column; }
    .lm-site-search { margin: 0; max-width: none; order: -1; }
    .lm-site-auth .btn { flex: 1; }
    .lm-site-link { text-align: left; width: 100%; }
    .lm-mega { box-shadow: none; min-width: 0; }
}

/* ---------- Public site sections ---------- */
.lm-section { padding: 3rem 0; }
.lm-section--white { background: var(--lm-surface); }
.lm-section__head { align-items: flex-end; display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; margin-bottom: 1.5rem; }
.lm-section__head h2 { font-size: 1.5rem; margin: 0; }
.lm-section__head p { color: var(--lm-muted); margin: .25rem 0 0; }
.lm-page-band { background: var(--lm-primary-deep); color: #dbe5fb; padding: 2rem 0; }
.lm-page-band h1 { color: #fff; font-size: 1.75rem; margin: 0 0 .25rem; }
.lm-page-band p { margin: 0; }
.lm-page-band--image { background-position: center; background-size: cover; padding: 3rem 0; }
.lm-page-band a { color: #fff; }
.lm-page-body { padding-bottom: 3rem; padding-top: 1.75rem; }

.lm-hero {
    background: linear-gradient(100deg, rgba(13, 37, 96, .95) 25%, rgba(13, 37, 96, .65)), url('/images/landing.jpg') center / cover no-repeat;
    color: #dbe5fb;
    padding: 4.5rem 0;
}
.lm-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-bottom: .9rem; max-width: 680px; }
.lm-hero p { font-size: 1.08rem; margin-bottom: 1.6rem; max-width: 600px; }
.lm-hero-search { background: #fff; border-radius: var(--lm-radius); box-shadow: var(--lm-shadow-lg); display: flex; gap: .4rem; max-width: 600px; padding: .4rem; }
.lm-hero-search .form-control { border: 0; box-shadow: none; flex: 1; font-size: 1rem; }
.lm-hero-links { display: flex; flex-wrap: wrap; font-size: .9rem; gap: .5rem 1.25rem; margin-top: 1rem; }
.lm-hero-links a { color: #fff; font-weight: 600; }

.lm-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.lm-grid--tiles { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.lm-tile {
    align-items: center;
    background: var(--lm-surface);
    border: 1px solid var(--lm-line);
    border-radius: var(--lm-radius);
    color: inherit;
    display: flex;
    gap: .75rem;
    padding: .7rem;
}
.lm-tile:hover { border-color: #c9d6f2; box-shadow: var(--lm-shadow-lg); color: inherit; text-decoration: none; }
.lm-tile strong { color: var(--lm-ink); display: block; font-size: .92rem; line-height: 1.25; }
.lm-tile small { color: var(--lm-muted); }

.lm-listing {
    background: var(--lm-surface);
    border: 1px solid var(--lm-line);
    border-radius: var(--lm-radius);
    box-shadow: var(--lm-shadow);
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.lm-listing:hover { border-color: #c9d6f2; box-shadow: var(--lm-shadow-lg); color: inherit; text-decoration: none; }
.lm-listing__media { aspect-ratio: 16 / 10; background: var(--lm-tint); display: block; width: 100%; }
.lm-listing__media.lm-thumb { border-radius: 0; font-size: 2rem; display: flex; }
/* These are logos, so show them whole rather than cropped. */
.lm-listing__media.lm-thumb img { object-fit: contain; padding: .75rem; }
.lm-listing__body { display: flex; flex: 1; flex-direction: column; gap: .3rem; padding: .9rem 1rem 1rem; }
.lm-listing__title { color: var(--lm-ink); font-size: 1rem; font-weight: 700; line-height: 1.3; margin: 0; }
.lm-listing__meta { color: var(--lm-muted); font-size: .84rem; }
.lm-listing__meta i { margin-right: .25rem; width: 1em; }
.lm-listing__foot { align-items: center; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; margin-top: auto; padding-top: .5rem; }
.lm-person { align-items: center; display: flex; gap: .85rem; padding: 1rem 1rem 0; }

.lm-stars { color: var(--lm-star); font-size: .82rem; white-space: nowrap; }
.lm-stars--muted { color: var(--lm-muted); }
.lm-stars__count { color: var(--lm-muted); font-size: .8rem; margin-left: .25rem; }

.lm-plan { background: var(--lm-surface); border: 1px solid var(--lm-line); border-radius: var(--lm-radius); box-shadow: var(--lm-shadow); display: flex; flex-direction: column; padding: 1.5rem; }
.lm-plan h3 { margin-bottom: .35rem; }
.lm-plan__price { color: var(--lm-ink); font-size: 1.65rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.lm-plan__days { color: var(--lm-muted); font-size: .88rem; margin-bottom: .75rem; }
.lm-plan__desc { flex: 1; font-size: .9rem; }

.lm-cta { background: var(--lm-primary-deep); border-radius: var(--lm-radius); color: #dbe5fb; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding: 1.75rem; }
.lm-cta h2 { color: #fff; margin: 0 0 .25rem; }
.lm-cta p { margin: 0; }

.lm-detail-hero { align-items: center; display: flex; flex-wrap: wrap; gap: 1.1rem; }
.lm-detail-hero h1 { margin-bottom: .3rem; }
.lm-chips { display: flex; flex-wrap: wrap; font-size: .88rem; gap: .25rem 1rem; }
.lm-chips i { margin-right: .3rem; opacity: .8; }
.lm-strip { align-items: center; background: var(--lm-surface); border-bottom: 1px solid var(--lm-line); }
.lm-strip__inner { align-items: center; display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; padding: .7rem 0; }
.lm-strip strong { color: var(--lm-ink); }
.lm-strip__actions { display: flex; gap: .5rem; margin-left: auto; }
.lm-sticky { position: sticky; top: calc(var(--lm-bar) + 16px); }
@media (max-width: 991.98px) { .lm-sticky { position: static; } }

.lm-service { border: 1.5px solid var(--lm-line); border-radius: var(--lm-radius); cursor: pointer; display: flex; font-weight: 400; gap: .75rem; height: 100%; margin: 0; padding: .65rem; }
.lm-service:hover { border-color: var(--lm-sky); }
.lm-service:has(input:checked) { background: var(--lm-tint); border-color: var(--lm-primary); }
.lm-service__name { color: var(--lm-ink); display: block; font-size: .92rem; font-weight: 600; line-height: 1.3; }
.lm-service__price { color: var(--lm-primary); display: block; font-size: .88rem; font-weight: 700; }
.lm-service input { flex-shrink: 0; margin: .2rem 0 0 auto; }

.lm-review { border-top: 1px solid var(--lm-line); padding: 1rem 0; }
.lm-review:first-child { border-top: 0; padding-top: 0; }
.lm-review:last-child { padding-bottom: 0; }
.lm-review__head { align-items: center; display: flex; flex-wrap: wrap; gap: .25rem .75rem; justify-content: space-between; margin-bottom: .3rem; }
.lm-review__head strong { color: var(--lm-ink); }
.lm-review p { font-size: .9rem; margin: 0; overflow-wrap: anywhere; }

.lm-bullets { list-style: none; margin: 0; padding: 0; }
.lm-bullets li { display: flex; gap: .55rem; margin-bottom: .5rem; overflow-wrap: anywhere; }
.lm-bullets li:last-child { margin-bottom: 0; }
.lm-bullets i { color: var(--lm-primary); flex-shrink: 0; font-size: .82rem; margin-top: .3rem; }

.lm-gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.lm-gallery__item { aspect-ratio: 4 / 3; background: var(--lm-tint); border-radius: var(--lm-radius-sm); overflow: hidden; position: relative; }
.lm-gallery__item img, .lm-gallery__item video { display: block; height: 100%; object-fit: cover; width: 100%; }
.lm-gallery__item img[data-full] { cursor: zoom-in; }
.lm-gallery__remove { position: absolute; right: .4rem; top: .4rem; }
.lm-lightbox { align-items: center; background: rgba(13, 20, 40, .85); bottom: 0; display: none; justify-content: center; left: 0; padding: 1.5rem; position: fixed; right: 0; top: 0; z-index: 1060; }
.lm-lightbox.is-open { display: flex; }
.lm-lightbox img { border-radius: var(--lm-radius-sm); max-height: 90vh; max-width: 100%; }
.lm-lightbox button { background: #fff; border: 0; border-radius: 50%; font-size: 1.3rem; height: 38px; line-height: 1; position: absolute; right: 1rem; top: 1rem; width: 38px; }

.lm-toast { background: var(--lm-ink); border-radius: var(--lm-radius-sm); bottom: 1.25rem; color: #fff; font-size: .9rem; left: 50%; padding: .6rem 1rem; position: fixed; transform: translateX(-50%); z-index: 1070; }

.lm-auth { margin: 0 auto; max-width: 440px; }
.lm-auth--wide { max-width: 720px; }
.lm-auth__head { margin-bottom: 1.25rem; text-align: center; }
.lm-auth__head img { border-radius: 8px; height: 52px; margin-bottom: .75rem; }
.lm-auth__head h1 { font-size: 1.4rem; margin-bottom: .25rem; }
.lm-auth__head p { color: var(--lm-muted); margin: 0; }
.lm-auth__foot { color: var(--lm-muted); font-size: .88rem; margin-top: 1rem; text-align: center; }

.lm-article { font-size: .95rem; max-width: 780px; }
.lm-article h2 { font-size: 1.1rem; margin-top: 1.75rem; }
.lm-status-page { align-items: center; display: flex; justify-content: center; min-height: 100vh; padding: 1.5rem; }

.lm-site-footer { background: var(--lm-primary-deep); color: #b9c8ec; font-size: .88rem; margin-top: auto; padding: 2.25rem 0 1.25rem; }
.lm-site-footer h4 { color: #fff; font-size: .88rem; margin-bottom: .6rem; }
.lm-site-footer a { color: #dbe5fb; }
.lm-site-footer ul { list-style: none; margin: 0; padding: 0; }
.lm-site-footer li { margin-bottom: .3rem; }
.lm-site-footer__legal { border-top: 1px solid rgba(255, 255, 255, .14); font-size: .8rem; margin-top: 1.25rem; padding-top: 1rem; }
.lm-site { display: flex; flex-direction: column; min-height: 100vh; }
.lm-site > main { flex: 1; }

/* Chosen, used by long select lists */
.chosen-container { font-size: .92rem; }
.chosen-container input[type="text"] { font-family: inherit !important; }
.chosen-container-single .chosen-single { background: #fff !important; border-color: #cfd6e2 !important; border-radius: var(--lm-radius-sm) !important; box-shadow: none !important; height: calc(2.45rem + 2px) !important; line-height: 2.45rem !important; }
.chosen-container-multi .chosen-choices { background: #fff !important; border-color: #cfd6e2 !important; border-radius: var(--lm-radius-sm) !important; min-height: calc(2.45rem + 2px); padding: .25rem !important; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .lm-sidebar { transition: none; }
}
