/* ==============================================
   REINZ Featured Properties — Frontend Styles
   ============================================== */

/* Wrapper */
.reinz-fp-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Titles */
.reinz-fp-section-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding: 0;
    color: #1d2327;
}

.reinz-fp-grid + .reinz-fp-section-title {
    margin-top: 48px;
}

/* Grid Layout */
.reinz-fp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Card Base — blue gradient as universal fallback (shows through if image 404s) */
.reinz-fp-card {
    position: relative;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 50%, #003d5c 100%);
}

a.reinz-fp-card,
a.reinz-fp-card:hover,
a.reinz-fp-card:focus,
a.reinz-fp-card:visited {
    text-decoration: none;
    color: #ffffff;
}

/* Background Image Layer (separate div for hover zoom without moving text) */
.reinz-fp-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s ease;
    z-index: 1;
}

.reinz-fp-card:hover .reinz-fp-bg {
    transform: scale(1.05);
}

/* Text Overlay — gradient scrim at bottom */
.reinz-fp-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px 20px 20px;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.55) 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.3s ease;
}

.reinz-fp-card:hover .reinz-fp-overlay {
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.65) 100%);
}

/* No-image cards: overlay takes more vertical space */
.reinz-fp-card--no-image .reinz-fp-overlay {
    top: 0;
    background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.25) 100%);
    justify-content: flex-end;
}

/* Address */
.reinz-fp-address {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Price */
.reinz-fp-price {
    font-size: 15px;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Sold Badge — red circle with white outline */
.reinz-fp-sold-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 64px;
    height: 64px;
    background: #d63638;
    border: 3px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    text-shadow: none;
}

/* Empty notice — Elementor editor only */
.reinz-fp-empty-notice {
    padding: 40px;
    text-align: center;
    background: #f0f0f1;
    border: 2px dashed #ccd0d4;
    border-radius: 8px;
    color: #646970;
    font-size: 14px;
}

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

/* Tablet */
@media (max-width: 1024px) {
    .reinz-fp-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reinz-fp-card {
        height: 280px;
    }

    .reinz-fp-section-title {
        font-size: 24px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .reinz-fp-grid {
        grid-template-columns: 1fr;
    }

    .reinz-fp-card {
        height: 260px;
    }

    .reinz-fp-section-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .reinz-fp-grid + .reinz-fp-section-title {
        margin-top: 36px;
    }

    .reinz-fp-address {
        font-size: 16px;
    }

    .reinz-fp-price {
        font-size: 14px;
    }

    .reinz-fp-sold-badge {
        width: 54px;
        height: 54px;
        font-size: 12px;
        bottom: 12px;
        right: 12px;
    }
}
