/*
 * cro.properties — Brand CSS
 * Completely independent from cro.guide/style.css
 * Palette: Charcoal #1E2832 | Forest Green #2D6A4F | Sage #52B788 | White | Light Grey #F5F7F9
 */

/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
    --prop-charcoal:    #1E2832;
    --prop-charcoal-2:  #263342;
    --prop-charcoal-3:  #2f3e50;
    --prop-green:       #2D6A4F;
    --prop-green-hover: #236040;
    --prop-sage:        #52B788;
    --prop-gold:        #C8A96A;  /* only for premium badges */
    --prop-white:       #FFFFFF;
    --prop-grey:        #F5F7F9;
    --prop-border:      #E2E8EF;
    --prop-text:        #1A1A2E;
    --prop-text-muted:  #6B7A8D;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
body { color: var(--prop-text); background: #fff; font-family: 'Inter', system-ui, sans-serif; }
a { color: var(--prop-green); }
a:hover { color: var(--prop-green-hover); }

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.navbar-main {
    background: var(--prop-charcoal) !important;
    box-shadow: 0 2px 16px rgba(0,0,0,.2);
    padding: .75rem 0;
}
.navbar-main .navbar-brand { font-weight: 800; font-size: 1.2rem; letter-spacing: -.5px; color: #fff !important; }
.navbar-main .navbar-brand i { color: var(--prop-sage) !important; }
.navbar-main .nav-link { color: rgba(255,255,255,.8) !important; font-weight: 500; transition: color .2s; }
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active { color: var(--prop-sage) !important; }
.navbar-main .dropdown-menu { border: none; box-shadow: 0 8px 32px rgba(0,0,0,.12); border-radius: 12px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary { background: var(--prop-green) !important; border-color: var(--prop-green) !important; color: #fff !important; font-weight: 600; }
.btn-primary:hover { background: var(--prop-green-hover) !important; border-color: var(--prop-green-hover) !important; }
.btn-outline-primary { color: var(--prop-green) !important; border-color: var(--prop-green) !important; }
.btn-outline-primary:hover { background: var(--prop-green) !important; color: #fff !important; }
.btn-gold { background: var(--prop-green) !important; border-color: var(--prop-green) !important; color:#fff !important; }

/* ── Hero V2 ─────────────────────────────────────────────────────────────── */
.hero-v2 { position: relative; min-height: 580px; display: flex; align-items: center; overflow: hidden; }
.hero-v2__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-v2__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(30,40,50,.92) 0%, rgba(30,40,50,.80) 60%, rgba(45,106,79,.40) 100%); }
.hero-v2__content { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 80px; }
.hero-v2__eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #52B788; margin-bottom: .75rem; }
.hero-v2__title { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: .75rem; }
.hero-v2__sub { font-size: 1.1rem; color: rgba(255,255,255,.75); margin-bottom: 2rem; }

/* Search box */
.hero-v2__search { background: rgba(255,255,255,.10); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.15); border-radius: 18px; padding: 1.25rem 1.5rem 1rem; }
.hero-v2__tabs { gap: 4px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 1rem; }
.hero-v2__tab { background: none; border: none; color: rgba(255,255,255,.55); font-weight: 600; font-size: .9rem; padding: .4rem .9rem .6rem; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s; }
.hero-v2__tab.active, .hero-v2__tab[aria-selected="true"] { color: #52B788; border-bottom-color: #52B788; }
.hero-v2__form { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-v2__input-wrap { flex: 1 1 240px; position: relative; }
.hero-v2__input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #2D6A4F; font-size: 1rem; }
.hero-v2__input { width: 100%; border: none; border-radius: 10px; padding: .7rem .9rem .7rem 2.5rem; font-size: .95rem; background: rgba(255,255,255,.95); }
.hero-v2__input:focus { outline: none; box-shadow: 0 0 0 2px #52B788; }
.hero-v2__select { flex: 0 1 180px; border: none; border-radius: 10px; padding: .7rem .9rem; font-size: .9rem; background: rgba(255,255,255,.95); cursor: pointer; }
.hero-v2__select:focus { outline: none; }
.hero-v2__btn { background: #2D6A4F; color: #fff; border: none; border-radius: 10px; padding: .7rem 1.5rem; font-weight: 700; font-size: .95rem; cursor: pointer; transition: background .15s; white-space: nowrap; }
.hero-v2__btn:hover { background: #236040; }

/* Quick links */
.hero-v2__quick { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: .75rem; }
.hero-v2__quick-label { font-size: .75rem; color: rgba(255,255,255,.5); }
.hero-v2__quick-link { font-size: .78rem; color: rgba(255,255,255,.8); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 20px; padding: 3px 12px; text-decoration: none; transition: all .15s; }
.hero-v2__quick-link:hover { background: rgba(82,183,136,.25); border-color: #52B788; color: #fff; }

/* Stats bar */
.hero-stats { background: #fff; border-radius: 16px; box-shadow: 0 8px 40px rgba(30,40,50,.14); padding: 1.5rem 2rem; display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 1rem; }
.hero-stat { text-align: center; flex: 1; min-width: 100px; }
.hero-stat__num { font-size: 1.6rem; font-weight: 800; color: var(--prop-charcoal); letter-spacing: -.03em; }
.hero-stat__lbl { font-size: .78rem; color: var(--prop-text-muted); margin-top: 2px; }
.hero-stat__divider { width: 1px; height: 40px; background: var(--prop-border); }

/* City card V2 */
.city-card-v2 { display: block; border-radius: 14px; overflow: hidden; min-height: 160px; position: relative; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.city-card-v2:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.city-card-v2__body { position: absolute; bottom: 0; left: 0; right: 0; padding: .9rem 1rem; }
.city-card-v2__name { font-weight: 700; font-size: 1rem; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.city-card-v2__count { font-size: .75rem; color: rgba(255,255,255,.8); }

/* ── Hero (legacy) ───────────────────────────────────────────────────────── */
.hero-section {
    min-height: 540px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45,106,79,.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero-section h1 { font-weight: 800; letter-spacing: -1.5px; }

/* ── Dashboard layouts (agency, owner, user) ─────────────────────────────── */
.dashboard-body { background: #F5F7F9; }

.dashboard-wrapper { display: flex; min-height: 100vh; }

.dashboard-sidebar {
    width: 260px;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--prop-charcoal);
    position: fixed;
    top: 0; left: 0;
    padding: 0;
    z-index: 100;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.12) transparent;
    display: flex;
    flex-direction: column;
}
.dashboard-sidebar::-webkit-scrollbar { width: 4px; }
.dashboard-sidebar::-webkit-scrollbar-track { background: transparent; }
.dashboard-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }

/* Sidebar brand */
.dashboard-sidebar .sidebar-brand {
    padding: 1.25rem 1.5rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    flex-shrink: 0;
}
.dashboard-sidebar .sidebar-brand:hover { color: #fff; }
.dashboard-sidebar .sidebar-brand .badge { font-size: 10px; }

/* Sidebar nav */
.dashboard-sidebar .sidebar-menu { flex: 1; padding: .75rem 0; }

.dashboard-sidebar .sidebar-label {
    color: rgba(255,255,255,.35);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: .9rem 1.4rem .3rem;
    margin: 0;
}
.dashboard-sidebar .nav-link {
    color: rgba(255,255,255,.72);
    padding: .55rem 1.4rem;
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: .875rem;
    transition: all .18s;
    border-radius: 0;
    border-left: 3px solid transparent;
}
.dashboard-sidebar .nav-link i { font-size: 1rem; flex-shrink: 0; }
.dashboard-sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.dashboard-sidebar .nav-link.active {
    color: var(--prop-sage);
    background: rgba(82,183,136,.10);
    border-left-color: var(--prop-sage);
    font-weight: 600;
}
.dashboard-sidebar hr { border-color: rgba(255,255,255,.08); margin: .5rem 1rem; }
.dashboard-sidebar .btn-link.nav-link { color: rgba(255,100,100,.7); }
.dashboard-sidebar .btn-link.nav-link:hover { color: #ff6b6b; background: rgba(255,100,100,.06); }

/* Dashboard main area */
.dashboard-main { margin-left: 260px; min-height: 100vh; }

/* Dashboard topbar (if any) */
.dashboard-topbar {
    background: #fff;
    border-bottom: 1px solid #E2E8EF;
    padding: .75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

/* navbar-main inside dashboard */
.dashboard-body .navbar-main { position: sticky; top: 0; z-index: 99; }
.dashboard-body .dashboard-main { margin-left: 260px; }

/* Responsive — mobile */
@media (max-width: 991.98px) {
    .dashboard-sidebar { transform: translateX(-100%); transition: transform .3s; }
    .dashboard-sidebar.show { transform: translateX(0); box-shadow: 0 0 40px rgba(0,0,0,.3); }
    .dashboard-main { margin-left: 0 !important; }
    .dashboard-body .dashboard-main { margin-left: 0 !important; }
}

/* ── Hero search tabs ───────────────────────────────────────────────────── */
.hero-search-box { background: rgba(255,255,255,.08); backdrop-filter: blur(12px); border-radius: 16px; padding: 1.5rem; border: 1px solid rgba(255,255,255,.12); }
.hero-tabs .nav-link { color: rgba(255,255,255,.6); border-bottom: 2px solid transparent; border-radius: 0; font-weight: 600; padding: .5rem 1rem; }
.hero-tabs .nav-link.active { color: var(--prop-sage); border-bottom-color: var(--prop-sage); background: transparent; }

/* ── Section headings ───────────────────────────────────────────────────── */
.section-eyebrow { color: var(--prop-sage) !important; letter-spacing: 3px; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.section-title { font-weight: 800; font-size: 2rem; color: var(--prop-charcoal); letter-spacing: -.5px; }
.section-subtitle { color: var(--prop-text-muted); font-size: 1.05rem; }

/* ── Listing cards (legacy) ─────────────────────────────────────────────── */
.listing-card { border-radius: 16px; border: 1px solid var(--prop-border); transition: box-shadow .25s, transform .25s; overflow: hidden; }
.listing-card:hover { box-shadow: 0 12px 40px rgba(45,106,79,.15) !important; transform: translateY(-4px); border-color: var(--prop-green); }

/* ── Listing Card V2 (.lc2) ─────────────────────────────────────────────── */
.lc2 {
    border-radius: 14px;
    border: 1px solid var(--prop-border);
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .22s, transform .22s, border-color .22s;
}
.lc2:hover {
    box-shadow: 0 16px 48px rgba(45,106,79,.14);
    transform: translateY(-5px);
    border-color: var(--prop-green);
}
.lc2--featured { border-color: #C8A96A; }
.lc2--featured:hover { border-color: #C8A96A; box-shadow: 0 16px 48px rgba(200,169,106,.18); }

/* Image */
.lc2__img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--prop-grey); flex-shrink: 0; }
.lc2__img-link { display: block; width: 100%; height: 100%; }
.lc2__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.lc2:hover .lc2__img { transform: scale(1.04); }

/* Badges top-left */
.lc2__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.lc2__badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 20px; font-size: 10px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.lc2__badge--gold  { background: #C8A96A; color: #fff; }
.lc2__badge--dark  { background: #1E2832; color: #fff; }
.lc2__badge--green { background: #2D6A4F; color: #fff; }
.lc2__badge--red   { background: #e74c3c; color: #fff; }

/* Type pill — bottom-left of image */
.lc2__type-pill { position: absolute; bottom: 10px; left: 10px; z-index: 2; padding: 3px 10px; border-radius: 20px; font-size: 10px; font-weight: 700; color: #fff; letter-spacing: .03em; }

/* Save button */
.lc2__save-btn { position: absolute; top: 10px; right: 10px; z-index: 2; }
.lc2__save-btn button {
    width: 34px; height: 34px; border-radius: 50%;
    border: none; background: rgba(0,0,0,.35);
    backdrop-filter: blur(4px); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; transition: background .2s, transform .15s;
}
.lc2__save-btn button:hover { background: rgba(0,0,0,.55); transform: scale(1.1); }

/* Body */
.lc2__body { display: block; padding: 12px 14px 6px; flex: 1; }

/* Price */
.lc2__price { font-size: 1.2rem; font-weight: 800; color: var(--prop-charcoal); line-height: 1.15; margin-bottom: 4px; letter-spacing: -.02em; }
.lc2__price-suf { font-size: 11px; font-weight: 500; color: var(--prop-text-muted); margin-left: 2px; }

/* Title */
.lc2__title {
    font-size: .88rem; font-weight: 600; color: var(--prop-charcoal);
    line-height: 1.3; margin-bottom: 5px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Location */
.lc2__location { font-size: .77rem; color: var(--prop-text-muted); margin-bottom: 7px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.lc2__location i { color: var(--prop-green); flex-shrink: 0; }
.lc2__prop-chip { background: #f0f2f5; color: #555; border-radius: 4px; padding: 1px 6px; font-size: 10px; font-weight: 600; border: 1px solid #e2e5ea; }

/* Specs */
.lc2__specs {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    font-size: .78rem; color: var(--prop-text-muted);
    padding-bottom: 4px;
}
.lc2__specs i { color: var(--prop-green); margin-right: 2px; }
.lc2__saved { margin-left: auto; }

/* Footer */
.lc2__footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 16px 12px; border-top: 1px solid var(--prop-border);
    margin-top: auto;
}
.lc2__compare {
    font-size: 11px; color: #888; background: none; border: 1px solid #e2e5ea;
    border-radius: 6px; padding: 4px 10px; cursor: pointer;
    transition: all .15s; display: flex; align-items: center; gap: 5px;
}
.lc2__compare:hover { border-color: var(--prop-green); color: var(--prop-green); background: #f0f9f4; }
.lc2__details {
    font-size: 12px; font-weight: 600; color: var(--prop-green);
    text-decoration: none; display: flex; align-items: center; gap: 4px;
    transition: gap .15s;
}
.lc2__details:hover { gap: 7px; color: var(--prop-green-hover); }

/* ── Discover/feature cards ─────────────────────────────────────────────── */
.discover-card { border-radius: 16px; border: 1px solid var(--prop-border) !important; transition: all .25s; }
.discover-card:hover { border-color: var(--prop-green) !important; box-shadow: 0 8px 24px rgba(45,106,79,.12) !important; transform: translateY(-3px); }

/* ── Agency cards ───────────────────────────────────────────────────────── */
.agency-card { border-radius: 16px; border: 1px solid var(--prop-border) !important; transition: all .25s; }
.agency-card:hover { border-color: var(--prop-sage) !important; box-shadow: 0 8px 24px rgba(82,183,136,.12) !important; }

/* ── City cards ─────────────────────────────────────────────────────────── */
.city-card { border-radius: 16px; overflow: hidden; display: flex; align-items: flex-end; padding: 1.25rem; min-height: 180px; color: #fff; text-decoration: none; transition: transform .3s; }
.city-card:hover { transform: scale(1.02); }
.city-card-name { font-weight: 700; font-size: 1.1rem; }
.city-card-count { font-size: .8rem; opacity: .8; }

/* ── Colours ────────────────────────────────────────────────────────────── */
.text-gold   { color: var(--prop-sage) !important; }
.text-primary { color: var(--prop-green) !important; }
.bg-primary   { background: var(--prop-green) !important; }
.border-primary { border-color: var(--prop-green) !important; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer, footer { background: var(--prop-charcoal) !important; }

/* ── Admin sidebar ──────────────────────────────────────────────────────── */
.admin-sidebar { background: var(--prop-charcoal) !important; }
.admin-sidebar .sidebar-brand { border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-sidebar .nav-link.active { background: var(--prop-green) !important; }
.admin-sidebar .nav-link:hover { background: rgba(82,183,136,.12) !important; }

/* ── Dashboard sidebar ──────────────────────────────────────────────────── */
.dashboard-sidebar { background: var(--prop-charcoal) !important; }
.dashboard-sidebar .nav-link.active { background: var(--prop-green) !important; }
.dashboard-sidebar .nav-link:hover { background: rgba(82,183,136,.12) !important; }
.dashboard-sidebar .sidebar-brand { color: #fff !important; }

/* ── Stat cards ─────────────────────────────────────────────────────────── */
.stat-card { border-radius: 16px; border-left: 4px solid var(--prop-green) !important; background: var(--prop-grey); padding: 1.25rem; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--prop-charcoal); }
.stat-label { font-size: .8rem; color: var(--prop-text-muted); text-transform: uppercase; letter-spacing: .05em; }

/* ── Badges ─────────────────────────────────────────────────────────────── */
.badge-premium, .is-featured-badge { background: var(--prop-green) !important; }
.badge-premium-gold { background: var(--prop-gold) !important; color: #1a1a1a !important; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form-control:focus, .form-select:focus { border-color: var(--prop-sage); box-shadow: 0 0 0 .2rem rgba(82,183,136,.2); }

/* ── Rounded helpers ────────────────────────────────────────────────────── */
.rounded-xl  { border-radius: 16px !important; }
.rounded-2xl { border-radius: 24px !important; }

/* ── Shadow helpers ─────────────────────────────────────────────────────── */
.shadow-soft    { box-shadow: 0 4px 20px rgba(0,0,0,.06) !important; }
.shadow-premium { box-shadow: 0 8px 40px rgba(0,0,0,.1) !important; }

/* ── Credential bar ─────────────────────────────────────────────────────── */
.shadow-premium.bg-white { border-radius: 20px; }

/* ── Pagination ─────────────────────────────────────────────────────────── */
.page-link { color: var(--prop-green); }
.page-item.active .page-link { background: var(--prop-green); border-color: var(--prop-green); }

/* ── Alerts ─────────────────────────────────────────────────────────────── */
.alert-success { border-left: 4px solid var(--prop-green); }

/* ── Map ────────────────────────────────────────────────────────────────── */
#placesMap, #cityMap { border-radius: 16px; overflow: hidden; }
