/* Australia Escorts v2.4.5 | reference-inspired two-row header and high-res 4-column profile cards.
   Applied last so legacy desktop banner hiding and 5/6-column declarations cannot override. */
@media (min-width:1241px) {
  body .site-header.premium-header {
    background:#151412 !important;
    border-top:3px solid #006b35 !important;
    border-bottom:1px solid #3e473f !important;
  }
  body .site-header.premium-header .premium-header-inner {
    display:grid !important;
    grid-template-columns:minmax(162px,210px) minmax(0,1fr) !important;
    grid-template-rows:minmax(91px, auto) 49px !important;
    width:100% !important; max-width:none !important;
    min-height:140px !important;
    padding:0 clamp(10px,1vw,20px) !important;
    gap:0 clamp(12px,1.1vw,22px) !important;
    align-items:stretch !important;
  }
  body .site-header.premium-header .header-logo {
    grid-area:1 / 1 / 2 / 2;
    display:flex !important; align-items:center !important;
    min-height:0 !important; height:auto !important;
    width:100% !important; max-width:100% !important;
    flex:auto !important; padding:0 !important; margin:0 !important;
  }
  body .site-header.premium-header .premium-header-main { display:contents !important; }
  body .site-header.premium-header .premium-header-top {
    grid-area:1 / 2 / 2 / 3;
    display:grid !important;
    grid-template-columns:minmax(180px,1.1fr) minmax(185px,1fr) max-content !important;
    align-items:center !important; justify-content:stretch !important;
    height:auto !important; min-height:90px !important;
    width:100% !important; padding:9px 0 !important;
    gap:clamp(8px,.8vw,16px) !important;
    border-bottom:0 !important;
  }
  body .site-header.premium-header .premium-header-top:not(:has(.header-ad)) {
    grid-template-columns:minmax(185px,1fr) max-content !important;
  }
  body .site-header.premium-header .header-ad {
    display:block !important; width:100% !important; height:72px !important;
    min-width:0 !important; max-width:none !important;
    flex:none !important; margin:0 !important;
    border-radius:9px !important; border:1px solid rgba(237,209,151,.27) !important;
    overflow:hidden !important; background:#080b09 !important;
  }
  body .site-header.premium-header .header-ad > a,
  body .site-header.premium-header .header-ad > span {
    display:flex !important; height:100% !important; width:100% !important;
    align-items:center; justify-content:center; overflow:hidden;
  }
  body .site-header.premium-header .header-ad img {
    display:block !important; width:100% !important; height:100% !important;
    max-height:none !important; object-fit:contain !important; object-position:center !important;
  }
  body .site-header.premium-header .header-ad-admin-hint a {
    font-size:12px; color:#ffe08d !important; padding:9px; text-align:center;
    text-decoration:underline;
  }
  body .site-header.premium-header .header-search {
    grid-column:auto; flex:none !important; width:100% !important;
    min-width:0 !important; max-width:none !important; margin:0 !important;
  }
  body .site-header.premium-header .header-search form {
    min-height:56px !important; height:56px !important;
    border-radius:7px !important; border:1px solid #68605a !important;
    background:#151412 !important; box-shadow:none !important;
  }
  body .site-header.premium-header .header-search input {
    min-height:54px !important; font-size:15px !important;
    padding:0 17px !important; background:transparent !important;
  }
  body .site-header.premium-header .header-search button {
    min-height:54px !important; background:#16442d !important; color:#f6fff8 !important;
    padding:8px 15px !important;
  }
  body .site-header.premium-header .header-auth {
    grid-column:auto; flex:none !important; gap:8px !important;
    display:flex !important; align-items:center !important; justify-content:flex-end !important;
    width:max-content !important; min-width:0 !important; margin:0 !important;
  }
  body .site-header.premium-header .header-auth .btn-auth {
    min-height:53px !important; height:53px !important;
    border-radius:7px !important; padding:0 clamp(12px,.95vw,21px) !important;
    border:1px solid #635249 !important;
    background:#171411 !important; color:#fff !important;
    font-size:14px !important; font-weight:700 !important;
  }
  body .site-header.premium-header .header-auth .btn-register {
    color:#fff !important; background:#7d2537 !important;
    border-color:#7d2537 !important;
  }
  body .site-header.premium-header .header-auth .btn-contact {
    color:#161511 !important; background:#dbb875 !important;
    border-color:#dbb875 !important;
  }
  body .site-header.premium-header .header-auth .btn-auth:hover { filter:brightness(1.15); }
  body .site-header.premium-header .premium-header-bottom {
    grid-area:2 / 1 / 3 / 3;
    display:flex !important; align-items:center !important; justify-content:center !important;
    width:100% !important; min-width:0 !important;
    height:49px !important; min-height:49px !important;
    padding:0 !important; margin:0 !important;
    gap:0 !important;
    background:#102238 !important;
    border-top:1px solid rgba(255,255,255,.12) !important;
  }
  body .site-header.premium-header .header-nav {
    width:100% !important; max-width:none !important;
    flex:1 !important; justify-content:center !important;
    height:49px !important; min-width:0 !important; margin:0 !important;
    overflow-x:auto !important; overflow-y:hidden !important;
    scrollbar-width:thin;
  }
  body .site-header.premium-header .nav-menu,
  body .site-header.premium-header .wx-primary-menu {
    width:max-content !important; max-width:100% !important; min-width:min-content !important;
    margin:0 auto !important; padding:0 !important;
    justify-content:center !important; gap:clamp(1px,.4vw,9px) !important;
  }
  body .site-header.premium-header .nav-menu li a {
    min-height:43px !important; padding:7px clamp(5px,.62vw,12px) !important;
    font-size:clamp(12px,.82vw,15px) !important;
    color:#fff !important;
  }
}
@media (min-width:1241px) and (max-width:1450px) {
  body .site-header.premium-header .premium-header-inner {
    grid-template-columns:165px minmax(0,1fr) !important;
    gap:0 10px !important; padding:0 10px !important;
  }
  body .site-header.premium-header .header-ad { display:block !important; height:59px !important; }
  body .site-header.premium-header .premium-header-top {
    grid-template-columns:minmax(170px,1fr) minmax(175px,1fr) max-content !important;
    gap:8px !important;
  }
  body .site-header.premium-header .header-auth .btn-auth {
    min-height:45px !important; height:45px !important; padding:0 10px !important; font-size:12px !important;
  }
  body .site-header.premium-header .header-search form,
  body .site-header.premium-header .header-search input,
  body .site-header.premium-header .header-search button { min-height:45px !important; height:45px !important; }
  body .site-header.premium-header .nav-menu li a {padding-inline:5px !important;font-size:12px !important;}
}
@media (max-width:1240px) {
  body .site-header.premium-header .mobile-header-ad {
    display:flex; align-items:center; justify-content:center; padding:7px 12px;
    background:#101814; border-top:1px solid #3b5143;
  }
  body .site-header.premium-header .mobile-header-ad a,
  body .site-header.premium-header .mobile-header-ad span {
    display:block; width:min(680px,100%); max-height:72px; text-align:center;
  }
  body .site-header.premium-header .mobile-header-ad img {
    width:100%; height:auto; max-height:72px; object-fit:contain; display:block;
  }
}
@media (min-width:1241px) {
  body .site-header.premium-header .mobile-header-ad {display:none !important;}
}
/* Four real profile cards per row on desktop. This overrides all prior 5/6-column rules. */
@media (min-width:1180px) {
  body .card-row:has(> .escort-card-wrapper),
  body .card-row:has(> .escort-card),
  body .home-main .card-row,
  body .location-listing-block .card-row,
  body .listing-block .card-row,
  body .wx-card-grid.card-row,
  body .card-row.wx-card-grid {
    display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:clamp(10px,.95vw,17px) !important;
  }
}
@media (min-width:750px) and (max-width:1179px) {
  body .card-row:has(> .escort-card-wrapper),
  body .card-row:has(> .escort-card),
  body .home-main .card-row,
  body .location-listing-block .card-row,
  body .listing-block .card-row,
  body .wx-card-grid.card-row,
  body .card-row.wx-card-grid {
    display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:12px !important;
  }
}
@media (min-width:430px) and (max-width:749px) {
  body .card-row:has(> .escort-card-wrapper),
  body .card-row:has(> .escort-card),
  body .home-main .card-row,
  body .location-listing-block .card-row,
  body .listing-block .card-row,
  body .wx-card-grid.card-row,
  body .card-row.wx-card-grid {
    display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }
}
@media (max-width:429px) {
  body .card-row:has(> .escort-card-wrapper),
  body .card-row:has(> .escort-card),
  body .home-main .card-row,
  body .location-listing-block .card-row,
  body .listing-block .card-row,
  body .wx-card-grid.card-row,
  body .card-row.wx-card-grid {
    display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
  }
}
/* Original image files (responsive srcset where available) are used by the PHP renderer. */
body .escort-card .escort-thumb img.bsr-profile-image-full {
  width:100% !important; height:auto !important;
  aspect-ratio:3/4 !important; object-fit:cover !important;
  filter:none !important; image-rendering:auto !important;
}
