/**
 * Same design tokens as the property listing card
 * (css/property-listing-card.css --fpc-* vars) so this shortcode's
 * colors/fonts match the rest of the site. Fallback values in each
 * var() keep this working even on a page where that file never loaded.
 */

/* row of cards; wraps 3-per-row, then remaining items stretch to fill */
.qlc-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-family: var(--fpc-sans, Helvetica, Arial, sans-serif);
}

/* card container, lifts on hover */
.qlc-card {
    display: flex;
    align-items: center;
    flex: 1 1 300px;
    gap: 16px;
    padding: 8px;
    background: var(--fpc-white, #ffffff);
    border: 1px solid rgba(122, 122, 122, .2);
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
    text-decoration: none !important;
    color: inherit;
    transition: box-shadow .2s ease, transform .2s ease;
}

.qlc-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}

/* icon box: holds the per-card <img>/svg passed via [qlc_item icon="..."] */
.qlc-icon {
    flex: 0 0 auto;
    padding: 8px;
    border-radius: 8px;
    background: rgba(122, 122, 122, .15);
    color: var(--fpc-700, #54595F);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.qlc-icon img,
.qlc-icon svg {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.qlc-text {
    flex: 1 1 auto;
    min-width: 0;
}

/* card title */
.qlc-title {
    display: block;
    font-family: var(--fpc-sans, Helvetica, Arial, sans-serif);
    font-size: 16px;
    font-weight: 700;
    text-transform: capitalize;
    color: var(--fpc-black, #000000);
    line-height: 1.4;
}

.qlc-card:hover .qlc-title {
    color: var(--fpc-hover, #5485D6);
}

/* card subtitle */
.qlc-desc {
    display: block;
    margin-top: 2px;
    font-family: var(--fpc-sans, Helvetica, Arial, sans-serif);
    font-size: 12px;
    font-weight: normal;
    color: #54595F;
    line-height: 1.5;
}

/* chevron is fixed markup in qlc_render_item() — not exposed as a shortcode attribute */
.qlc-chevron {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: var(--fpc-500, #7A7A7A);
    transition: color .15s;
}

.qlc-card:hover .qlc-chevron {
    color: var(--fpc-hover, #5485D6);
}

.qlc-chevron svg {
    width: 100%;
    height: 100%;
    display: block;
}
