:root{
  --ypi-aex-brand:#0b3c51;
  --ypi-aex-brand-dark:#057f75;
  --ypi-aex-brand-deep:#064d47;
  --ypi-aex-text:#101828;
  --ypi-aex-muted:#667085;
  --ypi-aex-border:#e5e7eb;
  --ypi-aex-soft:#f4fbfa;
  --ypi-aex-bg:#f7faf9;
  --ypi-aex-radius:8px;
  --ypi-aex-shadow:0 14px 38px rgba(16,24,40,.08);
  --ypi-aex-shadow-sm:0 8px 22px rgba(16,24,40,.06);
}

.ypi-aex-template-main{background:var(--ypi-aex-bg);}
.ypi-aex,.ypi-aex *{box-sizing:border-box;}
.ypi-aex{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ypi-aex-text);background:var(--ypi-aex-bg);line-height:1.5;}
.ypi-aex a{text-decoration:none;color:inherit;}
.ypi-aex button,.ypi-aex input,.ypi-aex select,.ypi-aex textarea{font:inherit;}
.ypi-aex__wrap{width:min(1220px,calc(100% - 32px));margin:0 auto;}
.ypi-aex__muted{color:var(--ypi-aex-muted);}
.ypi-aex__tiny{font-size:12px;color:var(--ypi-aex-muted);}
.ypi-aex__hidden{display:none!important;}

.ypi-aex-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border-radius:var(--ypi-aex-radius);border:1px solid transparent;padding:10px 16px;background:#fff;color:var(--ypi-aex-text);font-weight:700;font-size:14px;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease,color .18s ease;white-space:nowrap;}
.ypi-aex-btn:hover{transform:translateY(-1px);box-shadow:var(--ypi-aex-shadow-sm);}
.ypi-aex-btn--brand{background:var(--ypi-aex-brand);color:#fff;border-color:var(--ypi-aex-brand);box-shadow:0 8px 18px rgba(11,60,81,.16);}
.ypi-aex-btn--brand:hover{background:var(--ypi-aex-brand-dark);border-color:var(--ypi-aex-brand-dark);}
.ypi-aex-btn--outline{background:#fff;color:var(--ypi-aex-brand-dark);border-color:rgba(9,174,158,.32);}
.ypi-aex-btn--dark{background:#101828;color:#fff;border-color:#101828;}
.ypi-aex-btn--ghost{background:#fff;border-color:var(--ypi-aex-border);color:var(--ypi-aex-text);}
.ypi-aex-btn--icon{width:42px;padding:0;}
.ypi-aex-btn:disabled{opacity:.55;cursor:not-allowed;transform:none;box-shadow:none;}

.ypi-aex-card{background:#fff;border:1px solid var(--ypi-aex-border);border-radius:var(--ypi-aex-radius);box-shadow:var(--ypi-aex-shadow-sm);}
.ypi-aex-badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 10px;background:rgba(9,174,158,.09);color:var(--ypi-aex-brand-dark);font-size:12px;font-weight:800;}
.ypi-aex-badge svg{width:14px;height:14px;}

.ypi-aex-hero{position:relative;overflow:hidden;background:linear-gradient(120deg,#0b3c51 0%,#075c54 52%,rgba(9,174,158,.9) 100%);color:#fff;}
.ypi-aex-hero:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 82% 35%,rgba(255,255,255,.16),transparent 28%),linear-gradient(90deg,rgba(0,0,0,.28),rgba(0,0,0,.05));pointer-events:none;}
.ypi-aex-hero:after{content:"";position:absolute;right:-80px;top:0;width:52%;height:100%;background:linear-gradient(90deg,rgba(6,77,71,.62),rgba(6,77,71,.18)),url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 420"><rect width="600" height="420" fill="%23085b52"/><g opacity="0.35" fill="none" stroke="%23ffffff" stroke-width="3"><path d="M80 360V130l90-70 110 90v210"/><path d="M300 360V90h210v270"/><path d="M330 130h45v45h-45zM400 130h45v45h-45zM470 130h45v45h-45zM330 210h45v45h-45zM400 210h45v45h-45zM470 210h45v45h-45z"/><path d="M130 165h55v55h-55zM210 185h45v45h-45zM120 265h140"/></g></svg>') center/cover no-repeat;opacity:.82;}
.ypi-aex-hero__inner{position:relative;z-index:1;width:min(1220px,calc(100% - 32px));margin:0 auto;padding:66px 0 88px;}
.ypi-aex-hero__eyebrow{display:inline-flex;align-items:center;gap:8px;margin-bottom:18px;padding:6px 11px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.1);font-size:12px;font-weight:800;color:#eafffc;}
.ypi-aex-hero h1{margin:0;max-width:680px;font-size:clamp(34px,4.2vw,56px);line-height:1.05;letter-spacing:-.04em;font-weight:800;color:#fff;}
.ypi-aex-hero p{margin:18px 0 0;max-width:620px;color:rgba(255,255,255,.88);font-size:17px;}

.ypi-aex-search{position:relative;z-index:4;margin-top:-42px;}
.ypi-aex-search__panel{padding:18px;border:1px solid rgba(11,60,81,.12);border-radius:var(--ypi-aex-radius);background:rgba(255,255,255,.96);box-shadow:var(--ypi-aex-shadow);backdrop-filter:blur(14px);}
.ypi-aex-search__grid{display:grid;grid-template-columns:1.1fr .9fr auto auto;gap:14px;align-items:end;}
.ypi-aex-field label{display:block;margin-bottom:7px;font-size:13px;font-weight:800;color:#344054;}
.ypi-aex-input{display:flex;align-items:center;gap:10px;min-height:48px;border:1px solid #d9dee7;border-radius:var(--ypi-aex-radius);padding:0 13px;background:#fff;transition:border-color .18s ease,box-shadow .18s ease;}
.ypi-aex-input:focus-within{border-color:var(--ypi-aex-brand);box-shadow:0 0 0 4px rgba(9,174,158,.1);}
.ypi-aex-input svg{width:18px;height:18px;color:#667085;flex:0 0 auto;}
.ypi-aex-input input,.ypi-aex-input select{width:100%;height:44px;border:0;background:transparent;outline:0;color:#101828;font-size:14px;}
.ypi-aex-input input::placeholder{color:#98a2b3;}

.ypi-aex-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:28px;padding:46px 0 40px;}
.ypi-aex-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:22px;}
.ypi-aex-section-head h2{margin:0;font-size:30px;letter-spacing:-.03em;font-weight:800;}
.ypi-aex-section-head p{margin:6px 0 0;color:var(--ypi-aex-muted);}
.ypi-aex-toggle{display:inline-flex;gap:3px;padding:4px;border:1px solid var(--ypi-aex-border);border-radius:var(--ypi-aex-radius);background:#fff;box-shadow:0 4px 14px rgba(16,24,40,.04);}
.ypi-aex-toggle button{display:inline-flex;align-items:center;gap:7px;border:0;border-radius:7px;background:transparent;padding:9px 12px;font-size:13px;font-weight:800;color:var(--ypi-aex-muted);cursor:pointer;}
.ypi-aex-toggle button.is-active{background:#101828;color:#fff;}

.ypi-aex-agency-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}
.ypi-aex-agency-card{position:relative;overflow:hidden;padding:16px;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;}
.ypi-aex-agency-card:hover{transform:translateY(-2px);box-shadow:var(--ypi-aex-shadow);border-color:rgba(9,174,158,.32);}
.ypi-aex-agency-card__top{height:76px;margin:-16px -16px 0;border-radius:var(--ypi-aex-radius) var(--ypi-aex-radius) 0 0;background:linear-gradient(135deg,#093d38,var(--ypi-aex-brand));}
.ypi-aex-agency-card__head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-top:-33px;}
.ypi-aex-agency-logo{display:flex;align-items:center;justify-content:center;width:70px;height:70px;border:4px solid #fff;border-radius:var(--ypi-aex-radius);background:#fff;color:var(--ypi-aex-brand-dark);font-size:26px;font-weight:900;box-shadow:0 10px 24px rgba(16,24,40,.12);overflow:hidden;}
.ypi-aex-agency-logo img{width:100%;height:100%;object-fit:contain;padding:6px;}
.ypi-aex-agency-card h3{margin:16px 0 6px;font-size:19px;line-height:1.25;font-weight:800;letter-spacing:-.02em;}
.ypi-aex-agency-card__address{display:flex;align-items:flex-start;gap:6px;min-height:42px;color:var(--ypi-aex-muted);font-size:14px;}
.ypi-aex-agency-card__address svg{width:16px;height:16px;margin-top:2px;flex:0 0 auto;}
.ypi-aex-agency-card__type{margin-top:8px;color:var(--ypi-aex-muted);font-size:13px;}
.ypi-aex-agency-card__stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0;padding-top:14px;border-top:1px solid var(--ypi-aex-border);}
.ypi-aex-stat-mini{padding:10px;border-radius:var(--ypi-aex-radius);background:#f8fafc;text-align:center;}
.ypi-aex-stat-mini strong{display:block;font-size:17px;line-height:1;color:#101828;}
.ypi-aex-stat-mini span{display:block;margin-top:5px;color:var(--ypi-aex-muted);font-size:11px;}
.ypi-aex-agency-card__actions{display:flex;gap:8px;}
.ypi-aex-agency-card__actions .ypi-aex-btn:first-child{flex:1;}

.ypi-aex-pagination{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:28px;}
.ypi-aex-pagination button{min-width:38px;height:38px;border:1px solid var(--ypi-aex-border);border-radius:var(--ypi-aex-radius);background:#fff;color:#344054;font-weight:800;cursor:pointer;}
.ypi-aex-pagination button.is-active{background:var(--ypi-aex-brand);border-color:var(--ypi-aex-brand);color:#fff;}

.ypi-aex-sidebar{display:flex;flex-direction:column;gap:18px;}
.ypi-aex-sidebar-card{padding:22px;}
.ypi-aex-sidebar-card h3{margin:0 0 18px;font-size:20px;line-height:1.25;letter-spacing:-.02em;font-weight:800;}
.ypi-aex-benefit{display:flex;gap:13px;margin-top:17px;}
.ypi-aex-benefit__icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:rgba(9,174,158,.09);color:var(--ypi-aex-brand-dark);flex:0 0 auto;}
.ypi-aex-benefit strong{display:block;font-size:14px;}
.ypi-aex-benefit p{margin:3px 0 0;color:var(--ypi-aex-muted);font-size:13px;line-height:1.4;}
.ypi-aex-cta-card{padding:24px;background:linear-gradient(135deg,var(--ypi-aex-brand-deep),var(--ypi-aex-brand));color:#fff;border:0;overflow:hidden;position:relative;}
.ypi-aex-cta-card:after{content:"";position:absolute;right:-30px;bottom:-50px;width:210px;height:210px;background:rgba(255,255,255,.1);border-radius:50%;}
.ypi-aex-cta-card h3,.ypi-aex-cta-card p,.ypi-aex-cta-card ul,.ypi-aex-cta-card a{position:relative;z-index:1;}
.ypi-aex-cta-card p{color:rgba(255,255,255,.88);}
.ypi-aex-cta-card ul{list-style:none;padding:0;margin:16px 0;}
.ypi-aex-cta-card li{display:flex;align-items:center;gap:8px;margin:8px 0;font-size:14px;}
.ypi-aex-cta-card li:before{content:"✓";display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:rgba(255,255,255,.2);font-weight:900;}

.ypi-aex-trust-strip{padding:0 0 54px;}
.ypi-aex-trust-strip__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;padding:22px;background:#fff;border:1px solid var(--ypi-aex-border);border-radius:var(--ypi-aex-radius);box-shadow:var(--ypi-aex-shadow-sm);}
.ypi-aex-trust-item{display:flex;gap:13px;align-items:flex-start;}
.ypi-aex-trust-item svg{width:30px;height:30px;color:var(--ypi-aex-brand-dark);flex:0 0 auto;}
.ypi-aex-trust-item strong{display:block;font-size:15px;}
.ypi-aex-trust-item p{margin:5px 0 0;color:var(--ypi-aex-muted);font-size:13px;line-height:1.4;}

.ypi-aex-single-hero{position:relative;overflow:hidden;background:linear-gradient(120deg,#0b3c51 0%,#0f4e68 64%,var(--ypi-aex-brand) 100%);color:#fff;}
.ypi-aex-single-hero:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 78% 30%,rgba(255,255,255,.18),transparent 30%),linear-gradient(90deg,rgba(0,0,0,.32),rgba(0,0,0,.05));}
.ypi-aex-single-hero__cover{position:absolute;right:0;top:0;width:56%;height:100%;background-position:center;background-size:cover;opacity:.42;}
.ypi-aex-single-hero__inner{position:relative;z-index:1;width:min(1220px,calc(100% - 32px));margin:0 auto;padding:28px 0 62px;}
.ypi-aex-breadcrumb{display:flex;align-items:center;gap:8px;margin-bottom:26px;color:rgba(255,255,255,.82);font-size:13px;}
.ypi-aex-single-hero__grid{display:grid;grid-template-columns:170px minmax(0,1fr);gap:32px;align-items:center;max-width:900px;}
.ypi-aex-profile-logo{display:flex;align-items:center;justify-content:center;width:170px;height:170px;border-radius:var(--ypi-aex-radius);background:#fff;color:var(--ypi-aex-brand-dark);font-size:56px;font-weight:900;box-shadow:0 18px 48px rgba(0,0,0,.2);overflow:hidden;}
.ypi-aex-profile-logo img{width:100%;height:100%;object-fit:contain;padding:18px;}
.ypi-aex-single-hero h1{margin:0;font-size:clamp(36px,4.5vw,54px);letter-spacing:-.045em;line-height:1;font-weight:850;color:#fff;}
.ypi-aex-single-hero__title{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.ypi-aex-single-hero p{max-width:650px;margin:16px 0 0;color:rgba(255,255,255,.9);font-size:16px;}
.ypi-aex-single-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px;}
.ypi-aex-single-actions .ypi-aex-btn{background:#fff;color:var(--ypi-aex-brand-dark);border-color:rgba(255,255,255,.3);}

.ypi-aex-stats-strip{position:relative;z-index:5;margin-top:-36px;}
.ypi-aex-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);padding:10px;background:#fff;border:1px solid rgba(11,60,81,.12);border-radius:var(--ypi-aex-radius);box-shadow:var(--ypi-aex-shadow);}
.ypi-aex-stat-card{display:flex;align-items:center;gap:14px;padding:20px;border-right:1px solid var(--ypi-aex-border);}
.ypi-aex-stat-card:last-child{border-right:0;}
.ypi-aex-stat-card__icon{display:flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:50%;background:rgba(9,174,158,.09);color:var(--ypi-aex-brand-dark);flex:0 0 auto;}
.ypi-aex-stat-card strong{display:block;font-size:25px;line-height:1.1;letter-spacing:-.02em;}
.ypi-aex-stat-card span{display:block;color:var(--ypi-aex-muted);font-size:13px;}
.ypi-aex-stat-card b{display:block;margin-bottom:4px;color:#344054;font-size:14px;}

.ypi-aex-single-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:28px;padding:42px 0 46px;}
.ypi-aex-tabs-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:18px 0;}
.ypi-aex-tabs{display:flex;gap:9px;flex-wrap:wrap;}
.ypi-aex-tab{border:1px solid var(--ypi-aex-border);border-radius:var(--ypi-aex-radius);background:#fff;color:#344054;padding:10px 15px;font-size:14px;font-weight:800;cursor:pointer;}
.ypi-aex-tab.is-active{background:var(--ypi-aex-brand);border-color:var(--ypi-aex-brand);color:#fff;}
.ypi-aex-sort{min-height:42px;border:1px solid var(--ypi-aex-border);border-radius:var(--ypi-aex-radius);background:#fff;color:#344054;padding:0 12px;font-weight:700;outline:0;}

.ypi-aex-listings{display:flex;flex-direction:column;gap:14px;}
.ypi-aex-property-card{display:grid;grid-template-columns:230px minmax(0,1fr) auto;gap:20px;align-items:center;padding:12px;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;}
.ypi-aex-property-card:hover{transform:translateY(-1px);box-shadow:var(--ypi-aex-shadow);border-color:rgba(9,174,158,.26);}
.ypi-aex-property-card__image{position:relative;width:100%;height:156px;border-radius:var(--ypi-aex-radius);background:linear-gradient(135deg,#e4e7ec,#f2f4f7);overflow:hidden;}
.ypi-aex-property-card__image img{width:100%;height:100%;object-fit:cover;}
.ypi-aex-property-card__label{position:absolute;left:10px;top:10px;border-radius:999px;background:var(--ypi-aex-brand);color:#fff;font-size:11px;font-weight:900;padding:5px 9px;}
.ypi-aex-property-card h3{margin:0 0 8px;font-size:20px;line-height:1.25;letter-spacing:-.02em;font-weight:850;}
.ypi-aex-property-card__loc{display:flex;align-items:center;gap:6px;color:var(--ypi-aex-muted);font-size:14px;}
.ypi-aex-property-card__loc svg{width:15px;height:15px;}
.ypi-aex-property-features{display:flex;flex-wrap:wrap;gap:13px;margin-top:12px;color:#475467;font-size:13px;}
.ypi-aex-property-card__side{text-align:right;min-width:118px;}
.ypi-aex-price{font-size:22px;font-weight:900;color:var(--ypi-aex-brand-dark);white-space:nowrap;}

.ypi-aex-profile-list{display:grid;gap:12px;font-size:14px;}
.ypi-aex-profile-list__row{display:grid;grid-template-columns:1fr 1.2fr;gap:12px;padding-bottom:10px;border-bottom:1px solid #eef2f6;}
.ypi-aex-profile-list__row:last-child{border-bottom:0;padding-bottom:0;}
.ypi-aex-profile-list b{color:#344054;}
.ypi-aex-profile-list span{color:var(--ypi-aex-muted);text-align:right;}
.ypi-aex-bars{display:grid;gap:16px;}
.ypi-aex-bar__top{display:flex;justify-content:space-between;margin-bottom:7px;font-size:13px;font-weight:800;color:#344054;}
.ypi-aex-bar__track{height:8px;border-radius:999px;background:#eaf0ef;overflow:hidden;}
.ypi-aex-bar__fill{height:100%;border-radius:999px;background:var(--ypi-aex-brand);}
.ypi-aex-contact-card{background:linear-gradient(135deg,var(--ypi-aex-brand-deep),var(--ypi-aex-brand));color:#fff;border:0;padding:22px;}
.ypi-aex-contact-card p{color:rgba(255,255,255,.86);}
.ypi-aex-contact-card input,.ypi-aex-contact-card textarea{width:100%;border:1px solid rgba(255,255,255,.22);border-radius:var(--ypi-aex-radius);background:#fff;padding:12px;color:#101828;outline:0;margin-top:9px;font-size:14px;}
.ypi-aex-contact-card textarea{min-height:82px;resize:vertical;}
.ypi-aex-contact-card .ypi-aex-btn{width:100%;margin-top:10px;background:#fff;color:var(--ypi-aex-brand-dark);}

.ypi-aex-empty,.ypi-aex-error{padding:26px;text-align:center;border:1px dashed rgba(9,174,158,.35);border-radius:var(--ypi-aex-radius);background:#fff;color:var(--ypi-aex-muted);}
.ypi-aex-error{border-color:#fecaca;background:#fff7f7;color:#991b1b;}

.ypi-aex-skeleton{border-radius:var(--ypi-aex-radius);background:linear-gradient(90deg,#eef2f6 25%,#f8fafc 37%,#eef2f6 63%);background-size:400% 100%;animation:ypiAexShimmer 1.35s infinite;}
.ypi-aex__loader{width:min(1220px,calc(100% - 32px));margin:0 auto;padding:34px 0;}
.ypi-aex-skeleton--hero{height:260px;margin-bottom:18px;}
.ypi-aex-skeleton--search{height:90px;margin-bottom:24px;}
.ypi-aex-skeleton-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.ypi-aex-skeleton-grid span,.ypi-aex-skeleton-list span{display:block;height:220px;border-radius:var(--ypi-aex-radius);background:linear-gradient(90deg,#eef2f6 25%,#f8fafc 37%,#eef2f6 63%);background-size:400% 100%;animation:ypiAexShimmer 1.35s infinite;}
.ypi-aex-skeleton--single-hero{height:310px;margin-bottom:18px;}
.ypi-aex-skeleton--stats{height:96px;margin-bottom:24px;}
.ypi-aex-skeleton-list{display:grid;gap:14px;}
.ypi-aex-skeleton-list span{height:160px;}
@keyframes ypiAexShimmer{0%{background-position:100% 0}100%{background-position:0 0}}

@media (max-width:1120px){
  .ypi-aex-agency-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .ypi-aex-layout,.ypi-aex-single-layout{grid-template-columns:1fr;}
  .ypi-aex-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
  .ypi-aex-search__grid{grid-template-columns:1fr 1fr;}
  .ypi-aex-stats-grid{grid-template-columns:repeat(2,1fr);}
  .ypi-aex-stat-card:nth-child(2){border-right:0;}
  .ypi-aex-trust-strip__grid{grid-template-columns:repeat(2,1fr);}
}

@media (max-width:767px){
  .ypi-aex__wrap,.ypi-aex-hero__inner,.ypi-aex-single-hero__inner,.ypi-aex__loader{width:min(100% - 24px,1220px);}
  .ypi-aex-hero__inner{padding:42px 0 74px;}
  .ypi-aex-hero:after{opacity:.22;width:100%;right:0;}
  .ypi-aex-hero h1{font-size:34px;}
  .ypi-aex-hero p{font-size:15px;}
  .ypi-aex-search__grid{grid-template-columns:1fr;}
  .ypi-aex-search{margin-top:-34px;}
  .ypi-aex-layout{padding-top:30px;}
  .ypi-aex-section-head{display:block;}
  .ypi-aex-toggle{margin-top:14px;}
  .ypi-aex-agency-grid{grid-template-columns:1fr;}
  .ypi-aex-sidebar{grid-template-columns:1fr;}
  .ypi-aex-trust-strip__grid{grid-template-columns:1fr;padding:18px;}
  .ypi-aex-single-hero__grid{grid-template-columns:1fr;gap:18px;}
  .ypi-aex-profile-logo{width:112px;height:112px;font-size:40px;}
  .ypi-aex-single-hero__inner{padding:20px 0 56px;}
  .ypi-aex-single-hero__cover{width:100%;opacity:.18;}
  .ypi-aex-single-actions .ypi-aex-btn{flex:1 1 calc(50% - 8px);}
  .ypi-aex-stats-grid{grid-template-columns:1fr;padding:8px;}
  .ypi-aex-stat-card{border-right:0;border-bottom:1px solid var(--ypi-aex-border);padding:15px;}
  .ypi-aex-stat-card:last-child{border-bottom:0;}
  .ypi-aex-tabs-row{display:block;}
  .ypi-aex-sort{margin-top:12px;width:100%;}
  .ypi-aex-property-card{grid-template-columns:1fr;gap:12px;}
  .ypi-aex-property-card__image{height:210px;}
  .ypi-aex-property-card__side{display:flex;align-items:center;justify-content:space-between;text-align:left;}
  .ypi-aex-skeleton-grid{grid-template-columns:1fr;}
}

/* Archive agencies v1.0.1 refinements */
.ypi-aex-archive-only{
  padding:42px 0 52px;
}
.ypi-aex-archive-only .ypi-aex-section-head{
  align-items:center;
  margin-bottom:26px;
}
.ypi-aex-archive-only .ypi-aex-section-head h2{
  font-size:32px;
  line-height:1.08;
}
.ypi-aex-archive-only .ypi-aex-section-head p strong{
  color:var(--ypi-aex-brand);
  font-weight:800;
}
.ypi-aex-archive-sort{
  display:flex;
  align-items:center;
  gap:12px;
  color:#475467;
  font-size:14px;
  font-weight:700;
}
.ypi-aex-archive-sort select{
  min-width:184px;
  height:46px;
  border:1px solid var(--ypi-aex-border);
  border-radius:8px;
  background:#fff;
  color:var(--ypi-aex-text);
  padding:0 42px 0 14px;
  font-weight:700;
  outline:none;
  box-shadow:0 8px 20px rgba(16,24,40,.04);
}
.ypi-aex-archive-sort select:focus{
  border-color:rgba(9,174,158,.5);
  box-shadow:0 0 0 3px rgba(11,60,81,.12);
}
.ypi-aex-archive-only .ypi-aex-agency-grid{
  gap:22px;
}
.ypi-aex-archive-only .ypi-aex-agency-card{
  min-height:0;
  padding:18px;
  overflow:hidden;
}
.ypi-aex-archive-only .ypi-aex-agency-card__top{
  height:96px;
  margin:-18px -18px 0;
  background:linear-gradient(135deg,#075b55 0%,var(--ypi-aex-brand) 100%);
}
.ypi-aex-archive-only .ypi-aex-agency-card__head{
  margin-top:-58px;
  min-height:86px;
}
.ypi-aex-archive-only .ypi-aex-agency-logo{
  width:78px;
  height:78px;
  border:0;
  padding:8px;
  box-shadow:0 14px 28px rgba(16,24,40,.13);
}
.ypi-aex-archive-only .ypi-aex-agency-logo img{
  padding:0;
}
.ypi-aex-archive-only .ypi-aex-badge--verified{
  margin-top:10px;
  background:#ecfdf9;
  box-shadow:0 8px 18px rgba(16,24,40,.08);
}
.ypi-aex-archive-only .ypi-aex-agency-card h3{
  margin:14px 0 8px;
  font-size:20px;
  min-height:25px;
}
.ypi-aex-archive-only .ypi-aex-agency-card__address{
  min-height:46px;
  font-size:14px;
  line-height:1.45;
}
.ypi-aex-archive-only .ypi-aex-agency-card__type{
  margin-top:8px;
  font-size:13px;
}
.ypi-aex-archive-only .ypi-aex-agency-card__stats{
  gap:10px;
  margin:14px 0;
  padding-top:14px;
}
.ypi-aex-archive-only .ypi-aex-stat-mini{
  min-height:76px;
  padding:9px 10px;
  background:#fff;
  border:1px solid var(--ypi-aex-border);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
}
.ypi-aex-archive-only .ypi-aex-stat-mini__icon svg,
.ypi-aex-archive-only .ypi-aex-stat-mini svg{
  width:15px;
  height:15px;
}
.ypi-aex-archive-only .ypi-aex-stat-mini strong{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  font-size:16px;
  line-height:1.1;
}
.ypi-aex-archive-only .ypi-aex-stat-mini--trust strong{
  color:var(--ypi-aex-brand-dark);
}
.ypi-aex-archive-only .ypi-aex-stat-mini em{
  display:block;
  margin-bottom:4px;
  color:#475467;
  font-size:11px;
  font-style:normal;
  font-weight:800;
}
.ypi-aex-archive-only .ypi-aex-stat-mini span{
  margin-top:4px;
}
.ypi-aex-archive-only .ypi-aex-stat-mini--trust > span{
  display:inline;
  margin-top:0;
  color:#667085;
  font-size:11px;
}
.ypi-aex-archive-only .ypi-aex-agency-card__actions{
  align-items:center;
  gap:8px;
}
.ypi-aex-archive-only .ypi-aex-agency-card__actions .ypi-aex-btn:first-child{
  min-height:42px;
  font-size:14px;
}
.ypi-aex-archive-only .ypi-aex-btn--icon{
  width:38px;
  min-width:38px;
  height:38px;
  min-height:38px;
}
.ypi-aex-archive-only .ypi-aex-btn--icon svg{
  width:18px;
  height:18px;
}

@media (max-width:767px){
  .ypi-aex-archive-only{padding:28px 0 40px;}
  .ypi-aex-archive-only .ypi-aex-section-head{display:block;}
  .ypi-aex-archive-sort{margin-top:14px;justify-content:space-between;}
  .ypi-aex-archive-sort select{min-width:190px;}
}

/* Archive redesign v1.0.2 */
.ypi-aex-layout--archive-design{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:28px;
  padding:42px 0 46px;
}
.ypi-aex-layout--archive-design .ypi-aex-main{min-width:0;}
.ypi-aex-layout--archive-design .ypi-aex-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:24px;}
.ypi-aex-layout--archive-design .ypi-aex-section-head h2{margin:0 0 8px;font-size:44px;line-height:1.05;letter-spacing:-.03em;color:#0f172a;}
.ypi-aex-layout--archive-design .ypi-aex-section-head p{margin:0;font-size:18px;color:#667085;}
.ypi-aex-layout--archive-design .ypi-aex-section-head p strong{color:var(--ypi-aex-brand);font-weight:900;}
.ypi-aex-layout--archive-design .ypi-aex-archive-sort{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end;}
.ypi-aex-layout--archive-design .ypi-aex-archive-sort span{font-weight:800;color:#475467;}
.ypi-aex-layout--archive-design .ypi-aex-archive-sort select{min-width:220px;height:48px;border:1px solid var(--ypi-aex-border);border-radius:8px;background:#fff;color:#344054;padding:0 14px;font-weight:800;box-shadow:0 8px 20px rgba(16,24,40,.04);}
.ypi-aex-layout--archive-design .ypi-aex-agency-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
.ypi-aex-layout--archive-design .ypi-aex-agency-card{position:relative;padding:18px;border:1px solid #e4e7ec;border-radius:8px;background:#fff;box-shadow:none;min-height:0;transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;}
.ypi-aex-layout--archive-design .ypi-aex-agency-card:hover{border-color:rgba(9,174,158,.34);box-shadow:0 10px 24px rgba(16,24,40,.06);transform:translateY(-1px);}
.ypi-aex-layout--archive-design .ypi-aex-agency-card__top{display:none;}
.ypi-aex-layout--archive-design .ypi-aex-agency-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-height:90px;margin-bottom:10px;}
.ypi-aex-layout--archive-design .ypi-aex-agency-logo{width:82px;height:82px;flex:0 0 82px;border:1px solid #eef2f6;border-radius:8px;background:#fff;box-shadow:0 10px 18px rgba(16,24,40,.08);padding:10px;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.ypi-aex-layout--archive-design .ypi-aex-agency-logo img{max-width:100%;max-height:100%;object-fit:contain;display:block;}
.ypi-aex-layout--archive-design .ypi-aex-badge--verified{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;font-size:11px;font-weight:800;border-radius:999px;background:#ecfdf9;color:#0b3c51;border:1px solid rgba(11,60,81,.16);white-space:nowrap;}
.ypi-aex-layout--archive-design .ypi-aex-badge--verified svg{width:14px;height:14px;}
.ypi-aex-layout--archive-design .ypi-aex-agency-card h3{margin:0 0 10px;font-size:19px;line-height:1.25;letter-spacing:-.02em;font-weight:850;color:#101828;min-height:48px;}
.ypi-aex-layout--archive-design .ypi-aex-agency-card__address{display:flex;align-items:flex-start;gap:8px;color:#667085;font-size:14px;line-height:1.45;min-height:44px;}
.ypi-aex-layout--archive-design .ypi-aex-agency-card__address svg{width:16px;height:16px;flex:0 0 auto;margin-top:2px;}
.ypi-aex-layout--archive-design .ypi-aex-agency-card__type{margin-top:8px;padding-bottom:12px;border-bottom:1px solid #eef2f6;color:#98a2b3;font-size:14px;}
.ypi-aex-layout--archive-design .ypi-aex-agency-card__stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 16px;}
.ypi-aex-layout--archive-design .ypi-aex-stat-mini{border:1px solid #eef2f6;border-radius:8px;background:#f8fafc;min-height:88px;padding:12px 10px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;}
.ypi-aex-layout--archive-design .ypi-aex-stat-mini__icon{display:flex;align-items:center;justify-content:center;width:18px;height:18px;color:#667085;}
.ypi-aex-layout--archive-design .ypi-aex-stat-mini__icon svg{width:18px;height:18px;}
.ypi-aex-layout--archive-design .ypi-aex-stat-mini strong{font-size:32px;line-height:1;font-weight:900;color:#101828;}
.ypi-aex-layout--archive-design .ypi-aex-stat-mini span{font-size:14px;color:#667085;}
.ypi-aex-layout--archive-design .ypi-aex-stat-mini--trust{align-items:flex-start;justify-content:center;gap:8px;background:#fff;}
.ypi-aex-layout--archive-design .ypi-aex-stat-mini--trust em{display:block;font-style:normal;font-size:13px;font-weight:800;color:#475467;}
.ypi-aex-layout--archive-design .ypi-aex-trust-badge-wrap{display:flex;align-items:center;min-height:34px;}
.ypi-aex-layout--archive-design .ypi-aex-trust-fallback{display:inline-flex;align-items:center;gap:6px;font-size:24px;font-weight:900;color:#101828;}
.ypi-aex-layout--archive-design .ypi-aex-trust-fallback svg{width:18px;height:18px;color:#f5b301;flex:0 0 auto;}
.ypi-aex-layout--archive-design .ypi-aex-trust-fallback small{font-size:14px;color:#667085;font-weight:700;}
.ypi-ts-badge{display:inline-flex;align-items:center;justify-content:center;min-width:70px;height:34px;padding:0 12px;border-radius:999px;background:#f0fdf9;border:1px solid rgba(11,60,81,.16);color:#0b3c51;font-size:17px;font-weight:900;line-height:1;box-shadow:none;}
.ypi-aex-layout--archive-design .ypi-aex-agency-card__actions{display:flex;align-items:center;gap:8px;}
.ypi-aex-layout--archive-design .ypi-aex-agency-card__actions .ypi-aex-btn--brand{flex:1 1 auto;min-width:0;justify-content:center;height:44px;padding:0 16px;font-size:15px;}
.ypi-aex-layout--archive-design .ypi-aex-btn--icon{width:42px;height:42px;flex:0 0 42px;padding:0;display:flex;align-items:center;justify-content:center;border:1px solid #d0d5dd;background:#fff;color:#344054;border-radius:8px;}
.ypi-aex-layout--archive-design .ypi-aex-btn--icon svg{width:18px;height:18px;}
.ypi-aex-layout--archive-design .ypi-aex-sidebar{display:flex;flex-direction:column;gap:18px;}
.ypi-aex-layout--archive-design .ypi-aex-sidebar .ypi-aex-card{border:1px solid #e4e7ec;border-radius:8px;background:#fff;box-shadow:none;padding:22px;}
.ypi-aex-layout--archive-design .ypi-aex-sidebar-card h3,
.ypi-aex-layout--archive-design .ypi-aex-cta-card h3{margin:0 0 18px;font-size:18px;line-height:1.25;letter-spacing:-.02em;color:#101828;}
.ypi-aex-layout--archive-design .ypi-aex-benefit{display:flex;align-items:flex-start;gap:12px;padding:0 0 16px;margin:0 0 16px;border-bottom:1px solid #f2f4f7;}
.ypi-aex-layout--archive-design .ypi-aex-benefit:last-child{margin-bottom:0;padding-bottom:0;border-bottom:0;}
.ypi-aex-layout--archive-design .ypi-aex-benefit__icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:0 0 40px;border-radius:50%;background:#f8fafc;border:1px solid #eef2f6;color:var(--ypi-aex-brand);}
.ypi-aex-layout--archive-design .ypi-aex-benefit__icon svg{width:18px;height:18px;}
.ypi-aex-layout--archive-design .ypi-aex-benefit strong{display:block;margin-bottom:4px;color:#101828;font-size:14px;}
.ypi-aex-layout--archive-design .ypi-aex-benefit p{margin:0;color:#667085;font-size:13px;line-height:1.5;}
.ypi-aex-layout--archive-design .ypi-aex-cta-card{background:linear-gradient(135deg,#077a71 0%,var(--ypi-aex-brand) 100%);color:#fff;overflow:hidden;position:relative;}
.ypi-aex-layout--archive-design .ypi-aex-cta-card h3,.ypi-aex-layout--archive-design .ypi-aex-cta-card p,.ypi-aex-layout--archive-design .ypi-aex-cta-card li{color:#fff;position:relative;z-index:1;}
.ypi-aex-layout--archive-design .ypi-aex-cta-card ul{margin:16px 0;padding-left:18px;display:grid;gap:10px;}
.ypi-aex-layout--archive-design .ypi-aex-cta-card .ypi-aex-btn{width:100%;justify-content:center;background:#fff;color:#0b3a35;border-radius:8px;position:relative;z-index:1;}
.ypi-aex-layout--archive-design .ypi-aex-help-card p{margin:0 0 10px;}
.ypi-aex-layout--archive-design .ypi-aex-help-card a{color:#101828;font-weight:700;text-decoration:none;}
.ypi-aex-layout--archive-design .ypi-aex-help-card a:hover{color:var(--ypi-aex-brand-dark);}
.ypi-aex-layout--archive-design .ypi-aex-pagination{margin-top:22px;}

@media (max-width:1200px){
  .ypi-aex-layout--archive-design{grid-template-columns:1fr;}
  .ypi-aex-layout--archive-design .ypi-aex-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:991px){
  .ypi-aex-layout--archive-design .ypi-aex-agency-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .ypi-aex-layout--archive-design .ypi-aex-section-head h2{font-size:38px;}
}
@media (max-width:767px){
  .ypi-aex-layout--archive-design{padding-top:30px;}
  .ypi-aex-layout--archive-design .ypi-aex-section-head{display:block;}
  .ypi-aex-layout--archive-design .ypi-aex-section-head h2{font-size:34px;}
  .ypi-aex-layout--archive-design .ypi-aex-archive-sort{margin-top:14px;justify-content:flex-start;}
  .ypi-aex-layout--archive-design .ypi-aex-archive-sort select{width:100%;min-width:0;}
  .ypi-aex-layout--archive-design .ypi-aex-agency-grid{grid-template-columns:1fr;}
  .ypi-aex-layout--archive-design .ypi-aex-sidebar{grid-template-columns:1fr;}
  .ypi-aex-layout--archive-design .ypi-aex-agency-card__stats{grid-template-columns:1fr 1fr;}
}

/* Archive refinements v1.0.3 */
.ypi-aex-layout--archive-design .ypi-aex-agency-card__head{
  min-height:100px;
  align-items:flex-start;
}
.ypi-aex-layout--archive-design .ypi-aex-agency-logo{
  width:92px;
  height:92px;
  flex:0 0 92px;
  padding:12px;
}
.ypi-aex-layout--archive-design .ypi-aex-agency-card h3{
  font-weight:780;
  letter-spacing:-.018em;
}
.ypi-aex-layout--archive-design .ypi-aex-agency-card__actions .ypi-aex-btn--brand{
  font-weight:700;
}
.ypi-aex-layout--archive-design .ypi-aex-stat-mini--trust em{
  font-size:12px;
  font-weight:700;
}
.ypi-aex-layout--archive-design .ypi-aex-trust-badge-wrap{
  min-height:38px;
}
.ypi-aex-layout--archive-design .ypi-aex-trust-fallback{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:23px;
  font-weight:850;
  color:#101828;
}
.ypi-aex-layout--archive-design .ypi-aex-trust-fallback small{
  font-size:13px;
  font-weight:700;
  color:#667085;
}
.ypi-aex-layout--archive-design .ypi-aex-trust-empty{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0;
  color:#98a2b3;
  font-size:14px;
  font-weight:700;
}
.ypi-aex-layout--archive-design .ypi-ts-badge{
  min-width:76px;
  height:36px;
  padding:0 12px;
  font-size:18px;
}

/* Archive refinements v1.0.4 */
.ypi-aex-layout--archive-design .ypi-aex-agency-card__head{
  min-height:112px;
}
.ypi-aex-layout--archive-design .ypi-aex-agency-logo{
  width:104px;
  height:104px;
  flex-basis:104px;
  margin-top:14px;
  padding:13px;
}
.ypi-aex-layout--archive-design .ypi-aex-agency-card h3{
  font-weight:600;
}
.ypi-aex-layout--archive-design .ypi-aex-agency-card__address:empty{
  display:none;
}
.ypi-aex-layout--archive-design .ypi-aex-agency-card__type{
  margin-top:10px;
}
.ypi-aex-layout--archive-design .ypi-aex-agency-card__actions .ypi-aex-btn--brand{
  font-size:13px;
  font-weight:700;
}
.ypi-aex-layout--archive-design .ypi-aex-cta-card{
  background:#f7fffd;
  border-color:rgba(11,60,81,.16);
  color:#101828;
}
.ypi-aex-layout--archive-design .ypi-aex-cta-card h3,
.ypi-aex-layout--archive-design .ypi-aex-cta-card p,
.ypi-aex-layout--archive-design .ypi-aex-cta-card li{
  color:#101828;
}
.ypi-aex-layout--archive-design .ypi-aex-cta-card .ypi-aex-btn{
  background:var(--ypi-aex-brand);
  color:#fff;
}

/* Keep YPI Trust Score badge inside the compact score box. */
.ypi-aex-layout--archive-design .ypi-aex-trust-badge-wrap .ypi-ts-badge,
.ypi-aex-layout--archive-design .ypi-aex-stat-mini--trust .ypi-ts-badge{
  position:static !important;
  top:auto !important;
  right:auto !important;
  left:auto !important;
  z-index:1 !important;
  display:inline-flex !important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:76px;
  min-height:36px;
  height:auto;
  padding:7px 11px;
  border-radius:999px;
  box-shadow:none !important;
}
.ypi-aex-layout--archive-design .ypi-aex-trust-badge-wrap .ypi-ts-badge::after,
.ypi-aex-layout--archive-design .ypi-aex-stat-mini--trust .ypi-ts-badge::after{
  position:static !important;
}


/* Archive refinements v1.0.5 */
.ypi-aex-layout--archive-design .ypi-aex-agency-card__head{
  padding-top:14px;
  min-height:116px;
}
.ypi-aex-layout--archive-design .ypi-aex-agency-logo{
  margin-top:8px;
}
.ypi-aex-layout--archive-design .ypi-aex-badge--verified{
  margin-top:12px;
}
.ypi-aex-layout--archive-design .ypi-aex-agency-card__actions .ypi-aex-btn--brand{
  font-weight:500;
  font-size:13px;
}
.ypi-aex-layout--archive-design .ypi-aex-agency-card__address{
  min-height:0;
}
.ypi-aex-hero__eyebrow{
  display:none !important;
}

/* Hero image + archive fixes v1.0.6 */
.ypi-aex-hero{
  background:linear-gradient(90deg,rgba(3,64,58,.88) 0%,rgba(6,77,71,.72) 28%,rgba(7,122,113,.46) 58%,rgba(7,122,113,.18) 100%), url('../images/agency-hero-banner.png') center center / cover no-repeat;
}
.ypi-aex-hero:before{
  background:linear-gradient(90deg,rgba(0,0,0,.22),rgba(0,0,0,.04));
}
.ypi-aex-hero:after{
  content:none;
}
.ypi-aex-hero__eyebrow{display:none !important;}

.ypi-aex-layout--archive-design .ypi-aex-agency-card__head{
  margin-top:8px;
  min-height:108px;
}
.ypi-aex-layout--archive-design .ypi-aex-badge--verified{
  margin-top:10px;
}
.ypi-aex-layout--archive-design .ypi-aex-agency-card__address,
.ypi-aex-agency-card__address{
  min-height:0;
}
.ypi-aex-layout--archive-design .ypi-aex-agency-card__actions .ypi-aex-btn--brand{
  font-weight:500;
}
@media (max-width:767px){
  .ypi-aex-hero{
    background-position:72% center;
  }
}

/* Single agency refinements v1.1.0 */
.ypi-aex-badge--hero{background:#ecfdf9;color:#0b3c51;border:1px solid rgba(11,60,81,.18);}
.ypi-aex-single-hero{background:linear-gradient(120deg,#0b3c51 0%,#0f4e68 64%,var(--ypi-aex-brand) 100%);}
.ypi-aex-single-hero__inner{padding:32px 0 68px;}
.ypi-aex-single-hero__grid{grid-template-columns:190px minmax(0,1fr);max-width:980px;gap:34px;align-items:center;}
.ypi-aex-single-hero__brand{display:flex;flex-direction:column;align-items:flex-start;gap:14px;}
.ypi-aex-profile-logo{width:160px;height:160px;border-radius:8px;border:4px solid rgba(255,255,255,.88);background:#fff;box-shadow:0 20px 36px rgba(16,24,40,.2);}
.ypi-aex-single-hero h1{font-size:clamp(34px,4.5vw,52px);line-height:1.02;font-weight:800;}
.ypi-aex-single-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;}
.ypi-aex-single-meta span{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.12);color:#fff;font-size:13px;font-weight:700;backdrop-filter:blur(10px);}
.ypi-aex-single-meta svg{width:15px;height:15px;flex:0 0 auto;}
.ypi-aex-single-actions{margin-top:20px;display:flex;flex-wrap:wrap;gap:10px;}
.ypi-aex-single-actions .ypi-aex-btn{min-height:44px;padding:10px 16px;background:#fff;color:#0f172a;border-color:rgba(255,255,255,.32);box-shadow:none;font-weight:600;}
.ypi-aex-single-actions .ypi-aex-btn--brand{background:var(--ypi-aex-brand);color:#fff;border-color:var(--ypi-aex-brand);}
.ypi-aex-stats-strip{margin-top:-32px;}
.ypi-aex-stats-grid{padding:8px;border-color:rgba(11,60,81,.12);}
.ypi-aex-stat-card{padding:18px 16px;min-height:96px;}
.ypi-aex-stat-card strong{font-size:24px;display:flex;align-items:center;gap:8px;}
.ypi-aex-stat-card__trust .ypi-aex-trust-badge-wrap{display:inline-flex;align-items:center;min-height:0;}
.ypi-aex-stat-card__trust .ypi-ts-badge{height:32px;min-width:70px;font-size:16px;}
.ypi-aex-single-layout{padding:38px 0 46px;align-items:start;}
.ypi-aex-sidebar-card--trust .ypi-aex-sidebar-trust{margin:10px 0 8px;}
.ypi-aex-sidebar-card--trust .ypi-ts-badge{height:36px;min-width:82px;font-size:18px;}
.ypi-aex-sidebar-card--trust .ypi-aex-trust-fallback{font-size:26px;}
.ypi-aex-contact-card{padding:20px;}
.ypi-aex-contact-card h3{margin-top:0;}
.ypi-aex-tabs-row{margin:0 0 18px;}
.ypi-aex-tabs{gap:8px;}
.ypi-aex-tab{font-size:13px;font-weight:700;padding:10px 14px;}
.ypi-aex-property-card h3{font-size:18px;}
.ypi-aex-property-card__side .ypi-aex-btn{min-height:40px;font-weight:600;}
@media (max-width:991px){
  .ypi-aex-single-hero__grid{grid-template-columns:1fr;gap:20px;max-width:none;}
  .ypi-aex-profile-logo{width:132px;height:132px;}
}

/* Archive sorting feedback v1.1.3 */
.ypi-aex-archive-results{
  position:relative;
}
.ypi-aex-sort-loader{
  position:absolute;
  inset:0;
  z-index:20;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  padding-top:110px;
  background:rgba(247,250,249,.72);
  backdrop-filter:blur(2px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .16s ease, visibility .16s ease;
  border-radius:8px;
}
.ypi-aex-sort-loader span{
  width:34px;
  height:34px;
  border-radius:50%;
  border:3px solid rgba(11,60,81,.16);
  border-top-color:var(--ypi-aex-brand);
  animation:ypiAexSpin .75s linear infinite;
}
.ypi-aex-sort-loader strong{
  margin-top:10px;
  color:#0f172a;
  font-size:13px;
  font-weight:700;
}
.ypi-aex.is-loading .ypi-aex-sort-loader{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.ypi-aex.is-loading .ypi-aex-agency-grid,
.ypi-aex.is-loading .ypi-aex-pagination{
  opacity:.42;
  filter:saturate(.75);
  transition:opacity .16s ease, filter .16s ease;
}
.ypi-aex.is-loading [data-aex-sort]{
  cursor:progress;
  opacity:.72;
}
@keyframes ypiAexSpin{to{transform:rotate(360deg)}}

/* UX refinements v1.1.4 */
.ypi-aex-hero h1{
  font-weight:600;
}
.ypi-aex-btn__icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;}
.ypi-aex-btn__icon--search svg{width:16px;height:16px;}

/* Keep archive cards aligned even without address */
.ypi-aex-layout--archive-design .ypi-aex-agency-card__address,
.ypi-aex-layout--archive-design .ypi-aex-agency-card__address-spacer{
  min-height:44px;
  margin-bottom:0;
}
.ypi-aex-layout--archive-design .ypi-aex-agency-card__address-spacer{display:block;}

/* CTA card match provided design more closely */
.ypi-aex-layout--archive-design .ypi-aex-cta-card{
  position:relative;
  overflow:hidden;
  padding:22px 22px 20px;
  border:0;
  border-radius:8px;
  background:
    linear-gradient(90deg, rgba(4,66,59,.96) 0%, rgba(5,95,86,.93) 44%, rgba(9,174,158,.86) 100%),
    url('../images/agency-hero-banner.png') right center / cover no-repeat;
  box-shadow:0 18px 38px rgba(16,24,40,.14);
}
.ypi-aex-layout--archive-design .ypi-aex-cta-card:before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  pointer-events:none;
}
.ypi-aex-layout--archive-design .ypi-aex-cta-card:after{
  content:'';
  position:absolute;
  right:-30px;
  top:0;
  width:55%;
  height:100%;
  background:linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.06));
  pointer-events:none;
}
.ypi-aex-layout--archive-design .ypi-aex-cta-card h3,
.ypi-aex-layout--archive-design .ypi-aex-cta-card p,
.ypi-aex-layout--archive-design .ypi-aex-cta-card ul,
.ypi-aex-layout--archive-design .ypi-aex-cta-card a{
  position:relative;
  z-index:1;
}
.ypi-aex-layout--archive-design .ypi-aex-cta-card h3{
  margin:0 0 12px;
  font-size:24px;
  line-height:1.15;
  font-weight:800;
  color:#fff;
}
.ypi-aex-layout--archive-design .ypi-aex-cta-card p{
  margin:0;
  max-width:230px;
  color:rgba(255,255,255,.92);
  font-size:14px;
  line-height:1.55;
}
.ypi-aex-layout--archive-design .ypi-aex-cta-card ul{
  list-style:none;
  padding:0;
  margin:18px 0 22px;
  display:grid;
  gap:12px;
}
.ypi-aex-layout--archive-design .ypi-aex-cta-card li{
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
  font-size:14px;
  line-height:1.4;
  font-weight:600;
}
.ypi-aex-layout--archive-design .ypi-aex-cta-card li:before{
  content:'✓';
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  flex:0 0 18px;
  border-radius:50%;
  background:#22c55e;
  color:#fff;
  font-size:12px;
  font-weight:900;
  box-shadow:0 6px 12px rgba(34,197,94,.28);
}
.ypi-aex-layout--archive-design .ypi-aex-cta-card .ypi-aex-btn{
  width:100%;
  min-height:46px;
  justify-content:center;
  gap:10px;
  background:#fff;
  color:#0b6b63;
  border:1px solid rgba(255,255,255,.7);
  border-radius:8px;
  font-size:17px;
  font-weight:700;
  box-shadow:0 8px 16px rgba(16,24,40,.12);
}
.ypi-aex-layout--archive-design .ypi-aex-cta-card .ypi-aex-btn svg{
  width:16px;
  height:16px;
}

@media (max-width:767px){
  .ypi-aex-layout--archive-design .ypi-aex-cta-card p{max-width:none;}
}


/* Refinements v1.1.5 */
.ypi-aex-layout--archive-design .ypi-aex-section-head h2{
  font-weight:600;
}
.ypi-aex-layout--archive-design .ypi-aex-sidebar-card h3,
.ypi-aex-layout--archive-design .ypi-aex-cta-card h3{
  font-weight:600;
}
.ypi-aex-layout--archive-design .ypi-aex-cta-card{
  background:
    linear-gradient(90deg, rgba(4,66,59,.90) 0%, rgba(5,95,86,.82) 42%, rgba(9,174,158,.58) 100%),
    url('../images/agency-hero-banner.png') 78% center / cover no-repeat;
}
.ypi-aex-layout--archive-design .ypi-aex-cta-card:after{
  right:0;
  top:0;
  width:48%;
  height:100%;
  background:linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.04));
}


/* CTA image background fix v1.1.6 */
.ypi-aex-layout--archive-design .ypi-aex-cta-card{
  background-image:
    linear-gradient(90deg, rgba(3,75,67,.92) 0%, rgba(5,113,101,.84) 46%, rgba(9,174,158,.70) 100%),
    url('../images/agency-cta-bg.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.ypi-aex-layout--archive-design .ypi-aex-cta-card:before{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
}
.ypi-aex-layout--archive-design .ypi-aex-cta-card:after{
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,0) 58%, rgba(255,255,255,.04) 100%);
  pointer-events:none;
}


/* CTA correct user-provided image fix v1.1.7 */
.ypi-aex-layout--archive-design .ypi-aex-cta-card{
  background: linear-gradient(90deg, rgba(4,66,59,.92) 0%, rgba(6,97,88,.84) 45%, rgba(9,174,158,.60) 100%), url('../images/agency-cta-bg-v2.png') center right / cover no-repeat !important;
  background-color: #0a6f65 !important;
}
.ypi-aex-layout--archive-design .ypi-aex-cta-card h3,
.ypi-aex-layout--archive-design .ypi-aex-cta-card p,
.ypi-aex-layout--archive-design .ypi-aex-cta-card li,
.ypi-aex-layout--archive-design .ypi-aex-cta-card a{
  color: #fff !important;
}
.ypi-aex-layout--archive-design .ypi-aex-cta-card:before{
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  pointer-events:none;
}
.ypi-aex-layout--archive-design .ypi-aex-cta-card:after{
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,0) 54%, rgba(255,255,255,.04) 100%);
  pointer-events:none;
}


/* Search buttons font-weight v1.1.8 */
.ypi-aex-search .ypi-aex-btn--brand,
.ypi-aex-search .ypi-aex-btn--outline{
  font-weight:500;
}

/* Single agency refinements v1.2.0 */
.ypi-aex-single-hero h1{
  font-size:clamp(24px,3.15vw,36px);
  font-weight:600;
  letter-spacing:-.03em;
}
.ypi-aex-single-hero__title{
  gap:10px;
}
.ypi-aex-single-layout > main > .ypi-aex-section-head h2{
  font-size:27px;
  font-weight:600;
  letter-spacing:-.025em;
}
.ypi-aex-property-card h3,
.ypi-aex-property-card h3 a{
  font-weight:500;
}
.ypi-aex-price{
  white-space:nowrap;
  font-weight:800;
}
.ypi-aex-stat-card__trust .ypi-aex-trust-badge-wrap{
  display:inline-flex;
}
.ypi-aex-stat-card__trust .ypi-aex-trust-badge-wrap + .ypi-aex-trust-badge-wrap{
  display:none;
}

/* Single agency listing fixes v1.2.1 */
.ypi-aex-single-hero .ypi-ts-badge,
.ypi-aex-single-hero + .ypi-ts-badge,
.ypi-aex > .ypi-ts-badge{
  display:none !important;
}
.ypi-aex-stats-strip .ypi-ts-badge{
  position:static !important;
  inset:auto !important;
  transform:none !important;
  display:inline-flex !important;
}
.ypi-aex-property-card{
  grid-template-columns:285px minmax(0,1fr) auto;
}
.ypi-aex-property-card__image{
  height:195px;
}
.ypi-aex-property-card__label{
  display:none !important;
}
.ypi-aex-property-card__no-image{
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:1px dashed rgba(9,174,158,.28);
  background:linear-gradient(135deg,#f3fbfa,#eef7f6);
  color:#0b3c51;
  text-align:center;
  font-size:13px;
  font-weight:600;
}
.ypi-aex-property-card__no-image svg{
  width:34px;
  height:34px;
  opacity:.75;
}
.ypi-aex-property-card h3,
.ypi-aex-property-card h3 a{
  font-weight:500;
}
@media (max-width:767px){
  .ypi-aex-property-card{
    grid-template-columns:1fr;
  }
  .ypi-aex-property-card__image{
    height:260px;
  }
}


/* Single agency hero image v1.2.2 */
.ypi-aex-single-hero{
  background:
    linear-gradient(90deg, rgba(3,64,58,.92) 0%, rgba(6,77,71,.78) 35%, rgba(9,174,158,.32) 72%, rgba(9,174,158,.10) 100%),
    url('../images/single-agency-hero.png') center right / cover no-repeat !important;
  min-height:360px;
}
.ypi-aex-single-hero:before{
  background:linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,.03));
}
.ypi-aex-single-hero__cover{
  display:none !important;
}
.ypi-aex-single-hero__inner{
  padding:36px 0 72px;
}
@media (max-width:767px){
  .ypi-aex-single-hero{
    background-position:68% center !important;
  }
}

/* Admin-only debug panel v1.2.3 */
.ypi-aex-debug{
  margin-top:14px;
  border:1px solid #f59e0b;
  border-radius:8px;
  background:#fffbeb;
  color:#78350f;
  overflow:hidden;
}
.ypi-aex-debug summary{
  cursor:pointer;
  padding:10px 12px;
  font-size:13px;
  font-weight:700;
  background:#fef3c7;
}
.ypi-aex-debug pre{
  margin:0;
  padding:12px;
  max-height:360px;
  overflow:auto;
  white-space:pre-wrap;
  word-break:break-word;
  font-size:12px;
  line-height:1.45;
}


/* Single listings pagination + filters v1.2.6 */
.ypi-aex-property-controls{
  display:grid;
  grid-template-columns:minmax(0,1fr) 220px auto;
  gap:12px;
  align-items:end;
  margin:0 0 18px;
  padding:14px;
  border:1px solid #e4e7ec;
  border-radius:8px;
  background:#fff;
  box-shadow:0 8px 20px rgba(16,24,40,.04);
}
.ypi-aex-property-controls__field label{
  display:block;
  margin:0 0 7px;
  font-size:12px;
  font-weight:700;
  color:#475467;
}
.ypi-aex-property-controls .ypi-aex-input{
  min-height:44px;
}
.ypi-aex-property-controls .ypi-aex-sort{
  width:100%;
  min-height:44px;
  border:1px solid #d9dee7;
  border-radius:8px;
  background:#fff;
  color:#101828;
  padding:0 12px;
  font-size:14px;
  font-weight:600;
}
.ypi-aex-property-controls .ypi-aex-btn{
  min-height:44px;
  font-size:13px;
  font-weight:500;
}
.ypi-aex-property-pagination{
  margin-top:20px;
}
.ypi-aex-listings.is-loading{
  opacity:.62;
  pointer-events:none;
}
@media (max-width:767px){
  .ypi-aex-property-controls{
    grid-template-columns:1fr;
  }
}

/* Debug removed v1.2.7 */
.ypi-aex-debug{display:none!important;}

/* Inquiry + hero text cleanup v1.2.8 */
.ypi-aex-single-hero__title h1{font-weight:600;}
.ypi-aex-single-actions .ypi-aex-btn{gap:8px;}
.ypi-aex-single-actions .ypi-aex-btn svg{width:17px;height:17px;}
.ypi-aex-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;}
.ypi-aex-inquiry-status{margin-top:10px;font-size:13px;font-weight:700;line-height:1.4;}
.ypi-aex-inquiry-status.is-loading{color:rgba(255,255,255,.86);}
.ypi-aex-inquiry-status.is-success{color:#dcfce7;}
.ypi-aex-inquiry-status.is-error{color:#fee2e2;}
.ypi-aex-contact-card .ypi-aex-empty--compact{padding:12px;border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.12);color:#fff;}

/* Responsive + CTA fixes v1.3.1 */
.ypi-aex-layout--archive-design .ypi-aex-cta-card .ypi-aex-btn,
.ypi-aex-layout--archive-design .ypi-aex-cta-card .ypi-aex-btn:visited{
  color:#101828 !important;
}
.ypi-aex-layout--archive-design .ypi-aex-cta-card .ypi-aex-btn svg{
  color:#101828 !important;
}

/* Tablet landscape should keep the desktop/laptop layout. */
@media (min-width:900px) and (orientation:landscape){
  .ypi-aex-layout--archive-design,
  .ypi-aex-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    gap:28px;
  }
  .ypi-aex-layout--archive-design .ypi-aex-agency-grid,
  .ypi-aex-agency-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .ypi-aex-layout--archive-design .ypi-aex-sidebar,
  .ypi-aex-sidebar{
    display:flex;
    flex-direction:column;
    gap:18px;
  }
  .ypi-aex-search__grid{
    grid-template-columns:1.1fr .9fr auto auto;
  }
  .ypi-aex-single-layout{
    grid-template-columns:minmax(0,1fr) 330px;
  }
  .ypi-aex-stats-grid{
    grid-template-columns:repeat(4,1fr);
  }
  .ypi-aex-trust-strip__grid{
    grid-template-columns:repeat(4,1fr);
  }
}

/* Phone screens should use the same stable portrait/tablet flow, not a separate cramped micro layout. */
@media (max-width:899px) and (orientation:portrait){
  .ypi-aex-layout--archive-design,
  .ypi-aex-layout,
  .ypi-aex-single-layout{
    grid-template-columns:1fr;
  }
  .ypi-aex-layout--archive-design .ypi-aex-sidebar,
  .ypi-aex-sidebar{
    display:grid;
    grid-template-columns:1fr;
  }
  .ypi-aex-search__grid{
    grid-template-columns:1fr;
  }
}


/* Security/contact hardening v1.3.2 */
.ypi-aex [data-aex-contact-action].is-loading{opacity:.72;cursor:wait;}
.ypi-aex [data-aex-contact-action].is-error{border-color:#fecaca;color:#991b1b;}
.ypi-aex-turnstile{margin-top:10px;}
.ypi-aex-contact-card .cf-turnstile iframe{max-width:100%;}


/* v1.3.3 - YPI.AE agency profile cover bridge */
.ypi-aex-single-hero__cover{
  left:0;
  right:auto;
  width:100%;
  opacity:.38;
}
.ypi-aex-single-hero:before{
  z-index:1;
  background:linear-gradient(90deg,rgba(11,60,81,.88),rgba(11,60,81,.62) 42%,rgba(11,60,81,.28));
}
.ypi-aex-single-hero__inner{
  position:relative;
  z-index:2;
}
@media (max-width:767px){
  .ypi-aex-single-hero__cover{opacity:.24;}
}


/* v1.3.5 - render uploaded agency cover inside the profile hero inner container */
.ypi-aex-single-hero.ypi-aex-single-hero--has-cover{
  background:#0b3c51 !important;
}
.ypi-aex-single-hero.ypi-aex-single-hero--has-cover:before{
  display:none !important;
}
.ypi-aex-single-hero__inner.ypi-aex-single-hero__inner--has-cover{
  position:relative !important;
  overflow:hidden !important;
  z-index:1 !important;
  isolation:isolate;
  background-image:linear-gradient(90deg,rgba(11,60,81,.92),rgba(11,60,81,.72) 42%,rgba(11,60,81,.42)),var(--ypi-aex-cover-image) !important;
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
}
.ypi-aex-single-hero__inner.ypi-aex-single-hero__inner--has-cover:after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:radial-gradient(circle at 82% 22%,rgba(255,255,255,.18),transparent 34%),linear-gradient(180deg,rgba(11,60,81,.04),rgba(11,60,81,.18));
}
.ypi-aex-single-hero__inner.ypi-aex-single-hero__inner--has-cover > :not(.ypi-aex-single-hero__cover){
  position:relative;
  z-index:2;
}
.ypi-aex-single-hero__inner.ypi-aex-single-hero__inner--has-cover .ypi-aex-single-hero__cover{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  z-index:0 !important;
  opacity:1 !important;
  pointer-events:none !important;
  background-image:var(--ypi-aex-cover-image) !important;
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
  transform:scale(1.01);
}
@media (max-width:767px){
  .ypi-aex-single-hero__inner.ypi-aex-single-hero__inner--has-cover{
    background-image:linear-gradient(180deg,rgba(11,60,81,.9),rgba(11,60,81,.72)),var(--ypi-aex-cover-image) !important;
  }
}


/* v1.3.6 - full-width agency profile cover background */
.ypi-aex-single-hero.ypi-aex-single-hero--has-cover{
  position:relative !important;
  overflow:hidden !important;
  background-color:#0b3c51 !important;
  background-image:
    linear-gradient(90deg,rgba(11,60,81,.94) 0%,rgba(11,60,81,.78) 34%,rgba(11,60,81,.48) 62%,rgba(11,60,81,.28) 100%),
    var(--ypi-aex-cover-image) !important;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
}
.ypi-aex-single-hero.ypi-aex-single-hero--has-cover:before{
  display:block !important;
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  z-index:0 !important;
  pointer-events:none !important;
  background:
    radial-gradient(circle at 78% 22%,rgba(255,255,255,.16),transparent 32%),
    linear-gradient(180deg,rgba(11,60,81,.02),rgba(11,60,81,.18)) !important;
}
.ypi-aex-single-hero.ypi-aex-single-hero--has-cover .ypi-aex-single-hero__inner{
  position:relative !important;
  z-index:2 !important;
  overflow:visible !important;
  isolation:auto !important;
  background:transparent !important;
  background-image:none !important;
}
.ypi-aex-single-hero.ypi-aex-single-hero--has-cover .ypi-aex-single-hero__inner:after{
  display:none !important;
}
.ypi-aex-single-hero.ypi-aex-single-hero--has-cover .ypi-aex-single-hero__cover{
  display:none !important;
}
@media (max-width:767px){
  .ypi-aex-single-hero.ypi-aex-single-hero--has-cover{
    background-image:
      linear-gradient(180deg,rgba(11,60,81,.94) 0%,rgba(11,60,81,.76) 52%,rgba(11,60,81,.62) 100%),
      var(--ypi-aex-cover-image) !important;
    background-position:center center !important;
  }
}

/* v1.3.7 - YPI.AE agency route/archive hardening and sponsored agency polish */
:root{
  --ypi-aex-brand:#0b3c51;
  --ypi-aex-brand-dark:#0b3c51;
  --ypi-aex-brand-deep:#082f40;
  --ypi-aex-soft:#eef6f8;
  --ypi-aex-bg:#f6f8fa;
}
.ypi-aex-template-main{
  overflow-x:clip;
  background:var(--ypi-aex-bg);
}
/* Break the profile hero and archive hero out of theme containers when the active theme wraps page content. */
.ypi-aex .ypi-aex-single-hero,
.ypi-aex .ypi-aex-hero{
  width:100vw;
  max-width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
}
.ypi-aex-hero{
  background:linear-gradient(120deg,#0b3c51 0%,#0f4e68 62%,#174f66 100%);
}
.ypi-aex-hero:after{
  opacity:.5;
  filter:saturate(.82);
}
.ypi-aex-hero__eyebrow{
  background:rgba(255,255,255,.12);
  color:#fff;
  border-color:rgba(255,255,255,.22);
}
.ypi-aex-btn--brand:hover{
  background:#0f4e68;
  border-color:#0f4e68;
}
.ypi-aex-btn--outline{
  color:#0b3c51;
  border-color:rgba(11,60,81,.22);
}
.ypi-aex-btn--outline:hover{
  color:#0b3c51;
  background:#eaf2f5;
  border-color:rgba(11,60,81,.32);
}
.ypi-aex-badge{
  background:#eaf2f5;
  color:#0b3c51;
}
.ypi-aex-agency-card__badges{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
  min-width:0;
}
.ypi-aex-badge--sponsored{
  background:#0b3c51;
  color:#fff;
  box-shadow:0 8px 20px rgba(11,60,81,.18);
}
.ypi-aex-agency-card--sponsored{
  border-color:rgba(11,60,81,.34);
  box-shadow:0 16px 38px rgba(11,60,81,.13);
}
.ypi-aex-agency-card--sponsored:before{
  content:"";
  position:absolute;
  inset:0;
  border:1px solid rgba(11,60,81,.18);
  border-radius:inherit;
  pointer-events:none;
}
.ypi-aex-agency-card--sponsored .ypi-aex-agency-card__top{
  background:linear-gradient(135deg,#0b3c51,#0f4e68);
}
.ypi-aex-agency-card--sponsored h3{
  color:#0b3c51;
}
.ypi-aex-agency-logo{
  color:#0b3c51;
}
.ypi-aex-agency-logo img{
  object-fit:contain;
}
.ypi-aex-single-hero.ypi-aex-single-hero--has-cover{
  min-height:360px;
  background-position:center center !important;
}
.ypi-aex-single-hero.ypi-aex-single-hero--has-cover .ypi-aex-single-hero__inner{
  width:min(1220px,calc(100% - 32px));
}
@media (max-width:767px){
  .ypi-aex .ypi-aex-single-hero,
  .ypi-aex .ypi-aex-hero{
    margin-left:calc(50% - 50vw);
    margin-right:calc(50% - 50vw);
  }
  .ypi-aex-agency-card__badges{
    align-items:flex-start;
  }
  .ypi-aex-single-hero.ypi-aex-single-hero--has-cover{
    min-height:420px;
  }
}
