/* Restaurant/Event specific styles */
.mcb-restaurant .mcb-search-form {
    background: #f9f7f5;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e0db;
}

.mcb-event-card .mcb-time-slots {
    border-top: 1px solid #eee;
    padding-top: 12px;
}

/* Quick-nav menu above the event list */
.mcb-event-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px;
    grid-column: 1 / -1;
}

.mcb-event-nav-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 16px;
    background: #f5f0eb;
    border: 1px solid #d8d0c8;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    color: #5a4a3a;
    transition: background 0.15s;
}

.mcb-event-nav-item:hover {
    background: #e8e0d8;
}

.mcb-event-nav-item span {
    font-size: 12px;
    color: #888;
}

.mcb-event-card {
    scroll-margin-top: 90px;
}

/* Events in full width — one per row with image beside the text on desktop */
#mcb-events-container.mcb-results-grid {
    grid-template-columns: 1fr;
}

.mcb-event-card {
    display: flex;
    align-items: stretch;
}

.mcb-event-card .mcb-room-img {
    width: 38%;
    max-width: 460px;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.mcb-event-card .mcb-room-info {
    flex: 1;
}

@media (max-width: 768px) {
    .mcb-event-card {
        flex-direction: column;
    }

    .mcb-event-card .mcb-room-img {
        width: 100%;
        max-width: none;
        height: 200px;
        min-height: 0;
    }
}

/* Quick-nav sticks to the top while scrolling and marks the active event */
.mcb-event-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255,255,255,0.97);
    padding: 10px 0;
    margin-bottom: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mcb-event-nav::-webkit-scrollbar {
    display: none;
}

.mcb-event-nav-item {
    flex-shrink: 0;
    white-space: nowrap;
}

.mcb-event-nav-item.mcb-nav-active {
    background: #5a4a3a;
    border-color: #5a4a3a;
    color: #fff;
}

.mcb-event-nav-item.mcb-nav-active span {
    color: #e8e0d8;
}

/* Time dropdown on mobile */
.mcb-time-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
}

/* Mobile: two columns — image 30%, description + times in the remaining 70% */
@media (max-width: 768px) {
    .mcb-event-card {
        flex-direction: row;
        align-items: stretch;
    }

    .mcb-event-card .mcb-room-img {
        width: 30%;
        max-width: none;
        height: auto;
        min-height: 0;
        object-fit: cover;
    }

    .mcb-event-card .mcb-room-info {
        width: 70%;
        flex: 1;
        padding: 12px 14px;
    }

    .mcb-event-card .mcb-room-info h4 {
        font-size: 16px;
    }

    .mcb-event-card .mcb-room-desc {
        font-size: 13px;
        margin-bottom: 10px;
    }
}

/* The theme has its own sticky menubar (86px) — our quick-nav sits below it */
.mcb-event-nav {
    top: 86px;
}

.mcb-event-card {
    scroll-margin-top: 176px;
}
