/* ==========================================================================
   Retreat Spotlight — [mr_retreat_spotlight] shortcode
   ========================================================================== */

/* Wrapper */
.mr-spotlight {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 40px 56px;
    font-family: var(--mr-body-font-family, 'Montserrat', sans-serif);
    box-sizing: border-box;
}

.mr-spotlight * {
    box-sizing: border-box;
}

/* Section title */
.mr-spotlight__title {
    font-family: var(--mr-title-font-family, 'Cantata One', serif);
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--mr-title-black, #1a202c);
    text-align: center;
    margin: 0 0 32px;
}

/* ── Filter tabs ── */
.mr-spotlight__filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}

.mr-spotlight__filter-btn {
    padding: 9px 22px;
    border-radius: 999px;
    border: 1.5px solid var(--mr-separator-color, #E6E8E8);
    background: transparent;
    font-family: var(--mr-body-font-family, 'Montserrat', sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: var(--mr-dark-gray, #1a202c);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

.mr-spotlight__filter-btn:hover {
    border-color: var(--mr-accent-green, #42AA8B);
    color: var(--mr-accent-green, #42AA8B);
}

.mr-spotlight__filter-btn--active {
    background: var(--mr-accent-green, #42AA8B);
    border-color: var(--mr-accent-green, #42AA8B);
    color: #fff;
}

.mr-spotlight__filter-btn--active:hover {
    color: #fff;
}

/* ── Card grid ── */
.mr-spotlight__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    min-height: 100px;
    transition: opacity 0.2s ease;
}

.mr-spotlight__grid--loading {
    opacity: 0.4;
    pointer-events: none;
}

/* ── Single card ── */
.mr-spotlight-card {
    border-radius: var(--mr-border-radius, 12px);
    background: #fff;
    box-shadow: var(--mr-box-shadow, rgba(0,0,0,0.1) 0px 2px 10px 0px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mr-spotlight-card:hover {
    transform: translateY(-3px);
    box-shadow: rgba(0,0,0,0.14) 0px 8px 24px 0px;
}

.mr-spotlight-card__link {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-decoration: none;
    color: inherit;
}

/* Image */
.mr-spotlight-card__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--mr-cream-white, #F9F8F6);
    flex-shrink: 0;
}

.mr-spotlight-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.mr-spotlight-card:hover .mr-spotlight-card__image img {
    transform: scale(1.04);
}

.mr-spotlight-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--mr-cream-white, #F9F8F6);
}

/* Body */
.mr-spotlight-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.mr-spotlight-card__top {
    margin-bottom: 16px;
}

.mr-spotlight-card__title {
    font-family: var(--mr-title-font-family, 'Cantata One', serif);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--mr-title-black, #1a202c);
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mr-spotlight-card__host {
    font-size: 13px;
    font-weight: 400;
    color: var(--mr-light-gray, #636D6D);
    margin: 0;
    line-height: 1.5;
}

/* Divider */
.mr-spotlight-card__divider {
    height: 1px;
    background: var(--mr-separator-color, #E6E8E8);
    margin-bottom: 16px;
}

/* Footer */
.mr-spotlight-card__footer {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.mr-spotlight-card__price-block {
    display: flex;
    flex-direction: column;
    min-width: 64px;
    flex-shrink: 0;
}

.mr-spotlight-card__from {
    font-size: 12px;
    color: var(--mr-mid-gray, #636D6D);
    font-weight: 400;
    line-height: 1.4;
}

.mr-spotlight-card__price {
    font-size: 15px;
    font-weight: 600;
    color: var(--mr-dark-gray, #1a202c);
    line-height: 1.4;
}

.mr-spotlight-card__footer-sep {
    width: 1px;
    background: var(--mr-separator-color, #E6E8E8);
    align-self: stretch;
    margin: 0 16px;
    flex-shrink: 0;
}

.mr-spotlight-card__meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.mr-spotlight-card__date,
.mr-spotlight-card__location {
    font-size: 13px;
    color: var(--mr-mid-gray, #636D6D);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Loading spinner ── */
.mr-spotlight__loader {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

.mr-spotlight__spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid var(--mr-separator-color, #E6E8E8);
    border-top-color: var(--mr-accent-green, #42AA8B);
    border-radius: 50%;
    animation: mr-spin 0.7s linear infinite;
}

@keyframes mr-spin {
    to { transform: rotate(360deg); }
}

/* ── Empty state ── */
.mr-spotlight__empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--mr-mid-gray, #636D6D);
    font-size: 15px;
    padding: 40px 0;
}

/* ── See More button ── */
.mr-spotlight__more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.mr-spotlight__more-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--mr-accent-green, #42AA8B);
    color: #fff;
    font-family: var(--mr-body-font-family, 'Montserrat', sans-serif);
    font-size: 15px;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    letter-spacing: 0.01em;
}

.mr-spotlight__more-btn:hover {
    background: #389e7a;
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 1023px) {
    .mr-spotlight__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 640px) {
    .mr-spotlight {
        padding: 32px 16px 40px;
    }

    .mr-spotlight__title {
        font-size: 28px;
    }

    .mr-spotlight__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mr-spotlight-card__title {
        font-size: 18px;
    }
}
