/* Sponsored listing slider - horizontal cards + banner slides */
.sp-section { padding: 28px 0; background: #fff; }
.sp-container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.sp-title { margin: 0 0 20px; font-size: 26px; font-weight: 700; color: #14224f; }

.sp-slider { position: relative; }
.sp-swiper { overflow: hidden; padding: 2px; }       /* 2px so borders aren't clipped */
.sp-swiper .swiper-slide { height: auto; min-width: 0; }

/* Listing card */
.sp-card {
    display: flex;
    height: 128px;
    border: 1px solid #dfe2e8;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    text-decoration: none;
    color: #2b2b2b;
    transition: box-shadow .2s, border-color .2s;
}
.sp-card:hover { border-color: #c9ceda; box-shadow: 0 4px 14px rgba(20, 34, 79, .10); }

.sp-media { position: relative; flex: 0 0 176px; background: #e9edf5; }
.sp-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-badge {
    position: absolute; top: 8px; left: 8px;
    padding: 3px 7px;
    font-size: 10px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
    color: #fff; background: rgba(30, 30, 30, .78);
    border-radius: 4px;
}

.sp-body {
    flex: 1; min-width: 0;
    padding: 14px 16px;
    display: flex; flex-direction: column; justify-content: space-between;
}
.sp-top { display: flex; justify-content: space-between; gap: 12px; }
.sp-main { min-width: 0; }
.sp-name {
    margin: 0 0 3px; font-size: 18px; font-weight: 600; line-height: 1.25;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sp-loc {
    margin: 0; font-size: 14px; color: #6b7280;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sp-by { flex: 0 0 auto; max-width: 38%; text-align: right; font-size: 12px; line-height: 1.4; color: #6b7280; }
.sp-by span, .sp-by b {
    display: block; font-weight: 400;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.sp-bottom { min-width: 0; }
.sp-config { margin: 0 0 2px; font-size: 14px; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-price { margin: 0; font-size: 14px; color: #374151; }
.sp-price strong { font-weight: 700; color: #111; }
.sp-price span { font-size: 12px; color: #6b7280; }

/* Banner slide (same height as the cards) */
.sp-banner {
    display: block; height: 128px;
    border-radius: 12px; overflow: hidden;
    background: #f1f3f7;
}
.sp-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Arrows */
.sp-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 38px; height: 38px; border: 0; border-radius: 50%;
    background: #fff; color: #14224f;
    box-shadow: 0 2px 10px rgba(20, 34, 79, .25);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: opacity .2s;
}
.sp-prev { left: -12px; }
.sp-next { right: -12px; }
.sp-nav.swiper-button-disabled { opacity: 0; pointer-events: none; }

/* Tablet */
@media (max-width: 991px) {
    .sp-prev { left: 4px; }
    .sp-next { right: 4px; }
}

/* Mobile */
@media (max-width: 575px) {
    .sp-title { font-size: 21px; margin-bottom: 14px; }
    .sp-nav { display: none; }
    .sp-card, .sp-banner { height: 118px; }
    .sp-media { flex-basis: 118px; }
    .sp-body { padding: 10px 12px; }
    .sp-name { font-size: 16px; }
    .sp-loc, .sp-config, .sp-price { font-size: 13px; }
    .sp-top { flex-direction: column; gap: 2px; }
    .sp-by { display: none; }                         /* not enough room on small screens */
}
