/* ==========================================================================
   Editorial table — for data tables (e.g. neighborhood prices, market data).
   Replaces ad-hoc .price-table with navy header bar.

   Anatomy:
     .editorial-table-wrap         — overflow-x scroll wrapper for mobile
       .editorial-table            — table element
         thead th                  — taupe caps, hairline border-bottom
         tbody td                  — tabular figures, hairline row dividers
         tbody tr:hover            — warm-white tint

   Inline cell helpers:
     .editorial-table__location    — map-pin icon + link
     .editorial-table__num         — tabular-num value (right-aligned)
     .editorial-table__trend       — colored trend with arrow

   ----------------------------------------------------------------------
   Tier badge — small pill labels (Premium / Visoka / Srednja / Pristupačna).
   Used inline in tables OR anywhere status-style label is needed.
   ========================================================================== */

.editorial-table-wrap {
    overflow-x: auto;
    margin: 0;
    border: 1px solid var(--hairline);
    background: var(--warm-white);
}

.editorial-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
}

.editorial-table thead th {
    padding: 16px 20px;
    background: var(--cream);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--taupe);
    text-align: left;
    border-bottom: 1px solid var(--hairline-strong);
    white-space: nowrap;
}

.editorial-table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--hairline);
    vertical-align: middle;
}

.editorial-table tbody tr:last-child td {
    border-bottom: none;
}

.editorial-table tbody tr {
    transition: background-color 0.15s ease;
}

.editorial-table tbody tr:hover {
    background: var(--cream);
}

/* Cell helpers */
.editorial-table__location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
}

.editorial-table__location:hover {
    color: var(--terracotta);
}

.editorial-table__location i {
    color: var(--terracotta);
    font-size: 0.85em;
}

.editorial-table__num {
    font-feature-settings: "tnum" 1;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    color: var(--ink);
}

.editorial-table__trend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-feature-settings: "tnum" 1;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.editorial-table__trend--up    { color: #2e7d4e; }
.editorial-table__trend--down  { color: #b03a3a; }
.editorial-table__trend--flat  { color: var(--taupe); }

/* --- Tier badge (pastel pill) ------------------------------------------ */
.tier-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.2;
    white-space: nowrap;
}

.tier-badge--premium      { background: #efe7d4; color: #6b5a2d; }
.tier-badge--high         { background: #dde9d6; color: #3d5a31; }
.tier-badge--medium       { background: #d8e3ea; color: #2f4a59; }
.tier-badge--affordable   { background: #e0d9d3; color: #4a3f36; }

/* Caption / note row below table */
.editorial-table__note {
    margin: 16px 0 0;
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--taupe);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.editorial-table__note i {
    margin-top: 3px;
    color: var(--terracotta);
}

@media (max-width: 720px) {
    .editorial-table thead th,
    .editorial-table tbody td {
        padding: 12px 14px;
        font-size: 0.85rem;
    }
}
