
/* 4.1 / 0.4 — package refinement. Palette, accepted grid and geometry stay unchanged. */
/* Selected badge position: photo. Quieter glass. */
html#shellDemo .ex-placement{display:none!important}
.ex-card--v2 .ex-photo-class{background:rgba(255,255,255,.48)!important;color:rgba(32,45,54,.82)!important;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);padding:4px 8px!important}
/* Heart: exact requested 0.5 white stroke, visually quiet hit area. */
html#shellDemo .app .ex-card--v2 .fav.ex-favorite .i,
html#shellDemo .app .ex-card--v2 .fav.ex-favorite[aria-pressed=true] .i{stroke:rgba(255,255,255,.5)!important;stroke-width:1.2!important;filter:drop-shadow(0 1px 2px rgba(11,29,39,.18))!important}
html#shellDemo .app .ex-card--v2 .fav.ex-favorite:hover{background:rgba(255,255,255,.08)!important}
/* Modern silent gallery: no arrows, no capsule, count stays bottom-right. */
.ex-slide-arrow{display:none!important}
.ex-slide-dots{bottom:9px!important;left:50%!important;transform:translateX(-50%)!important;gap:2px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.ex-slide-dots button{width:16px!important;height:16px!important;padding:0!important;border:0!important;background:transparent!important}
.ex-slide-dots button span{width:4px!important;height:4px!important;background:rgba(255,255,255,.58)!important;box-shadow:0 1px 2px rgba(13,31,42,.28)!important;transition:width .14s ease,background-color .14s ease!important}
.ex-slide-dots button[aria-pressed=true] span{width:10px!important;height:4px!important;border-radius:999px!important;background:rgba(255,255,255,.96)!important}
.ex-slide-dots button:hover span{background:rgba(255,255,255,.82)!important}
.ex-photo-count{top:auto!important;bottom:10px!important;right:10px!important;padding:2px 6px!important;border-radius:999px!important;background:rgba(18,37,50,.25)!important;font-size:11px!important;line-height:16px!important}
/* Active presentation: red PDF cue + confident surface hover. */
.ex-document .ex-pdf-mark{color:#CB254D!important}
html#shellDemo .app .ex-document:not([aria-disabled=true]):hover{background:#FFF7F9!important;border-color:#E3C4CC!important;box-shadow:0 4px 14px rgba(203,37,77,.10)!important}
html#shellDemo .app .ex-document:not([aria-disabled=true]):hover .ex-document-size{color:#CB254D!important}
/* Disabled presentation stays visibly inert. */
html#shellDemo .app .ex-document[aria-disabled=true],
html#shellDemo .app .ex-document[aria-disabled=true]:hover{background:var(--c-surface)!important;border-color:var(--c-border)!important;box-shadow:none!important;transform:none!important;cursor:default!important}
html#shellDemo .app .ex-document[aria-disabled=true] .ex-pdf-mark{color:#A3ADB5!important}
html#shellDemo .app .ex-document[aria-disabled=true]:hover .ex-document-name{color:var(--c-text-secondary)!important}
html#shellDemo .app .ex-document[aria-disabled=true]:hover .ex-document-note{color:var(--c-muted)!important}

/* FAVORITES / FLATS ------------------------------------------------------- */
html#shellDemo[data-reference="after"] #shCardGrid.cards{align-items:stretch}
html#shellDemo[data-reference="after"] .ex-favorite-flat-card{padding:0!important;overflow:hidden;border-radius:12px!important;background:var(--c-surface)!important;box-shadow:0 1px 2px rgba(32,45,54,.035),0 5px 14px rgba(32,45,54,.035)!important}
html#shellDemo[data-reference="after"] .ex-favorite-flat-card .card-media{position:relative;margin:8px 8px 0!important;border-radius:8px!important;overflow:hidden;height:210px!important;min-height:210px!important;background:#F7F9FA!important;border:1px solid #EEF1F3!important}
html#shellDemo[data-reference="after"] .ex-favorite-flat-card .card-media img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;padding:14px!important;background:#fff!important}
html#shellDemo[data-reference="after"] .ex-favorite-flat-card .card-content{padding:16px 20px 20px!important;display:flex!important;flex-direction:column!important;gap:14px!important;min-height:0!important}
html#shellDemo[data-reference="after"] .ex-favorite-flat-card .card-value-group{display:flex!important;align-items:baseline!important;justify-content:space-between!important;gap:12px!important}
html#shellDemo[data-reference="after"] .ex-favorite-flat-card .card-price{font-size:20px!important;line-height:28px!important;font-weight:700!important;letter-spacing:-.02em!important;color:var(--c-text)!important}
html#shellDemo[data-reference="after"] .ex-favorite-flat-card .sqm{font-size:12px!important;line-height:16px!important;color:var(--c-muted)!important;margin:0!important;white-space:nowrap}
html#shellDemo[data-reference="after"] .ex-favorite-flat-card .card-unit-group{display:grid!important;gap:6px!important}
html#shellDemo[data-reference="after"] .ex-favorite-flat-card .card-title{font-size:18px!important;line-height:25px!important;font-weight:600!important;letter-spacing:-.012em!important;margin:0!important}
html#shellDemo[data-reference="after"] .ex-favorite-flat-card .facts{display:flex!important;gap:10px 16px!important;flex-wrap:wrap!important;color:var(--c-text-secondary)!important;font-size:13px!important;line-height:20px!important}
html#shellDemo[data-reference="after"] .ex-favorite-flat-card .card-location-group{display:grid!important;gap:5px!important;padding-top:2px!important}
html#shellDemo[data-reference="after"] .ex-favorite-flat-card .building-name{font-size:14px!important;line-height:21px!important;font-weight:600!important;color:var(--c-text)!important;margin:0!important}
html#shellDemo[data-reference="after"] .ex-favorite-flat-card .address{font-size:13px!important;line-height:19px!important;color:var(--c-muted)!important;margin:0!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html#shellDemo[data-reference="after"] .ex-favorite-flat-card .card-actions{margin-top:auto!important;padding-top:2px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;border-top:0!important}
html#shellDemo[data-reference="after"] .ex-favorite-flat-card .card-actions .btn{height:40px!important;min-height:40px!important;border-radius:8px!important;font-size:13px!important;line-height:20px!important;font-weight:500!important;box-shadow:none!important}
html#shellDemo[data-reference="after"] .ex-favorite-flat-card .ex-flat-add{background:#fff!important;color:#006D7C!important;border:1px solid #4E9CAB!important;padding:0 12px!important}
html#shellDemo[data-reference="after"] .ex-favorite-flat-card .ex-flat-add:hover{background:#EAF6F8!important;border-color:#0997A6!important}
html#shellDemo[data-reference="after"] .ex-favorite-flat-card .ex-flat-preview{padding:0 12px!important;background:#F6F8F9!important;border:1px solid #E1E6EA!important;color:#344550!important;gap:7px!important;white-space:nowrap!important}
html#shellDemo[data-reference="after"] .ex-favorite-flat-card .ex-flat-preview:hover{background:#EEF4F5!important;border-color:#CBD7DB!important;color:#006D7C!important}
html#shellDemo[data-reference="after"] .ex-favorite-flat-card .ex-flat-favorite{position:absolute!important;top:10px!important;right:10px!important;width:40px!important;height:40px!important;border-radius:8px!important;background:rgba(255,255,255,.88)!important;border:1px solid rgba(207,214,220,.68)!important;color:#B73555!important;box-shadow:0 2px 8px rgba(32,45,54,.08)!important;display:grid!important;place-items:center!important;padding:0!important}
html#shellDemo[data-reference="after"] .ex-favorite-flat-card .ex-flat-favorite .i{width:19px!important;height:19px!important}
html#shellDemo[data-reference="after"] .ex-favorite-flat-card .ex-flat-favorite:hover{background:#FFF5F7!important;border-color:#E6C4CC!important}

/* FAVORITES / DEVELOPERS -------------------------------------------------- */
html#shellDemo[data-reference="after"] .ex-favorite-developer-card{border-radius:12px!important;box-shadow:0 1px 2px rgba(32,45,54,.035),0 5px 14px rgba(32,45,54,.035)!important;background:var(--c-surface)!important;overflow:hidden}
html#shellDemo[data-reference="after"] .ex-favorite-developer-card .ps-card-body{padding:20px!important;display:flex!important;flex-direction:column!important;gap:16px!important;height:100%!important}
html#shellDemo[data-reference="after"] .ex-favorite-developer-card .ps-entity-head{display:grid!important;grid-template-columns:56px minmax(0,1fr) 40px!important;gap:12px!important;align-items:center!important}
html#shellDemo[data-reference="after"] .ex-favorite-developer-card .ps-entity-logo{width:56px!important;height:56px!important;border-radius:10px!important;border:1px solid #E6EBEE!important;background:#fff!important;overflow:hidden;display:grid!important;place-items:center!important}
html#shellDemo[data-reference="after"] .ex-favorite-developer-card .ps-entity-logo img{max-width:100%!important;max-height:100%!important;object-fit:contain!important}
html#shellDemo[data-reference="after"] .ex-favorite-developer-card .ps-entity-head h2{font-size:18px!important;line-height:25px!important;font-weight:600!important;margin:0!important;letter-spacing:-.012em!important}
html#shellDemo[data-reference="after"] .ex-favorite-developer-card .ps-year{font-size:12px!important;line-height:16px!important;color:var(--c-muted)!important;margin-top:3px!important}
html#shellDemo[data-reference="after"] .ex-favorite-developer-card .ex-developer-favorite{width:40px!important;height:40px!important;border-radius:8px!important;background:#F6F8F9!important;border:1px solid #E1E6EA!important;color:#B73555!important;padding:0!important;display:grid!important;place-items:center!important;box-shadow:none!important}
html#shellDemo[data-reference="after"] .ex-favorite-developer-card .ex-developer-favorite:hover{background:#FFF5F7!important;border-color:#E6C4CC!important}
html#shellDemo[data-reference="after"] .ex-favorite-developer-card .ps-description{font-size:13px!important;line-height:20px!important;color:var(--c-text-secondary)!important;margin:0!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
html#shellDemo[data-reference="after"] .ex-favorite-developer-card .ps-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;border-top:1px solid #E8ECEF!important;border-bottom:1px solid #E8ECEF!important;padding:12px 0!important;margin:0!important;background:transparent!important}
html#shellDemo[data-reference="after"] .ex-favorite-developer-card .ps-metrics>div{padding:0 12px!important;border-left:1px solid #E8ECEF!important;background:transparent!important;border-radius:0!important}
html#shellDemo[data-reference="after"] .ex-favorite-developer-card .ps-metrics>div:first-child{padding-left:0!important;border-left:0!important}
html#shellDemo[data-reference="after"] .ex-favorite-developer-card .ps-metrics strong{font-size:16px!important;line-height:22px!important;font-weight:700!important;color:var(--c-text)!important}
html#shellDemo[data-reference="after"] .ex-favorite-developer-card .ps-metrics small{font-size:11px!important;line-height:16px!important;color:var(--c-muted)!important;margin-top:2px!important}
html#shellDemo[data-reference="after"] .ex-favorite-developer-card .ps-footer-actions{margin-top:auto!important;padding:0!important;border:0!important}
html#shellDemo[data-reference="after"] .ex-favorite-developer-card .ex-developer-action{width:100%!important;height:40px!important;display:flex!important;justify-content:center!important;align-items:center!important;background:#fff!important;border:1px solid #4E9CAB!important;color:#006D7C!important;border-radius:8px!important;font-size:13px!important;line-height:20px!important;font-weight:500!important;box-shadow:none!important}
html#shellDemo[data-reference="after"] .ex-favorite-developer-card .ex-developer-action:hover{background:#EAF6F8!important;border-color:#0997A6!important}

@media(max-width:800px){
 html#shellDemo[data-reference="after"] .ex-favorite-flat-card .card-media{height:190px!important;min-height:190px!important}
 html#shellDemo[data-reference="after"] .ex-favorite-flat-card .card-content{padding:14px 16px 16px!important}
 html#shellDemo[data-reference="after"] .ex-favorite-flat-card .ex-flat-favorite{width:44px!important;height:44px!important;top:8px!important;right:8px!important}
 html#shellDemo[data-reference="after"] .ex-favorite-developer-card .ps-card-body{padding:16px!important}
}
