/* ============================================================
   IMMO360 — Main Stylesheet
   Inspired by sakan360.com aesthetic
   ============================================================ */

/* ── Reset & Variables ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #1a4fba;
  --primary-dark:  #143d94;
  --primary-light: #e8effd;
  --secondary:     #f97316;
  --secondary-dark:#ea6a0a;
  --success:       #16a34a;
  --danger:        #dc2626;
  --warning:       #d97706;
  --info:          #0891b2;

  --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;

  --font-main: 'Inter', 'Cairo', sans-serif;
  --font-arabic: 'Cairo', sans-serif;

  --radius-sm: .375rem;
  --radius:    .5rem;
  --radius-lg: .75rem;
  --radius-xl: 1rem;
  --radius-2xl:1.5rem;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .05);
  --shadow:    0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);

  --transition: .2s ease;
  --navbar-h: 90px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-800);
  background: #fff;
}

body.rtl { font-family: var(--font-arabic); direction: rtl; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Container ───────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.container-sm { max-width: 640px; }
.container-md { max-width: 860px; }

/* ── Typography ─────────────────────────────────────────── */
h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

.text-primary   { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-success   { color: var(--success); }
.text-danger    { color: var(--danger); }
.text-muted     { color: var(--gray-500); }
.text-center    { text-align: center; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.25rem; border: none; border-radius: var(--radius);
  font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); white-space: nowrap; text-decoration: none;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-sm  { padding: .4rem .9rem; font-size: .82rem; }
.btn-lg  { padding: .8rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary        { background: var(--primary); color: #fff; }
.btn-primary:hover  { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary      { background: var(--secondary); color: #fff; }
.btn-secondary:hover{ background: var(--secondary-dark); transform: translateY(-1px); }
.btn-success        { background: var(--success); color: #fff; }
.btn-success:hover  { background: #15803d; }
.btn-danger         { background: var(--danger); color: #fff; }
.btn-danger:hover   { background: #b91c1c; }
.btn-outline-primary{ background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-ghost          { background: transparent; color: var(--gray-600); }
.btn-ghost:hover    { background: var(--gray-100); }
.btn-icon           { background: none; border: none; cursor: pointer; padding: .4rem; color: var(--gray-600); position: relative; }
.btn-icon:hover     { color: var(--primary); }
.ms-2 { margin-inline-start: .5rem; }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: #fff; height: var(--navbar-h);
  box-shadow: 0 2px 8px rgb(0 0 0 / .07);
  border-bottom: 1px solid var(--gray-100);
}
.navbar__inner {
  display: flex; align-items: center; gap: 1rem;
  height: var(--navbar-h);
}
.navbar__logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.3rem; color: #e79c32; text-decoration: none; }
.navbar__logo img { height: 90px; max-width: 160px; object-fit: contain; padding: .5rem 0; }
.navbar__logo-text { color: #e79c32; font-weight: 800; }

.navbar__menu {
  display: flex; align-items: center; gap: .25rem;
  margin-inline-start: 2rem; flex: 1;
}
.navbar__menu a {
  padding: .45rem .9rem; border-radius: var(--radius-sm);
  font-size: .92rem; font-weight: 600; color: #031b28;
  transition: all var(--transition);
}
.navbar__menu a:hover { color: #e79c32; background: rgba(231,156,50,.08); }
.navbar__menu a.active { color: #e79c32; background: rgba(231,156,50,.12); }

.navbar__actions { display: flex; align-items: center; gap: .75rem; margin-inline-start: auto; }

/* Lang Switcher */
.lang-switcher { position: relative; }
.lang-switcher__btn {
  display: flex; align-items: center; gap: .3rem;
  padding: .4rem .7rem; border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); background: #fff;
  font-size: .85rem; cursor: pointer; color: #031b28;
  transition: all var(--transition);
}
.lang-switcher__btn:hover { border-color: #e79c32; color: #e79c32; }
.lang-switcher__dropdown {
  position: absolute; top: 100%;
  inset-inline-end: 0;
  padding-top: 8px;
  background: transparent;
  display: none; z-index: 50; min-width: 140px;
}
.lang-switcher__dropdown::before {
  content: '';
  display: block;
  height: 8px;
}
.lang-switcher__dropdown-inner {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.lang-switcher__dropdown a {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem; font-size: .88rem; color: var(--gray-700);
  transition: background var(--transition);
}
.lang-switcher__dropdown a:hover, .lang-switcher__dropdown a.active { background: var(--primary-light); color: var(--primary); }
.lang-switcher:hover .lang-switcher__dropdown { display: block; }

/* User Menu */
.user-menu { position: relative; }
.user-menu__trigger {
  display: flex; align-items: center; gap: .5rem;
  padding: .35rem .75rem .35rem .45rem;
  border: 1px solid var(--gray-200); border-radius: 2rem;
  background: #fff; cursor: pointer; color: #031b28;
  font-size: .88rem; font-weight: 500; transition: all var(--transition);
}
.user-menu__trigger:hover { border-color: #e79c32; color: #e79c32; box-shadow: none; }
.user-menu__avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.user-menu__dropdown {
  position: absolute; top: 100%; inset-inline-end: 0;
  padding-top: 8px;
  background: transparent;
  display: none; z-index: 50; min-width: 200px;
}
.user-menu__dropdown-inner {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xl); overflow: hidden;
}
.user-menu:hover .user-menu__dropdown { display: block; }
.user-menu__dropdown a {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem 1.1rem; font-size: .9rem; color: var(--gray-700);
  transition: background var(--transition);
}
.user-menu__dropdown a:hover { background: var(--gray-50); }
.user-menu__dropdown hr { border: none; border-top: 1px solid var(--gray-100); margin: .3rem 0; }
.user-menu__dropdown .text-danger { color: var(--danger); }

/* Notification Bell */
.notif-bell { position: relative; color: #031b28; }
.notif-bell .fa-bell { font-size: 1.1rem; color: #031b28; }
.notif-bell:hover .fa-bell { color: #e79c32; }
.notif-badge {
  position: absolute; top: 0; inset-inline-end: 0;
  background: var(--danger); color: #fff; font-size: .65rem; font-weight: 700;
  width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.notif-dropdown {
  display: none; position: absolute; top: 100%; inset-inline-end: 0;
  padding-top: 8px; z-index: 9999;
  width: 340px;
}
.notif-dropdown.show { display: block; }
.notif-dropdown::before {
  content: ''; display: block; height: 8px;
}
.notif-dropdown-inner {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-200);
  box-shadow: 0 10px 40px rgba(0,0,0,.15); max-height: 420px; overflow-y: auto;
}
.notif-item {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .85rem 1rem; border-bottom: 1px solid var(--gray-100);
  cursor: pointer; transition: background var(--transition);
  text-decoration: none; color: inherit;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--gray-50); }
.notif-item--unread { background: #eff6ff; }
.notif-item--unread:hover { background: #dbeafe; }
.notif-item__icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; flex-shrink: 0;
}
.notif-item--unread .notif-item__icon { background: var(--primary); color: #fff; }
.notif-item__body p { font-size: .88rem; color: var(--gray-800); margin: 0 0 .2rem; line-height: 1.4; }
.notif-item__body span { font-size: .75rem; color: var(--gray-400); }

/* Mobile toggle */
.navbar__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .3rem; }
.navbar__toggle span { display: block; width: 24px; height: 2px; background: #031b28; border-radius: 2px; transition: all var(--transition); }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  display: flex; align-items: center; gap: .75rem;
  padding: .875rem 1.25rem; border-radius: var(--radius);
  font-size: .92rem; margin: 0 0 1rem;
  position: relative;
}
.alert-success  { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error    { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning  { background: #fef9c3; color: #713f12; border: 1px solid #fde047; }
.alert-info     { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.alert__close   { background: none; border: none; cursor: pointer; font-size: 1.25rem; margin-inline-start: auto; opacity: .6; }
.alert__close:hover { opacity: 1; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .9rem; font-weight: 600; color: var(--gray-700); margin-bottom: .4rem; }
.form-label .required { color: var(--danger); margin-inline-start: .2rem; }
.form-control {
  width: 100%; padding: .65rem 1rem; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); font-size: .95rem; color: var(--gray-900);
  background: #fff; transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgb(26 79 186 / .12); }
.form-control::placeholder { color: var(--gray-400); }
.form-control.is-invalid { border-color: var(--danger); }
.form-error { font-size: .82rem; color: var(--danger); margin-top: .3rem; display: flex; align-items: center; gap: .3rem; }
select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%236b7280' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.937a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.061z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 1.1rem; padding-inline-end: 2.5rem; }
textarea.form-control { resize: vertical; min-height: 110px; }
.input-group { position: relative; display: flex; }
.input-group .form-control { border-radius: 0; }
.input-group .form-control:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.input-group .form-control:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }
.input-group .btn { border-radius: 0 var(--radius) var(--radius) 0; }
.rtl .input-group .form-control:first-child { border-radius: 0 var(--radius) var(--radius) 0; }
.rtl .input-group .form-control:last-child  { border-radius: var(--radius) 0 0 var(--radius); }
.form-check { display: flex; align-items: center; gap: .5rem; cursor: pointer; margin-bottom: .5rem; }
.form-check input[type=checkbox], .form-check input[type=radio] { width: 17px; height: 17px; cursor: pointer; accent-color: var(--primary); }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: #fff; border-radius: var(--radius-xl);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card__body { padding: 1rem 1.1rem; }
.card__footer { padding: .75rem 1.1rem; border-top: 1px solid var(--gray-100); background: var(--gray-50); }

/* ── Ad Card ─────────────────────────────────────────────── */
.ad-card { position: relative; }
.ad-card__img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.ad-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ad-card:hover .ad-card__img-wrap img { transform: scale(1.05); }
.ad-card__badge {
  position: absolute; top: .75rem; inset-inline-start: .75rem;
  padding: .25rem .65rem; border-radius: var(--radius-sm);
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.badge-sell    { background: var(--primary); color: #fff; }
.badge-rent    { background: var(--secondary); color: #fff; }
.badge-buy     { background: var(--success); color: #fff; }
.badge-featured{ background: #fbbf24; color: #713f12; }
.ad-card__price {
  font-size: 1.1rem; font-weight: 700; color: var(--primary);
  margin: .4rem 0 .3rem;
}
.ad-card__title { font-size: .97rem; font-weight: 600; margin-bottom: .5rem; color: var(--gray-800); }
.ad-card__title a:hover { color: var(--primary); }
.ad-card__meta { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .82rem; color: var(--gray-500); margin-bottom: .5rem; }
.ad-card__meta span { display: flex; align-items: center; gap: .25rem; }
.ad-card__footer { display: flex; align-items: center; justify-content: space-between; }
.ad-card__author { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--gray-600); }
.ad-card__author img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.role-tag { font-size: .7rem; padding: .15rem .5rem; border-radius: 2rem; font-weight: 700; }
.role-tag--promoteur { background: #ede9fe; color: #5b21b6; }
.role-tag--agency    { background: #dbeafe; color: #1d4ed8; }
.role-tag--user      { background: var(--gray-100); color: var(--gray-600); }

/* ── Grid ────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-ads { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }

/* ── Section ─────────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section--gray { background: var(--gray-50); }
.section__header { text-align: center; margin-bottom: 2.5rem; }
.section__header h2 { margin-bottom: .5rem; }
.section__header p  { color: var(--gray-500); max-width: 560px; margin: 0 auto; }
.section__header .section__line {
  width: 60px; height: 4px; background: var(--primary);
  border-radius: 2px; margin: .75rem auto 0;
}

/* ── Hero / Search ───────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f2d6e 0%, #1a4fba 60%, #2d6cf0 100%);
  padding: 5rem 0 4rem; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: .12;
}
.hero__content { position: relative; z-index: 1; }
.hero__title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: .75rem; }
.hero__subtitle { font-size: 1.1rem; opacity: .85; margin-bottom: 2.5rem; }

.search-box {
  background: #fff; border-radius: var(--radius-xl); padding: 1.5rem;
  max-width: 860px; margin: 0 auto;
  box-shadow: var(--shadow-xl);
}
.search-box__tabs { display: flex; gap: .25rem; margin-bottom: 1.25rem; }
.search-box__tab {
  flex: 1; padding: .55rem; border: 2px solid var(--gray-200);
  border-radius: var(--radius); background: #fff; cursor: pointer;
  font-size: .9rem; font-weight: 600; color: var(--gray-600);
  transition: all var(--transition);
}
.search-box__tab.active, .search-box__tab:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.search-box__fields { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: .75rem; align-items: end; }

/* ── Dashboard Sidebar Layout ────────────────────────────── */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding: 2rem 0; min-height: calc(100vh - var(--navbar-h)); }
.dashboard-sidebar { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 1.5rem; height: fit-content; position: sticky; top: calc(var(--navbar-h) + 1rem); }
.dashboard-main { min-width: 0; }

.sidebar-user { display: flex; align-items: center; gap: .75rem; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--gray-100); }
.sidebar-user__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-light); }
.sidebar-user__name   { font-weight: 700; font-size: .95rem; }
.sidebar-user__role   { font-size: .78rem; color: var(--gray-500); }

.sidebar-nav { display: flex; flex-direction: column; gap: .2rem; }
.sidebar-nav a {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem .85rem; border-radius: var(--radius);
  font-size: .91rem; color: var(--gray-700); font-weight: 500;
  transition: all var(--transition);
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--primary-light); color: var(--primary); }
.sidebar-nav a i { width: 18px; text-align: center; }
.sidebar-nav .badge-count {
  margin-inline-start: auto; background: var(--primary); color: #fff;
  font-size: .7rem; padding: .1rem .45rem; border-radius: 2rem; font-weight: 700;
}

/* ── Stat Cards ──────────────────────────────────────────── */
.stat-card { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 1.5rem; display: flex; align-items: center; gap: 1.1rem; }
.stat-card__icon { width: 52px; height: 52px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.stat-card__icon--blue   { background: #dbeafe; color: var(--primary); }
.stat-card__icon--orange { background: #ffedd5; color: var(--secondary); }
.stat-card__icon--green  { background: #dcfce7; color: var(--success); }
.stat-card__icon--purple { background: #ede9fe; color: #7c3aed; }
.stat-card__value { font-size: 1.6rem; font-weight: 800; color: var(--gray-900); }
.stat-card__label { font-size: .85rem; color: var(--gray-500); }

/* ── Table ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { background: var(--gray-50); color: var(--gray-600); font-weight: 600; text-transform: uppercase; font-size: .76rem; letter-spacing: .05em; padding: .75rem 1rem; text-align: start; border-bottom: 2px solid var(--gray-200); }
.table td { padding: .75rem 1rem; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.table tr:hover td { background: var(--gray-50); }
.table .actions { display: flex; gap: .4rem; }

/* ── Badge / Pill ────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; padding: .2rem .6rem; border-radius: 2rem; font-size: .78rem; font-weight: 600; }
.pill-active   { background: #dcfce7; color: #166534; }
.pill-pending  { background: #fef9c3; color: #713f12; }
.pill-rejected { background: #fee2e2; color: #991b1b; }
.pill-inactive { background: var(--gray-100); color: var(--gray-600); }

/* ── Multi-Step Form ─────────────────────────────────────── */
.step-progress { display: flex; align-items: center; margin-bottom: 2.5rem; }
.step-progress__item {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  flex: 1; position: relative;
}
.step-progress__item:not(:last-child)::after {
  content: ''; position: absolute; top: 16px;
  inset-inline-start: 50%; width: 100%; height: 2px;
  background: var(--gray-200); z-index: 0;
}
.step-progress__item.done::after, .step-progress__item.active::after { background: var(--primary); }
.step-progress__num {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; border: 2px solid var(--gray-200);
  background: #fff; z-index: 1; position: relative; transition: all var(--transition);
}
.step-progress__item.active .step-progress__num { border-color: var(--primary); background: var(--primary); color: #fff; }
.step-progress__item.done   .step-progress__num { border-color: var(--success); background: var(--success); color: #fff; }
.step-progress__label { font-size: .78rem; color: var(--gray-500); text-align: center; }
.step-progress__item.active .step-progress__label { color: var(--primary); font-weight: 600; }

.step-nav { display: flex; justify-content: space-between; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-100); }

/* ── Image Upload ────────────────────────────────────────── */
.img-upload-zone {
  border: 2px dashed var(--gray-300); border-radius: var(--radius-xl);
  padding: 2.5rem; text-align: center; cursor: pointer;
  transition: all var(--transition); background: var(--gray-50);
}
.img-upload-zone:hover, .img-upload-zone.dragover { border-color: var(--primary); background: var(--primary-light); }
.img-upload-zone i  { font-size: 2.5rem; color: var(--gray-300); margin-bottom: .75rem; }
.img-upload-zone h4 { font-size: 1rem; margin-bottom: .25rem; }
.img-upload-zone p  { font-size: .85rem; color: var(--gray-500); }

.img-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .75rem; margin-top: 1rem; }
.img-preview-item { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 2px solid transparent; cursor: pointer; }
.img-preview-item.thumbnail { border-color: var(--primary); }
.img-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.img-preview-item__remove {
  position: absolute; top: .3rem; inset-inline-end: .3rem;
  background: var(--danger); color: #fff; border: none;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; cursor: pointer; opacity: 0; transition: opacity var(--transition);
}
.img-preview-item:hover .img-preview-item__remove { opacity: 1; }
.img-preview-item__thumb-badge {
  position: absolute; bottom: .3rem; inset-inline-start: .3rem;
  background: var(--primary); color: #fff;
  font-size: .65rem; padding: .1rem .4rem; border-radius: .25rem; font-weight: 700;
}

/* ── Pagination ──────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: .35rem; padding: 2rem 0; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius);
  font-size: .9rem; font-weight: 500; border: 1px solid var(--gray-200);
  transition: all var(--transition); color: var(--gray-700);
}
.pagination a:hover    { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.pagination .active    { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled  { opacity: .4; pointer-events: none; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--gray-900); color: var(--gray-300); }
.footer__top { padding: 3.5rem 0 2.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer__logo { display: flex; align-items: center; gap: .6rem; color: #fff; font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }
.footer__desc { font-size: .9rem; line-height: 1.7; margin-bottom: 1.25rem; }
.footer__socials { display: flex; gap: .6rem; }
.footer__socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); display: flex; align-items: center;
  justify-content: center; color: var(--gray-300); transition: all var(--transition);
}
.footer__socials a:hover { background: var(--primary); color: #fff; }
.footer__heading { font-size: .9rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1.1rem; }
.footer__links { display: flex; flex-direction: column; gap: .5rem; }
.footer__links a { font-size: .9rem; transition: color var(--transition); }
.footer__links a:hover { color: #fff; }
.footer__links--contact li { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; }
.footer__links--contact i  { color: var(--primary); margin-top: .2rem; flex-shrink: 0; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.25rem 0; display: flex; align-items: center; justify-content: space-between;
  font-size: .85rem; color: var(--gray-500);
}
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a:hover { color: #fff; }

/* ── Utility ─────────────────────────────────────────────── */
.d-flex  { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.p-3 { padding: 1.5rem; }
.rounded { border-radius: var(--radius); }
.rounded-xl { border-radius: var(--radius-xl); }
.bg-white { background: #fff; }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.w-100 { width: 100%; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .search-box__fields { grid-template-columns: 1fr 1fr; }
  .search-box__fields .btn { grid-column: span 2; }
}

@media (max-width: 768px) {
  /* Mobile menu slides in */
  .navbar__menu {
    display: none; position: fixed;
    top: var(--navbar-h); inset-inline-start: 0; inset-inline-end: 0;
    background: #fff; flex-direction: column;
    padding: .75rem 1rem 1.25rem; gap: .15rem;
    box-shadow: var(--shadow-lg);
    border-top: 2px solid #e79c32;
    z-index: 999;
  }
  .navbar__menu.open { display: flex; }
  .navbar__menu li { width: 100%; }
  .navbar__menu a {
    display: block; width: 100%;
    padding: .75rem 1rem;
    font-size: 1rem; border-radius: var(--radius);
  }
  .navbar__toggle { display: flex; }

  /* Hide lang switcher on mobile */
  .lang-switcher { display: none; }

  /* Grid adjustments */
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer__bottom { flex-direction: column; gap: .75rem; text-align: center; }
  .search-box__fields { grid-template-columns: 1fr; }
  .search-box__fields .btn { grid-column: span 1; }
  .hero { padding: 3rem 0 2.5rem; }
  .step-progress__label { display: none; }
}

@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}