/* ============================================================
   CITY DIRECTORY — WHITE PREMIUM EXTENSION
   Extends front-page.css grid system
============================================================ */

/* ===============================
   DIRECTORY HEADER
=============================== */

.directory-head{
  margin-bottom:14px;
}

.yoast-breadcrumbs{
  font-size:.75rem;
  font-weight:600;
  color:var(--muted);
  margin-bottom:8px;
}

.yoast-breadcrumbs a{
  color:var(--brand);
}

/* ===============================
   CITY HERO TITLE (AUTO GENERATED)
=============================== */

.city-hero{
  background:linear-gradient(135deg,#ffffff 0%, #f8fafc 100%);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:20px 22px;
  margin-bottom:18px;
  box-shadow:var(--shadow-soft);
}

.city-hero h1{
  font-size:1.35rem;
  font-weight:800;
  color:#5C0303;
  margin-bottom:6px;
}

.city-hero p{
  font-size:.85rem;
  color:var(--muted);
}

/* ===============================
   LISTING BLOCK REFINEMENT
=============================== */

.listing-block{
  margin-top:20px;
}

.block-head{
  margin-bottom:12px;
}

.block-title{
  font-size:.95rem;
  letter-spacing:.5px;
  position:relative;
}

.block-title::after{
  content:'';
  display:block;
  width:40px;
  height:3px;
  background:linear-gradient(135deg,var(--lux-gold),#facc15);
  margin-top:6px;
  border-radius:2px;
}

/* ===============================
   CARD GRID POLISH
=============================== */

.card-row{
  margin-top:14px;
}

/* Slight spacing enhancement for city pages */
.home-left .card-row{
  gap:16px;
}

/* ===============================
   PAGINATION — PREMIUM STYLE
=============================== */

.pagination{
  margin-top:28px;
  display:flex;
  justify-content:center;
  gap:6px;
}

.pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:34px;
  padding:0 10px;
  border-radius:10px;
  font-size:.8rem;
  font-weight:700;
  border:1px solid var(--line);
  background:#ffffff;
  color:#1f2937;
  transition:.25s ease;
}

.pagination .page-numbers:hover{
  background:#ede9fe;
  border-color:var(--brand);
  color:var(--brand);
}

.pagination .current{
  background:var(--brand);
  border-color:var(--brand);
  color:#fff;
}

/* ===============================
   NO RESULTS
=============================== */

.no-results{
  padding:30px 20px;
  text-align:center;
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:var(--radius);
  font-size:.85rem;
  font-weight:600;
  color:var(--muted);
}

/* ===============================
   CITY CONTENT BLOCK (BOTTOM SEO)
=============================== */

.city-content{
  margin-top:40px;
  background:#ffffff;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:24px;
  box-shadow:var(--shadow-soft);
}

.city-content .section-heading{
  font-size:1rem;
  margin-bottom:12px;
  color:#5C0303;
}

.city-content p{
  font-size:.85rem;
  line-height:1.6;
  color:#374151;
}

/* ============================================================
   CITY DIRECTORY — PREMIUM BANNERS
============================================================ */

.banner-wrap{
  margin-top:18px;
  margin-bottom:18px;
}

.banner-main{
  background:#ffffff;
  border-radius:18px;
  padding:18px;
  border:1px solid #e5e7eb;
  box-shadow:0 12px 32px rgba(2,6,23,.08);
}

/* GRID LAYOUT */
.banner-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:14px;
}

/* BANNER ITEM */
.banner-grid a{
  display:flex;
  align-items:center;
  justify-content:center;
  height:60px;
  background:#ffffff;
  border-radius:14px;
  border:1px solid #e5e7eb;
  box-shadow:0 8px 22px rgba(2,6,23,.06);
  transition:all .25s ease;
  overflow:hidden;
}

/* IMAGE */
.banner-grid img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  transition:transform .3s ease;
}

/* HOVER EFFECT */
.banner-grid a:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 40px rgba(2,6,23,.12);
  border-color:#d4af37;
}

.banner-grid a:hover img{
  transform:scale(1.05);
}

/* ===============================
   RESPONSIVE
=============================== */

@media (max-width:1400px){
  .banner-grid{
    grid-template-columns:repeat(4,1fr);
  }
}

@media (max-width:1100px){
  .banner-grid{
    grid-template-columns:repeat(3,1fr);
  }
}

@media (max-width:768px){
  .banner-main{
    padding:14px;
  }

  .banner-grid{
    grid-template-columns:repeat(2,1fr);
    gap:10px;
  }

  .banner-grid a{
    height:54px;
  }
}

@media (max-width:480px){
  .banner-grid{
    grid-template-columns:1fr;
  }

  .banner-grid a{
    height:50px;
  }
}

/* ===============================
   RESPONSIVE REFINEMENT
=============================== */

@media (max-width:900px){

  .city-hero{
    padding:16px;
  }

  .city-hero h1{
    font-size:1.1rem;
  }

  .pagination{
    flex-wrap:wrap;
  }

  .city-content{
    padding:18px;
  }
}
/* ============================================================
   CITY DIRECTORY — FORCE WHITE CANVAS
============================================================ */

.home-main,
.home-grid,
.home-left{
  background:#ffffff;
}

/* Remove any inherited dark theme */
.home-left{
  position:relative;
  z-index:1;
}
/* ============================================================
   LOCATION DIRECTORY FINAL LAYOUT PATCH
   Country and city pages now inherit the home page grid/card system.
============================================================ */

.location-directory{
  background:#ffffff;
}

.location-grid.home-grid{
  align-items:start;
}

.location-left.home-left{
  min-width:0;
}

.location-head{
  margin-bottom:12px;
}

.location-hero,
.city-hero,
.country-hero{
  background:linear-gradient(135deg,#ffffff 0%,#f8fafc 100%);
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:18px 20px;
  margin:0 0 14px;
  box-shadow:0 10px 28px rgba(2,6,23,.08);
}

.location-kicker{
  display:inline-flex;
  align-items:center;
  margin-bottom:8px;
  padding:4px 9px;
  border-radius:999px;
  background:#f5f3ff;
  color:#6d28d9;
  font-size:.72rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.location-hero h1,
.city-hero h1,
.country-hero h1{
  margin:0 0 6px;
  color:#5C0303;
  font-size:1.45rem;
  line-height:1.15;
  font-weight:900;
}

.location-hero p,
.city-hero p,
.country-hero p{
  max-width:840px;
  margin:0;
  color:#475569;
  font-size:.9rem;
  line-height:1.55;
}

.location-city-pills{
  margin:0 0 14px;
  padding:14px;
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  box-shadow:0 10px 26px rgba(2,6,23,.06);
}

.city-pill-wrap{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.city-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:7px 12px;
  border:1px solid #e5e7eb;
  border-radius:999px;
  background:#ffffff;
  color:#1A3552;
  font-size:.78rem;
  font-weight:800;
  text-decoration:none;
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.city-pill:hover{
  transform:translateY(-2px);
  border-color:#7c3aed;
  box-shadow:0 8px 18px rgba(124,58,237,.12);
  color:#6d28d9;
}

.location-banner-wrap{
  margin-top:0;
}

.location-listing-block{
  margin-top:18px;
}

.location-listing-block .block-title{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 12px;
  color:#1A3552;
  font-size:1rem;
  font-weight:900;
}

.location-listing-block .section-icon{
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:9px;
  background:#fef3c7;
  font-size:15px;
}

.location-listing-block .card-row{
  display:grid !important;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:14px;
}

.location-listing-block .escort-card-wrapper,
.location-listing-block .escort-card{
  min-width:0;
  width:100%;
}

.location-listing-block .escort-card{
  position:relative;
  height:100%;
}

.location-listing-block .escort-thumb{
  width:100%;
  overflow:hidden;
  background:#f8fafc;
}

.location-listing-block .escort-card img,
.location-listing-block .escort-thumb img{
  display:block;
  width:100% !important;
  height:auto;
  aspect-ratio:3/4;
  object-fit:cover;
}

.location-content.content-card,
.location-content{
  margin-top:28px;
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:24px;
  box-shadow:0 12px 32px rgba(2,6,23,.08);
}

.location-content .section-heading{
  margin:0 0 14px;
  padding:0 0 10px;
  border-bottom:1px solid #e5e7eb;
  color:#5C0303;
  font-size:1.2rem;
  line-height:1.25;
  font-weight:900;
}

.location-prose{
  color:#334155;
  font-size:.92rem;
  line-height:1.75;
}

.location-prose h2,
.location-prose h3,
.location-prose h4{
  color:#1A3552;
  font-weight:900;
  line-height:1.3;
}

.location-prose h2{
  margin:24px 0 10px;
  font-size:1.08rem;
}

.location-prose h3{
  margin:20px 0 8px;
  font-size:1rem;
}

.location-prose h4{
  margin:16px 0 6px;
  font-size:.95rem;
}

.location-prose p{
  margin:0 0 14px;
}

.location-prose ul,
.location-prose ol{
  margin:0 0 16px 20px;
  padding:0;
}

.location-prose li{
  margin-bottom:7px;
}

.location-prose a{
  color:#6d28d9;
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:3px;
}

.location-prose table{
  width:100%;
  margin:18px 0;
  border-collapse:collapse;
  overflow:hidden;
  border-radius:12px;
}

.location-prose th,
.location-prose td{
  padding:10px 12px;
  border:1px solid #e5e7eb;
  text-align:left;
  vertical-align:top;
}

.location-prose th{
  background:#f8fafc;
  color:#1A3552;
  font-weight:900;
}

.no-results h3{
  margin:0 0 6px;
  color:#1A3552;
  font-size:1rem;
}

.no-results p{
  margin:0;
}

@media (max-width:1600px){
  .location-listing-block .card-row{ grid-template-columns:repeat(5,minmax(0,1fr)); }
}

@media (max-width:1280px){
  .location-listing-block .card-row{ grid-template-columns:repeat(4,minmax(0,1fr)); }
}

@media (max-width:1024px){
  .location-listing-block .card-row{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (max-width:900px){
  .location-grid.home-grid{
    display:block;
    width:100%;
    max-width:100%;
    margin-left:0;
    margin-right:0;
  }

  .location-left.home-left{
    padding:10px 12px 18px !important;
  }

  .location-sidebar.main-right{
    position:static;
    border-left:none;
    border-top:1px solid #e5e7eb;
  }

  .location-hero,
  .city-hero,
  .country-hero,
  .location-content.content-card,
  .location-city-pills{
    border-radius:14px;
  }

  .location-content.content-card,
  .location-content{
    padding:18px;
  }
}

@media (max-width:640px){
  .location-listing-block .card-row{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    padding-left:0;
    padding-right:0;
  }

  .location-hero h1,
  .city-hero h1,
  .country-hero h1{
    font-size:1.18rem;
  }

  .location-prose{
    font-size:.88rem;
  }
}


/* ============================================================
   COUNTRY PAGE CITY GRID - MATCH HOME COUNTRY CITIES LAYOUT
   Same visual rules as front-page country/city selector.
============================================================ */
.country-cities-home-layout{
  margin:0 0 14px;
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
}

.country-cities-home-layout .country-city-grid{
  display:grid !important;
  grid-template-columns:repeat(7, minmax(0, 1fr));
  gap:10px;
  max-height:none;
  overflow:visible;
}

.country-cities-home-layout .country-city-card{
  min-height:40px;
  padding:8px 10px;
  display:flex !important;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(124, 58, 237, 0.28);
  border-radius:12px;
  background:#ffffff;
  color:#111827;
  font-size:13px;
  font-weight:850;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
  box-shadow:0 6px 14px rgba(15, 23, 42, 0.06);
  transition:all 0.18s ease;
}

.country-cities-home-layout .country-city-card:hover{
  background:#7c3aed;
  border-color:#7c3aed;
  color:#ffffff;
  transform:translateY(-1px);
}

.country-cities-home-layout .cc-city-name{
  color:inherit;
  line-height:1.2;
}

.country-cities-home-layout .cc-city.is-hidden-extra{
  display:none !important;
}

.country-cities-home-layout .country-city-grid.is-expanded .cc-city.is-hidden-extra{
  display:flex !important;
}

.country-cities-home-layout .cc-show-all-wrap{
  display:none;
  grid-column:1 / -1;
  justify-content:center;
  margin-top:4px;
}

.country-cities-home-layout .cc-cities.has-more-cities .cc-show-all-wrap,
.country-cities-home-layout .country-city-grid.has-more-cities .cc-show-all-wrap{
  display:flex;
}

.country-cities-home-layout .cc-show-all-btn{
  min-height:38px;
  padding:0 18px;
  border:1px solid #7c3aed;
  border-radius:999px;
  background:#111827;
  color:#ffffff;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(15, 23, 42, 0.16);
}

.country-cities-home-layout .cc-show-all-btn:hover{
  background:#7c3aed;
  color:#ffffff;
}

@media (max-width:991px){
  .country-cities-home-layout .country-city-grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:9px;
  }

  .country-cities-home-layout .country-city-card{
    min-height:38px;
    font-size:12px;
    border-radius:11px;
  }
}

@media (max-width:640px){
  .country-cities-home-layout .country-city-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
    padding:10px;
    background:#ffffff;
    border:1px solid rgba(124, 58, 237, 0.18);
    border-radius:16px;
    box-shadow:0 12px 28px rgba(15, 23, 42, 0.08);
  }

  .country-cities-home-layout .country-city-card{
    min-height:42px;
    padding:8px 10px;
    font-size:13px;
    border-radius:12px;
  }

  .country-cities-home-layout .cc-show-all-btn{
    width:100%;
    min-height:42px;
  }
}

/* ============================================================
   Country city grid visibility fix
   Keeps country directory city pills from being clipped by the
   front-page country/city strip max-height rules.
============================================================ */
.country-directory-page .country-cities-home-layout,
.country-directory-page .country-cities-home-layout .cc-cities,
.country-directory-page .country-cities-home-layout .country-city-grid,
.country-directory-page .country-cities-home-layout .cc-cities.has-visible-cities,
.country-directory-page .country-cities-home-layout .cc-cities.has-more-cities{
  max-height:none !important;
  height:auto !important;
  overflow:visible !important;
}

.country-directory-page .country-cities-home-layout .country-city-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)) !important;
  align-items:stretch;
  gap:10px 12px !important;
  padding:0 !important;
  margin:0 0 18px !important;
}

.country-directory-page .country-cities-home-layout .country-city-card{
  width:100% !important;
  min-width:0 !important;
  min-height:38px !important;
  padding:9px 12px !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:anywhere !important;
}

.country-directory-page .country-cities-home-layout .cc-city-name{
  display:block;
  width:100%;
  line-height:1.2 !important;
}

.country-directory-page .country-cities-home-layout .cc-show-all-wrap{
  grid-column:1 / -1 !important;
  width:100%;
  padding-top:2px;
}

.country-directory-page .country-cities-home-layout .cc-show-all-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

@media (max-width:1200px){
  .country-directory-page .country-cities-home-layout .country-city-grid{
    grid-template-columns:repeat(auto-fit, minmax(135px, 1fr)) !important;
  }
}

@media (max-width:640px){
  .country-directory-page .country-cities-home-layout .country-city-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    padding:10px !important;
    gap:8px !important;
  }

  .country-directory-page .country-cities-home-layout .country-city-card{
    min-height:40px !important;
    padding:8px 9px !important;
    font-size:12px !important;
  }
}

/* ============================================================
   CITY PAGE — CITY-SPECIFIC BANNER ADS
============================================================ */
.city-banner-grid{
  grid-template-columns:repeat(4,1fr);
}

@media (max-width:1100px){
  .city-banner-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:480px){
  .city-banner-grid{
    grid-template-columns:1fr;
  }
}

/* ============================================================
   CITY PAGE COMPACT HERO AND SEPARATED BANNER AD AREAS
============================================================ */
.location-head{
  margin-bottom:8px;
}

.location-hero,
.city-directory-page .city-hero.location-hero,
.city-hero,
.country-hero{
  padding:12px 16px;
  margin:0 0 8px;
  border-radius:16px;
  box-shadow:0 8px 22px rgba(2,6,23,.06);
}

.location-kicker{
  margin-bottom:5px;
  padding:3px 9px;
  font-size:.68rem;
}

.location-hero h1,
.city-directory-page .city-hero h1,
.city-hero h1,
.country-hero h1{
  font-size:1.22rem;
  margin:0 0 5px;
  line-height:1.12;
}

.location-hero p,
.city-directory-page .city-hero p,
.city-hero p,
.country-hero p{
  font-size:.84rem;
  line-height:1.4;
  margin:0;
}

.city-banner-wrap{
  margin-top:8px;
  margin-bottom:10px;
}

.normal-banner-wrap{
  margin-top:10px;
  margin-bottom:16px;
}

.banner-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 10px;
}

.banner-heading span{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:4px 9px;
  border-radius:999px;
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.05em;
  line-height:1;
  text-transform:uppercase;
}

.banner-heading small{
  color:#64748b;
  font-size:.72rem;
  font-weight:700;
  white-space:nowrap;
}

.city-banner-main{
  padding:13px;
  border-color:#f1d2d2;
  background:linear-gradient(135deg,#fffafa 0%,#ffffff 45%,#fff7ed 100%);
  box-shadow:0 12px 30px rgba(92,3,3,.08);
}

.city-banner-heading span{
  color:#ffffff;
  background:#5C0303;
}

.city-banner-grid{
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:12px;
}

.city-banner-grid a{
  height:76px;
  border-radius:15px;
  border-color:#f0c7c7;
  background:#fffdfb;
  box-shadow:0 10px 24px rgba(92,3,3,.08);
}

.city-banner-grid a:hover{
  border-color:#5C0303;
  box-shadow:0 16px 34px rgba(92,3,3,.14);
}

.normal-banner-main{
  padding:12px;
  border-color:#e6eaf0;
  background:linear-gradient(135deg,#ffffff 0%,#f8fafc 100%);
  box-shadow:0 8px 22px rgba(2,6,23,.06);
}

.normal-banner-heading span{
  color:#1e293b;
  background:#eef2ff;
}

.normal-banner-grid{
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:10px;
}

.normal-banner-grid a{
  height:54px;
  border-radius:12px;
  background:#ffffff;
  box-shadow:0 6px 18px rgba(2,6,23,.05);
}

.normal-banner-grid a:hover{
  border-color:#7c3aed;
  box-shadow:0 12px 28px rgba(124,58,237,.12);
}

@media (max-width:1100px){
  .city-banner-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .normal-banner-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:640px){
  .location-hero,
  .city-directory-page .city-hero.location-hero,
  .city-hero,
  .country-hero{
    padding:11px 12px;
    border-radius:14px;
  }

  .banner-heading{
    align-items:flex-start;
    flex-direction:column;
    gap:5px;
  }

  .banner-heading small{
    white-space:normal;
  }

  .city-banner-grid,
  .normal-banner-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:9px;
  }

  .city-banner-grid a{
    height:62px;
  }

  .normal-banner-grid a{
    height:50px;
  }
}

@media (max-width:420px){
  .city-banner-grid,
  .normal-banner-grid{
    grid-template-columns:1fr;
  }
}


/* ============================================================
   CITY PAGE PREMIUM HERO + INLINE CITY BANNERS
   City ads sit inline on the right side of the compact city intro.
   The separate City Sponsored Ads heading is intentionally hidden.
============================================================ */
.city-hero-ad-row{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  align-items:stretch;
  margin:0 0 6px;
}

.city-hero-ad-row.has-city-banner-ads{
  grid-template-columns:minmax(360px, 46%) minmax(520px, 1fr);
}

.city-hero-ad-row .location-hero,
.city-hero-ad-row .city-hero,
.taxonomy-city-hero .city-hero-copy{
  min-width:0;
}

.city-hero-ad-row .location-hero,
.city-directory-page .city-hero-ad-row .city-hero.location-hero{
  height:100%;
  min-height:104px;
  margin:0;
  padding:14px 18px;
  border-radius:16px;
  background:
    radial-gradient(circle at top left, rgba(124,58,237,.08), transparent 32%),
    linear-gradient(135deg,#ffffff 0%,#f8fafc 100%);
  border:1px solid #e5e7eb;
  box-shadow:0 10px 26px rgba(2,6,23,.065);
}

.city-hero-ad-row .location-kicker{
  margin-bottom:5px;
  padding:3px 9px;
  font-size:.68rem;
}

.city-hero-ad-row h1{
  margin:0 0 5px;
  font-size:1.18rem;
  line-height:1.12;
}

.city-hero-ad-row p,
.city-hero-ad-row .city-subtitle{
  max-width:none;
  margin:0;
  font-size:.84rem;
  line-height:1.36;
}

.city-banner-inline-wrap{
  height:100%;
  margin:0 !important;
}

.city-banner-inline-wrap .city-banner-main{
  height:100%;
  min-height:104px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:9px;
  border-radius:16px;
  border:1px solid rgba(92,3,3,.14);
  background:
    radial-gradient(circle at top right, rgba(212,175,55,.18), transparent 34%),
    linear-gradient(135deg,#fffafa 0%,#ffffff 48%,#fff7ed 100%);
  box-shadow:0 12px 30px rgba(92,3,3,.10);
  overflow:hidden;
}

.city-banner-inline-wrap .banner-heading,
.city-banner-inline-wrap .city-banner-heading{
  display:none !important;
}

.city-banner-inline-wrap .city-banner-grid{
  width:100%;
  height:100%;
  min-height:116px;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  grid-auto-rows:minmax(54px, 1fr);
  gap:8px;
  align-items:stretch;
}

.city-banner-inline-wrap.city-banner-count-1 .city-banner-grid{
  grid-template-columns:1fr;
}

.city-banner-inline-wrap.city-banner-count-2 .city-banner-grid{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.city-banner-inline-wrap.city-banner-count-3 .city-banner-grid{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.city-banner-inline-wrap.city-banner-count-4 .city-banner-grid{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.city-banner-inline-wrap .city-banner-grid a{
  min-height:54px;
  height:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  border:1px solid rgba(92,3,3,.12);
  background:#ffffff;
  box-shadow:0 7px 16px rgba(92,3,3,.07);
  overflow:hidden;
}

.city-banner-inline-wrap .city-banner-grid a:hover{
  transform:translateY(-2px);
  border-color:#5C0303;
  box-shadow:0 12px 24px rgba(92,3,3,.14);
}

.city-banner-inline-wrap .city-banner-grid img{
  width:100%;
  height:100%;
  max-height:100%;
  object-fit:contain;
  padding:3px;
  display:block;
}

.city-directory-page .location-normal-banner-wrap,
.city-page .location-normal-banner-wrap{
  margin-top:6px;
  margin-bottom:8px;
}

.city-directory-page .normal-banner-main,
.city-page .normal-banner-main{
  padding:10px;
  border-radius:16px;
}

.city-directory-page .normal-banner-grid,
.city-page .normal-banner-grid{
  gap:8px;
}

.city-directory-page .normal-banner-grid a,
.city-page .normal-banner-grid a{
  height:48px;
  border-radius:11px;
}

.city-directory-page .location-listing-block,
.city-page .city-grid-wrap{
  margin-top:8px;
}

.taxonomy-city-hero{
  margin:0 0 6px;
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
}

.taxonomy-city-hero .city-hero-ad-row{
  width:min(100%, 1180px);
  margin-left:auto;
  margin-right:auto;
}

.taxonomy-city-hero .city-hero-copy{
  height:100%;
  min-height:104px;
  padding:14px 18px;
  border:1px solid #e5e7eb;
  border-radius:16px;
  background:
    radial-gradient(circle at top left, rgba(124,58,237,.08), transparent 32%),
    linear-gradient(135deg,#ffffff 0%,#f8fafc 100%);
  box-shadow:0 10px 26px rgba(2,6,23,.065);
}

@media (max-width:1280px){
  .city-hero-ad-row.has-city-banner-ads{
    grid-template-columns:minmax(340px, 44%) minmax(480px, 1fr);
  }

  .city-banner-inline-wrap .city-banner-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    grid-auto-rows:minmax(54px, 1fr);
    min-height:116px;
  }

  .city-banner-inline-wrap .city-banner-grid a{
    min-height:54px;
  }
}

@media (max-width:980px){
  .city-hero-ad-row.has-city-banner-ads{
    grid-template-columns:1fr;
  }

  .city-banner-inline-wrap .city-banner-main,
  .city-hero-ad-row .location-hero,
  .city-directory-page .city-hero-ad-row .city-hero.location-hero,
  .taxonomy-city-hero .city-hero-copy{
    min-height:auto;
  }

  .city-banner-inline-wrap .city-banner-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    grid-auto-rows:minmax(52px, 1fr);
    min-height:112px;
  }

  .city-banner-inline-wrap .city-banner-grid a{
    min-height:52px;
  }
}

@media (max-width:640px){
  .city-hero-ad-row{
    gap:8px;
  }

  .city-hero-ad-row .location-hero,
  .city-directory-page .city-hero-ad-row .city-hero.location-hero,
  .taxonomy-city-hero .city-hero-copy{
    padding:12px;
    border-radius:14px;
  }

  .city-banner-inline-wrap .city-banner-main{
    padding:8px;
    border-radius:14px;
  }

  .city-banner-inline-wrap .city-banner-grid,
  .city-banner-inline-wrap.city-banner-count-3 .city-banner-grid,
  .city-banner-inline-wrap.city-banner-count-4 .city-banner-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    grid-auto-rows:minmax(50px, 1fr);
    min-height:108px;
  }

  .city-banner-inline-wrap .city-banner-grid a{
    min-height:50px;
    height:auto;
  }

  .city-directory-page .normal-banner-grid a,
  .city-page .normal-banner-grid a{
    min-height:46px;
    height:46px;
  }
}

@media (max-width:420px){
  .city-banner-inline-wrap .city-banner-grid,
  .city-banner-inline-wrap.city-banner-count-2 .city-banner-grid,
  .city-banner-inline-wrap.city-banner-count-3 .city-banner-grid,
  .city-banner-inline-wrap.city-banner-count-4 .city-banner-grid{
    grid-template-columns:1fr;
  }

  .city-banner-inline-wrap .city-banner-grid a{
    height:48px;
    min-height:48px;
  }
}


/* ============================================================
   CITY INLINE BANNER 2x2 HARD FIX
   Keeps city banner ads separate from normal/site-wide banner CSS.
============================================================ */
.city-hero-ad-row.has-city-banner-ads .city-banner-inline-wrap{
  display:block !important;
  width:100% !important;
}

.city-hero-ad-row.has-city-banner-ads .city-banner-inline-wrap .city-banner-main{
  min-height:132px !important;
  padding:10px !important;
}

.city-hero-ad-row.has-city-banner-ads .city-banner-inline-wrap .city-banner-grid,
.city-directory-page .city-banner-inline-wrap .city-banner-grid,
.taxonomy-city-hero .city-banner-inline-wrap .city-banner-grid{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  grid-template-rows:repeat(2,minmax(54px,1fr)) !important;
  grid-auto-flow:row !important;
  gap:9px !important;
  width:100% !important;
  min-height:112px !important;
  height:100% !important;
}

.city-hero-ad-row.has-city-banner-ads .city-banner-inline-wrap.city-banner-count-1 .city-banner-grid{
  grid-template-columns:1fr !important;
  grid-template-rows:minmax(88px,1fr) !important;
}

.city-hero-ad-row.has-city-banner-ads .city-banner-inline-wrap.city-banner-count-2 .city-banner-grid{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  grid-template-rows:minmax(88px,1fr) !important;
}

.city-hero-ad-row.has-city-banner-ads .city-banner-inline-wrap.city-banner-count-3 .city-banner-grid,
.city-hero-ad-row.has-city-banner-ads .city-banner-inline-wrap.city-banner-count-4 .city-banner-grid{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  grid-template-rows:repeat(2,minmax(54px,1fr)) !important;
}

.city-hero-ad-row.has-city-banner-ads .city-banner-inline-wrap .city-banner-grid > .city-banner-item,
.city-directory-page .city-banner-inline-wrap .city-banner-grid > .city-banner-item,
.taxonomy-city-hero .city-banner-inline-wrap .city-banner-grid > .city-banner-item{
  width:100% !important;
  height:54px !important;
  min-height:54px !important;
  max-height:70px !important;
  margin:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.city-hero-ad-row.has-city-banner-ads .city-banner-inline-wrap .city-banner-grid > .city-banner-item img,
.city-directory-page .city-banner-inline-wrap .city-banner-grid > .city-banner-item img,
.taxonomy-city-hero .city-banner-inline-wrap .city-banner-grid > .city-banner-item img{
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  padding:3px !important;
}

@media (max-width:980px){
  .city-hero-ad-row.has-city-banner-ads .city-banner-inline-wrap .city-banner-main{
    min-height:124px !important;
  }
}

@media (max-width:420px){
  .city-hero-ad-row.has-city-banner-ads .city-banner-inline-wrap .city-banner-grid,
  .city-hero-ad-row.has-city-banner-ads .city-banner-inline-wrap.city-banner-count-2 .city-banner-grid,
  .city-hero-ad-row.has-city-banner-ads .city-banner-inline-wrap.city-banner-count-3 .city-banner-grid,
  .city-hero-ad-row.has-city-banner-ads .city-banner-inline-wrap.city-banner-count-4 .city-banner-grid{
    grid-template-columns:1fr !important;
    grid-template-rows:none !important;
  }
}
