/* ============================================================
   Agency Exchange — Main Stylesheet
   Theme: Clean & Modern · White + Deep Green
   ============================================================ */

/* ── Custom Properties ─────────────────────── */
:root {
  --green-950: #0D2E16;
  --green-900: #1B4332;
  --green-800: #2C5F2E;
  --green-700: #3A7D44;
  --green-500: #52B788;
  --green-200: #B7E4C7;
  --green-100: #D8F3DC;
  --green-50:  #F0FBF4;
  --white:     #FFFFFF;
  --gray-50:   #F9FAFB;
  --gray-100:  #F3F4F6;
  --gray-200:  #E5E7EB;
  --gray-300:  #D1D5DB;
  --gray-400:  #9CA3AF;
  --gray-500:  #6B7280;
  --gray-600:  #4B5563;
  --gray-700:  #374151;
  --gray-800:  #1F2937;
  --gray-900:  #111827;
  --sale-bg:   #EFF6FF;
  --sale-txt:  #1D4ED8;
  --let-bg:    #F0FDF4;
  --let-txt:   #15803D;
  --offer-bg:  #FFFBEB;
  --offer-txt: #B45309;
  --sold-bg:   #FEF2F2;
  --sold-txt:  #DC2626;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.06);
  --transition: 200ms ease;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-800); text-decoration: none; }
a:hover { color: var(--green-700); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
input, select, textarea { font-family: var(--font-body); }

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

/* ── Header ────────────────────────────────── */
.ae-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.ae-header.scrolled { box-shadow: var(--shadow-md); }
.ae-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.ae-header-offset { height: 68px; }

/* Logo */
.ae-header__logo { display: flex; align-items: center; text-decoration: none; margin-right: 8px; }
.ae-logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--green-800);
  letter-spacing: -.3px;
}
.ae-logo-text strong { font-weight: 600; color: var(--green-900); }
.ae-footer__logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--white);
  opacity: .9;
}
.ae-footer__logo strong { font-weight: 600; }

/* Nav */
.ae-header__nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.ae-header__nav--public { margin-left: auto; flex: none; }
.ae-nav__link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.ae-nav__link:hover { color: var(--green-800); background: var(--green-50); }
.ae-nav__link.is-active { color: var(--green-800); background: var(--green-50); font-weight: 600; }
.ae-nav__link--cta {
  background: var(--green-800);
  color: var(--white) !important;
  padding: 8px 16px;
  margin-left: 8px;
}
.ae-nav__link--cta:hover { background: var(--green-700) !important; }

/* User menu */
.ae-header__user { margin-left: auto; position: relative; }
.ae-user-menu { position: relative; }
.ae-user-menu__trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 50px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-size: 14px;
  color: var(--gray-700);
}
.ae-user-menu__trigger:hover { border-color: var(--green-500); box-shadow: 0 0 0 3px var(--green-50); }
.ae-user-avatar {
  width: 30px; height: 30px;
  background: var(--green-800);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.ae-user-name { font-weight: 500; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ae-user-menu__dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  z-index: 100;
  display: none;
  overflow: hidden;
}
.ae-user-menu__dropdown.is-open { display: block; animation: fadeInDown .15s ease; }
@keyframes fadeInDown { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
.ae-user-menu__header { padding: 14px 16px 12px; border-bottom: 1px solid var(--gray-100); }
.ae-user-menu__header strong { display: block; font-size: 14px; color: var(--gray-900); }
.ae-user-menu__header small { color: var(--gray-500); font-size: 12px; }
.ae-user-menu__item {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--gray-700);
  transition: background var(--transition), color var(--transition);
}
.ae-user-menu__item:hover { background: var(--gray-50); color: var(--gray-900); }
.ae-user-menu__divider { height: 1px; background: var(--gray-100); margin: 4px 0; }
.ae-user-menu__item--logout { color: #DC2626; }
.ae-user-menu__item--logout:hover { background: #FEF2F2; color: #DC2626; }

/* Hamburger */
.ae-hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; border-radius: var(--radius-sm); }
.ae-hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: all .2s; }

/* ── Buttons ────────────────────────────────── */
.ae-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.ae-btn--primary { background: var(--green-800); color: var(--white); border: 2px solid var(--green-800); }
.ae-btn--primary:hover { background: var(--green-700); border-color: var(--green-700); color: var(--white); }
.ae-btn--outline { background: transparent; color: var(--green-800); border: 2px solid var(--green-800); }
.ae-btn--outline:hover { background: var(--green-50); }
.ae-btn--ghost { background: transparent; color: var(--gray-700); border: 2px solid var(--gray-300); }
.ae-btn--ghost:hover { background: var(--gray-50); border-color: var(--gray-400); }
.ae-btn--danger { background: #FEF2F2; color: #DC2626; border: 2px solid #FECACA; }
.ae-btn--danger:hover { background: #FEE2E2; }
.ae-btn--white { background: var(--white); color: var(--green-900); border: 2px solid var(--white); }
.ae-btn--white:hover { background: var(--green-50); }
.ae-btn--ghost-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.ae-btn--ghost-white:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.ae-btn--lg { padding: 14px 28px; font-size: 15px; }
.ae-btn--md { padding: 10px 20px; font-size: 14px; }
.ae-btn--sm { padding: 6px 14px; font-size: 13px; }
.ae-btn--full { width: 100%; }

/* ── Badges ─────────────────────────────────── */
.ae-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.badge--sale, .ae-badge--sale { background: var(--sale-bg); color: var(--sale-txt); }
.badge--let,  .ae-badge--let  { background: var(--let-bg);  color: var(--let-txt);  }
.ae-badge--avail  { background: var(--green-100); color: var(--green-800); }
.ae-badge--status { font-size: 11px; }
.status--available  { background: var(--green-100); color: var(--green-800); }
.status--offer      { background: var(--offer-bg);  color: var(--offer-txt); }
.status--sold       { background: var(--sold-bg);   color: var(--sold-txt);  }
.status--let-agreed { background: var(--offer-bg);  color: var(--offer-txt); }

/* ── Forms ─────────────────────────────────── */
.ae-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.ae-input:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(82,183,136,.15); }
.ae-input--error { border-color: #EF4444; }
.ae-input--sm { padding: 8px 12px; font-size: 13px; }
.ae-textarea { resize: vertical; min-height: 120px; }
.ae-form__group { display: flex; flex-direction: column; gap: 6px; }
.ae-form__label { font-size: 14px; font-weight: 600; color: var(--gray-700); display: flex; justify-content: space-between; align-items: center; }
.ae-form__label-link { font-weight: 400; font-size: 13px; color: var(--green-700); }
.ae-form__hint { font-size: 12px; color: var(--gray-400); }
.ae-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ae-form__terms { font-size: 12px; color: var(--gray-400); text-align: center; line-height: 1.5; }
.ae-form__terms a { color: var(--green-700); }
.ae-req { color: #EF4444; }
.ae-checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; color: var(--gray-700); }
.ae-checkbox input { width: 16px; height: 16px; accent-color: var(--green-800); }
.ae-checkboxes { display: flex; gap: 24px; flex-wrap: wrap; }
.ae-input-prefix { display: flex; }
.ae-input-prefix span {
  display: flex; align-items: center;
  padding: 10px 12px;
  background: var(--gray-100);
  border: 1.5px solid var(--gray-300);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 14px; font-weight: 600; color: var(--gray-600);
  white-space: nowrap;
}
.ae-input-prefix .ae-input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* Alerts */
.ae-alert {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 20px;
}
.ae-alert--error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.ae-alert--error ul { margin-top: 6px; padding-left: 16px; list-style: disc; }
.ae-alert--success { background: var(--green-50); color: var(--green-900); border: 1px solid var(--green-200); }
.ae-alert--warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }

/* ── Toggle group (filter buttons) ─────────── */
.ae-toggle-group { display: flex; gap: 6px; flex-wrap: wrap; }
.ae-toggle {
  padding: 6px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--gray-300);
  font-size: 13px; font-weight: 500;
  color: var(--gray-600);
  background: var(--white);
  transition: all var(--transition);
}
.ae-toggle:hover { border-color: var(--green-500); color: var(--green-800); }
.ae-toggle.active { background: var(--green-800); border-color: var(--green-800); color: var(--white); }

/* ── Hero ───────────────────────────────────── */
.ae-hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.ae-hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--green-950) 0%, var(--green-800) 50%, var(--green-700) 100%);
}
.ae-hero__bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 70% 30%, rgba(82,183,136,.15) 0%, transparent 60%),
                    radial-gradient(circle at 20% 80%, rgba(255,255,255,.05) 0%, transparent 40%);
}
.ae-hero__bg::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(to top, var(--white), transparent);
}
.ae-hero__content {
  position: relative; z-index: 1;
  padding: 80px 24px;
  max-width: 680px;
}
.ae-hero__badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  color: rgba(255,255,255,.9);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 28px;
}
.ae-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}
.ae-hero__headline em { font-style: italic; color: var(--green-200); }
.ae-hero__sub {
  font-size: 17px;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}
.ae-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.ae-hero__note { font-size: 13px; color: rgba(255,255,255,.5); }

/* ── Stats bar ─────────────────────────────── */
.ae-stats-bar { padding: 32px 0; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.ae-stats-bar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.ae-stats-bar__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 24px;
  text-align: center;
  border-right: 1px solid var(--gray-200);
}
.ae-stats-bar__item:last-child { border-right: none; }
.ae-stats-bar__item strong { display: block; font-size: 26px; font-family: var(--font-display); font-weight: 600; color: var(--green-800); }
.ae-stats-bar__item span { font-size: 13px; color: var(--gray-500); margin-top: 2px; }

/* ── How it works ──────────────────────────── */
.ae-how { padding: 96px 0; background: var(--white); }
.ae-section-header { text-align: center; margin-bottom: 60px; }
.ae-section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.ae-section-header p { font-size: 16px; color: var(--gray-500); max-width: 480px; margin: 0 auto; }
.ae-how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.ae-how__step {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition), transform var(--transition);
}
.ae-how__step:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.ae-how__icon {
  width: 60px; height: 60px;
  background: var(--green-800);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  margin: 0 auto 24px;
}
.ae-how__step h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; color: var(--gray-900); }
.ae-how__step p { font-size: 14px; color: var(--gray-500); line-height: 1.7; }

/* ── Features ──────────────────────────────── */
.ae-features { padding: 96px 0; background: var(--green-50); }
.ae-features__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.ae-features__content h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gray-900);
}
.ae-features__content p { font-size: 15px; color: var(--gray-600); margin-bottom: 28px; line-height: 1.7; }
.ae-features__list { margin-bottom: 36px; display: flex; flex-direction: column; gap: 14px; }
.ae-features__list li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--gray-700); font-weight: 500; }
.ae-features__visual { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 20px 0; }
.ae-mock-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform .3s;
  width: 90%;
}
.ae-mock-card:hover { transform: translateY(-4px); }
.ae-mock-card--offset { margin-left: 10%; margin-top: -20px; }
.ae-mock-card__img {
  height: 160px;
  background: linear-gradient(135deg, var(--green-200), var(--green-500));
}
.ae-mock-card__img--2 {
  background: linear-gradient(135deg, #BFDBFE, #6366F1);
}
.ae-mock-card__body { padding: 16px; }
.ae-mock-card__badges { display: flex; gap: 6px; margin-bottom: 8px; }
.ae-mock-card__price { font-size: 20px; font-weight: 700; color: var(--gray-900); font-family: var(--font-display); }
.ae-mock-card__title { font-size: 14px; font-weight: 500; color: var(--gray-700); margin: 4px 0; }
.ae-mock-card__meta { font-size: 12px; color: var(--gray-400); margin-top: 8px; }

/* ── CTA section ───────────────────────────── */
.ae-cta { padding: 96px 0; background: var(--green-900); }
.ae-cta__inner { text-align: center; }
.ae-cta h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 48px); font-weight: 500; color: var(--white); margin-bottom: 16px; }
.ae-cta p { font-size: 16px; color: rgba(255,255,255,.7); margin-bottom: 36px; max-width: 480px; margin-left: auto; margin-right: auto; }
.ae-cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Property Archive ──────────────────────── */
.ae-archive-header { background: var(--green-900); padding: 56px 0 40px; }
.ae-archive-header__title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); font-weight: 500; color: var(--white); margin-bottom: 8px; }
.ae-archive-header__sub { color: rgba(255,255,255,.7); font-size: 15px; }

.ae-archive-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 64px;
  align-items: start;
}

/* Filters */
.ae-filters {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.ae-filters__header { display: flex; align-items: center; justify-content: space-between; }
.ae-filters__header h2 { font-size: 16px; font-weight: 700; color: var(--gray-800); }
.ae-filters__clear { font-size: 13px; color: var(--green-700); cursor: pointer; }
.ae-filters__clear:hover { text-decoration: underline; }
.ae-filters__group { display: flex; flex-direction: column; gap: 10px; }
.ae-filters__label { font-size: 13px; font-weight: 600; color: var(--gray-600); text-transform: uppercase; letter-spacing: .04em; }
.ae-price-range { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-500); }
.ae-price-range .ae-input { text-align: center; }

/* Results */
.ae-results { min-width: 0; }
.ae-results__meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
  font-size: 14px; color: var(--gray-500);
}
.ae-results__meta #ae-results-count strong { color: var(--gray-800); }
.ae-filters-toggle {
  display: none;
  align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; color: var(--gray-700);
  background: var(--white);
}

/* Property Grid */
.ae-property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Property Card */
.ae-property-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.ae-property-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-200);
}
.ae-property-card__img-wrap { display: block; position: relative; overflow: hidden; aspect-ratio: 3/2; flex-shrink: 0; }
.ae-property-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ae-property-card:hover .ae-property-card__img { transform: scale(1.04); }
.ae-property-card__img-placeholder {
  width: 100%; height: 100%;
  background: var(--green-50);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-200);
}
.ae-property-card__badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: 6px;
}
.ae-property-card__body { padding: 16px; flex: 1; }
.ae-property-card__price {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  color: var(--gray-900); margin-bottom: 6px;
}
.ae-property-card__title { font-size: 14px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.ae-property-card__title a { color: var(--gray-800); }
.ae-property-card__title a:hover { color: var(--green-800); }
.ae-property-card__location { font-size: 13px; color: var(--gray-500); margin-bottom: 10px; }
.ae-property-card__meta { display: flex; gap: 12px; font-size: 13px; color: var(--gray-500); }
.ae-property-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.ae-property-card__agency { font-size: 12px; color: var(--gray-500); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.ae-property-card__cta { font-size: 13px; font-weight: 600; color: var(--green-700); white-space: nowrap; }
.ae-property-card__cta:hover { color: var(--green-800); }

/* No results */
.ae-no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 24px;
  color: var(--gray-500);
}
.ae-no-results__icon { font-size: 48px; margin-bottom: 16px; }
.ae-no-results p { margin-bottom: 8px; }
.ae-no-results a { color: var(--green-700); }

/* Pagination */
.ae-pagination { text-align: center; margin-top: 40px; }

/* ── Single Property ───────────────────────── */
.ae-single-property { padding: 32px 0 80px; }
.ae-breadcrumb { margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.ae-breadcrumb a { color: var(--green-700); }
.ae-breadcrumb a:hover { color: var(--green-800); }
.ae-breadcrumb__ref { color: var(--gray-400); font-size: 13px; }
.ae-single__layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.ae-single__hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; background: var(--green-50); margin-bottom: 28px; }
.ae-single__hero-img { width: 100%; height: 100%; object-fit: cover; }
.ae-single__hero-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--green-200); font-size: 14px; }
.ae-single__hero-badges { position: absolute; top: 16px; left: 16px; display: flex; gap: 8px; }
.ae-single__headline { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.ae-single__title { font-family: var(--font-display); font-size: clamp(22px,3vw,36px); font-weight: 500; color: var(--gray-900); margin-bottom: 6px; }
.ae-single__address { font-size: 15px; color: var(--gray-500); }
.ae-single__price { font-family: var(--font-display); font-size: clamp(24px,3vw,36px); font-weight: 600; color: var(--green-800); white-space: nowrap; }
.ae-single__stats { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; padding: 20px; background: var(--gray-50); border-radius: var(--radius-md); border: 1px solid var(--gray-200); }
.ae-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.ae-stat__icon { font-size: 22px; }
.ae-stat strong { font-size: 20px; font-weight: 700; color: var(--gray-900); font-family: var(--font-display); }
.ae-stat small { font-size: 12px; color: var(--gray-500); }
.ae-single__features { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.ae-feature-pill {
  padding: 6px 14px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 50px;
  font-size: 13px; font-weight: 500;
  color: var(--green-800);
}
.ae-single__description { margin-bottom: 32px; }
.ae-single__description h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; color: var(--gray-900); }
.ae-single__description p { font-size: 15px; color: var(--gray-600); line-height: 1.75; }
.ae-single__owner-actions { display: flex; gap: 12px; padding-top: 24px; border-top: 1px solid var(--gray-200); }

/* Agent card */
.ae-agent-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 88px;
}
.ae-agent-card__header {
  display: flex; align-items: center; gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--gray-100);
}
.ae-agent-card__avatar {
  width: 44px; height: 44px;
  background: var(--green-800);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; flex-shrink: 0;
  font-family: var(--font-display);
}
.ae-agent-card__name { display: block; font-weight: 700; font-size: 15px; color: var(--gray-900); }
.ae-agent-card__agency { font-size: 13px; color: var(--gray-500); }
.ae-agent-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.ae-agent-card__label { font-size: 13px; color: var(--gray-500); margin-bottom: 4px; }
.ae-agent-card__footer {
  display: flex; justify-content: space-between;
  padding: 12px 20px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  font-size: 12px; color: var(--gray-400);
}

/* Property Summary table */
.ae-single__summary { margin-top: 20px; padding: 20px; background: var(--gray-50); border-radius: var(--radius-md); border: 1px solid var(--gray-200); }
.ae-single__summary h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); margin-bottom: 14px; }
.ae-summary-table { width: 100%; }
.ae-summary-table td { padding: 7px 0; font-size: 13px; border-bottom: 1px solid var(--gray-200); }
.ae-summary-table td:first-child { color: var(--gray-500); font-weight: 500; width: 50%; }
.ae-summary-table td:last-child { color: var(--gray-800); font-weight: 600; }
.ae-summary-table tr:last-child td { border-bottom: none; }

/* ── Dashboard ─────────────────────────────── */
.ae-dashboard { padding: 40px 0 80px; }
.ae-dash-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-bottom: 32px;
}
.ae-dash-header__title { font-family: var(--font-display); font-size: clamp(24px,3vw,36px); font-weight: 500; color: var(--gray-900); margin-bottom: 4px; }
.ae-dash-header__sub { font-size: 15px; color: var(--gray-500); }

.ae-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 28px; }
.ae-stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
  transition: box-shadow var(--transition);
}
.ae-stat-card:hover { box-shadow: var(--shadow-md); }
.ae-stat-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.ae-stat-card__icon--green  { background: var(--green-50); }
.ae-stat-card__icon--blue   { background: #EFF6FF; }
.ae-stat-card__icon--purple { background: #F5F3FF; }
.ae-stat-card__icon--orange { background: #FFF7ED; }
.ae-stat-card__num { font-size: 28px; font-weight: 700; color: var(--gray-900); font-family: var(--font-display); line-height: 1; }
.ae-stat-card__label { font-size: 13px; color: var(--gray-500); margin-top: 3px; }

.ae-quick-actions { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 40px; }
.ae-quick-action {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  text-align: center; text-decoration: none;
  transition: all var(--transition);
  gap: 6px;
}
.ae-quick-action:hover { border-color: var(--green-300); background: var(--green-50); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.ae-quick-action__icon { font-size: 28px; }
.ae-quick-action strong { font-size: 14px; font-weight: 700; color: var(--gray-800); }
.ae-quick-action small { font-size: 12px; color: var(--gray-400); }

.ae-dash-section { margin-top: 8px; }
.ae-dash-section__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.ae-dash-section__header h2 { font-size: 20px; font-weight: 700; color: var(--gray-900); }

/* Listings table */
.ae-listings-table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--gray-200); }
.ae-listings-table { width: 100%; border-collapse: collapse; }
.ae-listings-table th {
  padding: 12px 16px;
  text-align: left; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.ae-listings-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px; color: var(--gray-700);
  vertical-align: middle;
}
.ae-listings-table tr:last-child td { border-bottom: none; }
.ae-listings-table tr:hover td { background: var(--gray-50); }
.ae-listings-table__title { font-weight: 600; color: var(--gray-800); display: block; margin-bottom: 2px; }
.ae-listings-table__title:hover { color: var(--green-700); }
.ae-listings-table__loc { color: var(--gray-400); font-size: 12px; }
.ae-listings-table__price { font-weight: 700; color: var(--gray-900); font-family: var(--font-display); font-size: 15px; }
.ae-listings-table__date { color: var(--gray-400); font-size: 13px; white-space: nowrap; }
.ae-listings-table__actions { display: flex; gap: 8px; white-space: nowrap; }
.ae-table-btn {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600;
  background: var(--gray-100); color: var(--gray-700);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.ae-table-btn:hover { background: var(--green-50); color: var(--green-800); border-color: var(--green-200); }
.ae-table-btn--del { color: #DC2626; }
.ae-table-btn--del:hover { background: #FEF2F2; border-color: #FECACA; color: #DC2626; }

/* Dashboard empty state */
.ae-dash-empty {
  text-align: center;
  padding: 80px 24px;
  background: var(--gray-50);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-lg);
}
.ae-dash-empty__icon { font-size: 48px; margin-bottom: 16px; }
.ae-dash-empty h3 { font-size: 20px; font-weight: 700; color: var(--gray-700); margin-bottom: 8px; }
.ae-dash-empty p { color: var(--gray-400); margin-bottom: 20px; }

/* ── Auth pages ────────────────────────────── */
.ae-auth-page {
  min-height: calc(100vh - 68px);
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-50);
  padding: 48px 24px;
}
.ae-auth-container {
  width: 100%; max-width: 440px;
  display: flex; flex-direction: column; gap: 24px;
}
.ae-auth-container--wide { max-width: 640px; }
.ae-auth-brand { text-align: center; }
.ae-auth-logo {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 400;
  color: var(--green-800);
}
.ae-auth-logo strong { font-weight: 600; }
.ae-auth-brand p { font-size: 14px; color: var(--gray-500); margin-top: 6px; }
.ae-auth-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.ae-auth-card__title { font-family: var(--font-display); font-size: 28px; font-weight: 500; color: var(--gray-900); margin-bottom: 4px; }
.ae-auth-card__sub { font-size: 14px; color: var(--gray-500); margin-bottom: 28px; }
.ae-auth-card .ae-form { display: flex; flex-direction: column; gap: 18px; }
.ae-auth-card__footer { text-align: center; font-size: 14px; color: var(--gray-500); margin-top: 20px; }
.ae-auth-card__footer a { color: var(--green-700); font-weight: 600; }

/* ── Submit property page ──────────────────── */
.ae-submit-page { padding: 40px 0 80px; background: var(--gray-50); min-height: calc(100vh - 68px); }
.ae-submit-container { max-width: 1000px; }
.ae-submit-header { margin-bottom: 32px; }
.ae-back-link { display: inline-block; font-size: 14px; color: var(--gray-500); margin-bottom: 12px; }
.ae-back-link:hover { color: var(--green-700); }
.ae-submit-header h1 { font-family: var(--font-display); font-size: clamp(24px,3vw,36px); font-weight: 500; color: var(--gray-900); margin-bottom: 6px; }
.ae-submit-header p { font-size: 15px; color: var(--gray-500); }
.ae-submit-form { width: 100%; }
.ae-submit-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.ae-submit-form__col { display: flex; flex-direction: column; gap: 0; }
.ae-form-section {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 18px;
}
.ae-form-section__title { font-size: 16px; font-weight: 700; color: var(--gray-800); padding-bottom: 14px; border-bottom: 1px solid var(--gray-100); margin-bottom: 4px; }
.ae-submit-form__actions { gap: 12px; }

/* File upload */
.ae-file-upload { border: 2px dashed var(--gray-300); border-radius: var(--radius-md); overflow: hidden; transition: border-color var(--transition); }
.ae-file-upload:hover { border-color: var(--green-500); }
.ae-file-input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.ae-file-label {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 16px; cursor: pointer;
  color: var(--gray-500);
  transition: background var(--transition);
  gap: 8px;
}
.ae-file-label:hover { background: var(--green-50); color: var(--green-700); }
.ae-file-label strong { color: var(--green-700); }
.ae-file-label small { font-size: 12px; }
.ae-file-preview { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 12px; }
.ae-file-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--gray-200); }

/* ── Footer ────────────────────────────────── */
.ae-footer { background: var(--green-950); color: rgba(255,255,255,.8); padding: 64px 0 0; margin-top: 80px; }
.ae-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 48px; }
.ae-footer__brand p { font-size: 14px; line-height: 1.7; margin-top: 12px; color: rgba(255,255,255,.5); }
.ae-footer__links h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.4); margin-bottom: 14px; }
.ae-footer__links ul { display: flex; flex-direction: column; gap: 8px; }
.ae-footer__links li a { font-size: 14px; color: rgba(255,255,255,.7); transition: color var(--transition); }
.ae-footer__links li a:hover { color: var(--white); }
.ae-footer__contact h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.4); margin-bottom: 14px; }
.ae-footer__contact p { font-size: 14px; margin-bottom: 8px; }
.ae-footer__contact a { color: var(--green-200); }
.ae-footer__contact a:hover { color: var(--white); }
.ae-footer__note { font-size: 12px; color: rgba(255,255,255,.4) !important; }
.ae-footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px; color: rgba(255,255,255,.4);
}
.ae-footer__bottom a { color: rgba(255,255,255,.4); }
.ae-footer__bottom a:hover { color: rgba(255,255,255,.7); }
.ae-footer__uk { font-size: 13px; }

/* ── Error page ────────────────────────────── */
.ae-error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.ae-error-page__inner { text-align: center; }
.ae-error-page__code { font-family: var(--font-display); font-size: 120px; font-weight: 300; color: var(--gray-200); display: block; line-height: 1; }
.ae-error-page__inner h1 { font-size: 28px; color: var(--gray-800); margin-bottom: 8px; }
.ae-error-page__inner p { color: var(--gray-500); margin-bottom: 24px; }

/* ── Misc ───────────────────────────────────── */
.ae-page-content { padding: 60px 0 80px; max-width: 760px; }
.ae-page__title { font-family: var(--font-display); font-size: 36px; margin-bottom: 24px; }
.ae-page__body p { margin-bottom: 16px; color: var(--gray-600); line-height: 1.75; }

/* ── Responsive ────────────────────────────── */
@media (max-width: 1024px) {
  .ae-archive-layout { grid-template-columns: 260px 1fr; }
  .ae-stats-grid { grid-template-columns: repeat(2,1fr); }
  .ae-quick-actions { grid-template-columns: repeat(2,1fr); }
  .ae-features__grid { grid-template-columns: 1fr; }
  .ae-features__visual { display: none; }
  .ae-footer__grid { grid-template-columns: repeat(2,1fr); }
  .ae-single__layout { grid-template-columns: 1fr; }
  .ae-agent-card { position: static; }
  .ae-how__grid { grid-template-columns: 1fr; gap: 20px; }
  .ae-stats-bar__grid { grid-template-columns: repeat(2,1fr); gap: 0; }
}

@media (max-width: 768px) {
  .ae-archive-layout { grid-template-columns: 1fr; }
  .ae-filters { display: none; position: fixed; inset: 0; top: 68px; z-index: 200; border-radius: 0; overflow-y: auto; }
  .ae-filters.is-open { display: flex; }
  .ae-filters-toggle { display: flex; }
  .ae-header__nav:not(.ae-header__nav--public) { display: none; }
  .ae-header__nav--public { gap: 8px; }
  .ae-hamburger { display: flex; }
  .ae-header__user { display: none; }
  .ae-submit-form__grid { grid-template-columns: 1fr; }
  .ae-form__row { grid-template-columns: 1fr; }
  .ae-footer__grid { grid-template-columns: 1fr; }
  .ae-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .ae-stats-bar__grid { grid-template-columns: repeat(2,1fr); }
  .ae-stats-grid { grid-template-columns: repeat(2,1fr); }
  .ae-quick-actions { grid-template-columns: repeat(2,1fr); }
  .ae-dash-header { flex-direction: column; }
  .ae-listings-table th:nth-child(5),
  .ae-listings-table td:nth-child(5) { display: none; }
  .ae-single__headline { flex-direction: column; }
  .ae-auth-page { padding: 24px; align-items: flex-start; padding-top: 32px; }
  .ae-auth-card { padding: 24px; }
  .ae-hero__content { padding: 60px 24px; }
}

@media (max-width: 480px) {
  .ae-property-grid { grid-template-columns: 1fr; }
  .ae-stats-grid { grid-template-columns: 1fr 1fr; }
  .ae-quick-actions { grid-template-columns: 1fr 1fr; }
  .ae-stats-bar__grid { grid-template-columns: 1fr 1fr; }
}
