/* Kadence owns all exterior layout. Keep component internals only. */
.omk-listing.omk-property-block{min-width:0;box-sizing:border-box}
.omk-property-block>.omk-section{margin:0;padding:0;border:0}
.omk-property-block>.omk-hero-heading{padding:0}
.omk-property-block>.omk-sale-card{position:static;margin:0}
.omk-property-block>.omk-section-nav{margin:0;position:relative}
.omk-property-block>.omk-overview--combined{padding:24px;border:1px solid var(--omk-line);border-radius:16px}
.omk-property-block .omk-detail-home{display:block}

.omk-listing.omk-property-block>.omk-overview--combined{margin:0}
.omk-property-block .omk-section-nav a[hidden]{display:none}

/* Component spacing must win over Kadence's generic .single-content h1 rule. */
.omk-property-block--hero .omk-hero-heading > h1{margin:12px 0 8px}

/* The map fills the stretched Kadence column without changing its aspect ratio. */
.kt-inside-inner-col:has(> .omk-property-block--location){
    display:flex;flex-direction:column;align-items:stretch;flex:1;height:100%;
}
.omk-listing.omk-property-block--location{
    display:flex;flex:1;align-self:stretch;width:100%;min-width:0;min-height:clamp(360px,38vw,600px);
}
.omk-property-block--location .omk-finland-location{
    position:relative;display:block;flex:1;width:100%;min-width:0;margin:0;
}
.omk-finland-location>svg{
    position:absolute;inset:0;display:block;width:100%;height:100%;
}
.omk-finland-location__land{
    fill:var(--omk-location-land,var(--global-palette2,#315f58));
    stroke:#fff;stroke-width:1;stroke-linejoin:round;vector-effect:non-scaling-stroke;
}
.omk-finland-location__halo{fill:var(--omk-location-pin,var(--global-palette9,#fff));opacity:.18}
.omk-finland-location__pin{fill:var(--omk-location-pin,var(--global-palette9,#fff));stroke:#fff;stroke-width:1.5}
@media(max-width:767px){.omk-listing.omk-property-block--location{min-height:240px}}

/* Center only the overview column beside a location map in the same Kadence row. */
@media(min-width:768px){
    .kt-row-column-wrap:has(> .wp-block-kadence-column > .kt-inside-inner-col > .omk-property-block--location)
    > .wp-block-kadence-column:has(> .kt-inside-inner-col > .omk-property-block--overview){
        align-self:stretch;
    }
    .kt-row-column-wrap:has(> .wp-block-kadence-column > .kt-inside-inner-col > .omk-property-block--location)
    > .wp-block-kadence-column > .kt-inside-inner-col:has(> .omk-property-block--overview){
        display:flex;flex-direction:column;justify-content:center;height:100%;
    }
    .kt-row-column-wrap:has(> .wp-block-kadence-column > .kt-inside-inner-col > .omk-property-block--location)
    .omk-property-block--overview > .omk-overview--combined{
        margin-block:0;
    }
}

/* Shared editable offer guide. Native details supplies keyboard/open behavior. */
.omk-property-block--offer-guide .omk-offer-guide{border:1px solid var(--global-palette7,#dce6e2);border-radius:12px;padding:20px 24px;text-align:left}
.omk-property-block--offer-guide .omk-offer-guide>summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;font-weight:600;color:var(--global-palette1,#007f73)}
.omk-property-block--offer-guide .omk-offer-guide>summary::-webkit-details-marker{display:none}
.omk-property-block--offer-guide .omk-offer-guide>summary::before{content:"";display:block;flex:0 0 20px;width:20px;height:20px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14m-7-7 7 7-7 7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.omk-property-block--offer-guide .omk-offer-guide[open]>summary::before{transform:rotate(-90deg)}
.omk-property-block--offer-guide .omk-offer-guide>summary:focus-visible{outline:2px solid currentColor;outline-offset:5px}
.omk-property-block--offer-guide .omk-offer-guide>p{margin-block:20px 16px}
.omk-property-block--offer-guide .omk-offer-guide li{margin-block:0 16px;line-height:1.6}
.omk-property-block--offer-guide .omk-offer-guide li:last-child{margin-bottom:0}

/* Offer guide uses the same modal shell as Tilavahti. */
.omk-property-block--offer-guide .omk-offer-guide-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:14px 22px;border:1px solid var(--global-palette1,#007f73);border-radius:6px;background:var(--global-palette1,#007f73);color:#fff;font:inherit;font-weight:600;cursor:pointer;line-height:1.4;text-align:left}
.omk-property-block--offer-guide .omk-offer-guide-button:hover{background:var(--global-palette2,#315f58);border-color:var(--global-palette2,#315f58);color:#fff}
.omk-offer-guide-button svg{flex-shrink:0}
.omk-property-block--offer-guide .omk-offer-guide-button:focus-visible{outline:2px solid var(--global-palette2,#315f58);outline-offset:3px}
.omk-offer-guide-dialog{width:min(820px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:40px;border:1px solid var(--global-palette7,#dce6e2);border-radius:20px;background:#fff;color:var(--global-palette3,#20302a);text-align:left;overflow:auto}
.omk-offer-guide-dialog .omk-modal__close{background:var(--global-palette8,#f3f5f2);color:var(--global-palette3,#20302a)}
.omk-offer-guide-dialog h2:first-child{margin:0 36px 24px 0;font-size:clamp(22px,3vw,28px);line-height:1.3;color:var(--global-palette3,#20302a);text-align:left}
.omk-offer-guide-content{line-height:1.65;text-align:left}
.omk-offer-guide-content p{margin:0 0 20px}
.omk-offer-guide-content ol{padding-left:24px;margin:0}
.omk-offer-guide-content li{padding-left:4px;margin-bottom:18px}
.omk-offer-guide-content li:last-child{margin-bottom:0}
@media(max-width:600px){.omk-offer-guide-dialog{padding:28px 22px}.omk-offer-guide-dialog h2:first-child{margin-right:32px}}

/* Inline action next to the binding-offer introduction. */
.omk-offer-form-wrap .omk-property-block--offer-guide{margin:0 0 20px}
.omk-property-block--offer-guide .omk-offer-guide-button{padding:0;border:0;border-radius:0;background:transparent;color:var(--global-palette1,#007f73);box-shadow:none;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.omk-property-block--offer-guide .omk-offer-guide-button:hover,.omk-property-block--offer-guide .omk-offer-guide-button:focus{background:transparent;color:var(--global-palette2,#315f58);border:0;box-shadow:none}
