/**
 * light.css — Lightweight styles for listing_location taxonomy pages
 * Mobile-first, CSS Grid, brand green #228B54
 */

/* ── Reset / base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --green:       #228B54;
    --green-dark:  #1a6e42;
    --green-light: #e8f5ee;
    --text:        #1a1a2e;
    --text-muted:  #6b7280;
    --border:      #e5e7eb;
    --white:       #ffffff;
    --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
    --shadow-md:   0 4px 12px rgba(0,0,0,.10);
    --radius:      10px;
    --font:        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    --max-w:       1200px;
}

/* ── Container ────────────────────────────────────────────────────────────── */
.eg-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 16px;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.eg-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 2px solid var(--green);
    box-shadow: var(--shadow-sm);
}

.eg-header__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 16px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.eg-header__logo img {
    height: 48px;
    width: auto;
    display: block;
}

/* ── Navigation ───────────────────────────────────────────────────────────── */
.eg-nav { margin-left: auto; }

.eg-nav .eg-nav__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.eg-nav .eg-nav__list a {
    display: block;
    padding: 8px 14px;
    font-family: var(--font);
    font-size: .9rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
    transition: background .15s, color .15s;
}

.eg-nav .eg-nav__list a:hover,
.eg-nav .eg-nav__list .current-menu-item > a {
    background: var(--green-light);
    color: var(--green-dark);
}

/* ── Hamburger (CSS-only) ─────────────────────────────────────────────────── */
.eg-nav-toggle__input { display: none; }

.eg-nav-toggle__label {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
    border-radius: 6px;
}

.eg-nav-toggle__label span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}

/* Animate hamburger to X */
.eg-nav-toggle__input:checked ~ .eg-nav-toggle__label span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.eg-nav-toggle__input:checked ~ .eg-nav-toggle__label span:nth-child(2) {
    opacity: 0;
}
.eg-nav-toggle__input:checked ~ .eg-nav-toggle__label span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 768px) {
    .eg-nav-toggle__label { display: flex; }

    .eg-nav {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 2px solid var(--green);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        margin-left: 0;
    }

    .eg-nav-toggle__input:checked ~ .eg-nav { max-height: 90vh; overflow-y: auto; }

    .eg-nav .eg-nav__list {
        flex-direction: column;
        padding: 12px 16px 16px;
        gap: 2px;
    }

    .eg-nav .eg-nav__list a { font-size: 1rem; padding: 10px 12px; }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.eg-hero {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.eg-hero--gradient {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, #3aad72 100%);
}

.eg-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.eg-hero--gradient .eg-hero__overlay {
    background: rgba(0, 0, 0, 0.25);
}

.eg-hero__content {
    position: relative;
    z-index: 1;
    padding-top: 40px;
    padding-bottom: 40px;
}

.eg-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    margin-bottom: 16px;
    color: rgba(255,255,255,.8);
}

.eg-breadcrumb a {
    color: rgba(255,255,255,.85);
    text-decoration: none;
}
.eg-breadcrumb a:hover { color: var(--white); text-decoration: underline; }

.eg-hero__title {
    font-family: var(--font);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
    color: var(--white);
    margin: 0 0 12px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.eg-hero__meta {
    font-size: 1rem;
    color: rgba(255,255,255,.9);
    margin: 0;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.eg-layout {
    padding-top: 32px;
    padding-bottom: 48px;
}

/* ── Description ──────────────────────────────────────────────────────────── */
.eg-description {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
    max-width: 820px;
    margin-bottom: 32px;
    border-left: 4px solid var(--green);
    padding-left: 20px;
}

.eg-description p { margin: 0 0 1em; }
.eg-description strong { color: var(--green-dark); }

/* ── Category tabs ────────────────────────────────────────────────────────── */
.eg-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-bottom: 28px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.eg-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 24px;
    font-family: var(--font);
    font-size: .875rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    color: var(--text-muted);
    background: var(--white);
    border: 2px solid var(--border);
    transition: border-color .15s, color .15s, background .15s;
}

.eg-tab:hover {
    border-color: var(--green);
    color: var(--green-dark);
    background: var(--green-light);
}

.eg-tab--active {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.eg-tab__count {
    font-size: .78rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 10px;
    background: rgba(0,0,0,.12);
}

.eg-tab--active .eg-tab__count { background: rgba(255,255,255,.25); }

/* ── Listings grid ────────────────────────────────────────────────────────── */
.eg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

/* ── Listing card ─────────────────────────────────────────────────────────── */
.eg-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
    border: 1px solid var(--border);
}

.eg-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.eg-card__img-wrap {
    display: block;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--green-light);
}

.eg-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.eg-card:hover .eg-card__img { transform: scale(1.04); }

.eg-card__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-light);
}

.eg-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.eg-card__badge {
    display: inline-block;
    font-size: .73rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--green-dark);
    background: var(--green-light);
    padding: 2px 8px;
    border-radius: 4px;
    align-self: flex-start;
}

.eg-card__title {
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.eg-card__title a {
    color: var(--text);
    text-decoration: none;
}
.eg-card__title a:hover { color: var(--green-dark); }

.eg-card__address,
.eg-card__phone {
    font-family: var(--font);
    font-size: .82rem;
    color: var(--text-muted);
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    line-height: 1.4;
}

.eg-card__address svg,
.eg-card__phone svg { flex-shrink: 0; margin-top: 1px; }

.eg-card__phone a { color: var(--text-muted); text-decoration: none; }
.eg-card__phone a:hover { color: var(--green-dark); text-decoration: underline; }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.eg-pagination { margin: 8px 0 40px; }

.eg-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 6px;
    padding: 0;
    margin: 0;
    align-items: center;
}

.eg-pagination .page-numbers li { display: block; }

.eg-pagination .page-numbers a,
.eg-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    font-family: var(--font);
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid var(--border);
    color: var(--text-muted);
    background: var(--white);
    transition: border-color .15s, color .15s, background .15s;
}

.eg-pagination .page-numbers a:hover {
    border-color: var(--green);
    color: var(--green-dark);
    background: var(--green-light);
}

.eg-pagination .page-numbers .current {
    border-color: var(--green);
    background: var(--green);
    color: var(--white);
}

/* ── Section ──────────────────────────────────────────────────────────────── */
.eg-section { margin-bottom: 48px; }

.eg-section__title {
    font-family: var(--font);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--green);
    display: inline-block;
}

/* ── Towns grid ───────────────────────────────────────────────────────────── */
.eg-towns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.eg-town-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 16px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color .15s, background .15s, transform .15s;
}

.eg-town-card:hover {
    border-color: var(--green);
    background: var(--green-light);
    transform: translateY(-1px);
}

.eg-town-card__name {
    font-family: var(--font);
    font-size: .95rem;
    font-weight: 600;
    color: var(--text);
}

.eg-town-card__count {
    font-family: var(--font);
    font-size: .78rem;
    color: var(--text-muted);
}

/* ── Empty state ──────────────────────────────────────────────────────────── */
.eg-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    font-family: var(--font);
}

.eg-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 24px;
    background: var(--green);
    color: var(--white);
    border-radius: 8px;
    font-family: var(--font);
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}

.eg-btn:hover { background: var(--green-dark); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.eg-footer {
    background: #1a1a2e;
    color: rgba(255,255,255,.7);
    padding: 32px 0 24px;
    margin-top: auto;
    font-family: var(--font);
}

.eg-footer__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eg-footer__stats { font-size: .95rem; margin: 0; }
.eg-footer__stats strong { color: var(--white); }

.eg-footer__links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.eg-footer__links a {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: .85rem;
}

.eg-footer__links a:hover { color: var(--white); text-decoration: underline; }

.eg-footer__copy {
    font-size: .78rem;
    margin: 0;
    color: rgba(255,255,255,.4);
}

/* ── Accessibility: skip link ─────────────────────────────────────────────── */
.eg-skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--green);
    color: var(--white);
    padding: 8px 16px;
    z-index: 9999;
    font-family: var(--font);
    text-decoration: none;
    border-radius: 0 0 4px 0;
    transition: top .2s;
}
.eg-skip-link:focus { top: 0; }

/* ── Responsive tweaks ────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .eg-grid { grid-template-columns: 1fr; }
    .eg-towns-grid { grid-template-columns: 1fr 1fr; }
    .eg-hero { min-height: 200px; }
    .eg-hero__title { font-size: 1.6rem; }
    .eg-tabs { gap: 6px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .eg-grid { grid-template-columns: repeat(2, 1fr); }
    .eg-towns-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SINGLE LISTING — .eg-single
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hero body: logo + text side by side */
.eg-single__hero-body {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.eg-single__logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.3);
}

.eg-single__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.eg-single__cat-badge {
    display: inline-block;
    font-family: var(--font);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--white);
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.4);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

/* ── Info bar ─────────────────────────────────────────────────────────────── */
.eg-info-bar {
    background: var(--white);
    border-bottom: 2px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 68px;
    z-index: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.eg-info-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 20px;
}

.eg-info-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font);
    font-size: .82rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.eg-info-bar__item a {
    color: var(--text-muted);
    text-decoration: none;
}
.eg-info-bar__item a:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

.eg-info-bar__item svg { flex-shrink: 0; }

.eg-info-bar__tag {
    background: var(--green-light);
    color: var(--green-dark);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 600;
}

.eg-info-bar__views { color: var(--text-muted); }

/* ── Single body: 2-column layout ────────────────────────────────────────── */
.eg-single__body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    padding-top: 36px;
    padding-bottom: 48px;
    align-items: start;
}

/* Content */
.eg-single__content { min-width: 0; }

.eg-prose {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
}

.eg-prose h2, .eg-prose h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.5em 0 .6em;
    color: var(--text);
}

.eg-prose p { margin: 0 0 1.1em; }

.eg-prose a { color: var(--green-dark); text-decoration: underline; }

.eg-prose img {
    max-width: 100%;
    border-radius: 8px;
    display: block;
    margin: 1.5em 0;
}

.eg-single__text { margin-bottom: 32px; }

/* Gallery */
.eg-single__gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.eg-single__gallery-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* ── Contact card (sidebar) ───────────────────────────────────────────────── */
.eg-contact-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.eg-contact-card__title {
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.eg-contact-card__subtitle {
    font-family: var(--font);
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.eg-contact-card__phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: var(--green);
    color: var(--white);
    border-radius: 8px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 16px;
    transition: background .15s;
}

.eg-contact-card__phone-btn:hover { background: var(--green-dark); color: var(--white); }

.eg-contact-card__row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: var(--font);
    font-size: .875rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.45;
}

.eg-contact-card__row:last-child { margin-bottom: 0; }

.eg-contact-card__row svg { flex-shrink: 0; margin-top: 1px; }

.eg-contact-card__row a {
    color: var(--text-muted);
    text-decoration: none;
}

.eg-contact-card__row a:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

.eg-contact-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.eg-contact-card--map { padding: 0; overflow: hidden; }

/* ── Related listings ─────────────────────────────────────────────────────── */
.eg-related {
    background: #f9fafb;
    border-top: 2px solid var(--border);
    padding: 40px 0 48px;
    margin-top: 16px;
}

.eg-related .eg-section__title { margin-bottom: 28px; }

.eg-related__grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* ── Mobile: stack sidebar below content ─────────────────────────────────── */
@media (max-width: 900px) {
    .eg-single__body {
        grid-template-columns: 1fr;
    }

    .eg-single__sidebar {
        order: -1; /* Show sidebar first on mobile (contact info) */
    }

    .eg-info-bar {
        top: 68px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .eg-info-bar__inner {
        flex-wrap: nowrap;
        min-width: max-content;
        padding: 0 4px;
    }

    .eg-single__gallery-grid {
        grid-template-columns: 1fr;
    }

    .eg-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .eg-single__hero-body { flex-direction: column; gap: 12px; }
    .eg-related__grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════
   ADDITIONS — front-page, single, archive templates (v1.3.0)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Homepage hero ────────────────────────────────────────────────────────── */
.eg-home-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-color: var(--green-dark);
}

.eg-home-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.52);
}

.eg-home-hero__content {
    position: relative;
    z-index: 1;
    padding-top: 64px;
    padding-bottom: 64px;
    text-align: center;
}

.eg-home-hero__title {
    font-family: var(--font);
    font-size: clamp(2rem, 6vw, 3.4rem);
    font-weight: 800;
    color: var(--white);
    margin: 0 0 12px;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.eg-home-hero__sub {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255,255,255,.88);
    margin: 0 0 28px;
    font-weight: 400;
}

.eg-home-hero__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.eg-home-hero__link {
    display: inline-block;
    padding: 9px 22px;
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.55);
    border-radius: 28px;
    color: var(--white);
    font-family: var(--font);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: background .15s, border-color .15s;
}

.eg-home-hero__link:hover {
    background: var(--green);
    border-color: var(--green);
}

/* ── Homepage sections ────────────────────────────────────────────────────── */
.eg-home-section {
    padding: 52px 0;
}

.eg-home-section--alt {
    background: var(--green-light);
}

/* ── Post grid (homepage blog + archive) ─────────────────────────────────── */
.eg-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 8px;
}

.eg-post-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ── Post card ────────────────────────────────────────────────────────────── */
.eg-post-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}

.eg-post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.eg-post-card__img-wrap {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--green-light);
}

.eg-post-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.eg-post-card:hover .eg-post-card__img { transform: scale(1.04); }

.eg-post-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.eg-post-card__title {
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.35;
}

.eg-post-card__title a { color: var(--text); text-decoration: none; }
.eg-post-card__title a:hover { color: var(--green-dark); }

.eg-post-card__excerpt {
    font-family: var(--font);
    font-size: .875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
    flex: 1;
}

.eg-post-card__date {
    font-family: var(--font);
    font-size: .78rem;
    color: var(--text-muted);
    display: block;
    margin-top: auto;
}

/* ── Archive grid (2-col desktop) ────────────────────────────────────────── */
.eg-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}

/* ── Event grid & card ────────────────────────────────────────────────────── */
.eg-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.eg-event-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}

.eg-event-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.eg-event-card__img-wrap {
    display: block;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--green-light);
}

.eg-event-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.eg-event-card:hover .eg-event-card__img { transform: scale(1.04); }

.eg-event-card__body {
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.eg-event-card__date-badge {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 52px;
    background: var(--green);
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font);
    line-height: 1;
}

.eg-event-card__month {
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .85;
}

.eg-event-card__day {
    font-size: 1.4rem;
    font-weight: 700;
}

.eg-event-card__info { flex: 1; min-width: 0; }

.eg-event-card__title {
    font-family: var(--font);
    font-size: .95rem;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.3;
}

.eg-event-card__title a { color: var(--text); text-decoration: none; }
.eg-event-card__title a:hover { color: var(--green-dark); }

.eg-event-card__location {
    font-family: var(--font);
    font-size: .8rem;
    color: var(--text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Stats bar ────────────────────────────────────────────────────────────── */
.eg-stats-bar {
    background: #1a1a2e;
    padding: 28px 0;
}

.eg-stats-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.eg-stats-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 40px;
    font-family: var(--font);
}

.eg-stats-bar__num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.eg-stats-bar__label {
    font-size: .8rem;
    color: rgba(255,255,255,.55);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.eg-stats-bar__sep {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,.15);
}

/* ── Province grid ────────────────────────────────────────────────────────── */
.eg-province-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.eg-province-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    display: block;
    aspect-ratio: 4/3;
}

.eg-province-card__img-wrap {
    position: absolute;
    inset: 0;
}

.eg-province-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}

.eg-province-card:hover .eg-province-card__img { transform: scale(1.06); }

.eg-province-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 60%);
    transition: background .2s;
}

.eg-province-card:hover .eg-province-card__overlay {
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(34,139,84,.25) 100%);
}

.eg-province-card__name {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
    z-index: 1;
}

/* ── Categories grid ──────────────────────────────────────────────────────── */
.eg-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.eg-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 12px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    text-align: center;
    transition: border-color .15s, background .15s, transform .15s;
}

.eg-cat-card:hover {
    border-color: var(--green);
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.eg-cat-card__icon {
    font-size: 1.8rem;
    line-height: 1;
}

.eg-cat-card__name {
    font-family: var(--font);
    font-size: .875rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.eg-cat-card__count {
    font-family: var(--font);
    font-size: .75rem;
    color: var(--text-muted);
}

/* ── Article reading layout ───────────────────────────────────────────────── */
.eg-blog-article {
    padding-top: 40px;
    padding-bottom: 64px;
}

.eg-article-header {
    max-width: 720px;
    margin: 0 auto 28px;
}

.eg-article-cat {
    display: inline-block;
    margin-bottom: 10px;
}

.eg-article-title {
    font-family: var(--font);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--text);
    margin: 0 0 14px;
    line-height: 1.2;
}

.eg-article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-size: .85rem;
    color: var(--text-muted);
}

.eg-article-meta__sep { opacity: .5; }

.eg-article-featured-img {
    max-width: 920px;
    margin: 0 auto 36px;
}

.eg-article-featured-img__img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius);
}

.eg-article-content {
    max-width: 720px;
    margin: 0 auto;
    font-family: var(--font);
    font-size: 1.05rem;
    line-height: 1.85;
    color: #2d3748;
}

.eg-article-content h2,
.eg-article-content h3,
.eg-article-content h4 {
    color: var(--text);
    font-weight: 700;
    margin-top: 1.8em;
    margin-bottom: .6em;
    line-height: 1.3;
}

.eg-article-content h2 { font-size: 1.4rem; }
.eg-article-content h3 { font-size: 1.2rem; }
.eg-article-content h4 { font-size: 1.05rem; }

.eg-article-content p { margin: 0 0 1.2em; }

.eg-article-content a {
    color: var(--green-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.eg-article-content a:hover { color: var(--green); }

.eg-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1em 0;
}

.eg-article-content ul,
.eg-article-content ol {
    padding-left: 1.5em;
    margin: 0 0 1.2em;
}

.eg-article-content li { margin-bottom: .4em; }

.eg-article-content blockquote {
    border-left: 4px solid var(--green);
    padding: 12px 20px;
    margin: 1.5em 0;
    background: var(--green-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: #374151;
}

/* ── Article tags ─────────────────────────────────────────────────────────── */
.eg-article-tags {
    max-width: 720px;
    margin: 32px auto 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-family: var(--font);
    font-size: .85rem;
}

.eg-article-tags__label { color: var(--text-muted); font-weight: 500; }

.eg-article-tag {
    padding: 4px 12px;
    background: var(--green-light);
    border-radius: 20px;
    color: var(--green-dark);
    text-decoration: none;
    font-size: .8rem;
    font-weight: 500;
    transition: background .15s;
}

.eg-article-tag:hover { background: var(--green); color: var(--white); }

/* ── Author bio ───────────────────────────────────────────────────────────── */
.eg-author-bio {
    max-width: 720px;
    margin: 32px auto 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--green-light);
    border-radius: var(--radius);
}

.eg-author-bio__avatar {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50%;
    flex-shrink: 0;
}

.eg-author-bio__name {
    font-family: var(--font);
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

.eg-author-bio__name:hover { color: var(--green-dark); }

.eg-author-bio__desc {
    font-family: var(--font);
    font-size: .875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ── Related posts section ────────────────────────────────────────────────── */
.eg-related {
    max-width: 960px;
    margin: 48px auto 0;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}

/* ── Comments section ─────────────────────────────────────────────────────── */
.eg-comments {
    max-width: 720px;
    margin: 48px auto 0;
    padding-top: 36px;
    border-top: 1px solid var(--border);
    font-family: var(--font);
}

/* ── Responsive overrides ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .eg-province-grid    { grid-template-columns: repeat(2, 1fr); }
    .eg-categories-grid  { grid-template-columns: repeat(2, 1fr); }
    .eg-post-grid--3     { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .eg-home-hero        { min-height: 300px; }
    .eg-province-grid    { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .eg-categories-grid  { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .eg-archive-grid     { grid-template-columns: 1fr; }
    .eg-post-grid        { grid-template-columns: 1fr; }
    .eg-post-grid--3     { grid-template-columns: 1fr; }
    .eg-stats-bar__item  { padding: 0 20px; }
    .eg-stats-bar__sep   { height: 30px; }
    .eg-article-content  { font-size: 1rem; }
}

/* ── Submenus — Desktop dropdown + Mobile accordion ──────────────────────── */

/* Desktop: dropdown on hover */
.eg-nav .menu-item-has-children {
    position: relative;
}

.eg-nav .menu-item-has-children > a::after {
    content: '▾';
    margin-left: 4px;
    font-size: .7em;
    opacity: .6;
}

.eg-nav .sub-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    min-width: 220px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    z-index: 100;
}

.eg-nav .sub-menu a {
    padding: 8px 16px;
    font-size: .85rem;
    white-space: nowrap;
}

.eg-nav .sub-menu a:hover {
    background: var(--green-light);
}

/* Desktop: show on hover */
@media (min-width: 769px) {
    .eg-nav .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
    }
    .eg-nav .menu-item-has-children:hover > .sub-menu {
        display: block;
    }
}

/* Mobile: accordion style */
@media (max-width: 768px) {
    .eg-nav .menu-item-has-children > a::after {
        content: '＋';
        float: right;
        font-size: .9em;
        transition: transform .2s;
    }
    
    .eg-nav .menu-item-has-children.eg-open > a::after {
        content: '－';
    }
    
    .eg-nav .sub-menu {
        position: static;
        box-shadow: none;
        background: rgba(0,0,0,.03);
        border-radius: 0;
        padding: 0;
        margin-left: 12px;
        border-left: 2px solid var(--green);
    }
    
    .eg-nav .menu-item-has-children.eg-open > .sub-menu {
        display: block;
    }
    
    .eg-nav .sub-menu a {
        padding: 8px 12px;
        font-size: .9rem;
    }
}

/* ── Override WilCity submenu styles ─────────────────────────────────────── */
.eg-nav .eg-nav__list .sub-menu {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    position: static !important;
    box-shadow: none !important;
    width: auto !important;
    display: none !important;
    background: transparent !important;
}

/* Desktop: show on hover */
@media (min-width: 769px) {
    .eg-nav .eg-nav__list .sub-menu {
        position: absolute !important;
        background: #fff !important;
        box-shadow: 0 4px 20px rgba(0,0,0,.12) !important;
        border-radius: 8px;
        min-width: 220px;
        padding: 8px 0;
        top: 100%;
        left: 0;
        z-index: 1000;
    }
    .eg-nav .eg-nav__list .menu-item-has-children:hover > .sub-menu {
        display: block !important;
    }
}

/* Mobile: accordion */
@media (max-width: 768px) {
    .eg-nav .eg-nav__list .sub-menu {
        margin-left: 12px !important;
        border-left: 2px solid var(--green) !important;
        padding: 4px 0 !important;
        background: rgba(34,139,84,.05) !important;
    }
    .eg-nav .eg-nav__list .menu-item-has-children.eg-open > .sub-menu {
        display: block !important;
    }
    .eg-nav .eg-nav__list .sub-menu li a {
        padding: 8px 12px !important;
        font-size: .9rem !important;
        border-bottom: none !important;
        color: var(--text) !important;
    }
}
