/* ═══════════════════════════════════════════════════════════════
   VFA Eletti Listing — MEP Directory
   ═══════════════════════════════════════════════════════════════ */

.vfa-eletti__title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--vfa-orange);
    margin-bottom: 16px;
}


/* ─── Results Counter ─── */

.vfa-eletti__counter {
    text-align: center;
    margin-bottom: 32px;
    font-size: .95rem;
    color: var(--vfa-text-secondary);
    font-weight: 500;
}

.vfa-eletti__counter strong {
    color: var(--vfa-dark);
    font-weight: 800;
    font-size: 1.1rem;
}


/* ─── Filters ─── */

.vfa-eletti__filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: var(--vfa-white);
    border-radius: var(--vfa-radius);
    padding: 28px 32px;
    margin-bottom: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .03);
    position: relative;
}

.vfa-eletti__filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--vfa-orange), var(--vfa-orange-deep));
    border-radius: var(--vfa-radius) var(--vfa-radius) 0 0;
}

@media (max-width: 768px) {
    .vfa-eletti__filters { grid-template-columns: repeat(2, 1fr); padding: 20px; }
}
@media (max-width: 480px) {
    .vfa-eletti__filters { grid-template-columns: 1fr; }
}

.vfa-eletti__filter label {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
    color: var(--vfa-text-secondary);
}

.vfa-eletti__filter select,
.vfa-eletti__filter input {
    width: 100%;
    padding: 10px 12px;
    font-family: var(--vfa-font-body);
    font-size: .9rem;
    border: 1.5px solid var(--vfa-gray-light);
    border-radius: var(--vfa-radius-sm);
    background: var(--vfa-cream-light);
    color: var(--vfa-text);
    appearance: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.vfa-eletti__filter select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23999' stroke-width='1.5'%3E%3Cpolyline points='1 1 6 6 11 1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.vfa-eletti__filter select:focus,
.vfa-eletti__filter input:focus {
    outline: none;
    border-color: var(--vfa-orange);
    background: var(--vfa-white);
    box-shadow: 0 0 0 3px rgba(241, 143, 89, .12);
}

.vfa-eletti__filter input::placeholder {
    color: var(--vfa-gray);
}

.vfa-eletti__search-wrap {
    position: relative;
}

.vfa-eletti__search-wrap input {
    padding-left: 36px;
}

.vfa-eletti__search-icon {
    position: absolute;
    bottom: 11px;
    left: 11px;
    width: 16px;
    height: 16px;
    color: var(--vfa-gray);
    pointer-events: none;
}


/* ─── MEP Grid ─── */

.vfa-eletti__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (min-width: 1280px) {
    .vfa-eletti__grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

@media (max-width: 1024px) {
    .vfa-eletti__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
    .vfa-eletti__grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
}


/* ─── MEP Card ─── */

.vfa-mep-list-card {
    display: flex;
    flex-direction: column;
    background: var(--vfa-white);
    border-radius: var(--vfa-radius);
    overflow: hidden;
    transition: transform .3s cubic-bezier(.22, 1, .36, 1),
                box-shadow .3s cubic-bezier(.22, 1, .36, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04), 0 4px 12px rgba(0, 0, 0, .03);
    position: relative;
}

.vfa-mep-list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .08), 0 2px 8px rgba(0, 0, 0, .04);
}

/* Photo */
.vfa-mep-list-card__photo-wrap {
    position: relative;
    overflow: hidden;
}

.vfa-mep-list-card__photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top center;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

.vfa-mep-list-card:hover .vfa-mep-list-card__photo {
    transform: scale(1.03);
}

.vfa-mep-list-card__photo-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(255, 255, 255, .6), transparent);
    pointer-events: none;
}

/* Card body */
.vfa-mep-list-card__body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vfa-mep-list-card__name {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--vfa-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

/* Meta items with icons */
.vfa-mep-list-card__meta {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .8rem;
    color: var(--vfa-text-secondary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.vfa-mep-list-card__meta:last-of-type {
    margin-bottom: 0;
}

.vfa-mep-list-card__meta-icon {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    margin-top: 1px;
    color: var(--vfa-orange);
    opacity: .7;
}

/* Card link overlay — entire card is clickable */
.vfa-mep-list-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.vfa-mep-list-card__link:focus-visible {
    outline: 3px solid var(--vfa-orange);
    outline-offset: 2px;
    border-radius: var(--vfa-radius);
}

/* Arrow indicator */
.vfa-mep-list-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--vfa-cream-light);
    color: var(--vfa-orange);
    margin-top: auto;
    align-self: flex-end;
    transition: background .25s, color .25s, transform .25s;
    flex-shrink: 0;
}

.vfa-mep-list-card__arrow svg {
    width: 14px;
    height: 14px;
}

.vfa-mep-list-card:hover .vfa-mep-list-card__arrow {
    background: var(--vfa-orange);
    color: var(--vfa-white);
    transform: translateX(2px);
}


/* ─── Card Entrance Animation ─── */

.vfa-mep-list-card {
    opacity: 0;
    transform: translateY(20px);
    animation: mep-card-in .5s cubic-bezier(.22, 1, .36, 1) forwards;
}

@keyframes mep-card-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger first visible batch */
.vfa-mep-list-card:nth-child(1)  { animation-delay: .05s; }
.vfa-mep-list-card:nth-child(2)  { animation-delay: .1s; }
.vfa-mep-list-card:nth-child(3)  { animation-delay: .15s; }
.vfa-mep-list-card:nth-child(4)  { animation-delay: .2s; }
.vfa-mep-list-card:nth-child(5)  { animation-delay: .25s; }
.vfa-mep-list-card:nth-child(6)  { animation-delay: .3s; }
.vfa-mep-list-card:nth-child(7)  { animation-delay: .35s; }
.vfa-mep-list-card:nth-child(8)  { animation-delay: .4s; }
.vfa-mep-list-card:nth-child(n+9) { animation-delay: .45s; }


/* ─── No results ─── */

.vfa-eletti__no-results {
    text-align: center;
    padding: 60px 24px;
    color: var(--vfa-text-secondary);
    font-size: 1rem;
}

.vfa-eletti__no-results svg {
    display: block;
    margin: 0 auto 16px;
    color: var(--vfa-gray-light);
}
