/* =====================================================================
   "Serving Southern California" (inc/service-areas.php): the counties we
   serve (names only since "1.7"), at the bottom of every page. Self-contained
   (own colors, Cinzel headings, explicit spacing) so it looks the same in
   the new design and on the older pages, whose Bootstrap/theme styles
   headings and lists differently. Solid background on purpose: the older
   pages' footer is fixed underneath the content.
   ===================================================================== */

.mvareas {
    --mva-gold: #d6b26b;
    --mva-gold-hi: #f3dfa6;
    --mva-gold-text: linear-gradient(180deg, #f8e9bb 0%, #e3c27c 42%, #b98c45 78%, #e2c283 100%);
    --mva-line: rgba(214, 178, 107, 0.24);
    --mva-text: #ddd4e2;
    --mva-muted: #b9adbf;

    position: relative;
    z-index: 1;
    padding: 46px 0 52px;
    background:
        radial-gradient(55% 90% at 50% 0%, rgba(84, 26, 120, 0.3), transparent 70%), #0a070e;
    color: var(--mva-text);
    text-align: left;
}

.mvareas *,
.mvareas *::before,
.mvareas *::after {
    box-sizing: border-box;
}

.mvareas-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.mvareas .mvareas-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 10px;
    padding: 0;
    /* !important: the older pages' magic-theme.css forces its heading font on h1-h6 with !important. */
    font-family: "Cinzel", "Times New Roman", serif !important;
    font-size: clamp(1rem, 1.9vw, 1.32rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.28em;
    text-align: center;
    text-transform: uppercase;
}

.mvareas-title span {
    background: var(--mva-gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mvareas-pin {
    width: 26px;
    height: 26px;
    flex: none;
    color: var(--mva-gold);
}

.mvareas .mvareas-intro {
    max-width: 680px;
    margin: 0 auto 26px;
    padding: 0;
    color: var(--mva-muted);
    font-size: 0.98rem;
    line-height: 1.6;
    text-align: center;
}

/* County names only ("Magic and Villains - 1.7"): a tile per county. A
   county with its own page is a link (gold arrow); the page being shown is
   highlighted. */
.mvareas .mvareas-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mvareas .mvareas-county {
    display: flex;
    margin: 0;
    padding: 0;
    border: 1px solid var(--mva-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.mvareas .mvareas-name {
    color: var(--mva-gold-hi);
    font-family: "Cinzel", "Times New Roman", serif !important; /* see .mvareas-title */
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mvareas .mvareas-county > .mvareas-name {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 54px;
    padding: 12px 16px;
}

.mvareas .mvareas-link {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 54px;
    padding: 12px 16px;
    border-radius: 11px;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.mvareas .mvareas-county.has-page,
.mvareas .mvareas-county.is-current {
    border-color: rgba(214, 178, 107, 0.55);
}

.mvareas .mvareas-link:hover {
    background: rgba(214, 178, 107, 0.1);
    box-shadow: 0 0 22px rgba(214, 178, 107, 0.16);
}

.mvareas .mvareas-link:focus-visible {
    outline: 2px solid var(--mva-gold-hi);
    outline-offset: 2px;
}

.mvareas .is-current .mvareas-link {
    background: rgba(214, 178, 107, 0.14);
    cursor: default;
}

.mvareas-arrow {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--mva-gold);
    transition: transform 0.2s ease;
}

.mvareas .mvareas-link:hover .mvareas-arrow {
    transform: translateX(3px);
}

@media (max-width: 1023px) {
    .mvareas .mvareas-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .mvareas {
        padding: 38px 0 40px;
    }

    .mvareas-wrap {
        padding: 0 16px;
    }

    .mvareas .mvareas-title {
        flex-direction: column;
        gap: 8px;
        letter-spacing: 0.2em;
    }

    .mvareas .mvareas-intro {
        font-size: 0.93rem;
        margin-bottom: 20px;
    }

    .mvareas .mvareas-grid {
        gap: 10px;
    }

    .mvareas .mvareas-name {
        font-size: 0.82rem;
        letter-spacing: 0.06em;
    }

    .mvareas .mvareas-county > .mvareas-name,
    .mvareas .mvareas-link {
        min-height: 50px;
        padding: 10px 12px;
    }
}

@media (max-width: 359px) {
    .mvareas .mvareas-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mvareas .mvareas-link,
    .mvareas-arrow {
        transition: none;
    }
}
