.spf-single-property {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
}

.spf-sp-header {
    margin-bottom: 20px;
}

.spf-sp-label-badge {
    display: inline-block;
    background: #98784d;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.spf-sp-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #2c3e50;
}

.spf-sp-location-line {
    color: #777;
    font-size: 14px;
    margin: 0;
}

/* Gallery / Carousel */
.spf-sp-gallery {
    margin-bottom: 20px;
}

.spf-sp-carousel {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
}

.spf-sp-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
}

.spf-sp-carousel-slide {
    flex: 0 0 100%;
    height: 100%;
}

.spf-sp-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spf-sp-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spf-sp-carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.65);
}

.spf-sp-carousel-prev {
    left: 14px;
}

.spf-sp-carousel-next {
    right: 14px;
}

.spf-sp-carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.spf-sp-carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.spf-sp-carousel-dot.active {
    background: #ffffff;
}

.spf-sp-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
}

.spf-sp-thumb-btn {
    flex-shrink: 0;
    width: 90px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    background: none;
}

.spf-sp-thumb-btn.active {
    border-color: #98784d;
}

.spf-sp-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Stats row */
.spf-sp-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    background: #f8f3ec;
    border: 1px solid #e8dcc9;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
}

.spf-sp-price {
    margin-left: auto;
    color: #98784d;
    font-size: 16px;
}

/* Body layout */
.spf-sp-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 782px) {
    .spf-sp-body {
        grid-template-columns: 1fr;
    }
}

.spf-sp-main {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 24px;
}

.spf-sp-main h3 {
    font-size: 16px;
    color: #2c3e50;
    margin: 24px 0 12px;
}

.spf-sp-main h3:first-child {
    margin-top: 0;
}

/* Tabs */
.spf-sp-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
}

.spf-sp-tab-btn {
    background: none;
    border: none;
    padding: 0 0 12px 0;
    font-size: 15px;
    color: #777;
    cursor: pointer;
    position: relative;
}

.spf-sp-tab-btn.active {
    color: #98784d;
    font-weight: 600;
}

.spf-sp-tab-btn.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #98784d;
}

.spf-sp-tab-panel {
    display: none;
}

.spf-sp-tab-panel.active {
    display: block;
}

/* Details grid */
.spf-sp-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.spf-sp-details-grid div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid #f4f4f4;
    padding-bottom: 10px;
}

.spf-sp-details-grid strong {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #999;
}

.spf-sp-details-grid span {
    font-size: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.spf-sp-description {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}

/* Amenities */
.spf-sp-amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.spf-sp-amenity {
    font-size: 14px;
    color: #2c3e50;
}

.spf-sp-video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .spf-sp-video-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.spf-sp-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.spf-sp-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Map */
.spf-sp-map {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    background: #eef0f1;
    margin-bottom: 14px;
}

/* Sidebar */
.spf-sp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 20px;
}

.spf-sp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
}

.spf-sp-btn svg {
    flex-shrink: 0;
}

.spf-sp-btn-whatsapp,
.spf-sp-btn-call,
.spf-sp-btn-sms {
    color: #ffffff;
}

.spf-sp-btn-whatsapp {
    background: #25d366;
}

.spf-sp-btn-call {
    background: #98784d;
}

.spf-sp-btn-sms {
    background: #2c3e50;
}

.spf-sp-btn-email {
    background: #ffffff;
    color: #2c3e50;
    border: 1px solid #dbdbdb;
}

/* The active theme applies a broad `color: #98784d` rule to `a:hover`/`:active`/`:focus`
   across many selectors (including plain links), which otherwise overrides these buttons'
   intended text color on hover, turning icon+label invisible on a same-colored background. */
.spf-sp-btn-whatsapp:hover,
.spf-sp-btn-whatsapp:focus,
.spf-sp-btn-whatsapp:active,
.spf-sp-btn-call:hover,
.spf-sp-btn-call:focus,
.spf-sp-btn-call:active,
.spf-sp-btn-sms:hover,
.spf-sp-btn-sms:focus,
.spf-sp-btn-sms:active {
    color: #ffffff !important;
}

.spf-sp-btn-email:hover,
.spf-sp-btn-email:focus,
.spf-sp-btn-email:active {
    color: #2c3e50 !important;
}

.spf-sp-inquiry-form-wrap {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.spf-sp-inquiry-form-wrap h3 {
    margin: 0 0 14px;
    font-size: 17px;
    color: #2c3e50;
}
