/* =============================================
   Valley City Chips
   ============================================= */

.vcc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.vcc-chip {
    display: block;
    background: #FFFFFF;
    color: #1B3A5C;
    border: 1px solid #D0D5DD;
    padding: 10px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.vcc-chip:hover {
    background: #1B3A5C;
    color: #FFFFFF;
    border-color: #1B3A5C;
}

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

/* ─── Expandable variant (source="primary-expand") ─────────── */
/* .vcc-grid-extra still has the .vcc-grid class so it picks up columns
   and gap from the Elementor control selectors automatically. We only
   override the visibility + height here for the collapse animation. */
.vcc-wrap.vcc-expandable .vcc-grid-extra {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease;
}

.vcc-wrap.vcc-expandable.is-expanded .vcc-grid-extra {
    max-height: 2000px;   /* generous — no single widget will exceed this */
    opacity: 1;
    margin-top: 10px;      /* matches .vcc-grid default gap */
}

/* Toggle button — standalone block below both grids. Subtle italic +
   arrow cue signals it's a secondary action. No border, no background —
   keeps the eye on the chips themselves. */
.vcc-wrap button.vcc-toggle {
    /* Reset inherited <button> styles from the theme / Elementor kit */
    -webkit-appearance: none;
    appearance: none;
    background: none;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    /* Standalone block, left-aligned with the grid */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: auto;
    margin: 12px 0 0;
    padding: 6px 0;
    /* Subtle differentiator — italic, no uppercase, no letterspacing */
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    text-align: center;
    line-height: 1.3;
    color: #1B3A5C;
    cursor: pointer;
    transition: color 0.2s ease, gap 0.2s ease;
}
.vcc-wrap button.vcc-toggle:hover,
.vcc-wrap button.vcc-toggle:focus {
    background: none;
    background-color: transparent;
    border: none;
    box-shadow: none;
    outline: none;
    color: #C49B2F;
    gap: 0.7rem;
}
.vcc-wrap button.vcc-toggle:focus-visible {
    outline: 2px solid #C49B2F;
    outline-offset: 3px;
}
.vcc-wrap button.vcc-toggle:hover .vcc-arrow {
    color: #C49B2F;
}
.vcc-toggle-label {
    display: inline-block;
}
/* Show "View More" text by default, "Show less" when expanded */
.vcc-toggle-less {
    display: none;
}
.vcc-wrap.is-expanded .vcc-toggle-less {
    display: inline-block;
}
.vcc-wrap.is-expanded .vcc-toggle-more {
    display: none;
}

.vcc-arrow {
    display: inline-block;
    color: #C49B2F;
    transition: transform 0.25s ease;
}
.vcc-wrap.is-expanded .vcc-arrow {
    transform: rotate(-90deg);
}
