/* ═══════════════════════════════════════════════════════════════
   Atimelk — Premium RTL Design System
   Palette: Navy #1A365D · Gold #C9A96E · Cream #F9F9F8 · Charcoal #2D3748
   ═══════════════════════════════════════════════════════════════ */

/* ── Vazirmatn font ────────────────────────────────────────── */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/vazirmatn-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/vazirmatn-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/vazirmatn-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --navy:        #1A365D;
  --navy-dark:   #0F2B46;
  --navy-light:  #234578;
  --gold:        #C9A96E;
  --gold-light:  #D9BE8E;
  --gold-dark:   #A88847;
  --cream:       #F9F9F8;
  --cream-dark:  #F0EEE8;
  --white:       #FFFFFF;
  --charcoal:    #2D3748;
  --text-muted:  #718096;
  --border:      #E2E8F0;
  --border-dark: #CBD5E0;

  --shadow-xs: 0 1px 3px rgba(0,0,0,.07);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.09);
  --shadow-md: 0 4px 20px rgba(0,0,0,.11);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.14);
  --shadow-gold: 0 4px 20px rgba(201,169,110,.25);

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --container: 1200px;
  --gap:       1.5rem;

  --transition: .22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--cream);
  direction: rtl;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }
svg { display: inline-block; vertical-align: middle; }

/* ── Layout Utilities ──────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.section { padding-block: 5rem; }
.section-sm { padding-block: 3.5rem; }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
}
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--gold);
  margin-top: .4rem;
  border-radius: 2px;
}
.section-link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--gold-dark);
  white-space: nowrap;
  transition: color var(--transition);
}
.section-link:hover { color: var(--navy); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn, .btn-primary, .btn-outline, .btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border: 2px solid var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  padding: .5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  transition: background var(--transition), color var(--transition);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
}
.btn-navy:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-1px);
}

/* ── HEADER / NAVBAR ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 0 var(--border), 0 2px 12px rgba(0,0,0,.06);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 68px;
  gap: 1rem;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 700;
  transition: color var(--transition);
  white-space: nowrap;
}
.brand:hover { color: var(--gold-dark); }
.brand-icon {
  width: 28px;
  height: 28px;
  color: var(--gold);
  flex-shrink: 0;
}

/* Nav */
.main-nav { display: flex; justify-content: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-link {
  display: block;
  padding: .45rem .85rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--navy);
  background: var(--cream);
}
.nav-link.active { font-weight: 700; }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  justify-content: flex-end;
}
.burger {
  display: none;
  padding: .4rem;
  color: var(--navy);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.burger:hover { background: var(--cream); }
.burger svg { width: 22px; height: 22px; }

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/img/hero.webp');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.03);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgba(15,43,70,.9) 0%, rgba(26,54,93,.65) 45%, rgba(26,54,93,.15) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 6rem 4rem;
  max-width: 700px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(201,169,110,.18);
  border: 1px solid rgba(201,169,110,.4);
  color: var(--gold-light);
  font-size: .82rem;
  font-weight: 600;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
  letter-spacing: .03em;
}
.hero-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.8;
}

/* Hero search bar */
.hero-search {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(0,0,0,.22);
  padding: 1rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: .75rem;
  align-items: center;
  max-width: 680px;
}
.search-select-wrap {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.search-select-label {
  font-size: .73rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-inline-start: .25rem;
}
.search-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .55rem .75rem;
  color: var(--charcoal);
  background: var(--cream);
  font-size: .9rem;
  cursor: pointer;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left .5rem center;
  background-size: 16px;
  padding-left: 2rem;
}
.search-select:focus {
  outline: none;
  border-color: var(--gold);
}
.hero-search-btn {
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  padding: .85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
  align-self: flex-end;
}
.hero-search-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

/* Hero stats bar */
.hero-stats {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: rgba(15,43,70,.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(201,169,110,.2);
  padding-block: .9rem;
  z-index: 2;
}
.hero-stats-inner {
  display: flex;
  justify-content: center;
  gap: 4rem;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--white);
}
.hero-stat-num {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
}
.hero-stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
}

/* ── CATEGORIES SECTION ────────────────────────────────────── */
.categories-section {
  background: var(--white);
  padding-block: 4rem;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.cat-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,169,110,.12) 0%, transparent 60%);
  pointer-events: none;
}
.cat-card:hover {
  background: var(--navy-light);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.cat-icon-wrap {
  width: 56px;
  height: 56px;
  background: rgba(201,169,110,.15);
  border: 1.5px solid rgba(201,169,110,.35);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--gold);
  transition: background var(--transition);
}
.cat-card:hover .cat-icon-wrap {
  background: rgba(201,169,110,.25);
}
.cat-icon-wrap svg {
  width: 26px;
  height: 26px;
}
.cat-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .35rem;
}
.cat-count {
  font-size: .8rem;
  color: var(--gold-light);
  background: rgba(201,169,110,.15);
  padding: .15rem .65rem;
  border-radius: 50px;
  display: inline-block;
}

/* ── FEATURED PROPERTIES ───────────────────────────────────── */
.featured-section {
  background: var(--cream);
  padding-block: 5rem;
}
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.property-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.property-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  flex-shrink: 0;
}
.property-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.property-card:hover .property-img-wrap img { transform: scale(1.05); }
.property-badge {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 50px;
}
.property-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.property-cat {
  font-size: .78rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: .35rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.property-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .6rem;
  line-height: 1.5;
}
.property-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: .85rem;
}
.property-price span {
  font-size: .8rem;
  font-weight: 400;
  color: var(--text-muted);
}
.property-meta {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.property-meta-item {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  color: var(--text-muted);
  background: var(--cream);
  padding: .2rem .6rem;
  border-radius: 50px;
}
.property-meta-item svg { width: 14px; height: 14px; color: var(--gold-dark); }
.property-footer {
  margin-top: auto;
}
.property-card .btn-outline {
  width: 100%;
  text-align: center;
  font-size: .9rem;
}

/* ── SERVICES RIBBON ───────────────────────────────────────── */
.services-ribbon {
  background: var(--navy);
  padding-block: 4.5rem;
  position: relative;
  overflow: hidden;
}
.services-ribbon::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(201,169,110,.06);
  pointer-events: none;
}
.services-ribbon::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(201,169,110,.04);
  pointer-events: none;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(201,169,110,.15);
  transition: background var(--transition), border-color var(--transition);
  position: relative;
  z-index: 1;
}
.service-item:hover {
  background: rgba(201,169,110,.08);
  border-color: rgba(201,169,110,.3);
}
.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(201,169,110,.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--gold);
  transition: background var(--transition);
}
.service-item:hover .service-icon { background: rgba(201,169,110,.2); }
.service-icon svg { width: 28px; height: 28px; }
.service-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
}
.service-desc {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  line-height: 1.8;
}

/* ── ABOUT TEASER ──────────────────────────────────────────── */
.about-teaser {
  background: var(--white);
  padding-block: 5rem;
}
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text .section-title { margin-bottom: 1.25rem; }
.about-body {
  color: var(--text-muted);
  font-size: .97rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}
.about-highlights {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 2rem;
}
.about-highlight-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .92rem;
  color: var(--charcoal);
}
.about-highlight-item svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
}
.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.about-photo:hover img { transform: scale(1.04); }

/* ── TRUST STRIP ───────────────────────────────────────────── */
.trust-strip {
  background: var(--cream-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 3.5rem;
}
.trust-inner {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem;
  align-items: center;
}
.trust-stat {
  text-align: center;
  padding: 1.5rem;
}
.trust-stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: .35rem;
}
.trust-stat-label {
  font-size: .85rem;
  color: var(--text-muted);
}
.trust-quote {
  text-align: center;
  padding: 1.5rem 2rem;
  border-right: 3px solid var(--gold);
  border-left: 3px solid var(--gold);
}
.trust-quote-text {
  font-size: 1rem;
  color: var(--charcoal);
  font-style: italic;
  line-height: 1.9;
  margin-bottom: .75rem;
}
.trust-quote-author {
  font-size: .83rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── BLOG PREVIEW ──────────────────────────────────────────── */
.blog-preview {
  background: var(--cream);
  padding-block: 5rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.blog-img-wrap {
  height: 180px;
  overflow: hidden;
}
.blog-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.blog-card:hover .blog-img-wrap img { transform: scale(1.05); }
.blog-body {
  padding: 1.25rem;
}
.blog-date {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.blog-title {
  font-size: .97rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: .6rem;
}
.blog-excerpt {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: .9rem;
}
.blog-read-more {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: color var(--transition);
}
.blog-read-more:hover { color: var(--navy); }
.blog-read-more svg { width: 14px; height: 14px; }

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.8);
}
.footer-main { padding-block: 4rem 3rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.footer-brand-icon {
  width: 26px;
  height: 26px;
}
.footer-tagline {
  font-size: .87rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .87rem;
  color: rgba(255,255,255,.7);
}
.footer-contact-list svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
}
.footer-heading {
  font-size: .9rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.footer-links a {
  font-size: .87rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold-light); }
.footer-socials {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: 1.5rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .87rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.social-link:hover { color: var(--gold-light); }
.social-link svg { width: 18px; height: 18px; }
.enamad-placeholder {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: .75rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.45);
  font-size: .75rem;
}
.enamad-placeholder svg { width: 36px; height: 36px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 1.25rem;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-bottom-inner p {
  font-size: .83rem;
  color: rgba(255,255,255,.45);
}
.footer-credit a { color: rgba(255,255,255,.45); transition: color var(--transition); }
.footer-credit a:hover { color: var(--gold); }

/* ── INNER PAGE HERO ───────────────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding-block: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/img/hero.webp') center/cover no-repeat;
  opacity: .12;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
}
.page-hero-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .4rem;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .83rem;
  color: rgba(255,255,255,.6);
}
.breadcrumb a { color: var(--gold-light); }
.breadcrumb span { color: rgba(255,255,255,.35); }

/* ── FORMS ─────────────────────────────────────────────────── */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  max-width: 480px;
  margin-inline: auto;
}
.form-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: .4rem;
}
.form-subtitle {
  font-size: .88rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
}
.form-group {
  margin-bottom: 1.1rem;
}
.form-label {
  display: block;
  font-size: .87rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: .4rem;
}
.form-control {
  width: 100%;
  padding: .7rem .95rem;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,.15);
}
.form-error {
  font-size: .8rem;
  color: #e53e3e;
  margin-top: .3rem;
}
.form-btn { width: 100%; padding-block: .75rem; font-size: 1rem; }
.form-footer {
  text-align: center;
  font-size: .87rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
}
.form-footer a { color: var(--gold-dark); font-weight: 600; }
.form-footer a:hover { color: var(--navy); }

/* Alert */
.alert {
  padding: .85rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: .9rem;
}
.alert-success { background: #f0fff4; color: #276749; border: 1px solid #9ae6b4; }
.alert-error   { background: #fff5f5; color: #c53030; border: 1px solid #feb2b2; }
.alert-info    { background: #ebf8ff; color: #2b6cb0; border: 1px solid #90cdf4; }

/* ── STUB / COMING SOON ────────────────────────────────────── */
.stub-section {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}
.stub-icon {
  width: 64px;
  height: 64px;
  background: var(--cream-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--gold);
}
.stub-icon svg { width: 30px; height: 30px; }
.stub-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .6rem;
}
.stub-text { color: var(--text-muted); font-size: .95rem; }

/* ── PROPERTY LIST PAGE ────────────────────────────────────── */
.list-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.filter-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  position: sticky;
  top: 88px;
}
.filter-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.filter-group { margin-bottom: 1.25rem; }
.filter-group-label {
  font-size: .83rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: .6rem;
  display: block;
}
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .87rem;
  color: var(--charcoal);
  padding: .3rem 0;
  cursor: pointer;
}
.filter-checkbox input[type="checkbox"] { accent-color: var(--gold); }

/* ── CONTACT PAGE ──────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  flex-shrink: 0;
}
.contact-info-icon svg { width: 20px; height: 20px; }

/* ── DASHBOARD ─────────────────────────────────────────────── */
.dashboard-header {
  background: var(--navy);
  color: var(--white);
  padding-block: 2rem;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
  padding-block: 2.5rem;
}
.dashboard-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .85rem 1.25rem;
  font-size: .9rem;
  color: var(--charcoal);
  transition: background var(--transition), color var(--transition);
  border-bottom: 1px solid var(--border);
}
.dash-nav-item:last-child { border-bottom: none; }
.dash-nav-item:hover, .dash-nav-item.active {
  background: var(--cream);
  color: var(--navy);
  font-weight: 600;
}
.dash-nav-item svg { width: 18px; height: 18px; }

/* ── CART ICON (HEADER) ────────────────────────────────────── */
.cart-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--navy);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.cart-icon-btn:hover { background: var(--cream); color: var(--gold-dark); }
.cart-icon-btn svg { width: 20px; height: 20px; }
.cart-badge {
  position: absolute;
  top: 2px;
  left: 2px;
  min-width: 18px;
  height: 18px;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: .68rem;
  font-weight: 700;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: .25rem;
  line-height: 1;
}

/* ── SHOP PAGE ─────────────────────────────────────────────── */
.shop-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.shop-tab {
  display: inline-flex;
  align-items: center;
  padding: .45rem 1.1rem;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--white);
  border: 1.5px solid var(--border-dark);
  transition: background var(--transition), color var(--transition),
              border-color var(--transition);
}
.shop-tab:hover { border-color: var(--gold); color: var(--navy); }
.shop-tab.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.shop-result-count {
  font-size: .87rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ── PRODUCT CARD ──────────────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.product-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  flex-shrink: 0;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-img-link { display: block; }
.product-badge {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 50px;
}
.product-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-cat {
  font-size: .78rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: .35rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.product-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
  line-height: 1.5;
}
.product-name a { color: inherit; }
.product-name a:hover { color: var(--gold-dark); }
.product-excerpt {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: .9rem;
  flex: 1;
}
.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}
.product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
}

/* ── PRODUCT DETAIL PAGE ───────────────────────────────────── */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.product-gallery {}
.product-gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  margin-bottom: .75rem;
}
.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-gallery-thumbs {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
}
.gallery-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: border-color var(--transition), transform var(--transition);
}
.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb.active { border-color: var(--gold); }
.gallery-thumb img {
  display: block;
  width: 90px;
  height: 62px;
  object-fit: cover;
}
.product-info {}
.product-detail-cat {
  font-size: .82rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .4rem;
}
.product-detail-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: .75rem;
}
.product-detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}
.product-detail-desc {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}
.product-option-group { margin-bottom: 1.25rem; }
.product-option-label {
  font-size: .87rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: .55rem;
}
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.size-btn {
  cursor: pointer;
}
.size-btn input[type="radio"] { display: none; }
.size-btn span {
  display: inline-flex;
  align-items: center;
  padding: .45rem 1rem;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: background var(--transition), color var(--transition),
              border-color var(--transition);
  user-select: none;
}
.size-btn input[type="radio"]:checked + span {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.size-btn:hover span {
  border-color: var(--gold);
  color: var(--navy);
}
.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-btn {
  width: 38px;
  height: 40px;
  background: var(--cream);
  color: var(--charcoal);
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}
.qty-btn:hover { background: var(--gold); color: var(--navy-dark); }
.qty-input {
  width: 52px;
  height: 40px;
  text-align: center;
  border: none;
  border-inline: 1.5px solid var(--border-dark);
  font-size: .95rem;
  font-weight: 600;
  color: var(--charcoal);
  background: var(--white);
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.product-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.product-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  color: var(--text-muted);
}
.product-trust-row svg { color: var(--gold-dark); }

/* ── CART PAGE ─────────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  align-items: start;
}
.cart-items-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item-img img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  display: block;
}
.cart-item-info { min-width: 0; }
.cart-item-name {
  font-size: .92rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-name a { color: inherit; }
.cart-item-name a:hover { color: var(--gold-dark); }
.cart-item-size {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: .25rem;
}
.cart-item-price {
  font-size: .88rem;
  color: var(--charcoal);
  font-weight: 600;
}
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.qty-control-sm .qty-btn { width: 30px; height: 32px; font-size: .95rem; }
.qty-control-sm .qty-input { width: 40px; height: 32px; font-size: .88rem; }
.btn-cart-update {
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-cart-update:hover { background: var(--gold-dark); }
.btn-cart-remove {
  background: none;
  border: none;
  color: #e53e3e;
  font-size: .8rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  cursor: pointer;
  padding: .25rem 0;
  transition: opacity var(--transition);
}
.btn-cart-remove:hover { opacity: .7; }
.cart-item-subtotal {
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  text-align: left;
}
.btn-text-danger {
  background: none;
  border: none;
  color: #c53030;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  padding: .35rem 0;
  transition: opacity var(--transition);
}
.btn-text-danger:hover { opacity: .7; }
.cart-summary-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
}
.cart-summary-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .9rem;
  color: var(--charcoal);
  padding-block: .4rem;
}
.cart-summary-total {
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  border-top: 1px solid var(--border);
  margin-top: .5rem;
  padding-top: .75rem;
}
.cart-secure-note {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: var(--text-muted);
  justify-content: center;
  margin-top: .75rem;
}
.cart-secure-note svg { color: var(--gold-dark); }

/* ── CHECKOUT PAGE ─────────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}
.checkout-form {}
.checkout-item-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-block: .6rem;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
}
.checkout-item-row:last-child { border-bottom: none; }
.checkout-item-name {
  flex: 1;
  font-weight: 500;
  color: var(--charcoal);
}
.checkout-item-badge {
  background: var(--cream-dark);
  color: var(--text-muted);
  font-size: .75rem;
  padding: .1rem .5rem;
  border-radius: 50px;
  white-space: nowrap;
}
.checkout-item-price {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.order-confirm-wrap {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
  padding: 3rem 1.5rem;
}
.order-confirm-icon {
  width: 80px;
  height: 80px;
  background: #f0fff4;
  border: 2px solid #9ae6b4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #276749;
}
.order-confirm-icon svg { width: 38px; height: 38px; }
.order-confirm-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .75rem;
}
.order-confirm-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.9;
}

/* ── ACCOUNT PAGE ──────────────────────────────────────────── */
.account-order-block {
  border-bottom: 1px solid var(--border);
}
.account-order-block:last-child { border-bottom: none; }
.account-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1rem 1.75rem;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.account-order-num {
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
  margin-left: .75rem;
}
.account-order-date {
  font-size: .82rem;
  color: var(--text-muted);
}
.account-order-status {
  font-size: .8rem;
  padding: .2rem .75rem;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: 50px;
  font-weight: 600;
}
.account-order-items {
  padding: .75rem 1.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.account-order-items li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .87rem;
}
.account-order-item-name {
  flex: 1;
  color: var(--charcoal);
  font-weight: 500;
}
.account-order-item-qty {
  color: var(--text-muted);
  font-size: .82rem;
}
.account-order-item-price {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .list-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .about-split { gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .properties-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .trust-quote { border-right: none; border-left: none; border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold); }
  .about-split { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-item-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
  .cart-item-subtotal { grid-column: 2; }
}

@media (max-width: 640px) {
  .section { padding-block: 3.5rem; }
  .hero { min-height: 520px; }
  .hero-content { padding-block: 4rem 5rem; }
  .hero-search {
    grid-template-columns: 1fr;
    gap: .65rem;
    padding: .85rem;
    border-radius: var(--radius);
  }
  .hero-stats-inner { gap: 2rem; flex-wrap: wrap; justify-content: space-around; }
  .properties-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: .5rem; }
  .shop-grid { grid-template-columns: 1fr; }
  .product-footer { flex-direction: column; align-items: flex-start; }
  .account-order-header { flex-direction: column; align-items: flex-start; }
}

/* 390px — minimum mobile */
@media (max-width: 420px) {
  :root { --gap: 1rem; }
  .container { padding-inline: 1rem; }
  .hero-title { font-size: 1.5rem; }
  .section-title { font-size: 1.35rem; }
  .categories-grid { gap: .6rem; }
  .cat-card { padding: 1.25rem 1rem; }
  .hero-stats-inner { gap: 1.25rem; }
  .hero-stat-num { font-size: 1.1rem; }
  .form-card { padding: 1.5rem 1.1rem; }
}

/* ── MOBILE NAV ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .burger { display: flex; }
  .main-nav {
    position: fixed;
    top: 68px;
    inset-inline: 0;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
    z-index: 999;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list { flex-direction: column; gap: .25rem; }
  .nav-link { display: block; padding: .75rem 1rem; font-size: 1rem; }
  .header-inner { grid-template-columns: auto 1fr auto; }
}

/* ── Focus / Accessibility ─────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════════════════════════════ */

/* ── Admin base ─────────────────────────────────────────────────── */
.admin-body {
  background: #f0f2f7;
  font-family: Vazirmatn, 'Vazir', system-ui, sans-serif;
  margin: 0;
}

/* ── Layout ─────────────────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
  direction: rtl;
}

/* ── Sidebar ─────────────────────────────────────────────────────── */
.admin-sidebar {
  width: 250px;
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 200;
  overflow-y: auto;
  transition: transform .25s ease;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
  text-decoration: none;
}

.admin-brand-icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
  flex-shrink: 0;
}

.admin-brand-title {
  display: block;
  font-size: .8rem;
  opacity: .6;
  font-weight: 400;
  margin-bottom: .1rem;
}

.admin-brand-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  flex: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .72rem 1.4rem;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: background .15s, color .15s;
  border-inline-start: 3px solid transparent;
}

.admin-nav-item:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
}

.admin-nav-item.active {
  background: rgba(201,169,110,.12);
  color: var(--gold);
  border-inline-start-color: var(--gold);
}

.admin-nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: .8;
}

.admin-nav-section {
  padding: .75rem 1.4rem .3rem;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.3);
  font-weight: 600;
}

.admin-logout-btn {
  display: block;
  margin: 1rem 1.25rem 1.5rem;
  padding: .6rem 1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: rgba(255,255,255,.6);
  text-align: center;
  text-decoration: none;
  font-size: .85rem;
  transition: background .15s, color .15s;
}

.admin-logout-btn:hover {
  background: rgba(229,62,62,.15);
  color: #fc8181;
  border-color: rgba(229,62,62,.3);
}

/* ── Main area ───────────────────────────────────────────────────── */
.admin-main {
  flex: 1;
  margin-inline-start: 250px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Topbar ──────────────────────────────────────────────────────── */
.admin-topbar {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #e8eaf0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.75rem;
  height: 60px;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.admin-topbar-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: .35rem;
  color: var(--charcoal);
  display: none;
}

.admin-topbar-toggle svg {
  width: 22px;
  height: 22px;
}

.admin-topbar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  flex: 1;
  margin: 0;
}

.admin-topbar-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .85rem;
  color: var(--text-muted);
}

/* ── Content ─────────────────────────────────────────────────────── */
.admin-content {
  padding: 1.75rem;
  flex: 1;
}

/* ── Page header ─────────────────────────────────────────────────── */
.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: .75rem;
}

.admin-page-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0;
}

/* ── Stats grid ──────────────────────────────────────────────────── */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  border-top: 3px solid var(--gold);
  transition: transform .2s, box-shadow .2s;
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.admin-stat-icon {
  width: 40px;
  height: 40px;
  background: rgba(201,169,110,.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: .25rem;
}

.admin-stat-icon svg {
  width: 20px;
  height: 20px;
}

.admin-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.admin-stat-label {
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Cards ───────────────────────────────────────────────────────── */
.admin-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid #f0f1f5;
  gap: .75rem;
  flex-wrap: wrap;
}

.admin-card-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0;
}

.admin-card-body {
  padding: 1.5rem;
}

/* ── Table ───────────────────────────────────────────────────────── */
.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .87rem;
}

.admin-table th {
  background: #f8f9fc;
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .75rem 1rem;
  text-align: right;
  border-bottom: 1px solid #eef0f6;
  white-space: nowrap;
}

.admin-table td {
  padding: .9rem 1rem;
  border-bottom: 1px solid #f0f2f7;
  color: var(--charcoal);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: #fafbfe;
}

.admin-table .td-actions {
  display: flex;
  gap: .5rem;
  white-space: nowrap;
}

/* ── Badges ──────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .65rem;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.badge-green  { background: #d1fae5; color: #065f46; }
.badge-gold   { background: rgba(201,169,110,.18); color: #7a5b2a; }
.badge-gray   { background: #e5e7eb; color: #4b5563; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-blue   { background: #dbeafe; color: #1e40af; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity .15s, transform .1s;
  font-family: inherit;
  white-space: nowrap;
}

.btn-admin:hover { opacity: .85; transform: translateY(-1px); }

.btn-admin-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-admin-outline {
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
}

.btn-admin-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.btn-admin-success {
  background: #d1fae5;
  color: #065f46;
}

.btn-admin-sm {
  padding: .3rem .7rem;
  font-size: .78rem;
  border-radius: 6px;
}

.btn-admin svg {
  width: 15px;
  height: 15px;
}

/* ── Admin form ──────────────────────────────────────────────────── */
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.admin-form-full {
  grid-column: 1 / -1;
}

.admin-img-preview {
  margin-top: .75rem;
  border-radius: 8px;
  overflow: hidden;
  display: inline-block;
  max-width: 100%;
}

.admin-img-preview img {
  max-width: 200px;
  max-height: 140px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  border: 2px solid #e8eaf0;
}

.admin-img-preview p {
  margin: .45rem 0 0;
  color: var(--text-muted);
  font-size: .78rem;
}

.admin-image-help,
.admin-image-status {
  margin: .45rem 0 0;
  font-size: .8rem;
  line-height: 1.7;
}

.admin-image-help { color: var(--text-muted); }
.admin-image-status { min-height: 1.35rem; font-weight: 600; }
.admin-image-status[data-state="loading"] { color: #7c5b12; }
.admin-image-status[data-state="success"] { color: #087443; }
.admin-image-status[data-state="error"] { color: #b42318; }
.admin-image-error {
  margin: .45rem 0 0;
  padding: .65rem .8rem;
  border-inline-start: 3px solid #b42318;
  border-radius: 6px;
  background: #fff1f0;
  color: #8f1d14;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.7;
}

.admin-image-input[aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .12);
}

.admin-image-input:disabled { cursor: wait; opacity: .7; }

@media (max-width: 768px) {
  .admin-form-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-image-input { width: 100%; max-width: 100%; }
  .admin-img-preview { display: block; width: 100%; }
  .admin-img-preview img { width: 100%; max-width: 100%; height: auto; max-height: 240px; }
}

/* ── Empty state ─────────────────────────────────────────────────── */
.admin-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.admin-empty svg {
  width: 48px;
  height: 48px;
  opacity: .3;
  margin-bottom: .75rem;
}

/* ── Login page ──────────────────────────────────────────────────── */
.admin-login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #2d4a7a 100%);
}

.admin-login-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.admin-login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  margin-bottom: 2rem;
  text-align: center;
}

.admin-login-brand svg {
  color: var(--navy);
}

.admin-login-brand h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

/* ── Dashboard grid ──────────────────────────────────────────────── */
.admin-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .admin-dash-grid { grid-template-columns: 1fr; }
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .admin-sidebar {
    transform: translateX(100%);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-main {
    margin-inline-start: 0;
  }

  .admin-topbar-toggle {
    display: flex;
  }
}


/* ===== QA#141: prevent horizontal overflow — collapse card grids on mobile ===== */
@media (max-width:640px){ .services-grid,.properties-grid,.categories-grid,.blog-grid{ grid-template-columns:1fr !important; } }
@media (min-width:641px) and (max-width:900px){ .services-grid,.properties-grid,.categories-grid,.blog-grid{ grid-template-columns:1fr 1fr !important; } }
html,body{ max-width:100%; overflow-x:hidden; }


/* QA#176: mobile drawer Header/Navigation/Footer structure */
.drawer-head, .drawer-foot { display:none; }
@media (max-width:768px){
  .main-nav { top:0; height:100vh; height:100dvh; padding:0; display:flex; flex-direction:column; }
  .drawer-head { display:flex; align-items:center; justify-content:space-between; padding:1rem 1.25rem; border-bottom:1px solid var(--cream,#eee); flex:0 0 auto; }
  .drawer-brand { font-weight:800; color:var(--navy); font-size:1.1rem; }
  .drawer-close { background:none; border:0; color:var(--navy); padding:.4rem; cursor:pointer; display:flex; }
  .main-nav .nav-list { flex:1 1 auto; overflow-y:auto; padding:1rem; gap:.25rem; align-items:stretch; }
  .drawer-foot { display:flex; flex-direction:column; gap:.6rem; padding:1.25rem; border-top:1px solid var(--cream,#eee); flex:0 0 auto; }
  .drawer-foot .drawer-cta { text-align:center; justify-content:center; }
  .drawer-foot-link { color:var(--navy); font-size:.95rem; text-align:center; }
}

/* QA#192: mobile — absolute stats bar was covering the stacked search button; flow it below */
@media (max-width: 640px) {
  .hero { flex-direction: column; justify-content: center; }
  .hero-content { max-width: 100%; width: 100%; }
  .hero-stats { position: static; inset-inline: auto; margin-top: 1.5rem; width: 100%; }
  .hero-search { position: relative; z-index: 3; }
}

/* ── #B64: .admin-main is a flex child with the default min-width:auto, so .admin-table-wrap
      never shrinks below its content and its overflow-x:auto never engages at 390px ── */
.admin-main { min-width: 0; }
.admin-content { min-width: 0; }
@media (max-width: 860px) {
  .admin-card { max-width: 100%; }
  .admin-table-wrap { max-width: 100%; }
}
