.listing-preview .listing-details > .mcc-trigger{margin-left:auto!important;margin-right:4px!important;flex:0 0 auto;position:relative;z-index:2;height:26px;min-height:26px;padding:3px 8px!important;border:1px solid #e2e8f1;border-radius:7px;background:#fff;color:#252a33;box-shadow:0 2px 6px #1821320a;font-family:inherit;font-weight:700;font-size:11px;line-height:1.2;cursor:pointer;white-space:nowrap}
.listing-preview .listing-details:has(>.mcc-trigger){display:flex!important;align-items:center;gap:4px}
.listing-preview .listing-details:has(>.mcc-trigger)>.c27-listing-preview-category-list{min-width:0;flex:1;overflow:hidden}
html.mcc-open{overflow:hidden!important}
.mcc-dialog{box-sizing:border-box;width:min(680px,calc(100vw - 32px));max-width:none;height:min(760px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);margin:auto;padding:0;border:1px solid #e3e8ef;border-radius:24px;background:#f7f8fb;color:#172234;box-shadow:0 24px 90px #081a3e4d;font-family:"Mapeczka Nunito",system-ui,sans-serif;overflow:hidden}
.mcc-dialog[open]{display:flex;flex-direction:column}
.mcc-dialog::backdrop{background:#14203980;backdrop-filter:blur(3px)}
.mcc-dialog *{box-sizing:border-box}
.mcc-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;background:#fff;border-bottom:1px solid #e5e9f0}
.mcc-dialog header small{font-size:10px;letter-spacing:.12em;color:#728096}
.mcc-dialog h2{font-size:21px;line-height:1.3;font-weight:800;margin:4px 0 0;color:inherit}
.mcc-dialog button{cursor:pointer;font-family:inherit}
.mcc-dialog .mcc-close{flex:none;width:44px;height:44px;border:0;border-radius:50%;background:#eef1f6;color:inherit;font-size:28px;line-height:1}
.mcc-controls{padding:16px 24px 0;flex:none}
.mcc-dialog input[type=search]{width:100%;height:44px;border:1px solid #dce3ed;background:#fff;border-radius:12px;padding:0 14px;font:inherit;font-size:16px;color:inherit}
.mcc-tabs{display:flex;gap:8px;overflow-x:auto;padding:12px 0 4px;scrollbar-width:thin}
.mcc-tabs button,.mcc-retry{flex:none;border:1px solid #dce3ed;border-radius:999px;padding:9px 14px;background:#fff;color:inherit;font-size:13px;font-weight:700}
.mcc-tabs button[aria-pressed=true]{background:#172d45;color:#fff;border-color:#172d45}
.mcc-status{margin:8px 0;font-size:12px;color:#6a788a;min-height:18px}
.mcc-results{padding:0 24px 24px;overflow:auto;overscroll-behavior:contain;min-height:0;flex:1}
.mcc-group{margin:0 0 18px}.mcc-group h3{font-size:14px;font-weight:800;margin:16px 0 8px;color:inherit}
.mcc-item{padding:14px 16px;background:#fff;border:1px solid #e5e9f0;border-radius:14px;margin:7px 0}
.mcc-item-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px}.mcc-item h4{font-size:15px;font-weight:800;line-height:1.4;margin:0;color:inherit;overflow-wrap:anywhere}
.mcc-price{font-size:13px;flex:none;max-width:45%;text-align:right;color:#244d72}.mcc-item p{font-size:13px;line-height:1.5;color:#647185;margin:6px 0}.mcc-item small{font-size:11px;color:#69788b}
.mcc-dialog :focus-visible,.mcc-trigger:focus-visible{outline:3px solid #168fb7;outline-offset:2px}
@media(max-width:600px){.mcc-dialog{width:calc(100vw - 16px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);border-radius:20px}.mcc-dialog header{padding:16px}.mcc-controls{padding:12px 16px 0}.mcc-results{padding:0 16px calc(16px + env(safe-area-inset-bottom))}.mcc-dialog h2{font-size:18px}}
html.mapeczka-dark-mode .mcc-dialog{background:#141d2b;color:#edf2f8;border-color:#344155}
html.mapeczka-dark-mode .mcc-dialog :is(header,.mcc-item,input[type=search],.mcc-tabs button,.mcc-retry){background:#1e2a3a;color:#edf2f8;border-color:#344155}
html.mapeczka-dark-mode .mcc-dialog :is(.mcc-price,.mcc-item p,.mcc-item small,.mcc-status){color:#bbcee1}
html.mapeczka-dark-mode .mcc-tabs button[aria-pressed=true]{background:#386a99}

/* Align both controls on the same footer centre line at every breakpoint. */
html.mapeczka-redesign body #c27-explore-listings .listing-preview.mapeczka-place-card>.listing-details:has(>.mcc-trigger) .ld-info li:has(.c27-compare-button){top:50%!important;bottom:auto!important;transform:translateY(-50%)}
html.mapeczka-redesign body #c27-explore-listings .listing-preview.mapeczka-place-card>.listing-details:has(>.mcc-trigger) .c27-compare-button{color:#252a33!important}
html.mapeczka-dark-mode .listing-preview .listing-details>.mcc-trigger{background:#252a33;color:#f5f5f5;border-color:#434852}
