/* EPA V56: mobile fixes scoped to actual panels. No changes to saved media. */
/* Restore the images on anonymous demonstration cards. V48 intentionally disables CSS
   background-images; demonstration cards therefore use normal IMG elements. */
#epaHomeDashboard #listingCards .epa-v56-demo-listing .listing-photo{background:#e9f0f4!important;position:relative!important;overflow:hidden!important}
#epaHomeDashboard #listingCards .epa-v56-demo-listing .epa-v56-demo-image{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;display:block;object-fit:cover!important;object-position:center!important;z-index:1}
#epaHomeDashboard #listingCards .epa-v56-demo-listing .tag{z-index:3!important}
#epaHomeDashboard #listingCards .epa-v56-demo-fallback:after{content:'Örnek görsel yüklenemedi';color:#64798a;display:grid;place-content:center;position:absolute;inset:0;font-size:11px}
/* V55's 225px/252px portrait overrides made cards excessively tall on phones. */
@media(max-width:850px){
 #epaHomeDashboard #listingCards[data-epa-view-mode="grid"] .listing-photo,
 #epaHomeDashboard #listingCards[data-epa-view-mode="grid"] .listing-photo[data-epa-photo-ratio="portrait"]{height:132px!important;min-height:132px!important;max-height:132px!important}
 #epaHomeDashboard #listingCards[data-epa-view-mode="compact"] .listing-photo,
 #epaHomeDashboard #listingCards[data-epa-view-mode="compact"] .listing-photo[data-epa-photo-ratio="portrait"]{height:100%!important;min-height:115px!important;max-height:145px!important}
 #epaWorkspace .epa-listings[data-epa-view-mode="grid"] .epa-property-photo,
 #epaWorkspace .epa-listings[data-epa-view-mode="grid"] .epa-property-photo[data-epa-photo-ratio="portrait"]{height:149px!important;min-height:149px!important;max-height:149px!important}
 #epaWorkspace .epa-listings[data-epa-view-mode="stack"] .epa-property-photo,
 #epaWorkspace .epa-listings[data-epa-view-mode="stack"] .epa-property-photo[data-epa-photo-ratio="portrait"]{height:205px!important;min-height:205px!important;max-height:205px!important}
 #epaHomeDashboard #listingCards{row-gap:9px!important;column-gap:8px!important}
 #epaHomeDashboard #listingCards .listing .seller-avatar{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;max-width:30px!important;max-height:30px!important;flex:0 0 30px!important}
 #epaHomeDashboard #listingCards .listing .seller-avatar img{max-width:100%!important;max-height:100%!important}
 #epaHomeDashboard #listingCards .listing-content{padding:7px 8px!important}
 /* Only the toolbar is compact; cards and actions retain their proper click targets. */
 .epa-v51-toolbar{gap:5px!important;padding:5px 7px!important;margin:6px 0 8px!important;border-radius:10px!important;flex-wrap:nowrap!important}
 .epa-v51-toolbar-caption{font-size:10px!important;white-space:nowrap!important}
 .epa-v51-modes{gap:1px!important;padding:2px!important;border-radius:8px!important}
 .epa-v51-mode{padding:4px 5px!important;min-height:28px!important;gap:3px!important;border-radius:7px!important}
 .epa-v51-mode>span{font-size:12px!important}
 .epa-v51-mode small{font-size:9px!important}
 #epaHomeDashboard .section-head{margin-bottom:6px!important}
 #epaHomeDashboard .lower-grid{margin-top:10px!important}
}
/* Some portrait profile photos have their face in the lower part of the uploaded file.
   Adjust only portrait photo crops; square avatars remain centred. */
#epaUnifiedHome .epa-u-avatar.epa-v55-portrait-avatar img,
#epaUnifiedRankingRoot .epa-u-avatar.epa-v55-portrait-avatar img,
#epaUnifiedExpertRoot .epa-u-avatar.epa-v55-portrait-avatar img,
#epaHomeDashboard .seller-avatar.epa-v55-portrait-avatar img,
#epaWorkspace .epa-property-owner .epa-v55-portrait-avatar img{object-fit:cover!important;object-position:50% 100%!important;max-width:100%!important;max-height:100%!important}
#epaUnifiedHome .epa-u-avatar,#epaUnifiedRankingRoot .epa-u-avatar,#epaUnifiedExpertRoot .epa-u-avatar{width:38px!important;height:38px!important;max-width:38px!important;max-height:38px!important;min-width:38px!important;min-height:38px!important;border-radius:50%!important;overflow:hidden!important}
/* Owner dashboard: center title/metadata must not be squeezed between action buttons. */
#epaWorkspace .epa-v56-owned-center .epa-v56-owned-head{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:10px!important;width:100%!important}
#epaWorkspace .epa-v56-owned-head>div:first-child{flex:none!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow-wrap:break-word!important;word-break:normal!important}
#epaWorkspace .epa-v56-owned-head h3{font-size:17px;line-height:1.35;overflow-wrap:break-word!important;word-break:normal!important}
#epaWorkspace .epa-v56-owned-head p{font-size:12px;line-height:1.45;max-width:100%;overflow-wrap:break-word!important;word-break:normal!important}
#epaWorkspace .epa-v56-owned-head .epa-v52-pin-action{flex:0 0 auto!important;align-self:flex-start!important;min-width:0!important;max-width:100%!important}
#epaWorkspace .epa-v56-owned-center .epa-office-row{align-items:flex-start!important;gap:9px!important;flex-wrap:wrap!important}
#epaWorkspace .epa-v56-owned-center .epa-office-row>div:first-child{width:100%;max-width:100%;flex:1 1 100%;min-width:0!important}
#epaWorkspace .epa-v56-owned-center .epa-office-row span{overflow-wrap:anywhere!important}
/* Booking conversation: single return control in the page header, single coherent message header. */
#epaWorkspace .epa-office-chat-header{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:5px!important;min-width:0!important;width:100%!important;overflow:hidden!important;box-sizing:border-box!important}
#epaWorkspace .epa-office-chat-header>*{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;flex:none!important;overflow-wrap:break-word!important;word-break:normal!important;white-space:normal!important}
#epaWorkspace .epa-office-chat-header h2{font-size:17px!important;line-height:1.35!important;margin:2px 0 4px!important}
#epaWorkspace .epa-office-chat-header p{font-size:12px!important;line-height:1.5!important;margin:2px 0!important}
#epaWorkspace .epa-office-header{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:11px!important}
#epaWorkspace .epa-office-header>div{flex:1 1 auto!important;width:auto!important;min-width:0!important}
#epaWorkspace .epa-office-header>button{flex:0 0 40px!important;width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important}
#epaWorkspace .epa-office-header h1{line-height:1.3!important;overflow-wrap:break-word!important;word-break:normal!important}
#epaWorkspace .epa-v56-delete-booking{font-size:11px!important;color:#825326!important;border-color:#e3d8ce!important}
#epaWorkspace .epa-office-reservation .epa-btn{min-height:35px!important}
/* Do not allow template CSS to render threads as a narrow vertical text column. */
@media(max-width:560px){
 #epaWorkspace .epa-office-chat-header, #epaWorkspace .epa-office-chat-section, #epaWorkspace .epa-office-offers{min-width:0!important;width:100%!important;box-sizing:border-box!important}
 #epaWorkspace .epa-office-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
 #epaWorkspace .epa-office-tabs button{min-width:0!important;max-width:100%!important;white-space:normal!important}
 #epaWorkspace .epa-office-booking-form-card select{min-width:0!important;width:100%!important}
}
