/* RWP Listings Grid (AJAX) - scoped styles to avoid conflicts */
.rwp-lgrid {
    max-width: 1100px;
    margin: 0 auto;
    font-family: inherit
}

.rwp-lgrid__filters {
    margin-bottom: 18px
}

/* Type pills */
.rwp-lgrid__types {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px
}

.rwp-lgrid__pill {
    border: 1px solid #E6E6E6;
    background: #FFF;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 13px;
    line-height: 1;
    color: #111;
    cursor: pointer;
    transition: all .15s ease
}

.rwp-lgrid__pill.is-active {
    background: #0B0B0B;
    border-color: #0B0B0B;
    color: #FFF
}

.rwp-lgrid__pill:focus {
    outline: 2px solid rgba(0, 0, 0, .2);
    outline-offset: 2px
}

/* City tabs */
.rwp-lgrid__cities {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 22px;
    border-bottom: 1px solid #EEE;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.rwp-lgrid__cities::-webkit-scrollbar {
    display: none;
}

.rwp-lgrid__city {
    flex-shrink: 0;
    white-space: nowrap;
    border: 0;
    background: transparent;
    padding: 10px 0 10px;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    font-size: 11px;
    letter-spacing: 1.6px;
    color: #222;
    cursor: pointer;
    position: relative;
    text-transform: uppercase
}

.rwp-lgrid__city.is-active {
    font-weight: 600;
    border-bottom-color: #111
}

/* Grid */
.rwp-lgrid__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

@media (max-width:1100px) {
    .rwp-lgrid__grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media (max-width:860px) {
    .rwp-lgrid__grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:520px) {
    .rwp-lgrid__grid {
        grid-template-columns: 1fr
    }
}

.rwp-card {
    border: 1px solid #EEE;
    background: #FFF;
    overflow: hidden
}

.rwp-card__media {
    display: block;
    position: relative;
    aspect-ratio: 4/3;
    background: #F2F2F2
}

.rwp-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.rwp-card__badges {
    position: absolute;
    left: 12px;
    top: 12px;
    display: flex;
    gap: 8px
}

.rwp-badge {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 6px 10px;
    border-radius: 0;
    color: #FFF
}

.rwp-badge--featured {
    background: #0A8A66
}

.rwp-badge--new {
    background: #0B0B0B
}

.rwp-card__type {
    position: absolute;
    left: 12px;
    bottom: 12px;
    font-size: 10px;
    letter-spacing: 2px;
    color: #FFF;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .55)
}

.rwp-card__body {
    padding: 14px 14px 12px
}

.rwp-card__price {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin-bottom: 6px
}

.rwp-card__title a {
    font-size: 13px;
    font-weight: 500;
    color: #111;
    text-decoration: none
}

.rwp-card__title a:hover {
    text-decoration: underline
}

.rwp-card__loc {
    margin-top: 8px;
    font-size: 12px;
    color: #444;
    display: flex;
    gap: 8px;
    align-items: center
}

.rwp-card__loc i {
    font-size: 12px;
    opacity: .85
}

.rwp-card__meta {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #EEE;
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    font-size: 12px;
    color: #444
}

.rwp-card__meta span {
    display: flex;
    gap: 7px;
    align-items: center;
    white-space: nowrap
}

.rwp-card__meta i {
    opacity: .75;
    font-size: 13px
}

.rwp-card__actions {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px
}

.rwp-act {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E6E6E6;
    background: #FFF;
    color: #111;
    text-decoration: none
}

.rwp-act--wa {
    background: #0A8A66;
    border-color: #0A8A66;
    color: #FFF
}

.rwp-act[aria-disabled="true"] {
    opacity: .35;
    pointer-events: none
}

.rwp-lgrid__empty {
    padding: 26px 12px;
    border: 1px dashed #DDD;
    color: #444;
    text-align: center
}

/* Footer */
.rwp-lgrid__footer {
    margin-top: 18px;
    text-align: center
}

.rwp-lgrid__loadmore {
    border: 1px solid #E6E6E6;
    background: #FFF;
    padding: 10px 16px;
    font-size: 13px;
    cursor: pointer
}

.rwp-lgrid__spinner {
    font-size: 18px;
    color: #111
}