/* -----------------------------------------------------------
   Remote Village – Events (Row layout)
   ----------------------------------------------------------- */

/* Base icon behaviour – used by rv-event-meta and feed */
.rv-ico {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.2em;
    flex-shrink: 0;
}

/* MAIN LIST WRAPPER */
.rv-events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent !important;
}

/* Remove last-card gap */
.rv-events-list .rv-event-row:last-child {
    margin-bottom: 0 !important;
}

/* HEADING */
.rv-events-heading {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

/* -----------------------------------------------------------
   EVENT ROW — image left, content right
   ----------------------------------------------------------- */
.rv-event-row {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    background: #fff;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    margin: 0;
}

/* IMAGE COLUMN */
.rv-event-img {
    flex: 0 0 260px;
    max-width: 260px;
    min-height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px 0 0 16px;
}

/* CONTENT */
.rv-event-body {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #000000;
}

.rv-event-body h4 {
    margin: 0 0 6px 0;
    font-size: 1.25rem;
    font-weight: 600;
    
}

.rv-event-date {
    opacity: 0.8;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* -----------------------------------------------------------
   MOBILE STACK
   ----------------------------------------------------------- */
@media (max-width: 680px) {

    .rv-event-row {
        flex-direction: column;
        align-items: flex-start;
        border-radius: 16px;
    }

    .rv-event-img {
        width: 100%;
        max-width: 100%;
        min-height: 180px;
        aspect-ratio: 16 / 9;
        border-radius: 16px 16px 0 0;
    }

    .rv-event-body {
        padding: 24px;
        justify-content: flex-start;
    }
}

/* -----------------------------------------------------------
   ARCHIVE PAGE FIXES
   ----------------------------------------------------------- */
.post-type-archive-event .wp-block-post,
.post-type-archive-event .wp-block-query,
.post-type-archive-event .wp-block-post-template {
    all: unset;
    display: block !important;
}

.post-type-archive-event .wp-block-post > * {
    display: block !important;
}

/* Flatten stray <p> wrappers */
.rv-events-list p {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
}
