/* CDAI Listing Features — Frontend CSS */

/* ── Badges row ─────────────────────────────── */
.cdai-lf-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.cdai-lf-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

/* Verified */
.cdai-lf-verified {
    background: rgba(5, 150, 105, .12);
    border: 1px solid rgba(5, 150, 105, .25);
    color: #6ee7b7;
}

/* Price */
.cdai-lf-price {
    background: rgba(245, 166, 35, .1);
    border: 1px solid rgba(245, 166, 35, .25);
    color: #fbbf24;
}

/* Peak season - on */
.cdai-lf-peak-on {
    background: rgba(255, 107, 0, .1);
    border: 1px solid rgba(255, 107, 0, .25);
    color: #FF8C38;
}

/* Off season */
.cdai-lf-peak-off {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .5);
}

/* ── Languages ──────────────────────────────── */
.cdai-lf-languages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: .85rem;
}

.cdai-lf-lang-label {
    color: rgba(255, 255, 255, .45);
    font-weight: 600;
    font-size: .8rem;
    margin-right: 4px;
}

.cdai-lf-lang {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 100px;
    padding: 3px 10px;
    color: rgba(255, 255, 255, .75);
    font-size: .78rem;
    font-weight: 500;
}

/* ── Chain / Group ──────────────────────────── */
.cdai-lf-chain {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

.cdai-lf-chain-header {
    font-size: .88rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.cdai-lf-chain-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cdai-lf-chain-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 8px;
    text-decoration: none;
    transition: all .15s;
}

.cdai-lf-chain-item:hover {
    border-color: rgba(255, 107, 0, .3);
    background: rgba(255, 107, 0, .05);
}

.cdai-lf-chain-name {
    font-size: .85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .8);
}

.cdai-lf-chain-city {
    font-size: .78rem;
    color: rgba(255, 255, 255, .4);
}

/* ── QR Code ────────────────────────────────── */
.cdai-lf-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    text-align: center;
}

.cdai-lf-qr-title {
    font-size: .85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .55);
}

#cdai-lf-qr {
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    line-height: 0;
}

#cdai-lf-qr img,
#cdai-lf-qr canvas {
    display: block;
    border-radius: 4px;
}

.cdai-lf-qr-dl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255, 107, 0, .9);
    border: 1px solid rgba(255, 107, 0, .3);
    border-radius: 100px;
    padding: 5px 14px;
    text-decoration: none;
    transition: all .15s;
}

.cdai-lf-qr-dl:hover {
    background: rgba(255, 107, 0, .1);
    color: #FF8C38;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 600px) {
    .cdai-lf-languages { padding: 10px 12px; }
    .cdai-lf-chain-item { flex-direction: column; align-items: flex-start; gap: 2px; }
}
