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

/* Section titles */
.mcb-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #5a4a3a;
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e0db;
}

/* Template cards (glamping packages) */
.mcb-template-card {
    border-color: #b3874a;
    border-width: 2px;
}

.mcb-template-card .mcb-room-desc {
    white-space: pre-line;
}

/* ============ GLAMPING PACKAGE LIST ============ */
/* One package per row with the image beside the text. */
.mcb-results-grid.mcb-templates-list {
    grid-template-columns: 1fr;
}

.mcb-templates-list .mcb-template-card {
    display: flex;
    align-items: stretch;
}

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

.mcb-templates-list .mcb-template-card .mcb-room-info {
    flex: 1;
}

/* Sticky spy menu with the package names (sits below the theme menubar) */
.mcb-tmpl-nav {
    position: sticky;
    top: 81px;
    z-index: 40;
    background: rgba(255,255,255,0.97);
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
    grid-column: 1 / -1;
    scrollbar-width: none;
}

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

.mcb-tmpl-nav-item {
    flex-shrink: 0;
    padding: 10px 16px;
    background: #f5f0eb;
    border: 1px solid #d8d0c8;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    color: #5a4a3a;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.15s;
}

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

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

.mcb-template-card {
    scroll-margin-top: 150px;
}

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

    .mcb-templates-list .mcb-template-card .mcb-room-img {
        width: 100%;
        max-width: none;
        height: 220px;
        min-height: 0;
    }
}
