/* Final review: component geometry only. Existing page photos, films and gallery fills are unchanged. */
/* A small close target with space reserved beside the photo counter. */
html body #inmo-add.imbk-public-property .imbk-sheet-toolbar202.imbk-sheet-toolbar202>.imbk-sheet-close202{
 width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;flex-basis:28px!important;
 padding:0!important;font:400 20px/1 Arial,sans-serif!important;border:1px solid #b8cdca!important;
 background:#ffffffed!important;box-shadow:none!important;color:#173f53!important;
}
html body #inmo-add.imbk-public-property:has(.imbk-sheet-readonly248:not(.imbk-sheet-condensed237)) .preview-gallery>.preview-counter{
 right:46px!important;max-width:calc(100% - 60px)!important;white-space:normal!important;
}
/* Own profile: less air between the title and its form on phones. */
@media(max-width:767px){
 html body.imbk-profile-skin197 .imbk-profile-shell200>.imbk-profile-title200.imbk-profile-title200{margin-bottom:6px!important}
 html body.imbk-profile-skin197 .imbk-profile-shell200>#dashboard-user-profile{margin-top:0!important}
}
/* Shared open-list backdrop already matches the catalogue; remove the opaque sheet over it. */
@media(min-width:768px){
 html body.imbk-background222 #imbk-home.imbk-panel-preview .imbk-panel-workspace196>#imbk-my-published.panel-card,
 html body.imbk-background222 #imbk-home #imbk-my-published.imbk-my-published{
  background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;
 }
 html body #imbk-home #imbk-my-published>.imbk-published-grid{background:transparent!important}
 html body #imbk-home #imbk-my-published>:is(.imbk-published-note,.imbk-published-count){
  width:fit-content;max-width:100%;box-sizing:border-box;background:#fffdf7d9!important;color:#244b60!important;
  padding:6px 10px!important;border-radius:6px;
 }
}
/* Desktop contact is about 15% narrower; own profile increases by less than 10%. */
@media(min-width:1100px) and (hover:hover) and (pointer:fine){
 html body #imbk-home>.imbk-contact-shell252{width:calc((100% - 64px)*.85)!important;max-width:1360px!important}
 html body.imbk-profile-skin197 .imbk-profile-shell200{width:calc(100% - 32px)!important;max-width:980px!important}
 html body.imbk-profile-skin197 .imbk-profile-shell200>#dashboard-user-profile{max-width:980px!important}
}
/* Chosen integrated presentation: desktop and landscape tablets only. Phone stays unchanged. */
@media(min-width:768px) and (orientation:landscape), (min-width:1100px) and (hover:hover) and (pointer:fine){
 html body #imbk-home .imbk-agent-profile>.imbk-agent-card161{
  display:grid!important;grid-template-columns:minmax(180px,28%) minmax(0,1fr)!important;grid-template-rows:1fr auto!important;
  width:82%!important;max-width:1000px!important;margin:12px auto 0!important;padding:0!important;gap:0!important;
  background:linear-gradient(115deg,#e8f0ee,#fffdf8)!important;overflow:hidden!important;
 }
 html body #imbk-home .imbk-agent-profile>.imbk-agent-card161>.imbk-agent-main161{display:contents!important}
 html body #imbk-home .imbk-agent-profile .imbk-agent-card161 .imbk-agent-photo161{
  grid-column:1!important;grid-row:1 / span 2!important;order:0!important;align-self:stretch!important;
  width:100%!important;height:auto!important;max-width:none!important;min-height:300px!important;aspect-ratio:auto!important;
  border-radius:0!important;margin:0!important;background:#dce9e8!important;
 }
 html body #imbk-home .imbk-agent-profile .imbk-agent-card161 .imbk-profile-photo{
  display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center top!important;
 }
 html body #imbk-home .imbk-agent-profile .imbk-agent-card161 .imbk-agent-info161{
  grid-column:2!important;grid-row:1!important;padding:0 0 0 18px!important;margin:24px 24px 0!important;
  gap:13px!important;justify-content:center!important;border-left:3px solid #dfc36c!important;
 }
 html body #imbk-home .imbk-agent-profile .imbk-agent-card161 h1{
  font:400 clamp(25px,2.4vw,34px)/1.15 Arial,sans-serif!important;letter-spacing:0!important;white-space:normal!important;
 }
 html body #imbk-home .imbk-agent-profile .imbk-agent-card161 .imbk-agent-person161 p{font:400 16px/1.3 Arial,sans-serif!important}
 html body #imbk-home .imbk-agent-profile .imbk-agent-card161 .imbk-agent-person161{display:flex!important;flex-direction:column!important;align-items:flex-start!important}
 html body #imbk-home .imbk-agent-profile .imbk-agent-card161 .imbk-agent-logo222{order:-1!important;width:105px!important;max-width:105px!important;height:44px!important;margin:0 0 10px!important}
 html body #imbk-home .imbk-agent-profile .imbk-agent-card161 .imbk-agent-number161{font-size:27px!important;font-weight:400!important}
 html body #imbk-home .imbk-agent-profile .imbk-agent-card161 .imbk-agent-socials161{justify-content:space-between!important;gap:8px!important}
 html body #imbk-home .imbk-agent-profile>.imbk-agent-card161>.imbk-agent-band161{
  grid-column:2!important;grid-row:2!important;background:transparent!important;color:#173f53!important;
  min-height:0!important;padding:14px 24px 24px 45px!important;border-radius:0!important;
 }
 html body #imbk-home .imbk-agent-profile .imbk-agent-band161>.imbk-brand-symbol222{display:none!important}
 html body #imbk-home .imbk-agent-profile .imbk-agent-band161>.imbk-agent-band-contact161{
  width:auto!important;max-width:100%!important;margin:0!important;justify-content:flex-start!important;flex-wrap:wrap!important;
 }
 html body #imbk-home .imbk-agent-profile .imbk-agent-band161 .imbk-agent-call161{
  color:#fff!important;background:linear-gradient(110deg,#174c52,#367f87)!important;border:1px solid #286c75!important;
  border-radius:7px!important;padding:9px 16px!important;font:400 14px/1.2 Arial,sans-serif!important;text-decoration:none!important;
 }
 html body #imbk-home .imbk-agent-profile .imbk-agent-band161 .imbk-agent-wa161{
  width:auto!important;min-height:36px!important;background:#244f59!important;border-radius:7px!important;padding:8px 11px!important;gap:7px!important;color:#fff!important;
 }
 html body #imbk-home .imbk-agent-profile .imbk-agent-band161 .imbk-agent-wa161 img{width:20px!important;height:20px!important}
 html body #imbk-home .imbk-agent-profile .imbk-agent-band161 .imbk-agent-wa161::after{content:'WhatsApp';font:400 14px/1.2 Arial,sans-serif}
 html body #imbk-home .imbk-agent-profile>.imbk-profile-bio{
  width:82%!important;max-width:1000px!important;box-sizing:border-box!important;margin:14px auto 24px!important;
  padding:10px 14px!important;background:#edf3ef!important;
 }
}
/* Portrait tablets: only the page's paper changes to 70% opacity; content keeps full contrast. */
@media(min-width:768px) and (max-width:1366px) and (orientation:portrait) and (pointer:coarse){
 html body.imbk-background222.imbk-home-preview.imbk-agent-background217 #imbk-home main.imbk-agent-profile{
  background:rgba(255,255,255,.70)!important;
 }
}
