/* =====================================================================
   REALISTA THEME — GreekHouseGreek / housegreekhouse.com
   Loaded AFTER grecimmo.css — retokens the legacy design system to the
   Realista look (white / blue #003CFF / Inter) and adds all new
   rl-* components: header, hero, trending cards, locations, loan
   calculator, auth modal, dashboard, admin.
   ===================================================================== */

/* ── 1. Token overrides — retheme every legacy gc-/hp-/prop- component ── */
:root {
    --navy:      #101828;   /* dark text takes over old navy slots   */
    --navy-mid:  #1d2939;
    --navy-lt:   #344054;
    --gold:      #003CFF;   /* Realista primary blue everywhere gold was */
    --gold-dk:   #0030cc;
    --gold-lt:   #8fa8ff;
    --gold-faint:#eef2ff;

    --cream:     #F5F6F8;
    --cream-dk:  #eceef1;
    --stone:     #e5e7eb;
    --stone-dk:  #d0d5dd;
    --border:    #E5E7EB;

    --text:      #101828;
    --text-md:   #344054;
    --text-lt:   #667085;
    --text-xs:   #98a2b3;

    --rl-blue:       #003CFF;
    --rl-blue-dk:    #002ecc;
    --rl-blue-soft:  #eef2ff;
    --rl-dark:       #101828;
    --rl-grey:       #667085;
    --rl-bg:         #F5F6F8;
    --rl-border:     #E5E7EB;
    --rl-radius:     16px;
    --rl-radius-sm:  10px;
    --rl-shadow:     0 2px 8px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.08);
    --rl-shadow-lg:  0 12px 40px rgba(16,24,40,.14);

    --card-radius: 16px;
    --btn-radius:  10px;
    --section-py:  84px;
}

/* Kill the serif — Realista is a clean grotesque everywhere */
h1,h2,h3,h4,h5,h6,.serif,
.section-title,.hp-title,.gc-hero-title,.page-hero-title {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-weight: 700;
    letter-spacing: -.02em;
}
body { font-family: 'Inter', system-ui, sans-serif; color: var(--rl-dark); }
a:hover { color: var(--rl-blue); }

/* Legacy buttons re-skinned */
.btn-gc--gold  { background: var(--rl-blue) !important; color:#fff !important; border-color: var(--rl-blue) !important; }
.btn-gc--gold:hover { background: var(--rl-blue-dk) !important; }
.btn-gc--navy  { background: var(--rl-blue) !important; border-color: var(--rl-blue) !important; color:#fff !important; }
.btn-gc--navy:hover { background: var(--rl-blue-dk) !important; }
.hp-rule, .gold-rule { background: var(--rl-blue) !important; }
.hp-eyebrow, .section-eyebrow { color: var(--rl-blue) !important; }

/* Generic helpers */
.rl-container { max-width: 1380px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* =====================================================================
   2. HEADER — white, 88px, centered menu, actions right
   ===================================================================== */
.rl-header {
    position: sticky; top: 0; z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--rl-border);
    height: 88px;
    display: flex; align-items: center;
}
.rl-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; width: 100%;
}
.rl-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.72rem; font-weight: 800; letter-spacing: -.03em;
    color: var(--rl-dark) !important; text-decoration: none; white-space: nowrap;
}
.rl-logo:hover { color: var(--rl-dark); }
.rl-logo-mark { width: 38px; height: 38px; flex: 0 0 38px; }
.rl-logo em { font-style: normal; color: var(--rl-blue); }

.rl-nav { display: flex; align-items: center; gap: 44px; margin: 0 auto; }
.rl-nav a {
    font-size: 1rem; font-weight: 500; color: var(--rl-dark);
    text-decoration: none; padding: 8px 0; position: relative; white-space: nowrap;
}
.rl-nav a:hover, .rl-nav a.rl-active { color: var(--rl-blue); }

.rl-actions { display: flex; align-items: center; gap: 12px; }

.rl-btn-add {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1.5px solid var(--rl-blue); color: var(--rl-blue);
    background: #fff; font-weight: 600; font-size: .95rem;
    padding: 11px 20px; border-radius: var(--rl-radius-sm);
    text-decoration: none; white-space: nowrap; transition: all .18s;
}
.rl-btn-add:hover { background: var(--rl-blue); color: #fff; }
.rl-btn-add svg { transition: transform .18s; }
.rl-btn-add:hover svg { transform: translate(2px,-2px); }

.rl-lang {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--rl-bg); border: none; cursor: pointer;
    padding: 11px 14px; border-radius: var(--rl-radius-sm);
    font-weight: 600; font-size: .9rem; color: var(--rl-dark);
    text-decoration: none;
}
.rl-lang:hover { background: var(--cream-dk); }
.rl-lang .rl-flag { font-size: 1rem; line-height: 1; }

.rl-dots-btn {
    width: 44px; height: 44px; border-radius: var(--rl-radius-sm);
    background: var(--rl-bg); border: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--rl-dark); position: relative;
}
.rl-dots-btn:hover { background: var(--cream-dk); }

.rl-btn-login {
    background: var(--rl-bg); color: var(--rl-dark);
    font-weight: 600; font-size: .95rem; border: none; cursor: pointer;
    padding: 12px 20px; border-radius: var(--rl-radius-sm);
    text-decoration: none; white-space: nowrap;
}
.rl-btn-login:hover { background: var(--cream-dk); color: var(--rl-dark); }

/* 3×3 dots dropdown */
.rl-dots-wrap { position: relative; }
.rl-dots-menu {
    position: absolute; top: calc(100% + 14px); right: 0;
    width: 280px; background: #fff; border-radius: 14px;
    box-shadow: var(--rl-shadow-lg); border: 1px solid var(--rl-border);
    padding: 6px 0; display: none; z-index: 1200;
}
.rl-dots-menu.rl-open { display: block; animation: rlFade .16s ease; }
.rl-dots-menu a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 22px; font-size: .98rem; font-weight: 500;
    color: var(--rl-dark); text-decoration: none;
    border-bottom: 1px solid #f2f4f7;
}
.rl-dots-menu a:last-child { border-bottom: none; }
.rl-dots-menu a:hover { background: var(--rl-bg); color: var(--rl-blue); }
@keyframes rlFade { from { opacity:0; transform: translateY(-6px);} to { opacity:1; transform:none; } }

/* user chip when logged in */
.rl-user-chip {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--rl-bg); border-radius: var(--rl-radius-sm);
    padding: 8px 14px 8px 8px; text-decoration: none; color: var(--rl-dark);
    font-weight: 600; font-size: .92rem;
}
.rl-user-chip:hover { background: var(--cream-dk); color: var(--rl-dark); }
.rl-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--rl-blue); color: #fff; font-size: .85rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}

/* Mobile header */
.rl-burger {
    display: none; width: 44px; height: 44px; border: none; cursor: pointer;
    background: var(--rl-bg); border-radius: var(--rl-radius-sm);
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.rl-burger span { width: 20px; height: 2px; background: var(--rl-dark); border-radius: 2px; display: block; }

.rl-mobile-menu {
    display: none; position: fixed; inset: 88px 0 0 0; background: #fff;
    z-index: 999; padding: 18px 24px; overflow-y: auto;
}
.rl-mobile-menu.rl-open { display: block; }
.rl-mobile-menu a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 4px; font-size: 1.05rem; font-weight: 600;
    color: var(--rl-dark); text-decoration: none; border-bottom: 1px solid #f2f4f7;
}
.rl-mobile-menu a:hover { color: var(--rl-blue); }
.rl-mobile-menu .rl-mm-cta { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 1180px) { .rl-nav { gap: 26px; } }
@media (max-width: 1080px) {
    .rl-nav, .rl-btn-add, .rl-lang, .rl-btn-login { display: none; }
    .rl-burger { display: flex; }
    .rl-header { height: 72px; }
    .rl-mobile-menu { inset: 72px 0 0 0; }
}

/* =====================================================================
   3. HERO — 610px, image, light overlay, left text + search box
   ===================================================================== */
.rl-hero {
    position: relative; min-height: 610px;
    display: flex; flex-direction: column; justify-content: center;
    overflow: hidden; background: var(--rl-dark);
}
.rl-hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
}
.rl-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(9,20,48,.42) 0%, rgba(9,20,48,.18) 55%, rgba(9,20,48,.05) 100%);
}
.rl-hero-content { position: relative; z-index: 2; width: 100%; padding: 70px 0 56px; }
.rl-hero-title {
    color: #fff; font-size: clamp(2.1rem, 4.6vw, 4.15rem);
    font-weight: 700; line-height: 1.14; letter-spacing: -.025em;
    margin: 0 0 34px; max-width: 820px;
    text-shadow: 0 2px 24px rgba(9,20,48,.25);
}
.rl-hero-title em { font-style: normal; color: var(--rl-blue); }
.rl-hero-note {
    color: rgba(255,255,255,.94); font-size: 1.08rem; line-height: 1.65;
    max-width: 560px; margin-top: 40px; font-weight: 400;
    text-shadow: 0 1px 12px rgba(9,20,48,.35);
}

/* Sale / Rent tabs */
.rl-hero-tabs { display: flex; gap: 28px; margin-bottom: 14px; }
.rl-hero-tab {
    background: none; border: none; cursor: pointer; padding: 4px 2px 9px;
    color: #fff; font-weight: 600; font-size: 1.05rem; position: relative;
    text-shadow: 0 1px 8px rgba(9,20,48,.4);
}
.rl-hero-tab.rl-active { color: #fff; }
.rl-hero-tab.rl-active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 3px; border-radius: 2px; background: var(--rl-blue);
}

/* Search pill */
.rl-search-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rl-search-box {
    display: flex; align-items: center; gap: 6px;
    background: #fff; border-radius: 999px; padding: 8px;
    box-shadow: 0 10px 34px rgba(9,20,48,.22);
    max-width: 830px; flex: 1 1 620px;
}
.rl-search-type {
    position: relative; flex: 0 0 200px; border-right: 1px solid var(--rl-border);
}
.rl-search-type select {
    appearance: none; -webkit-appearance: none; width: 100%;
    border: none; background: transparent; font-size: 1rem; font-weight: 500;
    color: var(--rl-dark); padding: 12px 34px 12px 22px; cursor: pointer; outline: none;
}
.rl-search-type::after {
    content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px;
    border-right: 2px solid var(--rl-grey); border-bottom: 2px solid var(--rl-grey);
    transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.rl-search-input { flex: 1 1 auto; min-width: 120px; }
.rl-search-input input {
    width: 100%; border: none; outline: none; background: transparent;
    font-size: 1rem; color: var(--rl-dark); padding: 12px 18px;
}
.rl-search-input input::placeholder { color: var(--text-xs); }
.rl-search-submit {
    background: var(--rl-blue); color: #fff; border: none; cursor: pointer;
    font-weight: 600; font-size: 1rem; padding: 13px 34px; border-radius: 999px;
    transition: background .18s; white-space: nowrap;
}
.rl-search-submit:hover { background: var(--rl-blue-dk); }
.rl-filter-btn {
    display: inline-flex; align-items: center; gap: 9px;
    background: #fff; color: var(--rl-dark); border: none; cursor: pointer;
    font-weight: 600; font-size: 1rem; padding: 17px 30px; border-radius: 999px;
    box-shadow: 0 10px 34px rgba(9,20,48,.22); text-decoration: none;
}
.rl-filter-btn:hover { background: var(--rl-bg); color: var(--rl-dark); }

@media (max-width: 760px) {
    .rl-hero { min-height: 560px; }
    .rl-hero-title { margin-bottom: 24px; }
    .rl-search-box { flex-direction: column; border-radius: 22px; padding: 12px; align-items: stretch; }
    .rl-search-type { flex: 1 1 auto; border-right: none; border-bottom: 1px solid var(--rl-border); }
    .rl-search-input input { padding: 12px 10px; }
    .rl-search-submit { width: 100%; padding: 14px; }
    .rl-filter-btn { padding: 14px 26px; }
    .rl-hero-note { font-size: .98rem; margin-top: 26px; }
}

/* =====================================================================
   4. SECTIONS — Trending / Top Locations
   ===================================================================== */
.rl-section { padding: 76px 0; }
.rl-section--grey { background: var(--rl-bg); }
.rl-sec-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 20px; margin-bottom: 40px; flex-wrap: wrap;
}
.rl-sec-title { font-size: clamp(1.7rem, 2.8vw, 2.35rem); font-weight: 700; margin: 0 0 6px; color: var(--rl-dark); }
.rl-sec-sub { color: var(--rl-grey); font-size: 1.02rem; margin: 0; }
.rl-btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--rl-border); background: #fff; color: var(--rl-dark);
    font-weight: 600; font-size: .95rem; padding: 12px 24px; border-radius: 999px;
    text-decoration: none; white-space: nowrap; transition: all .18s;
}
.rl-btn-outline:hover { border-color: var(--rl-dark); color: var(--rl-dark); }

/* Trending: horizontal 50/50 cards */
.rl-trend-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px;
}
.rl-trend-card {
    display: grid; grid-template-columns: 1fr 1fr; background: #fff;
    border-radius: var(--rl-radius); overflow: hidden;
    box-shadow: var(--rl-shadow); min-height: 250px;
    transition: transform .2s, box-shadow .2s;
}
.rl-trend-card:hover { transform: translateY(-4px); box-shadow: var(--rl-shadow-lg); }
.rl-trend-img { position: relative; min-height: 250px; display: block; }
.rl-trend-img img, .rl-trend-img .rl-noimg {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.rl-trend-img .rl-noimg {
    display: flex; align-items: center; justify-content: center;
    background: var(--cream-dk); color: var(--text-xs);
}
.rl-trend-body {
    display: flex; flex-direction: column; justify-content: center;
    padding: 22px 22px; gap: 10px; min-width: 0;
}
.rl-trend-title {
    font-size: 1.06rem; font-weight: 700; color: var(--rl-dark); margin: 0;
    line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
a.rl-trend-title-link { text-decoration: none; }
.rl-trend-loc {
    color: var(--rl-grey); font-size: .9rem; margin: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rl-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.rl-badge {
    background: var(--rl-bg); border-radius: 999px; padding: 6px 13px;
    font-size: .8rem; font-weight: 500; color: var(--rl-dark); white-space: nowrap;
}
.rl-trend-price { color: var(--rl-blue); font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 4px; }
.rl-trend-price small { font-size: .85rem; font-weight: 500; color: var(--rl-grey); }
.rl-btn-inquire {
    display: block; width: 100%; text-align: center;
    background: var(--rl-blue); color: #fff !important; font-weight: 600; font-size: .95rem;
    padding: 13px 10px; border-radius: var(--rl-radius-sm); text-decoration: none;
    border: none; cursor: pointer; transition: background .18s;
}
.rl-btn-inquire:hover { background: var(--rl-blue-dk); }

@media (max-width: 1200px) { .rl-trend-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px)  {
    .rl-trend-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .rl-trend-card { grid-template-columns: 1fr; }
    .rl-trend-img { min-height: 210px; }
}

/* Top Locations */
.rl-loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.rl-loc-card {
    position: relative; display: block; border-radius: var(--rl-radius);
    overflow: hidden; min-height: 340px; text-decoration: none;
    background: var(--rl-dark);
}
.rl-loc-card img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform .4s;
}
.rl-loc-card:hover img { transform: scale(1.05); }
.rl-loc-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(16,24,40,.55) 0%, rgba(16,24,40,.05) 45%, rgba(16,24,40,.45) 100%);
}
.rl-loc-body { position: absolute; top: 24px; left: 26px; right: 26px; z-index: 2; display: block; }
.rl-loc-count { display: block; color: #fff; font-size: .95rem; font-weight: 500; opacity: .95; margin-bottom: 2px; }
.rl-loc-name { display: block; color: #fff; font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; }
@media (max-width: 1000px) { .rl-loc-grid { grid-template-columns: repeat(2, 1fr); } .rl-loc-card { min-height: 280px; } }
@media (max-width: 620px)  { .rl-loc-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   5. PROPERTY CARD (vertical — listing pages)
   ===================================================================== */
.prop-card {
    background: #fff; border: 1px solid var(--rl-border);
    border-radius: var(--rl-radius); box-shadow: none;
}
.prop-card:hover { box-shadow: var(--rl-shadow-lg); border-color: transparent; }
.prop-price { color: var(--rl-blue) !important; font-weight: 800; }
.prop-badge--sale, .prop-badge--rent { background: var(--rl-blue); color: #fff; }
.prop-badge--residential, .prop-badge--business { background: rgba(16,24,40,.78); color: #fff; }

/* =====================================================================
   6. BREADCRUMB + PAGE HEAD (loan calc, dashboard etc.)
   ===================================================================== */
.rl-crumbs { display: flex; align-items: center; gap: 9px; font-size: .92rem; padding: 26px 0 4px; color: var(--rl-grey); flex-wrap: wrap; }
.rl-crumbs a { color: var(--rl-grey); text-decoration: none; }
.rl-crumbs a:hover { color: var(--rl-blue); }
.rl-crumbs .rl-cur { color: var(--rl-dark); font-weight: 600; }
.rl-page-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 700; letter-spacing: -.025em; margin: 10px 0 34px; color: var(--rl-dark); }

/* =====================================================================
   7. LOAN CALCULATOR
   ===================================================================== */
.rl-loan-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 30px; align-items: start; padding-bottom: 90px; }
@media (max-width: 980px) { .rl-loan-grid { grid-template-columns: 1fr; } }

.rl-card {
    background: #fff; border-radius: var(--rl-radius);
    box-shadow: var(--rl-shadow); padding: 30px;
}
.rl-card-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 22px; color: var(--rl-dark); }

.rl-loan-field {
    background: var(--rl-bg); border-radius: 14px; padding: 20px 20px 16px; margin-bottom: 18px;
}
.rl-loan-field-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.rl-loan-label { font-weight: 700; font-size: 1.02rem; color: var(--rl-dark); }
.rl-loan-minmax { display: flex; justify-content: space-between; color: var(--rl-grey); font-size: .88rem; margin-top: 8px; }
.rl-loan-inputwrap {
    display: flex; align-items: center; background: #fff; border: 1px solid var(--rl-border);
    border-radius: 10px; margin-top: 14px; overflow: hidden;
}
.rl-loan-inputwrap span { padding: 0 0 0 14px; color: var(--rl-grey); font-weight: 600; }
.rl-loan-inputwrap span.rl-suffix { padding: 0 14px 0 0; }
.rl-loan-inputwrap input {
    flex: 1; border: none; outline: none; padding: 13px 14px; font-size: 1rem;
    color: var(--rl-dark); background: transparent; min-width: 0;
}
.rl-dp-toggle { display: inline-flex; background: #fff; border: 1px solid var(--rl-border); border-radius: 999px; padding: 3px; }
.rl-dp-toggle button {
    border: none; background: transparent; cursor: pointer; font-size: .82rem; font-weight: 600;
    padding: 7px 14px; border-radius: 999px; color: var(--rl-grey);
}
.rl-dp-toggle button.rl-active { background: var(--rl-blue); color: #fff; }

/* range slider */
input[type=range].rl-range {
    -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
    border-radius: 4px; outline: none;
    background: linear-gradient(to right, var(--rl-blue) 0%, var(--rl-blue) 50%, #dfe3ea 50%, #dfe3ea 100%);
}
input[type=range].rl-range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%;
    background: #fff; border: 5px solid var(--rl-blue); cursor: pointer;
    box-shadow: 0 1px 4px rgba(16,24,40,.25);
}
input[type=range].rl-range::-moz-range-thumb {
    width: 12px; height: 12px; border-radius: 50%;
    background: #fff; border: 5px solid var(--rl-blue); cursor: pointer;
}

/* summary side */
.rl-monthly-box {
    background: var(--rl-blue); border-radius: var(--rl-radius);
    color: #fff; padding: 26px 28px; margin-bottom: 20px;
}
.rl-monthly-box .rl-mb-label { font-weight: 600; font-size: 1.05rem; opacity: .95; }
.rl-monthly-box .rl-mb-amount { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; }
.rl-monthly-box .rl-mb-note { font-size: .95rem; opacity: .9; }

.rl-sum-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.rl-sum-cell { background: var(--rl-bg); border-radius: 12px; padding: 16px; }
.rl-sum-cell.rl-hl { background: var(--rl-blue-soft); border: 1px solid var(--rl-blue); }
.rl-sum-cell .rl-sc-label { color: var(--rl-grey); font-size: .86rem; margin-bottom: 6px; }
.rl-sum-cell.rl-hl .rl-sc-label { color: var(--rl-dark); }
.rl-sum-cell .rl-sc-val { font-weight: 700; font-size: 1.05rem; color: var(--rl-dark); word-break: break-word; }
@media (max-width: 640px) { .rl-sum-grid { grid-template-columns: 1fr; } }

.rl-donut-wrap { display: flex; align-items: center; justify-content: center; gap: 40px; padding: 10px 0 24px; flex-wrap: wrap; }
.rl-donut { width: 230px; height: 230px; }
.rl-legend { display: flex; flex-direction: column; gap: 18px; }
.rl-legend-item { display: flex; gap: 10px; align-items: flex-start; }
.rl-legend-dot { width: 16px; height: 16px; border-radius: 4px; margin-top: 3px; }
.rl-legend-item b { display: block; font-size: 1.05rem; }
.rl-legend-item span { color: var(--rl-grey); font-size: .9rem; }

.rl-loan-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .rl-loan-actions { grid-template-columns: 1fr; } }
.rl-btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    border: 1px solid var(--rl-border); background: #fff; color: var(--rl-dark);
    font-weight: 600; font-size: .98rem; padding: 14px 18px; border-radius: var(--rl-radius-sm);
    cursor: pointer; text-decoration: none; transition: all .18s;
}
.rl-btn-ghost:hover { border-color: var(--rl-dark); }

/* =====================================================================
   8. AUTH MODAL
   ===================================================================== */
.rl-modal-backdrop {
    position: fixed; inset: 0; background: rgba(16,24,40,.6);
    z-index: 2000; display: none; align-items: flex-start; justify-content: center;
    overflow-y: auto; padding: 40px 16px;
}
.rl-modal-backdrop.rl-open { display: flex; }
.rl-modal {
    background: #fff; border-radius: 18px; width: 100%; max-width: 520px;
    padding: 40px 44px 34px; position: relative; animation: rlFade .2s ease;
    margin: auto;
}
@media (max-width: 560px) { .rl-modal { padding: 30px 22px 26px; } }
.rl-modal-close {
    position: absolute; top: 18px; right: 18px; border: none; background: none;
    cursor: pointer; color: var(--rl-grey); padding: 6px; line-height: 0;
}
.rl-modal-close:hover { color: var(--rl-dark); }
.rl-modal h3 { text-align: center; font-size: 1.65rem; font-weight: 700; margin: 0 0 8px; }
.rl-modal .rl-modal-sub { text-align: center; color: var(--rl-grey); font-size: .98rem; margin: 0 0 26px; line-height: 1.55; }

.rl-field { margin-bottom: 16px; }
.rl-field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; color: var(--rl-dark); }
.rl-input, .rl-select, .rl-textarea {
    width: 100%; border: 1px solid var(--rl-border); border-radius: 10px;
    padding: 12px 14px; font-size: .98rem; color: var(--rl-dark);
    outline: none; background: #fff; transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
.rl-input:focus, .rl-select:focus, .rl-textarea:focus {
    border-color: var(--rl-blue); box-shadow: 0 0 0 3px rgba(0,60,255,.12);
}
.rl-pass-wrap { position: relative; }
.rl-pass-wrap .rl-eye {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    border: none; background: none; cursor: pointer; color: var(--rl-grey); line-height: 0; padding: 4px;
}
.rl-row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 18px; flex-wrap: wrap; }
.rl-check { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--rl-dark); }
.rl-check input { width: 16px; height: 16px; accent-color: var(--rl-blue); }
.rl-link { color: var(--rl-blue); text-decoration: none; font-weight: 600; font-size: .92rem; }
.rl-link:hover { text-decoration: underline; }

.rl-btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; background: var(--rl-blue); color: #fff; border: none; cursor: pointer;
    font-weight: 600; font-size: 1.02rem; padding: 14px 18px; border-radius: 999px;
    transition: background .18s; text-decoration: none;
}
.rl-btn-primary:hover { background: var(--rl-blue-dk); color: #fff; }

.rl-or { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--rl-grey); font-size: .9rem; }
.rl-or::before, .rl-or::after { content: ""; flex: 1; height: 1px; background: var(--rl-border); }

.rl-social-row { display: flex; justify-content: center; margin-bottom: 4px; }
.rl-google-btn {
    display: inline-flex; align-items: center; gap: 10px;
    border: 1px solid var(--rl-border); border-radius: 999px; background: #fff;
    padding: 12px 26px; cursor: pointer; text-decoration: none;
    font-weight: 600; font-size: .95rem; color: var(--rl-dark);
}
.rl-google-btn:hover { box-shadow: var(--rl-shadow); color: var(--rl-dark); }
.rl-modal-foot { text-align: center; font-size: .92rem; color: var(--rl-grey); margin-top: 20px; line-height: 1.7; }
.rl-modal-foot a { color: var(--rl-blue); font-weight: 600; text-decoration: none; }
.rl-modal-hr { border: none; border-top: 1px solid var(--rl-border); margin: 20px 0 16px; }
.rl-alert { border-radius: 10px; padding: 12px 15px; font-size: .92rem; margin-bottom: 16px; }
.rl-alert--error { background: #fef2f2; color: #b42318; border: 1px solid #fecaca; }
.rl-alert--ok { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }

/* =====================================================================
   9. DASHBOARD (user + admin)
   ===================================================================== */
.rl-dash { display: grid; grid-template-columns: 264px 1fr; gap: 30px; padding: 34px 0 90px; align-items: start; }
@media (max-width: 980px) { .rl-dash { grid-template-columns: 1fr; } }

.rl-side { background: #fff; border-radius: var(--rl-radius); box-shadow: var(--rl-shadow); padding: 14px; position: sticky; top: 108px; }
@media (max-width: 980px) { .rl-side { position: static; } }
.rl-side a, .rl-side button.rl-side-link {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 12px 14px; border-radius: 10px; font-weight: 500; font-size: .96rem;
    color: var(--rl-dark); text-decoration: none; border: none; background: none;
    cursor: pointer; text-align: left;
}
.rl-side a:hover { background: var(--rl-bg); color: var(--rl-blue); }
.rl-side a.rl-active { background: var(--rl-blue-soft); color: var(--rl-blue); font-weight: 600; }
.rl-side .rl-side-sep { border-top: 1px solid var(--rl-border); margin: 10px 6px; }
.rl-side svg { flex: 0 0 auto; }

.rl-main { min-width: 0; }
.rl-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
@media (max-width: 1100px) { .rl-stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .rl-stat-grid { grid-template-columns: 1fr; } }
.rl-stat {
    background: #fff; border-radius: var(--rl-radius); box-shadow: var(--rl-shadow);
    padding: 22px;
}
.rl-stat .rl-stat-num { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; color: var(--rl-dark); }
.rl-stat .rl-stat-label { color: var(--rl-grey); font-size: .92rem; }
.rl-stat .rl-stat-ico {
    width: 42px; height: 42px; border-radius: 11px; background: var(--rl-blue-soft);
    color: var(--rl-blue); display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}

.rl-table-wrap { background: #fff; border-radius: var(--rl-radius); box-shadow: var(--rl-shadow); overflow-x: auto; }
table.rl-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.rl-table th {
    text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em;
    color: var(--rl-grey); font-weight: 600; padding: 15px 18px; border-bottom: 1px solid var(--rl-border);
    background: #fafbfc; white-space: nowrap;
}
.rl-table td { padding: 15px 18px; border-bottom: 1px solid #f2f4f7; font-size: .94rem; vertical-align: middle; }
.rl-table tr:last-child td { border-bottom: none; }
.rl-table tr:hover td { background: #fafbff; }

.rl-pill { display: inline-block; border-radius: 999px; padding: 5px 12px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.rl-pill--pending  { background: #fffaeb; color: #b54708; }
.rl-pill--approved, .rl-pill--active { background: #ecfdf3; color: #067647; }
.rl-pill--rejected { background: #fef2f2; color: #b42318; }
.rl-pill--sold, .rl-pill--rented, .rl-pill--expired { background: var(--rl-bg); color: var(--rl-grey); }
.rl-pill--api    { background: var(--rl-blue-soft); color: var(--rl-blue); }
.rl-pill--manual { background: #f4f1ff; color: #6938ef; }
.rl-pill--featured { background: #fff6e6; color: #b25e09; }

.rl-btn-sm {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .84rem; font-weight: 600; padding: 8px 14px; border-radius: 8px;
    border: 1px solid var(--rl-border); background: #fff; color: var(--rl-dark);
    cursor: pointer; text-decoration: none; white-space: nowrap;
}
.rl-btn-sm:hover { border-color: var(--rl-dark); color: var(--rl-dark); }
.rl-btn-sm--blue  { background: var(--rl-blue); border-color: var(--rl-blue); color: #fff; }
.rl-btn-sm--blue:hover  { background: var(--rl-blue-dk); color: #fff; border-color: var(--rl-blue-dk); }
.rl-btn-sm--green { background: #067647; border-color: #067647; color: #fff; }
.rl-btn-sm--green:hover { background: #05603a; color: #fff; border-color: #05603a; }
.rl-btn-sm--red   { background: #fff; border-color: #fecaca; color: #b42318; }
.rl-btn-sm--red:hover   { background: #fef2f2; color: #b42318; border-color: #b42318; }

.rl-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.rl-form-grid .rl-colspan { grid-column: 1 / -1; }
@media (max-width: 700px) { .rl-form-grid { grid-template-columns: 1fr; } }
.rl-form-section-title {
    grid-column: 1 / -1; font-weight: 700; font-size: 1.05rem; color: var(--rl-dark);
    border-bottom: 1px solid var(--rl-border); padding-bottom: 10px; margin: 14px 0 2px;
}
.rl-help { font-size: .84rem; color: var(--rl-grey); margin-top: 5px; }

/* image uploader preview */
.rl-img-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.rl-img-thumb {
    width: 110px; height: 82px; border-radius: 10px; overflow: hidden; position: relative;
    border: 1px solid var(--rl-border); background: var(--rl-bg);
}
.rl-img-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* package cards */
.rl-pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .rl-pack-grid { grid-template-columns: 1fr; } }
.rl-pack {
    background: #fff; border-radius: var(--rl-radius); box-shadow: var(--rl-shadow);
    padding: 30px; display: flex; flex-direction: column; gap: 0;
    border: 2px solid transparent; position: relative;
}
.rl-pack.rl-pack--hl { border-color: var(--rl-blue); }
.rl-pack--hl .rl-pack-flag {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--rl-blue); color: #fff; font-size: .76rem; font-weight: 700;
    border-radius: 999px; padding: 5px 14px; letter-spacing: .04em;
}
.rl-pack-name { font-weight: 700; font-size: 1.15rem; }
.rl-pack-price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 2px; color: var(--rl-dark); }
.rl-pack-price small { font-size: .95rem; color: var(--rl-grey); font-weight: 500; }
.rl-pack ul { list-style: none; padding: 0; margin: 18px 0 24px; display: flex; flex-direction: column; gap: 11px; }
.rl-pack ul li { display: flex; gap: 10px; font-size: .94rem; color: var(--text-md); align-items: flex-start; }
.rl-pack ul li svg { flex: 0 0 auto; margin-top: 3px; color: var(--rl-blue); }
.rl-pack .rl-btn-primary { margin-top: auto; }

/* dashboard property row thumb */
.rl-row-thumb { width: 74px; height: 54px; border-radius: 8px; object-fit: cover; background: var(--rl-bg); }

/* toast/flash */
.rl-flash { max-width: 1380px; margin: 18px auto 0; padding: 0 24px; }

/* =====================================================================
   10. Legacy homepage sections cleanup under Realista theme
   ===================================================================== */
.gc-footer { background: var(--rl-dark); }
.gc-footer a:hover { color: var(--gold-lt); }
.gr-svc-icon { filter: grayscale(1); opacity: .85; }
