/* =========================
   Figma Event Card System — CLEAN BUILD
   ========================= */

/* Archive Grid */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(540px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* =========================
   CARD WRAPPER
   ========================= */
.fgs-event-card {
    display: grid;
    grid-template-columns: 40% 1fr;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #ddd;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 3px 16px rgba(0,0,0,0.09);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
}

.fgs-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* =========================
   IMAGE AREA + PLACEHOLDER SAFE MODE
   ========================= */
.fgs-event-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f2f2;
    position: relative;
}

.fgs-event-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder specific */
.fgs-event-card__image img[alt="Placeholder"] {
    object-fit: contain !important;
    padding: 20px;
}

/* =========================
   CITY BADGE (PILL)
   ========================= */
.fgs-event-card__city-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    z-index: 10;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

/* CITY COLOURS — final, correct system */
.fgs-event-card__city-badge.city-auckland {
    background: rgba(221, 212, 207, 0.92);
    color: #6F4935;
}

.fgs-event-card__city-badge.city-christchurch {
    background: rgba(176, 191, 203, 0.92);
    color: #1D7895;
}

.fgs-event-card__city-badge.city-general {
    background: rgba(235,235,235,0.92);
    color: #555;
}

/* =========================
   RIGHT CONTENT
   ========================= */
.fgs-event-card__content {
    padding: 26px 30px;
    display: flex;
    flex-direction: column;
}

/* =========================
   TITLE + COLOURED ACCENT BAR
   ========================= */

.fgs-event-card__title {
    position: relative;
    padding-left: 16px;
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 4px 0 12px;
}

/* Neutral base */
.fgs-event-card__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 4px;
    height: 22px;
    border-radius: 2px;
    background: #A2764B; /* fallback */
}

/* Auckland override */
.city-auckland ~ .fgs-event-card__content .fgs-event-card__title::before {
    background: #975D3A;
}

/* Christchurch override */
.city-christchurch ~ .fgs-event-card__content .fgs-event-card__title::before {
    background: #1D7895;
}

/* =========================
   DATE
   ========================= */
.fgs-event-card__date {
    margin-bottom: 12px;
    color: #757575;
    font-size: 0.95rem;
}

/* =========================
   TAGS
   ========================= */
.fgs-event-card__tags {
    margin: 8px 0 16px;
}

.fgs-event-card__tags .tag {
    display: inline-block;
    padding: 4px 10px;
    background: #eee;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-right: 6px;
}

/* =========================
   FOOTER / LINK
   ========================= */
.fgs-event-card__footer {
    margin-top: auto;
    font-weight: 600;
    font-size: 0.95rem;
    color: #A2764B;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 768px) {
    .fgs-event-card {
        grid-template-columns: 1fr;
    }

    .fgs-event-card__image {
        height: 220px;
    }

    .fgs-event-card__title {
        margin-top: 12px;
    }
}
