/* Schede hotel (lista) — secondo schermo del nuovo standard UX/UI.
 *
 * Usa i token di joorna-standard.css: moduli a icone, barra Lista/Card,
 * vista Card e percorso "Registra hotel".
 */

/* Token, descrizione di pagina e stile delle tabelle stanno in
 * joorna-standard.css (body.jo-std). Qui solo ciò che è delle Schede hotel. */

/* In tabella i moduli stanno su una riga sola. */
.fi-resource-hotels.fi-resource-list-records-page .fi-ta-cell .jo-mods {
    flex-wrap: nowrap;
}

/* Moduli: icone outline neutre (standard tabelle: poco colore), il nome
   del modulo nel tooltip; stesso disegno in chiaro e in dark. */
.jo-mod {
    background: var(--ds-surface-sunken);
    color: var(--ds-text-tertiary);
}

/* In prova: bordo tratteggiato, stesso colore. */
.jo-mod.is-trial {
    border: 1px dashed currentColor;
}

.jo-mod--more {
    width: auto;
    padding: 0 6px;
    background: var(--jo-ui-soft);
    color: var(--jo-ui-muted);
}


/* ── Vista Card ───────────────────────────────────────────── */

.jo-hl-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    gap: 12px;
    padding: 16px;
}

.jo-hl-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--jo-ui-line);
    border-radius: var(--jo-ui-radius);
    background: var(--jo-ui-surface);
    color: var(--jo-ui-ink);
    transition: border-color 0.15s;
}

.jo-hl-card:hover {
    border-color: var(--jo-ui-accent);
}

.jo-hl-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.jo-hl-card-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jo-hl-state svg {
    width: 20px;
    height: 20px;
}

.jo-hl-state.is-success { color: #15803d; }
.jo-hl-state.is-warning { color: #b45309; }
.jo-hl-state.is-danger { color: #c0271f; }

.jo-hl-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid var(--jo-ui-line-2);
}

.jo-hl-facts dt {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--jo-ui-muted);
}

.jo-hl-facts dd {
    display: flex;
    margin: 2px 0 0;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jo-hl-empty {
    grid-column: 1 / -1;
    padding: 24px 0;
    text-align: center;
    color: var(--jo-ui-muted);
}

