/**
 * 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 */
.ptc-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 20px;
    font-family: var(--fpc-sans, Helvetica, Arial, sans-serif);
}

/* card container, stretched to match the tallest card in its row */
.ptc-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 300px;
    padding: 16px 8px;
    background: var(--fpc-white, #ffffff);
    border: 1px solid rgba(122, 122, 122, .2);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
}

/* icon + title row */
.ptc-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

/* icon box: holds the per-card <img>/svg passed via [ptc_card icon="..."] */
.ptc-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;
}

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

/* category name, always uppercase regardless of the title= casing */
.ptc-title {
    margin: 0;
    font-family: var(--fpc-sans, Helvetica, Arial, sans-serif);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--fpc-700, #54595F);
    line-height: 1.3;
}

/* bullet list of sub-types */
.ptc-list {
    list-style: disc;
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ptc-list li {
    font-family: var(--fpc-sans, Helvetica, Arial, sans-serif);
    font-size: 14px;
    color: var(--fpc-700, #54595F);
    line-height: 1.4;
}

/* only bullets written as "Label | URL" get a link, others stay plain text */
.ptc-list li a {
    display: inline-block;
    margin: -4px -6px;
    padding: 4px 6px;
    border-radius: 4px;
    color: inherit !important;
    text-decoration: none !important;
    transition: color .15s, background-color .15s;
}

.ptc-list li a:hover {
    background-color: var(--fpc-black, #000000);
    color: var(--fpc-hover, #5485D6) !important;
}
