/* ================================================
   Real Estate Portal — Public Frontend Styles
================================================ */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f8f9fb;
    color: #1f2937;
}

a { color: var(--primary-color); }
a:hover { color: var(--secondary-color); }

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 5rem 0 6rem;
    position: relative;
}
.hero h1 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-search {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    margin-top: 2rem;
}

/* --- Property card --- */
.property-card {
    border: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    background: #fff;
    height: 100%;
}
.property-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.property-card .property-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #e5e7eb;
}
.property-card .property-img-wrap {
    position: relative;
}
.property-card .badge-featured {
    position: absolute; top: 10px; left: 10px;
    background: var(--secondary-color); color: #fff;
}
.property-card .badge-plan {
    position: absolute; top: 10px; right: 10px;
    background: rgba(0,0,0,0.6); color: #fff;
}
.property-card .price {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.15rem;
}

/* --- Agent card --- */
.agent-card {
    border: 0;
    border-radius: 0.75rem;
    background: #fff;
    height: 100%;
}
.agent-card .agent-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    background: #e5e7eb;
}

/* --- City tile --- */
.city-tile {
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
    height: 160px;
    color: #fff;
    display: flex;
    align-items: end;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-decoration: none;
}
.city-tile:hover { color: #fff; opacity: 0.9; }

/* --- Page title --- */
.page-title {
    color: var(--primary-color);
    font-weight: 700;
}

/* --- Property detail --- */
.property-gallery .main-img {
    width: 100%;
    border-radius: 0.75rem;
    height: 460px;
    object-fit: cover;
    background: #e5e7eb;
}
.property-gallery .thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 0.5rem;
    cursor: pointer;
    border: 2px solid transparent;
}
.property-gallery .thumb.active { border-color: var(--primary-color); }

.amenity-pill {
    display: inline-block;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 6px 14px;
    margin: 0 6px 6px 0;
    font-size: 0.875rem;
}

/* --- Verified badge --- */
.verified-icon {
    color: var(--primary-color);
}
