/* ==========================================================
   AGENCIES LISTING — EDGE TO EDGE + STICKY FILTER FIX
========================================================== */

/* ==========================================================
   CRITICAL STICKY FIX — FORCE BODY SCROLL
========================================================== */

html, body{
  height:auto !important;
  overflow-y:auto !important;
}

#page,
#app,
.site,
.site-content,
.page-wrap,
.page-wrap.with-sidebar,
.content-grid,
.main-content{
  overflow:visible !important;
  height:auto !important;
  max-height:none !important;
}

/* -------------------------
   SAFE RESET (SCOPED)
-------------------------- */
.page-wrap.with-sidebar *,
.page-wrap.with-sidebar *::before,
.page-wrap.with-sidebar *::after{
  box-sizing:border-box;
}

.page-wrap.with-sidebar{
  background:var(--bg);
  color:var(--text);
  font-family:Inter,system-ui,sans-serif;
  width:100%;
  max-width:100%;
  margin:0;
  padding:0 0 60px;
  overflow:visible;
}


/* ==========================================================
   LOCATION STRIP
========================================================== */

.location-strip{
  width:100%;
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,0.05);
}


/* ==========================================================
   BANNERS + TRENDING
========================================================== */

.banner-wrap{
  width:100%;
  padding:10px 0;
  margin:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,360px);
  gap:12px;
  border-bottom:1px solid rgba(255,255,255,0.04);
}

.banner-main{
  padding:0 12px;
  background:transparent;
  box-shadow:none;
}

.banner-side{
  padding-right:12px;
}

.section-heading{
  font-size:1.2rem;
  color:var(--gold);
  margin-bottom:10px;
  text-align:center;
}


/* ---------- BANNER GRID ---------- */

.banner-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

.banner-grid a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:42px;
  background:#0f111a;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:0 6px 18px rgba(0,0,0,0.35);
  overflow:hidden;
  transition:.25s ease;
}

.banner-grid a:hover{
  box-shadow:0 10px 26px rgba(224,176,104,0.35);
  border-color:var(--gold);
}

.banner-grid img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  transition:transform .25s ease;
}

.banner-grid a:hover img{
  transform:scale(1.08);
}


/* ---------- MOBILE BANNER TOGGLE ---------- */

.banner-toggle{
  display:none;
  width:100%;
  padding:10px 14px;
  margin-bottom:10px;
  border-radius:10px;
  background:#0f111a;
  border:1px solid rgba(255,255,255,0.12);
  color:var(--gold);
  font-weight:600;
  cursor:pointer;
}

@media (max-width:1024px){
  .banner-toggle{display:block;}
  .banner-grid{display:none;}
  .banner-wrap.open .banner-grid{display:grid;}
}


/* ==========================================================
   CONTENT GRID (MAIN + SIDEBAR)
========================================================== */

.content-grid{
  width:100%;
  max-width:100%;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,360px);
  gap:12px;
  align-items:start;
  overflow:visible;
}

@media (max-width:1024px){
  .content-grid{grid-template-columns:1fr;}
}


/* ==========================================================
   MAIN CONTENT
========================================================== */

.main-content{
  padding-left:12px;
  display:block;
  overflow:visible;
  transform:none;
  filter:none;
}

.page-header{
  text-align:center;
  margin:18px 0 14px;
}

.page-header h1{
  font-size:28px;
  font-weight:700;
  color:var(--text);
}


/* ==========================================================
   STICKY FILTER BAR (FIXED)
========================================================== */

.filter-bar,
.filter-wrap{
  position:relative;
  width:100%;
  overflow:visible;
}

.sticky-filter{
  position:sticky;
  top:96px;
  z-index:80;

  width:100%;
  margin:0 0 22px;

  background:linear-gradient(
    135deg,
    rgba(255,255,255,0.10),
    rgba(255,255,255,0.03)
  );
  backdrop-filter:blur(16px) saturate(140%);
  -webkit-backdrop-filter:blur(16px) saturate(140%);

  border-radius:22px;
  padding:16px 18px;

  border:1px solid rgba(255,255,255,0.15);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

.filter-inner{
  display:flex;
  justify-content:center;
  gap:26px;
  flex-wrap:wrap;
}


/* ==========================================================
   FILTER GROUPS
========================================================== */

.filter-group{
  background:rgba(255,255,255,0.08);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);

  padding:12px 16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.18);

  box-shadow:
    0 12px 35px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.18);

  text-align:center;
  transition:all .25s ease;
}

.filter-group:hover{transform:translateY(-2px);}

.filter-group label{
  display:block;
  font-size:12px;
  color:rgba(255,255,255,0.7);
  margin-bottom:6px;
}

.filter-group select{
  width:220px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.25);
  background:rgba(10,15,28,0.65);
  color:var(--text);
  outline:none;
}

.filter-group select:focus{
  border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(250,204,21,0.25);
}

@media (max-width:768px){
  .sticky-filter{position:relative;top:auto;}
  .filter-inner{flex-direction:column;}
  .filter-group select{width:100%;}
}


/* ==========================================================
   AGENCY GRID
========================================================== */

.agency-list-grid{
  width:100%;
  display:grid;
  grid-template-columns:repeat(3,minmax(260px,1fr));
  gap:22px;
}

@media (max-width:1200px){
  .agency-list-grid{grid-template-columns:repeat(2,minmax(260px,1fr));}
}

@media (max-width:640px){
  .agency-list-grid{grid-template-columns:1fr;}
}


/* ==========================================================
   WIDE SCREEN OPTIMIZATION
========================================================== */

@media (min-width:1600px){
  .agency-list-grid{
    grid-template-columns:repeat(4,minmax(280px,1fr));
    gap:26px;
  }
}

@media (min-width:1920px){
  .agency-list-grid{
    grid-template-columns:repeat(5,minmax(300px,1fr));
    gap:28px;
  }
}


/* ==========================================================
   AGENCY CARD
========================================================== */

.agency-card{
  position:relative;
  display:flex;
  gap:14px;
  align-items:flex-start;

  background:var(--surface);
  border-radius:20px;
  overflow:hidden;

  border:1px solid rgba(255,255,255,0.06);
  box-shadow:var(--shadow-soft);
  transition:.25s ease;
}

.agency-card:hover{
  transform:translateY(-5px);
  border-color:var(--accent);
  box-shadow:0 28px 70px rgba(0,0,0,0.55);
}

.agency-badge-top{
  position:absolute;
  top:0;
  right:0;
  background:linear-gradient(135deg,var(--gold),#caa83d);
  color:#000;
  font-size:11px;
  font-weight:700;
  padding:6px 10px;
  border-bottom-left-radius:12px;
}


/* ==========================================================
   AGENCY IMAGE
========================================================== */

.agency-thumb{
  flex:0 0 110px;
  height:110px;
  background:#000;
  border-radius:14px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

.agency-thumb img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}


/* ==========================================================
   AGENCY CONTENT
========================================================== */

.agency-body{
  padding:12px 14px 12px 0;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.agency-title{
  font-size:16px;
  font-weight:600;
  margin-bottom:4px;
}

.agency-card:hover .agency-title{color:var(--accent);}

.agency-meta{
  font-size:13px;
  color:var(--accent);
  margin-bottom:6px;
}

.agency-desc{
  font-size:13px;
  color:var(--muted);
  line-height:1.45;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.agency-desc a{
  color:var(--accent);
  font-weight:600;
  margin-left:4px;
}


/* ==========================================================
   SIDEBAR
========================================================== */

.sidebar-content{
  position:sticky;
  top:96px;
  padding-right:12px;
}
