/* ============================================================
   AGENCIES PAGE — PREMIUM DARK THEME LAYOUT
   Matches DubaiSociete full premium visual system
   ============================================================ */

:root {
  --bg: #020617;
  --surface: #0a0f1c;
  --surface-soft: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);

  --text: #f9fafb;
  --muted: #9ca3af;

  --accent: #e11d48;
  --gold: #facc15;

  --radius: 20px;
  --shadow: 0 20px 60px rgba(0,0,0,0.45);
}

/* GENERAL PAGE */
.page-wrap {
  padding: 40px 0 80px;
  background: var(--bg);
}

.page-header {
  text-align: center;
  margin-bottom: 35px;
}

.page-header h1 {
  font-size: 40px;
  font-family: "Playfair Display", serif;
  margin: 0;
  color: var(--text);
}

/* ========================
   FILTER BAR
======================== */
.sticky-filter {
  background: var(--surface);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.filter-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 30px;
  align-items: center;
}

.filter-group label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
}

.filter-group select {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--text);
  width: 220px;
}

/* ========================
   AGENCY GRID
======================== */
.agency-grid {
  max-width: 1280px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
  gap: 35px;
  padding: 0 20px;
}

.agency-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .25s ease;
  position: relative;
  box-shadow: var(--shadow);
  text-align: center;
}

.agency-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

/* Badges */
.agency-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.badge-verified {
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 12px;
}

.badge-rank {
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 12px;
  color: #fff;
}

.badge-rank-gold {
  background: #eab308;
}

.badge-rank-diamond {
  background: #06b6d4;
}

/* Images */
.agency-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

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

/* Text */
.agency-name {
  font-size: 20px;
  margin: 0 0 6px;
  font-weight: 600;
  color: var(--text);
}

.agency-model-count,
.agency-location {
  font-size: 14px;
  color: var(--muted);
  margin: 2px 0;
}

/* ========================
   PAGINATION
======================== */
.pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 50px 0 0;
}

.page-btn {
  padding: 10px 18px;
  background: var(--surface-soft);
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all .25s ease;
}

.page-btn:hover {
  background: var(--accent);
}

.page-btn.active {
  background: var(--accent);
  color: white;
}

.page-btn.disabled {
  opacity: .3;
  cursor: default;
}

/* MOBILE */
@media (max-width: 600px) {
  .page-header h1 {
    font-size: 28px;
  }
  .agency-image {
    height: 160px;
  }
}
