@import url('theme_new.css');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Poppins:wght@400;500;600&display=swap');

.rh-nav, .rh-nav *, .rh-hero, .rh-hero *, .rh-search, .rh-search *,
.rh-featured-section, .rh-featured-section * { box-sizing: border-box; }

/* This stylesheet loads after main_styles.css/landing_page.css (both left
   untouched, still used by other pages). It overrides the shared body
   background/scroll-snap for this page only, and restyles the legacy
   About Us / Regions / Agents / Contact sections in place further down —
   their layout rules still come from landing_page.css, only look-and-feel
   is overridden here. */
html, body {
    color: var(--text);
    font-family: var(--font-body);
    scroll-snap-type: none !important;
    overflow-x: hidden;
}
body {
    background:
        radial-gradient(ellipse 900px 700px at 85% 0%, rgba(79, 124, 255, 0.16), transparent 60%),
        radial-gradient(ellipse 800px 600px at 5% 22%, rgba(139, 92, 246, 0.12), transparent 60%),
        radial-gradient(ellipse 700px 600px at 90% 48%, rgba(236, 72, 153, 0.09), transparent 60%),
        radial-gradient(ellipse 900px 700px at 0% 72%, rgba(79, 124, 255, 0.13), transparent 60%),
        radial-gradient(ellipse 800px 650px at 95% 100%, rgba(139, 92, 246, 0.14), transparent 60%),
        url('/images/backgrounds/deep_starfield.jpg') repeat,
        var(--bg) !important;
    background-attachment: fixed !important;
}

a { color: inherit; }

.background_image {
    position: fixed !important;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.6;
}

/* ---------- Nav ---------- */
.rh-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 48px;
    background: rgba(5, 6, 13, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.rh-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.rh-logo-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--accent-gradient-diagonal);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.rh-logo-icon img { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.rh-logo-text strong { display: block; font-family: var(--font-display); font-size: 17px; letter-spacing: 1px; color: var(--text); }
.rh-logo-text span { display: block; font-size: 10px; letter-spacing: 3px; color: var(--text-muted); margin-top: 1px; }

.rh-nav-links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.rh-nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding-bottom: 6px;
    position: relative;
    white-space: nowrap;
}
.rh-nav-links a:hover { color: var(--text); }
.rh-nav-links a.active { color: var(--text); }
.rh-nav-links a.active::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.rh-nav-right { display: flex; align-items: center; gap: 16px; }
.rh-signin {
    border: 1px solid var(--border-strong);
    color: var(--text);
    text-decoration: none;
    padding: 10px 26px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    transition: border-color .2s ease, background .2s ease;
}
.rh-signin:hover { border-color: var(--accent-purple); background: rgba(139, 92, 246, .12); }
.rh-user { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 13px; font-weight: 600; }
.rh-user img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--border-strong); object-fit: cover; }

/* ---------- Hero ---------- */
.rh-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 160px 48px 100px;
    overflow: hidden;
}
.rh-hero-earth {
    position: absolute;
    right: -6%;
    top: 50%;
    transform: translateY(-50%);
    width: 46vw;
    max-width: 640px;
    min-width: 320px;
    opacity: 0.9;
    filter: drop-shadow(0 0 90px rgba(79, 124, 255, 0.35));
    animation: rh-spin 140s linear infinite;
    pointer-events: none;
}
@keyframes rh-spin { from { transform: translateY(-50%) rotate(0deg); } to { transform: translateY(-50%) rotate(360deg); } }

.rh-hero-content { position: relative; z-index: 2; max-width: 620px; }
.rh-eyebrow {
    color: var(--accent-blue);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0 0 20px;
}
.rh-hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.02;
    margin: 0;
    letter-spacing: 1px;
}
.rh-hero h1 .accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.rh-hero .rh-subtitle {
    font-family: var(--font-display);
    font-size: clamp(18px, 2.4vw, 26px);
    letter-spacing: 7px;
    color: var(--text-muted);
    margin: 8px 0 26px;
    font-weight: 500;
}
.rh-hero p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    max-width: 420px;
    margin: 0 0 34px;
}
.rh-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-gradient);
    color: #fff;
    text-decoration: none;
    padding: 17px 34px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    box-shadow: 0 12px 30px rgba(79, 124, 255, 0.25);
    transition: transform .2s ease;
}
.rh-cta:hover { transform: translateY(-2px); }

/* ---------- Search card ---------- */
.rh-search {
    position: relative;
    z-index: 2;
    margin-top: 52px;
    max-width: 700px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.rh-search-tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.rh-search-tabs button {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}
.rh-search-tabs button.active { background: var(--surface-strong); color: var(--text); }
.rh-search-fields { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.rh-search-field {
    flex: 1;
    min-width: 140px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 9px 14px;
}
.rh-search-field label {
    display: block;
    font-size: 10px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 3px;
}
.rh-search-field input, .rh-search-field select {
    background: none;
    border: none;
    color: var(--text);
    font-size: 14px;
    width: 100%;
    outline: none;
    font-family: var(--font-body);
}
.rh-search-field select option { background: var(--bg-elevated); color: var(--text); }
.rh-search-submit {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.rh-search-submit img { width: 18px; height: 18px; filter: brightness(0) invert(1); }

/* ---------- Section header ---------- */
.rh-section-header { text-align: center; margin-bottom: 56px; }
.rh-eyebrow-line {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.rh-eyebrow-line::before, .rh-eyebrow-line::after { content: ''; width: 40px; height: 1px; background: var(--border-strong); }
.rh-section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.5vw, 36px);
    letter-spacing: 1px;
    margin: 0;
    color: var(--text);
}

/* ---------- Property cards ---------- */
.rh-property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}
.rh-property-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease;
    display: flex;
    flex-direction: column;
}
.rh-property-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.rh-property-photo { position: relative; height: 220px; }
.rh-property-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rh-badge {
    position: absolute; top: 14px; left: 14px;
    background: var(--badge-gradient);
    color: #fff;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
}
.rh-favorite {
    position: absolute; top: 14px; right: 14px;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(5, 6, 13, 0.55);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
    transition: background .2s ease;
}
.rh-favorite:hover { background: rgba(236, 72, 153, 0.4); }
.rh-property-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.rh-property-location {
    color: var(--text-faint);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-family: var(--font-display);
}
.rh-property-title { font-family: var(--font-display); font-size: 19px; margin: 0 0 14px; color: var(--text); font-weight: 600; }
.rh-property-stats { display: flex; gap: 16px; color: var(--text-muted); font-size: 13px; margin-bottom: 18px; }
.rh-property-stats span { display: flex; align-items: center; gap: 6px; }
.rh-property-stats img { width: 15px; height: 15px; opacity: 0.75; }
.rh-property-footer {
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: auto;
}
.rh-property-price { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text); }
.rh-property-view {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: background .2s ease, border-color .2s ease;
}
.rh-property-view:hover { background: var(--accent-gradient); border-color: transparent; }

.rh-view-all {
    display: block;
    width: fit-content;
    margin: 56px auto 0;
    border: 1px solid var(--border-strong);
    color: var(--text);
    text-decoration: none;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: border-color .2s ease, background .2s ease;
}
.rh-view-all:hover { border-color: var(--accent-purple); background: rgba(139, 92, 246, .1); }

/* =========================================================
   Everything below Featured Properties: rebuilt to match the
   full reference mockup (About Us / Our Regions, Why Choose Us,
   Featured Agents / Our Services, Footer). None of it uses
   <section> from the old scale-hacked layout — plain <div>s only.
   ========================================================= */
.rh-block { max-width: 1200px; margin: 0 auto; padding: 0 48px 90px; }

.filter-link, .rh-btn {
    display: inline-block;
    background: var(--accent-gradient);
    color: #fff;
    text-decoration: none;
    padding: 12px 26px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

/* Shared "info card" used by About Us / Our Regions / Featured Agents / Our Services */
.rh-info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
}
.rh-card-photo {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    margin-bottom: 22px;
    position: relative;
}
.rh-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rh-info-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 14px;
    padding-bottom: 14px;
    position: relative;
}
.rh-info-card h3::after {
    content: '';
    position: absolute; left: 0; bottom: 0;
    width: 30px; height: 2px;
    background: var(--accent-gradient);
}
.rh-info-card p { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin: 0 0 22px; flex: 1; }
.rh-card-link {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface-strong);
    border: 1px solid var(--border-strong);
    color: var(--text);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    width: fit-content;
}
.rh-card-link:hover { border-color: var(--accent-purple); }

.rh-cards-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

/* Regions pin map */
.rh-regions-map {
    position: relative;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, .3), transparent 70%), var(--bg-elevated);
}
.rh-region-pin {
    position: absolute;
    display: flex; align-items: center; gap: 6px;
    font-size: 10px; color: var(--text-muted);
    font-family: var(--font-display);
    letter-spacing: .5px;
    white-space: nowrap;
    text-transform: uppercase;
}
.rh-region-pin .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-blue); box-shadow: 0 0 8px var(--accent-blue); flex-shrink: 0; }

/* Why Choose Us */
.rh-features-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}
.rh-features-card > .rh-eyebrow-line { justify-content: flex-start; margin-bottom: 4px; }
.rh-features-card > .rh-eyebrow-line::after { display: none; }
.rh-features-card > h2 { font-family: var(--font-display); font-size: 22px; color: var(--text); margin: 0 0 28px; }
.rh-features-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; }
.rh-feature-item .icon {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--surface-strong);
    border: 1px solid var(--border-strong);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.rh-feature-item .icon img { width: 22px; height: 22px; opacity: .9; }
.rh-feature-item h4 { font-family: var(--font-display); font-size: 15px; color: var(--text); margin: 0 0 8px; }
.rh-feature-item p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* Featured Agents mini grid (inside .rh-info-card) */
.rh-info-card .rh-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.rh-info-card .rh-card-head h3 { margin: 0; padding: 0; }
.rh-info-card .rh-card-head h3::after { display: none; }
.rh-agents-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0 4px; }
.rh-agent-mini { text-align: center; }
.rh-agent-mini img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-strong); margin-bottom: 10px; }
.rh-agent-mini .name { font-family: var(--font-display); font-size: 11px; font-weight: 700; color: var(--text); letter-spacing: .5px; text-transform: uppercase; }
.rh-agent-mini .role { font-size: 11px; color: var(--text-muted); margin: 3px 0 8px; }
.rh-agent-mini .msg-btn {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--surface-strong); border: 1px solid var(--border);
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; color: var(--text); font-size: 12px;
}
.rh-agent-mini .msg-btn:hover { background: var(--accent-gradient); border-color: transparent; }

/* Our Services mini grid (inside .rh-info-card) */
.rh-services-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0 24px; }
.rh-service-mini { display: flex; gap: 12px; }
.rh-service-mini .icon {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--surface-strong); border: 1px solid var(--border-strong);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rh-service-mini .icon img { width: 17px; height: 17px; opacity: .9; }
.rh-service-mini h4 { font-family: var(--font-display); font-size: 13px; color: var(--text); margin: 0 0 4px; }
.rh-service-mini p { font-size: 12px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* Footer */
.rh-footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 64px 48px 28px;
}
.rh-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto 44px;
}
.rh-footer-brand p { color: var(--text-muted); font-size: 13px; line-height: 1.6; margin: 16px 0; max-width: 260px; }
.rh-footer-social-icons { display: flex; gap: 10px; }
.rh-footer-social-icons a {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); text-decoration: none; font-size: 13px;
}
.rh-footer-social-icons a:hover { color: var(--text); border-color: var(--accent-purple); }
.rh-footer-col h5 {
    font-family: var(--font-display);
    font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--text); margin: 0 0 20px;
}
.rh-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.rh-footer-col a { color: var(--text-muted); text-decoration: none; font-size: 13px; }
.rh-footer-col a:hover { color: var(--text); }
.rh-newsletter-form { display: flex; margin-top: 16px; border: 1px solid var(--border); border-radius: var(--radius-pill); overflow: hidden; }
.rh-newsletter-form input { flex: 1; background: none; border: none; padding: 11px 16px; color: var(--text); font-size: 13px; outline: none; min-width: 0; }
.rh-newsletter-form button {
    background: var(--accent-gradient); border: none; width: 42px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer;
}
.rh-footer-bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    max-width: 1200px; margin: 0 auto; padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 12px; color: var(--text-faint);
}

/* Responsive */
@media (max-width: 900px) {
    .rh-nav-links { display: none; }
    .rh-hero-earth { opacity: 0.35; }
    .rh-cards-row { grid-template-columns: 1fr; }
    .rh-footer-grid { grid-template-columns: 1fr 1fr; }
    .rh-section-header a.rh-card-link { display: none; }
}
@media (max-width: 560px) {
    .rh-block { padding-left: 24px; padding-right: 24px; }
    .rh-agents-mini-grid, .rh-services-mini-grid { grid-template-columns: 1fr; }
    .rh-footer-grid { grid-template-columns: 1fr; }
}
