/* ============================================
   Chirie.MD — Main Stylesheet
   Swiss Modern · Ultramarine Accent
   SHARP corners · Syne headings · Inter body
   ============================================ */

/* --- Reset & Variables --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #F4F3EF;
    --bg-alt: #EBE9E4;
    --white: #FFFFFF;
    --jet: #1A1A1A;
    --jet-light: #4A4A4A;
    --smoke: #8A8680;
    --smoke-dark: #6B6760;
    --ultramarine: #2A5C8A;
    --ultramarine-light: #3A7CB8;
    --ultramarine-dark: #1E4265;
    --teal: #2B7A78;
    --teal-light: #3A9C98;
    --wheat: #D4A36A;
    --wheat-light: #E0B88A;
    --slate: #D1CCC4;
    --slate-light: #E3DFD9;
    --slate-dark: #A8A39B;
    --error: #B34A4A;
    --error-light: #FEF2F2;
    --success: #2B7A78;
    --success-light: #E8F5E9;
    --warning-light: #FFF8E1;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-display: 'Syne', sans-serif;
    --radius: 0px;
    --shadow: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
}

html { overflow-x: hidden; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--jet-light);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--ultramarine); text-decoration: none; }
a:hover { color: var(--ultramarine-light); }

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

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--jet);
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.accent { color: var(--ultramarine); }

/* ============================================
   TOP NAVIGATION
   ============================================ */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--slate);
}

.top-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon { font-size: 1.5rem; line-height: 1; }

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--jet);
}

.logo-accent { color: var(--ultramarine); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--jet-light);
    text-decoration: none;
    transition: color 0.15s;
}

.nav-link:hover { color: var(--ultramarine); }

.nav-link-muted { color: var(--smoke); }
.nav-link-muted:hover { color: var(--jet); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--jet);
    line-height: 0;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 0.5rem 0;
    border-top: 1px solid var(--slate-light);
}

.mobile-menu.open { display: flex; }

.mobile-link {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--jet-light);
    text-decoration: none;
    transition: background 0.15s;
}

.mobile-link:hover {
    background: var(--bg);
    color: var(--ultramarine);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: 4rem 0 3rem;
    background: linear-gradient(to bottom, var(--white), var(--bg));
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--smoke);
    max-width: 550px;
    margin: 0 auto 2rem;
}

.hero-search {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.hero-cta {
    margin-top: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--slate);
    font-size: 0.9375rem;
    font-family: var(--font-body);
    background: var(--white);
    outline: none;
    transition: border-color 0.15s;
}

.search-input:focus { border-color: var(--ultramarine); }
.search-input::placeholder { color: var(--smoke); }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 3rem 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

/* ============================================
   DISTRICT GRID
   ============================================ */
.district-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
}

.district-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--slate);
    text-decoration: none;
    transition: all 0.15s ease;
}

.district-card:hover {
    border-color: var(--ultramarine);
    color: var(--ultramarine);
}

.district-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--jet);
    text-align: center;
}

.district-card:hover .district-name { color: var(--ultramarine); }

/* ============================================
   PROPERTY GRID & CARDS
   ============================================ */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.property-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--slate);
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
    overflow: hidden;
}

.property-card:hover {
    border-color: var(--ultramarine);
    box-shadow: var(--shadow-md);
}

.card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--slate-light);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--smoke);
}

.card-price {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background: var(--jet);
    color: var(--white);
    padding: 0.25rem 0.625rem;
    font-weight: 700;
    font-size: 0.875rem;
    font-family: var(--font-display);
}

.card-district {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--white);
    color: var(--jet);
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.card-body {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.card-title {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--jet);
    line-height: 1.3;
}

.card-details {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--smoke);
}

/* ============================================
   FILTERS BAR
   ============================================ */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: end;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--slate);
    margin-bottom: 1.5rem;
}

.filter-input { flex: 1; min-width: 180px; }
.filter-select { width: auto; min-width: 140px; }
.filter-input-sm { width: 110px; min-width: 110px; }
.filter-select-sm { width: auto; min-width: 110px; }

.result-count {
    font-size: 0.875rem;
    color: var(--smoke);
    margin-bottom: 1rem;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.page-link,
.page-current,
.page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    font-size: 0.9rem;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
}

.page-link {
    background: var(--white);
    color: var(--jet);
    border: 1px solid var(--slate);
    transition: all 0.15s;
}

.page-link:hover {
    background: var(--ultramarine);
    color: var(--white);
    border-color: var(--ultramarine);
}

.page-current {
    background: var(--ultramarine);
    color: var(--white);
    font-weight: 600;
    border: 1px solid var(--ultramarine);
}

.page-dots {
    color: var(--smoke);
    border: none;
    background: none;
}

/* ============================================
   TRUST GRID
   ============================================ */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.trust-card {
    background: var(--white);
    border: 1px solid var(--slate);
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.15s;
}

.trust-card:hover {
    border-color: var(--ultramarine);
}

.trust-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.trust-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.trust-card p {
    font-size: 0.875rem;
    color: var(--smoke);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border: 2px solid var(--ultramarine);
    background: var(--ultramarine);
    color: var(--white);
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    line-height: 1;
}

.btn:hover {
    background: var(--ultramarine-light);
    border-color: var(--ultramarine-light);
    color: var(--white);
}

.btn:active {
    transform: scale(0.97);
}

.btn-outline {
    background: transparent;
    color: var(--ultramarine);
}

.btn-outline:hover {
    background: var(--ultramarine);
    color: var(--white);
}

.btn-sm {
    padding: 0.4rem 0.875rem;
    font-size: 0.8rem;
}

.btn-xs {
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
}

.btn-full { width: 100%; }

.btn-danger {
    border-color: var(--error);
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: #C95D5D;
    border-color: var(--error);
}

/* ============================================
   AUTH PAGE
   ============================================ */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 3.5rem - 150px);
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--white);
    border: 1px solid var(--slate);
    padding: 2rem;
}

.auth-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.auth-links a {
    color: var(--smoke);
}

.auth-links a:last-child {
    color: var(--ultramarine);
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--smoke);
}

.auth-switch a {
    color: var(--ultramarine);
    font-weight: 500;
}

/* ============================================
   FORMS
   ============================================ */
.form-page { max-width: 700px; }

.form-section { margin-bottom: 2rem; }

.form-section h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--slate-light);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--jet);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 2px solid var(--slate);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--jet);
    outline: none;
    transition: border-color 0.15s;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--ultramarine);
}

.form-input::placeholder {
    color: var(--smoke-dark);
}

.form-select {
    cursor: pointer;
    appearance: auto;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--smoke);
    margin-top: 0.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

.form {
    display: flex;
    flex-direction: column;
}

.delete-form {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--slate-light);
}

.property-form {
    display: flex;
    flex-direction: column;
}

/* --- Checkboxes & Radios --- */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem 0;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--ultramarine);
    width: 1rem;
    height: 1rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9375rem;
    padding: 0.25rem 0;
}

.radio-label input[type="radio"] {
    accent-color: var(--ultramarine);
    width: 1rem;
    height: 1rem;
}

/* --- Upload Zone --- */
.upload-zone {
    border: 2px dashed var(--slate);
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    background: var(--bg);
    margin-bottom: 0.5rem;
}

.upload-zone.dragover {
    border-color: var(--ultramarine);
    background: var(--ultramarine);
    color: white;
}

.upload-placeholder { color: var(--smoke); }
.upload-placeholder svg { margin-bottom: 0.5rem; display: inline-block; }
.upload-placeholder p { font-weight: 600; color: var(--jet); }
.upload-placeholder span { font-size: 0.8125rem; }

.upload-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid var(--slate);
    overflow: hidden;
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.7);
    font-size: 1.5rem;
}

.preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    background: var(--jet);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-error {
    background: var(--error-light);
    color: var(--error);
    border-color: #FEE2E2;
}

.alert-success {
    background: var(--success-light);
    color: #166534;
    border-color: #DCFCE7;
}

/* ============================================
   DETAIL PAGE
   ============================================ */
.detail-container { max-width: 1000px; }

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.detail-gallery {
    min-width: 0;
}

.gallery-main {
    border: 1px solid var(--slate);
    overflow: hidden;
    margin-bottom: 0.5rem;
    background: var(--slate-light);
}

.gallery-main img {
    width: 100%;
    display: block;
}

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: var(--slate-light);
    color: var(--smoke);
    gap: 0.5rem;
}

.gallery-thumbs {
    display: flex;
    gap: 0.375rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: var(--slate) transparent;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--slate);
}

.thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border: 2px solid var(--slate);
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.15s;
    flex-shrink: 0;
}

.thumb:hover {
    opacity: 1;
    border-color: var(--ultramarine);
}

.detail-info {
    min-width: 0;
}

.detail-header { margin-bottom: 1rem; }

.detail-title {
    font-size: 1.5rem;
    margin-bottom: 0.375rem;
}

.detail-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ultramarine);
    font-family: var(--font-display);
}

.detail-price-period {
    font-size: 0.875rem;
    color: var(--smoke);
    font-weight: 400;
    font-family: var(--font-body);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--smoke);
}

.detail-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.amenity {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--ultramarine);
    color: var(--white);
    line-height: 1.4;
}

.detail-section { margin-bottom: 1.5rem; }

.detail-section h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    color: var(--jet);
}

.detail-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--jet-light);
    white-space: pre-wrap;
}

.detail-owner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--slate);
    margin-bottom: 1rem;
}

.owner-avatar {
    width: 40px;
    height: 40px;
    background: var(--ultramarine);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.owner-phone {
    color: var(--ultramarine);
    font-weight: 500;
    font-size: 0.9rem;
}

.detail-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.inquiry-form {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--slate);
}

.inquiry-form h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.back-link {
    display: inline-block;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    color: var(--smoke);
}

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

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-header { margin-bottom: 2rem; }

.dashboard-role {
    font-size: 1rem;
    color: var(--smoke);
    margin-top: 0.25rem;
}

.dashboard-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--slate);
}

.tab-btn {
    padding: 0.625rem 1.25rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--smoke);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--jet-light);
}

.tab-btn.active {
    color: var(--ultramarine);
    border-bottom-color: var(--ultramarine);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.tab-header h2 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--jet);
}

/* --- Mini List (Dashboard) --- */
.mini-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mini-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 1px solid var(--slate);
    transition: border-color 0.15s;
    gap: 0.75rem;
}

.mini-item:hover {
    border-color: var(--slate-dark);
}

.mini-unread {
    background: #F0F4FF;
    border-left: 3px solid var(--ultramarine);
}

.mini-info { flex: 1; min-width: 0; }

.mini-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--jet);
    text-decoration: none;
    display: block;
}

.mini-title:hover {
    color: var(--ultramarine);
}

.mini-meta {
    display: block;
    font-size: 0.8125rem;
    color: var(--smoke);
    margin-top: 0.125rem;
}

.mini-desc {
    font-size: 0.8125rem;
    color: var(--jet);
    margin-top: 0.25rem;
    line-height: 1.4;
}

.mini-status {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.375rem;
}

.mini-actions {
    display: flex;
    gap: 0.375rem;
    flex-shrink: 0;
}

/* --- Status Colors --- */
.status-active { color: var(--teal); }
.status-rented { color: var(--ultramarine); }
.status-inactive { color: var(--smoke); }
.status-signed { color: var(--ultramarine); }
.status-ended { color: var(--smoke); }
.status-terminated { color: var(--error); }

/* --- Badges --- */
.badge-unread {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc3545;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    vertical-align: middle;
    line-height: 1;
}

.verified-badge {
    display: inline-block;
    background: var(--success-light);
    color: #155724;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* ============================================
   REVIEWS
   ============================================ */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.review-card {
    background: var(--white);
    border: 1px solid var(--slate);
    padding: 1rem;
    transition: border-color 0.15s;
}

.review-card:hover {
    border-color: var(--slate-dark);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.review-header strong {
    font-size: 0.9375rem;
    color: var(--jet);
}

.review-comment {
    color: var(--jet-light);
    font-size: 0.9rem;
    margin: 0.375rem 0;
    line-height: 1.5;
}

.review-date {
    font-size: 0.8rem;
    color: var(--smoke);
}

/* ============================================
   PROFILE / VERIFY
   ============================================ */
.profile-verify {
    margin: 1rem 0 2rem;
}

.verify-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.verify-done {
    background: var(--success-light);
    color: #155724;
    border-color: #DCFCE7;
}

.verify-pending {
    background: var(--warning-light);
    color: #856404;
    border-color: #FFEBA6;
}

.verify-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1;
}

.verify-done .verify-icon {
    background: #155724;
    color: white;
}

.verify-pending .verify-icon {
    background: #856404;
    color: white;
}

/* ============================================
   MAP PAGE
   ============================================ */
.map-page {
    display: flex;
    flex-direction: column;
}

.map-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem;
}

.map-filters select,
.map-filters input {
    max-width: 180px;
}

.map-container {
    height: 550px;
    border: 1px solid var(--slate);
    background: var(--slate-light);
}

.map-popup-img {
    width: 200px;
    height: 130px;
    object-fit: cover;
    margin-bottom: 0.25rem;
}

.map-popup-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--jet);
}

.map-popup-price {
    color: var(--ultramarine);
    font-weight: 600;
}

.map-popup-body {
    min-width: 180px;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--smoke);
}

.empty-state p {
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.empty-state .btn {
    margin-top: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    margin-top: auto;
    background: var(--jet);
    color: var(--white);
    padding: 2rem 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.8125rem;
    color: #888;
    margin-top: 0.25rem;
    max-width: 350px;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #aaa;
    font-size: 0.875rem;
    transition: color 0.15s;
}

.footer-link:hover {
    color: white;
}

.footer-copy {
    font-size: 0.75rem;
    color: #666;
}

/* ============================================
   PROSE (About Page)
   ============================================ */
.prose {
    max-width: 700px;
}

.prose h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.prose h2 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--jet);
}

.prose p {
    margin-bottom: 1rem;
}

.prose ul {
    margin: 0 0 1rem 1.5rem;
}

.prose li {
    margin-bottom: 0.25rem;
}

/* ============================================
   UTILITY
   ============================================ */
.hidden { display: none; }

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ============================================
   404 Specific
   ============================================ */
.error-page {
    padding: 6rem 1rem;
    text-align: center;
}

.error-page h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.error-page p {
    color: var(--smoke);
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* ============================================
   INLINE / OVERRIDE SUPPRESSION
   Templates use no inline styles — all CSS here
   ============================================ */

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

/* --- Tablet (max-width: 768px) --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }

    .mobile-menu.open { display: flex; }

    .hero {
        padding: 3rem 0 2rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }

    .hero-sub {
        font-size: 0.9375rem;
    }

    .hero-search {
        flex-direction: column;
        max-width: 100%;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-title {
        font-size: 1.25rem;
    }

    .detail-price {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-row-4 {
        grid-template-columns: 1fr 1fr;
    }

    .filters-bar {
        flex-direction: column;
    }

    .filter-input,
    .filter-select,
    .filter-input-sm,
    .filter-select-sm {
        width: 100%;
        min-width: unset;
    }

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

    .district-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .section-title {
        font-size: 1.25rem;
    }

    .page-title {
        font-size: 1.35rem;
    }

    .dashboard-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0;
    }

    .dashboard-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    .mini-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .mini-actions {
        align-self: stretch;
        justify-content: flex-start;
    }

    .mini-actions .btn {
        flex: 1;
    }

    .map-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .map-filters select,
    .map-filters input {
        max-width: none;
    }

    .map-container {
        height: 400px;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .auth-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .gallery-thumbs {
        gap: 0.25rem;
    }

    .thumb {
        width: 56px;
        height: 42px;
    }

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

    .pagination {
        gap: 0.2rem;
    }

    .page-link,
    .page-current,
    .page-dots {
        min-width: 32px;
        height: 32px;
        font-size: 0.8125rem;
    }

    .section {
        padding: 2rem 0;
    }

    .card-image {
        height: 160px;
    }

    .detail-layout.detail-layout--single {
        grid-template-columns: 1fr;
    }
}

/* --- Phone (max-width: 480px) --- */
@media (max-width: 480px) {
    .top-nav-inner {
        height: 3rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo-icon {
        font-size: 1.25rem;
    }

    .hero {
        padding: 2rem 0 1.5rem;
    }

    .hero-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .hero-sub {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }

    .hero-search {
        gap: 0.375rem;
    }

    .section {
        padding: 1.5rem 0;
    }

    .section-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .page-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .property-grid {
        gap: 0.75rem;
    }

    .card-image {
        height: 140px;
    }

    .district-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .district-card {
        padding: 0.75rem 0.5rem;
    }

    .district-name {
        font-size: 0.8125rem;
    }

    .form-row-4 {
        grid-template-columns: 1fr;
    }

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

    .filters-bar {
        padding: 0.75rem;
    }

    .dashboard-tabs {
        margin-bottom: 1.5rem;
    }

    .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .mini-item {
        padding: 0.625rem 0.75rem;
    }

    .detail-container {
        padding: 0 0.75rem;
    }

    .detail-meta {
        gap: 0.5rem;
        font-size: 0.8125rem;
    }

    .detail-owner {
        flex-direction: column;
        text-align: center;
    }

    .detail-actions {
        flex-direction: column;
    }

    .detail-actions .btn,
    .detail-actions .btn-outline {
        width: 100%;
    }

    .gallery-placeholder {
        height: 200px;
    }

    .thumb {
        width: 48px;
        height: 36px;
    }

    .footer-links {
        gap: 1rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .auth-title {
        font-size: 1.25rem;
    }

    .map-container {
        height: 300px;
    }

    .trust-card {
        padding: 1rem;
    }

    .pagination {
        gap: 0.15rem;
    }

    .page-link,
    .page-current,
    .page-dots {
        min-width: 28px;
        height: 28px;
        font-size: 0.75rem;
        padding: 0 0.375rem;
    }

    .btn {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
    }

    .btn-sm {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .btn-xs {
        font-size: 0.6875rem;
        padding: 0.2rem 0.5rem;
    }

    .btn-lg {
        font-size: 0.9375rem;
        padding: 0.625rem 1.25rem;
    }

    .empty-state {
        padding: 2rem 0.75rem;
    }

    .prose h1 {
        font-size: 1.5rem;
    }

    .gallery-thumbs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .review-card {
        padding: 0.75rem;
    }

    .upload-zone {
        padding: 1.5rem 0.75rem;
    }

    .preview-item {
        width: 80px;
        height: 80px;
    }

    .form-row {
        gap: 0.75rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .inquiry-form {
        padding: 0.75rem;
    }

    .tab-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .tab-header .btn {
        width: 100%;
    }
}
