/* Realtor Kazi – clean modern UI */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary:        #d71920;
    --primary-dark:   #a70f16;
    --primary-light:  #fde8e9;
    --secondary:      #062a5f;
    --secondary-dark: #03173a;
    --gold:           #c59a35;
    --gold-light:     #fff8ea;
    --blue:           #0057a8;
    --danger:         #d71920;
    --success:        #16a34a;
    --light:          #f4f6fb;
    --border:         #dce4ef;
    --text:           #0f1b2d;
    --muted:          #5a6f88;
    --white:          #ffffff;
    --shadow-sm:      0 1px 4px rgba(6,42,95,.08);
    --shadow:         0 4px 20px rgba(6,42,95,.12);
    --shadow-lg:      0 12px 40px rgba(6,42,95,.16);
    --radius:         8px;
    --radius-sm:      5px;
    --transition:     all .22s ease;

    /* legacy compat aliases */
    --primary-color:  var(--primary);
    --secondary-color: var(--secondary);
    --primary-dark:   #a70f16;
    --border-color:   var(--border);
    --muted-color:    var(--muted);
    --light-color:    var(--light);
    --dark-color:     #07162d;
    --card-shadow:    var(--shadow);
    --heritage-gold:  var(--gold);
    --cream-color:    var(--gold-light);
}

html { scroll-behavior: smooth; }

body {
    font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
    font-family: "Inter", "Segoe UI", sans-serif;
    color: var(--secondary);
    line-height: 1.2;
    font-weight: 700;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

/* ── Container ─────────────────────────────────────── */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Eyebrow / helpers ─────────────────────────────── */
.eyebrow {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-heading, .results-heading {
    margin-bottom: 36px;
    text-align: center;
}

.section-heading h2, .featured-properties h2, .filters-section h2 {
    font-size: clamp(28px,4vw,42px);
}

/* ── Navbar ────────────────────────────────────────── */
.navbar {
    background: linear-gradient(100deg,#04193e 0%,var(--secondary) 52%,#9c0d13 100%);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 4px 24px rgba(6,42,95,.22);
    position: sticky;
    top: 0;
    z-index: 200;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    padding: 10px 24px;
}

.navbar-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-brand img {
    width: 180px;
    max-height: 58px;
    object-fit: contain;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 26px;
    align-items: center;
}

.navbar-menu a {
    color: rgba(255,255,255,.92);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 4px 2px;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.navbar-menu a:hover {
    color: #fff;
    border-bottom-color: var(--gold);
}

/* Dropdown */
.nav-dropdown { position: relative; }

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    list-style: none;
    min-width: 210px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.nav-dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu li { border-bottom: 1px solid var(--border); }
.dropdown-menu li:last-child { border-bottom: none; }

.dropdown-menu a {
    display: block;
    padding: 12px 18px;
    color: var(--secondary);
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-bottom-color: transparent;
}

/* Hamburger */
.navbar-toggle {
    display: none;
    background: none;
    border: 2px solid rgba(255,255,255,.35);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 7px 11px;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    transition: var(--transition);
}

.navbar-toggle:hover { background: rgba(255,255,255,.12); }

/* ── Buttons ───────────────────────────────────────── */
.btn-primary, .btn-secondary, .btn-whatsapp, .btn-small, .btn-danger {
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 10px rgba(215,25,32,.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(215,25,32,.35);
}

.btn-secondary {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

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

.btn-whatsapp {
    background: #25d366;
    color: #073b20;
    border-color: #25d366;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    border-color: #1ebe5d;
    transform: translateY(-1px);
}

.btn-small {
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    border-radius: var(--radius-sm);
}

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

.btn-danger {
    background: #fff;
    color: var(--danger);
    border-color: var(--danger);
}

.btn-danger:hover {
    background: var(--danger);
    color: #fff;
}

.btn-block { width: 100%; }

/* ── Form inputs ───────────────────────────────────── */
.search-inputs input,
.search-inputs select,
.filter-group input,
.filter-group select,
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    transition: border-color .18s,box-shadow .18s;
}

.search-inputs input:focus,
.search-inputs select:focus,
.filter-group input:focus,
.filter-group select:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(215,25,32,.12);
}

.form-group { margin-bottom: 20px; }

.form-group label,
.filter-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 20px;
}

/* ── Alerts ────────────────────────────────────────── */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger  { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--danger); }
.alert-success { background: #dcfce7; color: #166534; border-left: 4px solid var(--success); }

/* ── Badges ────────────────────────────────────────── */
.role-badge, .status-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    margin-top: 8px;
}

/* ── Table ─────────────────────────────────────────── */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.properties-table {
    width: 100%;
    border-collapse: collapse;
}

.properties-table thead {
    background: var(--secondary);
    color: #fff;
}

.properties-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255,255,255,.9);
}

.properties-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    vertical-align: middle;
}

.properties-table tbody tr:last-child td { border-bottom: none; }
.properties-table tbody tr:hover { background: var(--light); }

/* ── Hero ──────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 700px;
    color: #fff;
    padding: 90px 24px 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(100deg,rgba(4,25,62,.96) 0%,rgba(6,42,95,.88) 50%,rgba(140,15,20,.84) 100%),
        url("../images/brand/toronto-skyline.jpg") center/cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 80px;
    background: var(--gold-light);
    clip-path: polygon(0 50%,100% 18%,100% 100%,0 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg,rgba(255,255,255,.04),rgba(255,255,255,.04) 1px,transparent 1px,transparent 22px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1200px,100%);
    display: grid;
    grid-template-columns: minmax(0,1.3fr) minmax(300px,.7fr);
    gap: 40px;
    align-items: center;
}

.hero-copy { max-width: 780px; }

.hero-content h1 {
    color: #fff;
    font-size: clamp(40px,6vw,70px);
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-content p:not(.eyebrow) {
    max-width: 700px;
    margin: 0 0 30px;
    font-size: 19px;
    color: rgba(255,255,255,.88);
}

.hero .eyebrow { color: #ffd87e; }

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    color: #fff;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.hero-trust strong { color: #ffd87e; font-size: 18px; }

.toronto-skyline {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 1;
    width: min(960px,calc(100% - 32px));
    height: 180px;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: .85;
}

.toronto-skyline span {
    position: absolute;
    bottom: 0;
    display: block;
    background: rgba(255,248,234,.16);
    border: 1px solid rgba(255,248,234,.3);
}

.toronto-skyline .tower {
    left: 50%;
    width: 10px;
    height: 170px;
    background: #fff8ea;
    border-radius: 8px 8px 0 0;
    transform: translateX(-50%);
}

.toronto-skyline .tower::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -16px;
    width: 2px;
    height: 22px;
    background: #fff8ea;
    transform: translateX(-50%);
}

.toronto-skyline .tower::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 40px;
    width: 68px;
    height: 16px;
    border-radius: 999px;
    background: #fff8ea;
    transform: translateX(-50%);
}

.toronto-skyline .tower-base { left:calc(50% - 28px); width:56px; height:32px; background:rgba(255,248,234,.24); }
.toronto-skyline .block-1    { left:8%;  width:105px; height:68px; }
.toronto-skyline .block-2    { left:22%; width:82px;  height:108px; }
.toronto-skyline .block-3    { right:22%;width:90px;  height:126px; }
.toronto-skyline .block-4    { right:8%; width:122px; height:80px; }
.toronto-skyline .dome       { left:62%; width:116px; height:46px; border-radius:80px 80px 0 0; }

/* Search form */
.search-form { max-width: 900px; margin: 0; }

.search-inputs {
    display: grid;
    grid-template-columns: 1.3fr 1fr .8fr auto;
    gap: 12px;
    margin-top: 28px;
    padding: 14px;
    background: rgba(255,248,234,.97);
    border-radius: var(--radius);
    border: 2px solid rgba(197,154,53,.3);
    box-shadow: 0 20px 60px rgba(6,42,95,.3);
}

.quick-searches, .market-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.quick-searches { margin-top: 16px; }

.quick-searches a, .market-chips a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition);
}

.quick-searches a {
    color: #fff;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.24);
}

.quick-searches a:hover { background: #fff; color: var(--secondary); }

/* Hero agent card */
.hero-agent-card {
    align-self: stretch;
    display: grid;
    grid-template-rows: minmax(250px,1fr) auto;
    overflow: hidden;
    background: rgba(255,248,234,.96);
    border: 2px solid rgba(197,154,53,.55);
    border-radius: var(--radius);
    box-shadow: 0 28px 70px rgba(0,7,45,.3);
}

.hero-agent-card img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: contain;
    object-position: bottom center;
    background: linear-gradient(135deg,rgba(6,42,95,.06),rgba(215,25,32,.08)),#fff;
}

.hero-agent-card > div { padding: 22px; }
.hero-agent-card h2    { font-size: 30px; margin-bottom: 8px; }
.hero-agent-card p:not(.eyebrow) { color: var(--muted); font-size: 15px; margin-bottom: 16px; }

/* ── Intro / Heritage / Culture ────────────────────── */
.intro-band  { padding: 56px 24px; background: var(--gold-light); }
.heritage-band { padding: 54px 24px; background: linear-gradient(180deg,var(--gold-light),#fff); }
.culture-section { padding: 70px 24px; background: linear-gradient(180deg,#fff,var(--light)); }

.intro-grid {
    display: grid;
    grid-template-columns: minmax(260px,.9fr) 1fr;
    gap: 40px;
    align-items: center;
}

.intro-grid h2  { font-size: clamp(26px,4vw,40px); }
.intro-grid p:last-child { color: var(--muted); font-size: 17px; }

.heritage-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 20px;
}

.heritage-grid > div {
    padding: 26px;
    background: #fff;
    border: 1px solid rgba(197,154,53,.3);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.heritage-grid i   { color: var(--primary); font-size: 26px; margin-bottom: 14px; }
.heritage-grid h3  { font-size: 20px; margin-bottom: 8px; }
.heritage-grid p   { color: var(--muted); }

.culture-grid {
    display: grid;
    grid-template-columns: minmax(280px,.95fr) minmax(0,1.05fr);
    gap: 42px;
    align-items: center;
}

.culture-image { position: relative; min-height: 380px; }

.culture-image > img:first-child {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.maple-leaf-mark {
    position: absolute;
    right: -16px;
    bottom: -22px;
    width: 120px;
    padding: 16px;
    background: #fff;
    border: 1px solid rgba(215,25,32,.16);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.culture-copy h2  { font-size: clamp(28px,4vw,44px); margin-bottom: 16px; }
.culture-copy p   { color: var(--muted); font-size: 17px; margin-bottom: 20px; }

.culture-points {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
}

.culture-points span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
}

.culture-points i { color: var(--primary); }

/* ── Properties grid ───────────────────────────────── */
.featured-properties, .properties-section {
    padding: 68px 24px;
    background: var(--light);
}

.properties-section { background: #fff; }

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
    gap: 24px;
}

.property-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.property-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.property-image {
    position: relative;
    overflow: hidden;
    height: 240px;
    background: #dce6ee;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.property-card:hover .property-image img { transform: scale(1.04); }

.property-type, .featured-badge {
    position: absolute;
    top: 12px;
    color: #fff;
    padding: 5px 11px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.property-type    { right: 12px; background: var(--secondary); }
.featured-badge   { left: 12px;  background: var(--primary); }

.property-details {
    padding: 20px;
}

.property-details h3 { font-size: 18px; margin-bottom: 10px; }

.property-location {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-price {
    font-size: 23px;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 14px;
}

.property-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    margin-bottom: 16px;
    color: var(--muted);
}

.property-specs span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Filters section ───────────────────────────────── */
.filters-section {
    padding: 54px 24px 42px;
    background: linear-gradient(100deg,rgba(4,24,60,.95),rgba(6,42,95,.92) 50%,rgba(154,12,18,.82));
    position: relative;
    overflow: hidden;
}

.filters-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,rgba(255,255,255,.04),rgba(255,255,255,.04) 1px,transparent 1px,transparent 22px);
    pointer-events: none;
}

.filters-section .container   { position: relative; z-index: 1; }
.filters-section .eyebrow     { color: #ffd87e; }
.filters-section h2           { color: #fff; }

.market-chips { margin: 16px 0 18px; }
.feature-search-chips { margin-top: -8px; }

.market-chips a {
    color: #fff;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.24);
}

.market-chips a:hover { background: var(--gold); color: var(--secondary-dark); }

/* Filter form */
.filter-form {
    background: #fff;
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(4,minmax(140px,1fr));
    gap: 14px;
    align-items: end;
}

.filter-wide  { grid-column: span 2; }
.filter-reset { min-height: 46px; }
.filter-group { display: flex; flex-direction: column; }

.results-summary { color: var(--muted); margin-top: 8px; font-size: 14px; }

/* ── Auth ──────────────────────────────────────────── */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 24px;
    background: var(--light);
}

.auth-form {
    width: 100%;
    max-width: 430px;
    background: #fff;
    padding: 36px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.auth-form h2 { margin-bottom: 28px; text-align: center; font-size: 26px; }

.auth-link { text-align: center; margin-top: 18px; }
.auth-link a { color: var(--primary-dark); text-decoration: none; font-weight: 700; }

/* ── Dashboard ─────────────────────────────────────── */
.dashboard {
    padding: 36px 24px;
    min-height: calc(100vh - 80px);
    background: var(--light);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

/* Sidebar */
.dashboard-sidebar {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    position: sticky;
    top: 96px;
}

.user-card {
    padding: 24px 20px;
    text-align: center;
    background: linear-gradient(135deg,var(--secondary),var(--secondary-dark));
    color: #fff;
}

.user-card h3 { color: #fff; font-size: 17px; margin-bottom: 4px; }
.user-card p  { color: rgba(255,255,255,.72); font-size: 13px; }

.user-avatar {
    font-size: 46px;
    color: rgba(255,255,255,.6);
    margin-bottom: 12px;
}

.role-badge {
    background: var(--primary);
    color: #fff;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: 8px;
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 2px;
}

.dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.dashboard-nav a i { width: 18px; text-align: center; color: var(--muted); }

.dashboard-nav a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.dashboard-nav a:hover i { color: var(--primary); }

.dashboard-nav a.active {
    background: var(--primary);
    color: #fff;
}

.dashboard-nav a.active i { color: rgba(255,255,255,.8); }

/* Dashboard content */
.dashboard-content {
    background: #fff;
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.dashboard-content h1, .form-container h1 {
    margin-bottom: 24px;
    font-size: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

/* Profile / info grid */
.profile-card { margin-bottom: 32px; }

.profile-card h2, .property-form h2 {
    margin-bottom: 18px;
    font-size: 20px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

.info-grid, .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(170px,1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.info-item {
    padding: 14px 16px;
    background: var(--light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.info-item label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    margin-bottom: 4px;
}

.info-item p { font-size: 15px; font-weight: 600; }

.stat-card {
    background: linear-gradient(135deg,var(--secondary),var(--secondary-dark));
    color: #fff;
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
}

.stat-number { font-size: 34px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.stat-label  { font-size: 13px; opacity: .8; color: #fff; }

/* Agent stats */
.agent-stats h2 {
    font-size: 20px;
    margin-bottom: 16px;
}

/* ── Property detail page ──────────────────────────── */
.property-details {
    padding: 40px 24px 24px;
}

.back-link {
    color: var(--primary-dark);
    text-decoration: none;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
}

.back-link:hover { color: var(--primary); }

.property-main {
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr);
    gap: 36px;
    margin-bottom: 56px;
    align-items: start;
}

.property-gallery { display: flex; flex-direction: column; gap: 14px; }

.property-gallery > img:first-child {
    width: 100%;
    height: min(56vw,540px);
    min-height: 360px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(84px,1fr));
    gap: 8px;
}

.thumbnail-gallery img {
    width: 100%;
    height: 78px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: .7;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail-gallery img:hover { opacity: 1; border-color: var(--primary); }

.property-info {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
    min-width: 0;
}

.property-info h1 {
    margin-bottom: 18px;
    font-size: clamp(26px,3.5vw,38px);
}

.property-specs-detail {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 12px;
    margin: 26px 0;
    padding: 18px;
    background: var(--light);
    border-radius: var(--radius-sm);
}

.property-source-details {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
    margin: -8px 0 26px;
}

.property-source-details span {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
}

.property-source-details strong {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.property-map-card {
    margin: 0 0 28px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.map-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
}

.map-heading .eyebrow { margin-bottom: 3px; }
.map-heading h3 { font-size: 20px; }

.property-map-card iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: 0;
}

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

.spec i { font-size: 22px; color: var(--primary); }
.spec .label { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; }
.spec .value { display: block; font-size: 19px; font-weight: 800; }

.property-description { margin-bottom: 24px; }
.property-description h3, .agent-info h3 { margin-bottom: 10px; }

.description-sections { display: grid; gap: 12px; }

.description-section {
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
}

.description-section h4, .searchable-features h4 { margin-bottom: 8px; font-size: 16px; }
.description-section p  { color: var(--muted); margin-bottom: 8px; }
.description-section p:last-child { margin-bottom: 0; }

.searchable-features {
    margin-top: 16px;
    padding: 16px 18px;
    background: var(--light);
    border-radius: var(--radius-sm);
}

.feature-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-chip-list a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.feature-chip-list a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.agent-card {
    background: var(--light);
    padding: 18px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
}

.agent-card h4    { margin-bottom: 4px; }
.agent-card a, .footer a { text-decoration: none; }
.agent-card a:hover, .footer a:hover { text-decoration: underline; }
.agent-card p, .agent-card .user-card p { color: var(--muted); }

/* Inquiry section */
.inquiry-section {
    background: var(--light);
    padding: 36px;
    border-radius: var(--radius);
}

.inquiry-section h2 { margin-bottom: 24px; }

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: -6px 0 24px;
}

/* Form section */
.form-section {
    padding: 40px 24px;
    min-height: calc(100vh - 80px);
    background: var(--light);
}

.form-container {
    max-width: 860px;
    margin: 0 auto;
}

.property-form, .form-container {
    background: #fff;
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.property-form h2:first-child { margin-top: 0; }

/* Results */
.no-results {
    text-align: center;
    color: var(--muted);
    padding: 40px 20px;
    font-size: 17px;
    grid-column: 1 / -1;
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}

.pagination a {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    background: #fff;
    transition: var(--transition);
}

.pagination a:hover, .pagination a.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ── Footer ────────────────────────────────────────── */
.footer {
    background: linear-gradient(100deg,#04172a,var(--secondary-dark) 50%,#6e0b10);
    color: #fff;
    border-top: 4px solid var(--gold);
    padding: 48px 24px 22px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(190px,1fr));
    gap: 28px;
    margin-bottom: 28px;
}

.footer-section h4 { color: #fff; margin-bottom: 14px; font-size: 16px; }
.footer-section p  { font-size: 14px; opacity: .78; margin-bottom: 8px; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 6px; }

.footer-section a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    opacity: .78;
    transition: var(--transition);
}

.footer-section a:hover { color: var(--gold); opacity: 1; text-decoration: none; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    padding-top: 18px;
    text-align: center;
    opacity: .72;
    font-size: 13px;
}

/* ── Responsive 980px ──────────────────────────────── */
@media (max-width: 980px) {
    .search-inputs,
    .intro-grid,
    .hero-content,
    .culture-grid,
    .property-main,
    .heritage-grid {
        grid-template-columns: 1fr;
    }

    .search-inputs { max-width: 600px; }

    .filter-row {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .filter-wide { grid-column: span 2; }

    .dashboard-layout {
        grid-template-columns: 220px 1fr;
    }
}

/* ── Responsive 768px ──────────────────────────────── */
@media (max-width: 768px) {

    /* Full-width mobile container */
    .container {
        padding: 0 16px;
    }

    /* Dashboard, auth, form sections go edge-to-edge */
    .dashboard .container,
    .form-section .container,
    .property-details .container {
        padding: 0;
        max-width: 100%;
    }

    /* Navbar */
    .navbar .container {
        flex-wrap: wrap;
        padding: 10px 16px;
        gap: 0;
    }

    .navbar-toggle { display: flex; align-items: center; }

    .navbar-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 6px 0 12px;
    }

    .navbar-menu.open { display: flex; }
    .navbar-menu li { width: 100%; }

    .navbar-menu > li > a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,.1);
        border-bottom-color: rgba(255,255,255,.1) !important;
    }

    .nav-dropdown:hover .dropdown-menu { display: none; }

    .nav-dropdown.open .dropdown-menu {
        display: block;
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(255,255,255,.08);
        min-width: 0;
    }

    .nav-dropdown.open .dropdown-menu a {
        color: #fff;
        padding: 10px 18px;
    }

    .navbar-brand img { width: 140px; }

    /* Hero */
    .hero { min-height: 0; padding: 64px 16px 90px; }
    .hero-content p:not(.eyebrow) { font-size: 16px; }
    .hero-agent-card { display: none; }
    .hero-trust { flex-direction: column; align-items: stretch; }
    .hero-trust span { justify-content: center; }

    .toronto-skyline { height: 110px; bottom: 40px; }
    .toronto-skyline .tower { height: 108px; }
    .toronto-skyline .tower::after { top: 28px; width: 50px; }

    /* Dashboard – full-width single column */
    .dashboard { padding: 0; }

    .dashboard-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .dashboard-sidebar {
        border-radius: 0;
        position: static;
        border-left: none;
        border-right: none;
        border-top: none;
    }

    .dashboard-content {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        padding: 20px 16px;
        box-shadow: none;
    }

    /* Properties / content grids */
    .properties-grid,
    .property-specs-detail,
    .property-source-details,
    .form-row {
        grid-template-columns: 1fr;
    }

    .info-grid, .stats-grid {
        grid-template-columns: repeat(2,1fr);
    }

    /* Property detail */
    .property-details { padding: 18px 0 16px; }
    .property-details .container { padding: 0; }
    .back-link { margin: 0 16px 16px; }

    .property-gallery > img:first-child {
        height: 62vw;
        min-height: 220px;
        max-height: 340px;
        border-radius: 0;
    }

    .property-gallery { gap: 8px; }

    .thumbnail-gallery {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 0 16px 4px;
        scroll-snap-type: x proximity;
    }

    .thumbnail-gallery img {
        flex: 0 0 72px;
        height: 60px;
        scroll-snap-align: start;
    }

    .property-info { padding: 16px; border-radius: 0; border-left: none; border-right: none; }
    .property-info h1 { font-size: 24px; }
    .property-price { font-size: 21px; }
    .property-specs-detail { padding: 14px; margin: 18px 0; }
    .property-source-details { margin: -6px 0 20px; }

    .map-heading { flex-direction: column; align-items: flex-start; padding: 14px 16px; }
    .property-map-card iframe { height: 240px; }
    .map-heading .btn-small, .contact-actions a, .inquiry-form .btn-primary { width: 100%; }

    .description-section, .searchable-features, .agent-card { padding: 14px 16px; }

    /* Filter / forms */
    .filter-form { padding: 16px; border-radius: 0; }
    .inquiry-section { padding: 20px 16px; }

    /* Auth full-width on mobile */
    .auth-container { padding: 0; align-items: flex-start; }
    .auth-form {
        max-width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        box-shadow: none;
        padding: 24px 16px;
    }

    .culture-points { grid-template-columns: 1fr; }
    .culture-image  { min-height: 280px; }
    .culture-image > img:first-child { height: 280px; }
    .maple-leaf-mark { right: 10px; width: 80px; }

    .heritage-grid { grid-template-columns: 1fr; }

    /* Section paddings */
    .filters-section,
    .featured-properties,
    .properties-section,
    .heritage-band,
    .intro-band,
    .culture-section {
        padding-left: 0;
        padding-right: 0;
    }

    .filters-section .container,
    .featured-properties .container,
    .properties-section .container,
    .heritage-band .container,
    .intro-band .container,
    .culture-section .container {
        padding: 0 16px;
    }
}

/* ── Responsive 480px ──────────────────────────────── */
@media (max-width: 480px) {

    .container { padding: 0 12px; }

    .filter-row { grid-template-columns: 1fr; }
    .filter-wide { grid-column: auto; }

    .search-inputs {
        max-width: 100%;
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 8px;
    }

    .hero { padding: 48px 12px 68px; }
    .hero-content h1 { font-size: clamp(30px,9vw,44px); }

    .info-grid, .stats-grid { grid-template-columns: 1fr; }

    .btn-primary, .btn-secondary, .btn-whatsapp {
        padding: 11px 16px;
        font-size: 14px;
    }

    .footer { padding: 32px 12px 16px; }

    .dashboard-content { padding: 16px 12px; }

    .property-form, .form-container { padding: 16px 12px; border-radius: 0; box-shadow: none; }

    .filters-section .container,
    .featured-properties .container,
    .properties-section .container,
    .heritage-band .container,
    .intro-band .container,
    .culture-section .container {
        padding: 0 12px;
    }
}
