﻿/* =========================
   RESET / BASE
========================= */
* {
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: #f7f7f7;
    color: #333;
    margin: 0;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    background: #fff !important;
}

    .navbar .nav-link {
        font-weight: 600;
        color: #333 !important;
    }

        .navbar .nav-link:hover {
            color: #e60023 !important;
        }

.btn-primary {
    background: #e60023;
    border: none;
}

    .btn-primary:hover {
        background: #cc001f;
    }

/* =========================
   HERO
========================= */
.rf-hero {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.rf-hero-bg {
    position: absolute;
    inset: 0;
}

    .rf-hero-bg img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        transition: opacity 1s ease-in-out;
    }

        .rf-hero-bg img.active {
            opacity: 1;
            z-index: 1;
        }

.rf-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rf-hero-content {
    color: #fff;
    text-align: center;
    max-width: 700px;
}

    .rf-hero-content h1 {
        font-size: 40px;
        font-weight: 700;
    }

/* arrows */
.rf-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.4);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

    .rf-arrow.left {
        left: 15px;
    }

    .rf-arrow.right {
        right: 15px;
    }

/* dots */
.rf-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

    .rf-dots span {
        width: 10px;
        height: 10px;
        background: #ccc;
        display: inline-block;
        margin: 0 4px;
        border-radius: 50%;
    }

        .rf-dots span.active {
            background: #fff;
        }

/* =========================
   STATUS
========================= */
.rf-status {
    padding: 40px 0;
    background: #fff;
}

.rf-status-box {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 10px;
}

/* =========================
   FEATURED SECTION
========================= */
.rf-featured {
    padding: 50px 0;
    background: #fafafa;
}

.rf-section-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

/* =========================
   SCROLL LIST
========================= */
.rf-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

    .rf-scroll::-webkit-scrollbar {
        display: none;
    }

.rf-item {
    flex: 0 0 32%;
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .rf-item {
        flex: 0 0 85%;
    }
}

/* =========================
   CARD
========================= */
.rf-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: 0.2s;
}

    .rf-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

/* IMAGE */
.rf-img {
    position: relative;
    height: 200px;
}

    .rf-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* overlays */
.rf-price {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
}

.rf-heart {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    border: none;
}

    .rf-heart.active {
        color: #e60023;
    }

.rf-open {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #2ecc71;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
}

/* BODY */
.rf-body {
    padding: 12px;
}

.rf-address {
    font-weight: 600;
    color: #222;
    text-decoration: none;
}

.rf-city {
    font-size: 13px;
    color: #777;
}

.rf-meta {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #444;
}

/* =========================
   CONTACT CARD
========================= */
.rf-contact-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid #eee;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.rf-agent {
    display: flex;
    gap: 14px;
    margin-bottom: 15px;
    align-items: center;
}

    .rf-agent img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
    }

.rf-form-group input,
.rf-form-group textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
}

.rf-submit {
    width: 100%;
    background: #e60023;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 10px;
}

/* CAPTCHA */
.rf-captcha {
    display: flex;
    justify-content: center;
}

.rf-captcha-inner {
    width: 100%;
    padding: 8px;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 576px) {
    .rf-hero {
        height: 50vh;
    }

    .rf-hero-content h1 {
        font-size: 26px;
    }

    .rf-captcha-inner altcha-widget {
        transform: scale(0.9);
    }
}

/* ensure hero layers correctly */
.rf-hero {
    position: relative;
}

/* background stays behind */
.rf-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* overlay sits above images */
.rf-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* content always on top */
.rf-search-box {
    position: relative;
    max-width: 600px;
    margin: auto;
}

.rf-search-input-group {
    display: flex;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.rf-input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 16px;
}

    .rf-input:focus {
        outline: none;
    }

.rf-search-btn {
    background: #e60023;
    color: #fff;
    border: none;
    padding: 0 20px;
    cursor: pointer;
}

/* suggestions */
.rf-suggestions {
    position: absolute;
    top: 100%;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    margin-top: 6px;
    border: 1px solid #eee;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    z-index: 999;
}

.rf-suggestion {
    padding: 12px;
    cursor: pointer;
    font-size: 14px;
}

    .rf-suggestion:hover,
    .rf-suggestion.active {
        background: #f5f5f5;
    }


.favorite-btn {
    border: none;
    font-size: 18px;
    transition: 0.2s;
}

    .favorite-btn:hover {
        transform: scale(1.2);
        color: red;
    }

.card:hover {
    transform: scale(1.01);
    transition: 0.2s ease;
}

.favorite-btn {
    border: none;
    font-size: 18px;
    transition: 0.2s;
}

    .favorite-btn:hover {
        transform: scale(1.2);
        color: red;
    }

.card:hover {
    transform: scale(1.01);
    transition: 0.2s ease;
}

.rf-suggestions:empty {
    display: none !important;
}

.rf-search-box {
    position: relative;
}

.rf-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 999;
    max-height: 300px;
    overflow-y: auto;
}



.rf-photo {
    width: 100%;
    height: 280px; /* consistent card height */
    overflow: hidden;
    border-radius: 10px;
    background: #f5f5f5;
}

.agent-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 KEY */
    object-position: top; /* keeps face visible */
}


.status-card {
    transition: all 0.2s ease;
    border: none;
}

    .status-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .icon-box i {
        font-size: 28px;
    }