/* lodomi.css — Lodomi custom styles (Bootstrap 5.3.2 supplement)
   No animations. Low-bandwidth / low-CPU safe.
*/

/* ── Design tokens ──────────────────────────────────────────────── */
:root {
    --lo-brand:        #c0392b;   /* warm red — primary brand accent */
    --lo-brand-dark:   #96281b;
    --lo-surface:      #faf9f7;   /* off-white — page background warmth */
    --lo-rule:         #e2ddd8;   /* subtle warm separator */
    --lo-text-muted:   #6b6460;   /* warm muted text */
    --lo-thumb-radius: 5px;
}

body {
    background-color: var(--lo-surface);
}

/* ── Navbar brand — Bauhaus 93 (loaded via CDN in base.html) ───── */
.navbar-brand {
    font-family: 'Bauhaus 93', sans-serif;
    font-size: 2rem;
    color: var(--lo-brand) !important;
}

.navbar-brand:hover {
    color: var(--lo-brand-dark) !important;
}

/* ── Canadian-made provenance tag (anonymous navbar) ────────────── */
.lo-canadian-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
    font-size: 0.6rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--lo-text-muted);
    border: 1px solid var(--lo-rule);
    border-radius: 3px;
    padding: 2px 6px;
    margin-left: 0.5rem;
    vertical-align: middle;
    line-height: 1.5;
}

/* ── List thumbnails (_item.html, _search.html) ─────────────────── */
.list-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--lo-thumb-radius);
    display: block;
    border: 1px solid var(--lo-rule);
}

/* ── Item list table — tighter, warmer ──────────────────────────── */
.lo-item-table {
    border-collapse: collapse;
}

.lo-item-table td {
    border-bottom: 1px solid var(--lo-rule);
}

.lo-item-table tr:last-child td {
    border-bottom: none;
}

/* Hover only for owner rows (which carry position-relative + stretched-link) */
.lo-searches-table tr.position-relative:hover > td {
    background-color: var(--bs-table-hover-bg, rgba(0,0,0,.075));
}

/* ── Detail gallery thumbnails (_item_details.html) ─────────────── */
/* No hover animation — emergency-use compliant */
.item-thumb-wrap {
    width: 300px;
    height: 300px;
    border-radius: var(--lo-thumb-radius);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 1px solid var(--lo-rule);
}

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

/* ── Edit-page current-photo thumbnails ─────────────────────────── */
.edit-thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--lo-thumb-radius);
    display: block;
    border: 1px solid var(--lo-rule);
}

/* ── Search detail image (view_search.html) ─────────────────────── */
.search-detail-img {
    max-width: 480px;
    max-height: 360px;
    object-fit: contain;
    border-radius: var(--lo-thumb-radius);
    display: block;
    border: 1px solid var(--lo-rule);
}

/* ── Profile avatar ─────────────────────────────────────────────── */
.lo-avatar {
    border-radius: 50%;
    border: 2px solid var(--lo-rule);
    flex-shrink: 0;
}

/* ── Location autocomplete dropdown ─────────────────────────────── */
#loc-suggestions { max-height: 220px; overflow-y: auto; }

/* ── Content section — consistent reading width ─────────────────── */
.lo-section {
    max-width: 700px;
}

/* ── Section heading — small-caps label with rule ───────────────── */
.lo-section-head {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lo-brand);
    border-bottom: 1px solid var(--lo-rule);
    padding-bottom: 0.35rem;
    margin-bottom: 0.6rem;
}

/* ── Detail card — framed content block ─────────────────────────── */
.lo-detail-card {
    background: #fff;
    border: 1px solid var(--lo-rule);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

/* ── Brand primary button ────────────────────────────────────────── */
.btn-lo-primary {
    background-color: var(--lo-brand);
    border-color: var(--lo-brand);
    color: #fff;
}
.btn-lo-primary:hover,
.btn-lo-primary:focus {
    background-color: var(--lo-brand-dark);
    border-color: var(--lo-brand-dark);
    color: #fff;
}

/* ── Brand outline button (softer secondary action) ─────────────── */
.btn-lo-outline {
    background-color: transparent;
    border-color: var(--lo-brand);
    color: var(--lo-brand);
}
.btn-lo-outline:hover,
.btn-lo-outline:focus {
    background-color: var(--lo-brand);
    border-color: var(--lo-brand);
    color: #fff;
}

/* ── Index hero taglines ─────────────────────────────────────────── */
.lo-hero-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lo-brand);
    margin-bottom: 0.1rem;
}
.lo-hero-sub {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lo-brand);
    margin-bottom: 0;
}

/* ── Clickable transaction rows (user.html dashboard tables) ──── */
/* stretched-link handles cursor; this adds the hover background  */
.lo-txn-row:hover td {
    background-color: #f5f0ec;
}

/* ── Transaction progress stepper ───────────────────────────────── */
.lo-stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 1.5rem 0;
}
.lo-stepper::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--lo-rule);
    z-index: 0;
}
.lo-stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}
.lo-stepper-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--lo-rule);
    color: var(--lo-text-muted);
    border: 2px solid var(--lo-rule);
}
.lo-stepper-label {
    font-size: 0.7rem;
    margin-top: 0.4rem;
    text-align: center;
    color: var(--lo-text-muted);
    font-weight: 500;
}
.lo-stepper-step.done .lo-stepper-circle {
    background: var(--lo-brand);
    border-color: var(--lo-brand);
    color: #fff;
}
.lo-stepper-step.done .lo-stepper-label {
    color: var(--lo-brand);
}
.lo-stepper-step.active .lo-stepper-circle {
    background: #fff;
    border-color: var(--lo-brand);
    color: var(--lo-brand);
}
.lo-stepper-step.active .lo-stepper-label {
    color: var(--lo-brand);
    font-weight: 700;
}

/* ── Tab navigation (.lo-tabs) ──────────────────────────────────── */
.lo-tabs .nav-link {
    color: var(--lo-text-muted);
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.lo-tabs .nav-link.active {
    color: var(--lo-brand);
    border-bottom-color: var(--lo-brand);
    background: none;
}
.lo-tabs .nav-link:hover:not(.active) {
    color: var(--lo-brand-dark);
    border-bottom-color: var(--lo-rule);
    background: none;
}

/* ── Load-more button (below item/search/transaction tables) ─────── */
.lo-load-more {
    display: block;
    width: 100%;
    background: none;
    border: none;
    border-top: 1px solid var(--lo-rule);
    color: var(--lo-text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.6rem 1rem;
    cursor: pointer;
    text-align: center;
    transition: color 0.15s;
    margin-top: 0;
}
.lo-load-more:hover:not(:disabled) {
    color: var(--lo-brand);
    background: none;
}
.lo-load-more:disabled {
    cursor: default;
    color: var(--lo-rule);
}

/* ── Primary view toggle (Browse / My Stuff) in navbar ──────────── */
.lo-view-toggle {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}
.lo-view-link {
    display: inline-block;
    padding: 0.22rem 0.65rem;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--lo-text-muted);
    text-decoration: none;
}
.lo-view-link:hover {
    color: var(--lo-brand);
    background: rgba(192, 57, 43, 0.08);
}
.lo-view-link-active {
    color: var(--lo-brand) !important;
    background: rgba(192, 57, 43, 0.1);
}

/* ── Return-to-list row highlight ───────────────────────────────── */
.lo-row-highlight {
    background-color: rgba(192, 57, 43, 0.1);
}

/* ── Unread / envelope indicators ─────────────────────────────── */
.lo-unread-envelope {
    color: var(--lo-brand);
    font-size: 0.95rem;
    vertical-align: middle;
}

.lo-envelope {
    font-size: 1rem;
    color: var(--lo-text-muted);
}

.lo-unread .lo-envelope {
    color: var(--lo-brand);
    font-weight: bold;
}

.lo-unread {
    background-color: rgba(192, 57, 43, 0.04);
}

/* ── Red flag unread indicator ─────────────────────────────── */
.lo-flag {
    display: inline-block;
    font-size: 0.9rem;
    color: transparent;
    transition: color 0.15s ease;
    user-select: none;
    cursor: pointer;
}
.lo-unread .lo-flag {
    color: var(--lo-brand);
    font-weight: bold;
}

/* ── 404 error page ─────────────────────────────────────────────── */
.lo-404-wrap {
    padding: 4rem 0 3rem;
    max-width: 540px;
}
.lo-404-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lo-text-muted);
    margin-bottom: 0.5rem;
}
.lo-404-number {
    font-family: 'Bauhaus 93', sans-serif;
    font-size: clamp(5rem, 18vw, 9.5rem);
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: 0;
    user-select: none;
}
.lo-404-four {
    color: var(--lo-rule);
}
.lo-404-zero {
    color: var(--lo-brand);
}
.lo-404-rule {
    border: none;
    border-top: 2px solid var(--lo-rule);
    margin: 1.75rem 0;
    max-width: 320px;
}
.lo-404-msg {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
    color: #2c2522;
    margin-bottom: 0.5rem;
}
.lo-404-sub {
    font-size: 0.9rem;
    color: var(--lo-text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}
.lo-404-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.lo-404-back {
    display: inline-block;
    background: var(--lo-brand);
    color: #fff !important;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
}
.lo-404-back:hover {
    background: var(--lo-brand-dark);
    color: #fff !important;
    text-decoration: none;
}
.lo-404-home {
    font-size: 0.8rem;
    color: var(--lo-text-muted);
    text-decoration: none;
}
.lo-404-home:hover {
    color: var(--lo-brand);
    text-decoration: underline;
}

/* ── Floating feedback button ──────────────────────────────────── */
.lo-feedback-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background-color: var(--lo-brand);
    color: #fff;
    font-size: 1.3rem;
    line-height: 48px;
    text-align: center;
    cursor: pointer;
    z-index: 1040;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    padding: 0;
}
.lo-feedback-btn:hover {
    background-color: var(--lo-brand-dark);
}

/* ── Page footer ────────────────────────────────────────────────── */
.page-footer {
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--lo-rule);
    font-size: 0.8rem;
    color: var(--lo-text-muted);
    letter-spacing: 0.01em;
}
