/* ============================================================
   AGENCIES LISTING — WHITE PREMIUM (TOKEN BASED)
   Uses ONLY global variables from :root
============================================================ */

/* ============================================================
   BANNER + TRENDING ROW
============================================================ */

:root{
  --heading:#1A3552;
}

h1, h2, h3, h4, h5, h6,
.section-heading,
.block-title,
.panel-title,
.mini-title,
.agency-title{
  color: var(--heading) !important;
}

.banner-wrap{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  gap:28px;
  padding:0;
  margin:0;
  border-bottom:1px solid var(--line);
  background:#ffffff;
  align-items:stretch;
  overflow:hidden;
}

/* Left banner block */

.banner-main{
  background:transparent;
}

.section-heading{
  margin-bottom:12px;
}

/* Banner grid */

.banner-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}

.banner-grid a{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:12px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:var(--shadow-soft);
  transition:.2s ease;
}

.banner-grid a:hover{
  border-color:var(--brand);
  box-shadow:var(--shadow);
}

.banner-grid img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}

/* ============================================================
   TRENDING PANEL — EDGE TO EDGE STRETCH
============================================================ */

/* Remove box feel */

.banner-side{
  background:#f3f4f6;
  padding:0;             
  border-radius:0;      
}


/* Panel */

.trending-panel{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:05px;         
}

/* Header */

.trending-header{
  text-align:center;
}

.trending-title{
  font-size:12px;
  font-weight:800;
  letter-spacing:2px;
  text-transform:uppercase;
  color:#1f2937;
}

/* Grid — stretch full width */

.trending-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}


/* Card — full stretch */

.trending-grid .mini-profile{
  display:block;
  background:#ffffff;
  border-radius:12px;
  padding:8px;
  box-shadow:0 4px 12px rgba(0,0,0,.05);
  text-decoration:none;
  color:#111827;
  transition:.25s ease;
}

.trending-grid .mini-profile:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 24px rgba(0,0,0,.08);
}

/* Image — edge aligned */

.trending-grid .mini-img-wrap{
  width:100%;
  aspect-ratio:4 / 5;
  border-radius:10px;
  overflow:hidden;
  margin-bottom:8px;
}

.trending-grid .mini-img-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
}


/* Name */

.trending-grid .mini-name{
  font-size:13px;
  font-weight:700;
  line-height:1.3;
  margin-bottom:3px;
}


/* Location + price */

.trending-grid .mini-extra{
  font-size:12px;
  color:#6b7280;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.trending-grid .mini-price{
  color:#4f46e5;
  font-weight:700;
}

/* Badge */

.trending-grid .mini-badge{
  position:absolute;
  top:6px;
  left:6px;
  padding:3px 7px;
  border-radius:999px;
  font-size:9px;
  font-weight:700;
  background:linear-gradient(90deg,var(--brand),var(--lux-gold));
  color:#fff;
}


/* Empty state */

.trending-empty{
  font-size:13px;
  text-align:center;
  color:#6b7280;
}


/* ============================================================
   MAIN GRID — AGENCIES + SIDEBAR
============================================================ */

.agency-main-grid,
.main-layout{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  gap:28px;
  background:var(--bg);
}

/* Left content */

.main-left,
.main-content{
  width:100%;
}

/* Sticky sidebar */

.main-right,
.sidebar-content{
  display:flex;
  flex-direction:column;
  gap:22px;
}

@media(min-width:992px){
  .main-right,
  .sidebar-content{
    position:sticky;
    top:90px;
    align-self:start;
  }
}

/* Sidebar panels */

.main-right .side-panel,
.sidebar-content .side-panel{
  background:var(--paper);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  border-radius:18px;
  padding:18px;
}


/* ============================================================
   PAGE HEADER
============================================================ */

.page-header{
  margin-top:0;
  margin-bottom:12px; /* keep rhythm, no white band */
}

.page-header h1{
  font-size:1.4rem;
  font-weight:800;
}


/* ============================================================
   FILTER BAR
============================================================ */

.filter-bar{
  background:var(--paper-soft);
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px 18px;
  margin-bottom:18px;
}

.filter-inner{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.filter-group{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:160px;
}

.filter-group label{
  font-size:.7rem;
  color:var(--muted);
}

.filter-group select{
  padding:8px 12px;
  border-radius:10px;
  border:1px solid var(--line);
  background:var(--paper);
  color:var(--ink);
  font-size:.85rem;
}


/* ============================================================
   AGENCY GRID
============================================================ */

.agency-list-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:22px;
}


/* ============================================================
   AGENCY CARD
============================================================ */

.agency-card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow-soft);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:.25s ease;
}

.agency-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 40px rgba(2,6,23,.14);
  border-color:var(--brand);
}

/* Badge */

.agency-badge-top{
  position:absolute;
  top:10px;
  left:10px;
  background:var(--gold);
  color:#000;
  font-size:.65rem;
  font-weight:800;
  padding:4px 8px;
  border-radius:999px;
  z-index:2;
}

/* Thumb */

.agency-thumb{
  width:100%;
  aspect-ratio:16 / 9;
  overflow:hidden;
}

.agency-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Body */

.agency-body{
  padding:14px 14px 16px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.agency-title{
  font-size:1rem;
  font-weight:800;
  line-height:1.2;
}

.agency-title a{
  color:var(--ink);
}

.agency-meta{
  font-size:.78rem;
  color:var(--muted);
}

.agency-desc{
  font-size:.82rem;
  color:var(--muted);
}

.agency-desc a{
  color:var(--brand);
  font-weight:600;
}


/* ============================================================
   MOBILE
============================================================ */

@media(max-width:900px){

  .banner-wrap,
  .agency-main-grid,
  .main-layout{
    grid-template-columns:1fr;
  }

  .banner-side{
    margin-top:14px;
  }

  .main-right,
  .sidebar-content{
    position:static;
  }

}

@media(max-width:640px){

  .banner-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .filter-inner{
    flex-direction:column;
  }

}

/* ===============================
   PREMIUM "NO AGENCIES FOUND"
=============================== */

.agency-no-results{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;

  padding:32px 24px;
  margin:16px 0;

  background:#ffffff;
  border:1px dashed #e5e7eb;
  border-radius:16px;

  text-align:center;
  box-shadow:0 10px 30px rgba(2,6,23,.04);
}

.no-results-icon{
  font-size:34px;
  line-height:1;
  opacity:.9;
}

.no-results-title{
  font-size:18px;
  font-weight:600;
  color:#0f172a;
}

.no-results-text{
  font-size:14px;
  color:#64748b;
  max-width:420px;
}

/* Optional subtle hover polish */
.agency-no-results:hover{
  border-color:#c7d2fe;
  box-shadow:0 12px 36px rgba(2,6,23,.06);
}

/* ============================================================
   PREMIUM HEADER
============================================================ */

.premium-page-header{
  position:relative;
  padding:36px 0 26px;
}

.premium-title-inner{
  max-width:760px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.premium-eyebrow{
  font-size:.7rem;
  font-weight:700;
  letter-spacing:.6px;
  text-transform:uppercase;
  color:var(--lux-gold);
}

.premium-page-header h1{
  font-size:2.1rem;
  font-weight:800;
  line-height:1.2;
  color:var(--heading);
}

.accent-text{
  background:linear-gradient(
    90deg,
    var(--brand),
    var(--lux-gold)
  );
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.premium-subtitle{
  font-size:.95rem;
  color:var(--muted);
  max-width:560px;
}

.premium-divider{
  width:70px;
  height:3px;
  border-radius:999px;
  background:linear-gradient(
    90deg,
    var(--brand),
    var(--lux-gold)
  );
  margin-top:12px;
  animation:dividerGlow 3s ease-in-out infinite alternate;
}

@keyframes dividerGlow{
  from{opacity:.6; transform:scaleX(.9);}
  to{opacity:1; transform:scaleX(1);}
}


/* ============================================================
   PREMIUM FILTER
============================================================ */

.premium-filter-wrap{
  margin-top:18px;
  padding:22px 26px;
  border-radius:20px;
  background:#ffffff;
  border:1px solid var(--line);
  box-shadow:0 18px 48px rgba(2,6,23,.08);
}

.premium-filter-inner{
  display:flex;
  gap:24px;
  align-items:flex-end;
}

.premium-filter-group.stretch{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.premium-filter-group label{
  font-size:.7rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.5px;
  color:var(--muted);
}

.select-wrap{
  position:relative;
}

.select-wrap select{
  width:100%;
  appearance:none;
  padding:12px 40px 12px 42px;
  border:none;
  border-radius:12px;
  background:var(--paper-soft);
  font-size:.92rem;
  transition:.25s ease;
}

.icon-location::before{
  content:"📍";
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  font-size:14px;
  opacity:.7;
}

.select-wrap::after{
  content:"▾";
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  font-size:12px;
  opacity:.6;
}

.select-underline{
  position:absolute;
  left:0;
  bottom:-2px;
  height:2px;
  width:0%;
  background:linear-gradient(
    90deg,
    var(--brand),
    var(--lux-gold)
  );
  transition:.35s ease;
}

.select-wrap select:focus + .select-underline{
  width:100%;
}

.select-wrap select:focus{
  outline:none;
  background:#ffffff;
  box-shadow:0 0 0 3px rgba(109,40,217,.12);
}

/* Reset Button */
.filter-reset-btn{
  padding:11px 18px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  font-size:.85rem;
  font-weight:600;
  cursor:pointer;
  transition:.25s ease;
}

.filter-reset-btn:hover{
  background:var(--brand);
  color:#fff;
  border-color:var(--brand);
}

/* Chips */
.active-filter-chips{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}

.filter-chip{
  padding:6px 12px;
  border-radius:999px;
  background:var(--brand-soft);
  color:var(--brand);
  font-size:.75rem;
  font-weight:600;
}

/* ============================================================
   PREMIUM AGENCY GRID
============================================================ */

.premium-agency-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:28px;
}


/* ============================================================
   PREMIUM CARD
============================================================ */

.premium-card{
  background:#fff;
  border-radius:22px;
  overflow:hidden;
  border:1px solid var(--line);

  box-shadow:
    0 12px 36px rgba(2,6,23,.08);

  transition:.35s ease;
}

.premium-card:hover{
  transform:translateY(-8px);
  box-shadow:
    0 26px 60px rgba(2,6,23,.18);
  border-color:var(--brand);
}


/* ============================================================
   IMAGE
============================================================ */

.premium-thumb{
  position:relative;
  display:block;
  aspect-ratio:16/10;
  overflow:hidden;
}

.premium-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .5s ease;
}

.premium-card:hover .premium-thumb img{
  transform:scale(1.06);
}

/* Overlay */
.thumb-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    to top,
    rgba(0,0,0,.55),
    rgba(0,0,0,.05)
  );
  opacity:.7;
  transition:.3s ease;
}

.premium-card:hover .thumb-overlay{
  opacity:.5;
}


/* ============================================================
   BADGES
============================================================ */

.verified-badge{
  position:absolute;
  top:14px;
  left:14px;

  background:linear-gradient(
    90deg,
    var(--brand),
    var(--lux-gold)
  );

  color:#fff;
  font-size:.7rem;
  font-weight:700;
  padding:6px 12px;
  border-radius:999px;
}

.models-badge{
  position:absolute;
  bottom:14px;
  right:14px;

  background:#fff;
  color:var(--ink);
  font-size:.7rem;
  font-weight:700;
  padding:6px 12px;
  border-radius:999px;
}


/* ============================================================
   BODY
============================================================ */

.premium-body{
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.premium-title{
  font-size:1.05rem;
  font-weight:800;
}

.premium-title a{
  color:var(--heading);
}

.agency-location{
  font-size:.8rem;
  color:var(--muted);
}

.agency-desc{
  font-size:.85rem;
  color:var(--muted);
  line-height:1.5;
}

/* CTA */
.agency-cta{
  margin-top:auto;
  font-size:.85rem;
  font-weight:700;
  color:var(--brand);
  text-decoration:none;
  transition:.2s ease;
}

.agency-cta:hover{
  color:var(--lux-gold);
}

.site-header + .banner-wrap{
  margin-top:0;
}

.banner-wrap{
  margin-top:0;
  padding-top:0;
  background:#ffffff;
}
main,
.home-main,
.agency-banner-row{
  background:#ffffff;
}
