/* Phase 2: page, post, archive, apartment, villa, offer, search, 404 */
.ok-i-sun { --ok-i: url(../icons/sun.svg); }
.ok-i-ruler { --ok-i: url(../icons/ruler.svg); }
.ok-i-tag { --ok-i: url(../icons/tag.svg); }

.ok-wrap { max-width: var(--wp--style--global--content-size); margin-inline: auto; }
.ok-main > section.alignfull, .ok-main > .ok-section.alignfull { padding-inline: var(--ok-gutter); }

/* page head */
.ok-pagehead { position: relative; padding: 96px 0 56px; }
.ok-pagehead__inner { position: relative; z-index: 1; max-width: 900px; }
.ok-pagehead__inner > * { margin: 0; }
.ok-pagehead .ok-title { margin-top: 16px; }
.ok-pagehead .ok-lead { margin-top: 20px; max-width: 640px; }
.ok-pagehead__sub { margin: 12px 0 0; font: italic 300 var(--wp--preset--font-size--h-4)/1.3 var(--wp--preset--font-family--serif); }
.ok-pagehead--image .ok-pagehead__sub { color: var(--wp--custom--text--on-inverse); }
.ok-pagehead .ok-eyebrow a { color: inherit; text-decoration: none; }
.ok-pagehead--image {
	display: flex; align-items: flex-end;
	min-height: 560px; padding: 160px var(--ok-gutter) 56px;
	margin-inline: calc(-1 * var(--ok-gutter)) !important; max-width: none !important;
	color: var(--wp--custom--text--on-inverse);
}
.ok-pagehead--image::before {
	content: ""; position: absolute; inset: 0; z-index: 1; background: var(--ok-overlay); mix-blend-mode: multiply;
}
.ok-pagehead--image .ok-pagehead__inner { max-width: var(--wp--style--global--content-size); width: 100%; margin-inline: auto; }
.ok-pagehead--image { overflow: hidden; }
.ok-pagehead__img, .ok-pagehead__img img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }
.ok-pagehead--image .ok-title, .ok-pagehead--image .ok-lead, .ok-pagehead--image .ok-lead a, .ok-pagehead--image .ok-meta { color: var(--wp--custom--text--on-inverse); }
.ok-pagehead--image .ok-eyebrow { color: var(--wp--custom--text--on-inverse); opacity: .9; }
.ok-pagehead .ok-lead a { color: inherit; text-decoration: none; }
.ok-pagehead .ok-lead .ok-ico::before { width: 16px; height: 16px; margin-right: 8px; vertical-align: -2px; }
.ok-pagehead__credit { position: absolute; right: var(--ok-gutter); bottom: 12px; z-index: 1; font-size: 11px; opacity: .75; }
.ok-pagehead__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 28px !important; }
.ok-pagehead .ok-booking { margin: 40px 0 0 !important; }
.ok-pagehead .search-form, .ok-pagehead .wp-block-search { margin-top: 28px !important; }
.ok-villa .ok-pagehead--image { min-height: 720px; }

/* long-form content from the conversion */
.ok-content { padding-block: 48px var(--ok-section); }
.ok-content a { overflow-wrap: anywhere; }
.ok-content > * + * { margin-block-start: 24px; }
.ok-content h1 { font-size: var(--wp--preset--font-size--display-l); margin-top: 32px; }
.ok-content h2 { margin-top: 64px; }
.ok-content h3, .ok-content h4 { margin-top: 40px; }
.ok-content > :where(p, h1, h2, h3, h4, h5, h6, ul, ol, .wp-block-details, .wp-block-table, .wp-block-buttons, .wp-block-quote, .wp-block-shortcode, .ok-villa-faq) { max-width: 760px; }
.ok-content .ok-villa-faq { padding: 0; }
.ok-content .ok-villa-faq > * { max-width: none; }
.ok-content .ok-villa-faq > p { max-width: 62ch; }
.ok-content :where(.wp-block-group:not(.alignfull, .ok-section)) > p { max-width: 760px; }
.ok-content > p, .ok-content :where(.wp-block-group:not(.alignfull, .ok-section)) > p { max-width: 68ch; }
.ok-content .wp-block-columns { gap: 48px; margin-top: 48px; }
.ok-content .wp-block-column > * + * { margin-top: 20px; }
.ok-content .wp-block-image img { border-radius: var(--ok-radius); }
.ok-content table { border-collapse: collapse; width: 100%; font-size: 15px; }
.ok-content td, .ok-content th { border-bottom: 1px solid var(--ok-c-border); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.ok-main .wp-block-details { border-bottom: 1px solid var(--ok-c-border); padding: 18px 0; }
.ok-main .wp-block-details + .wp-block-details { margin-top: 0; }
.ok-main .wp-block-details summary { cursor: pointer; font: 400 var(--wp--preset--font-size--h-4)/1.3 var(--wp--preset--font-family--serif); list-style: none; display: flex; justify-content: space-between; gap: 24px; }
.ok-main .wp-block-details summary::-webkit-details-marker { display: none; }
.ok-main .wp-block-details summary::after { content: "+"; color: var(--ok-c-brand); font: 300 26px/1 var(--wp--preset--font-family--sans); }
.ok-main .wp-block-details[open] summary::after { content: "–"; }
.ok-main .wp-block-details > :not(summary) { margin-top: 14px; color: var(--ok-c-text-2); }
.ok-content .wp-block-buttons { margin-top: 32px; }
.ok-content .wp-block-gallery { gap: 8px; }
.ok-content .ok-box { background: var(--ok-c-surface); padding: 28px 32px; border-radius: var(--ok-radius); }
.ok-content .ok-box > * { margin: 0 0 12px; }
.ok-content .ok-box h3, .ok-content .ok-box h4 { font-size: var(--wp--preset--font-size--h-4); }
.ok-content .ok-progress { display: grid; gap: 6px; }
.ok-content .ok-progress progress { width: 100%; height: 8px; accent-color: var(--wp--custom--bg--brand); }
.ok-article .ok-content { padding-top: 24px; }

/* post */
.ok-tldr { background: var(--ok-c-surface); border: 1px solid var(--wp--custom--border--default); padding: 28px 32px; margin: 48px auto 0 !important; }
.ok-tldr > * { margin: 0; }
.ok-tldr p + * { margin-top: 12px; }
.ok-tldr .ok-checks { margin: 16px 0 0; }
.ok-tldr .ok-checks li::before { color: var(--wp--custom--icon--brand); }

/* photos */
.ok-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ok-photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--ok-radius); }
.ok-photos__more { margin-top: 24px; }
.ok-photos__more summary { cursor: pointer; list-style: none; margin-bottom: 24px; }
.ok-photos__more summary::-webkit-details-marker { display: none; }
.ok-photos__less, .ok-photos__more[open] .ok-photos__all { display: none; }
.ok-photos__more[open] .ok-photos__less { display: inline; }

/* map */
.ok-map { position: relative; background: var(--ok-c-muted); margin-inline: calc(-1 * var(--ok-gutter)) !important; max-width: none !important; }
.ok-map iframe { display: block; width: 100%; height: 480px; border: 0; }
.ok-map iframe:not([src]) { display: none; }
.ok-map iframe[src] + .ok-map__note > :not(a) { display: none; }
.ok-map iframe[src] + .ok-map__note { padding-block: 16px; }
.ok-map__note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; padding: 32px var(--ok-gutter); margin: 0; text-align: center; color: var(--ok-c-text-2); }
.ok-map__addr { font-weight: 600; color: var(--ok-c-text); }

/* apartment cards */
.ok-apt { display: flex; flex-direction: column; background: var(--ok-c-surface); }
.ok-apt > * { margin: 0; }
.ok-apt__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ok-apt .ok-eyebrow { margin: 20px 24px 0; }
.ok-apt__title { margin: 6px 24px 0; font-size: var(--wp--preset--font-size--h-4); line-height: 1.3; }
.ok-apt__title a { color: inherit; text-decoration: none; }
.ok-apt .ok-facts { margin: 14px 24px 0; }
.ok-apt__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: auto 24px 0; padding: 20px 0 24px; }
.ok-btn--small { padding: 12px 18px; font-size: 12px; }
.ok-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--ok-c-text-2); }
.ok-facts li { display: inline-flex; align-items: center; gap: 8px; }
.ok-facts li::before { width: 16px; height: 16px; color: var(--wp--custom--icon--brand); }
.ok-pagehead--image .ok-facts { color: var(--wp--custom--text--on-inverse); font-size: 15px; }
.ok-pagehead--image .ok-facts li::before { color: var(--wp--custom--text--accent-on-inverse); }

/* apartment detail */
.ok-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 80px; align-items: start; }
.ok-detail__title { font-size: var(--wp--preset--font-size--h-2); font-weight: 300; margin: 0 0 24px; }
.ok-detail__text p { max-width: 62ch; }
.ok-detail__text .ok-eyebrow { margin: 48px 0 20px; }
.ok-features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.ok-features li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.ok-features li::before { width: 18px; height: 18px; margin-top: 3px; color: var(--wp--custom--icon--brand); }
.ok-detail__card { position: sticky; top: calc(var(--ok-header-h) + 72px); background: var(--ok-c-surface); padding: 32px; box-shadow: var(--wp--preset--shadow--card, 0 1px 3px rgba(0,0,0,.06)); display: grid; gap: 20px; }
.ok-detail__card > * { margin: 0; }
.ok-detail__card .ok-facts { flex-direction: column; }
.ok-more { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding-top: 0; }
.ok-more__plans { display: grid; gap: 16px; }
.ok-more__plans img { width: 100%; background: var(--ok-c-surface); }
.ok-more__text > * { margin: 0 0 20px; }
.ok-more:not(:has(.ok-more__plans)) { grid-template-columns: minmax(0, 760px); }

/* villa */
.ok-villa-intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.ok-villa-intro__text p { max-width: 640px; }
.ok-villa-intro__text .ok-btn { margin-top: 16px; }
.ok-villa-intro__usps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.ok-villa-intro__usps strong { font-weight: 500; }
.ok-booking--villa { grid-template-columns: repeat(3, 1fr) auto; }
.ok-booking--villa .ok-field:nth-of-type(3) { border-right: 0; }
.ok-reviews-block .ok-reviews__widget { min-height: 200px; }

/* offers as perks */
.ok-perk { background: var(--ok-c-surface); padding: 32px; }
.ok-perk > * { margin: 0; }
.ok-perk__title { font-size: var(--wp--preset--font-size--h-4); margin-bottom: 12px; }
.ok-perk__title::before { content: ""; display: block; width: 32px; height: 2px; background: var(--wp--custom--border--brand); margin-bottom: 20px; }

/* forms */
.ok-form { display: grid; gap: 4px; max-width: 640px; margin-top: 32px; }
.ok-form__row { display: grid; gap: 6px; margin: 0 0 16px; }
.ok-form label { font: 600 12px/1.4 var(--wp--preset--font-family--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ok-c-text-muted); }
.ok-form :is(input, textarea), .search-form .search-field, .wp-block-search__input {
	box-sizing: border-box; min-width: 0; width: 100%; padding: 14px 16px; border: 1px solid var(--ok-c-border); border-radius: var(--ok-radius);
	background: var(--ok-c-surface); font: 400 16px/1.4 var(--wp--preset--font-family--sans); color: var(--ok-c-text);
}
.ok-form :is(input, textarea):focus { outline: 2px solid var(--wp--custom--border--brand); outline-offset: 1px; }
.ok-form__hp { position: absolute; left: -9999px; }
.ok-form__notice { background: var(--ok-c-surface); border: 1px solid var(--wp--custom--icon--success); padding: 24px 28px; max-width: 640px; }
.search-form { display: flex; gap: 8px; max-width: 560px; }
.search-form label { flex: 1; }
.search-form .search-submit { padding: 14px 24px; border: 0; border-radius: var(--ok-radius); background: var(--wp--custom--bg--brand); color: var(--wp--custom--text--on-brand); font: 600 13px/1 var(--wp--preset--font-family--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.ok-pagehead--image .search-field { background: var(--ok-c-surface); }

/* archive */
.ok-archive .ok-posts { padding-top: 24px; }
.ok-posts .wp-block-post-excerpt { margin-top: 10px; }
.ok-posts .wp-block-post-excerpt__more-link { display: none; }
.ok-pagination { margin-top: 56px; gap: 16px; font-weight: 500; }
.ok-pagination a { color: inherit; }
.ok-pagination .current { color: var(--ok-c-brand); }

@media (max-width: 781px) {
	.ok-pagehead { padding: 48px 0 32px; }
	.ok-pagehead--image { min-height: 460px; padding: 140px var(--ok-gutter) 32px; }
	.ok-villa .ok-pagehead--image { min-height: 0; }
	.ok-content { padding-block: 32px 72px; }
	.ok-content h2 { margin-top: 48px; }
	.ok-content .wp-block-columns { gap: 24px; }
	.ok-photos { grid-template-columns: 1fr 1fr; gap: 6px; }
	.ok-detail, .ok-more, .ok-villa-intro { grid-template-columns: 1fr; gap: 40px; }
	.ok-features { grid-template-columns: 1fr; }
	.ok-detail__card { position: static; }
	.ok-booking--villa { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ok-apts.ok-grid--3, .ok-apts.ok-grid--2 { grid-template-columns: 1fr; }
	.ok-map iframe { height: 360px; }
	.ok-tldr { padding: 22px 20px; }
	.search-form { flex-direction: column; }
}
.ok-villa-faq > * { max-width: 760px; margin-inline: auto; }
.ok-apartment > .ok-villa-faq > * { margin-left: 0 !important; margin-right: auto !important; }
.ok-villa-faq h2 { font-size: var(--wp--preset--font-size--h-2); font-weight: 300; }
.ok-villa-faq h3 { margin-top: 40px; font-size: var(--wp--preset--font-size--h-4); font-family: var(--wp--preset--font-family--sans); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ok-c-brand); }
.ok-band { background: var(--ok-c-subtle); padding: 48px; margin-block: 48px !important; }
.ok-content .wp-block-table :is(td, th) { border: 0; border-bottom: 1px solid var(--ok-c-border); padding: 10px 12px 10px 0; }
.ok-content .wp-block-table thead { border: 0; }
.ok-content .wp-block-table thead th { border-bottom: 2px solid var(--ok-c-text); }
.ok-content .wp-block-gallery figure.wp-block-image { flex-grow: 0 !important; }
.ok-content .wp-block-gallery figure.wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; }
.ok-content .ok-form { max-width: 760px; margin-inline: auto; }
@media (max-width: 781px) { .ok-band { padding: 24px 20px; } }
.ok-content > .ok-table-wide { max-width: none; overflow-x: auto; }
.ok-content .ok-table-wide table { min-width: 880px; font-size: 14px; }
.ok-content .ok-cards { margin-top: 32px; gap: 20px; max-width: 760px; }
.ok-content > :where(ul, ol) { max-width: 68ch !important; }
.ok-content > :where(p, ul, ol) { margin-left: max(0px, calc((100% - 760px) / 2)) !important; margin-right: auto !important; }
.ok-content .ok-cards .ok-box { padding: 24px 28px; }
.ok-content .ok-box > :last-child { margin-bottom: 0; }
.ok-content > .ok-section { max-width: none; }

/* "Auf einen Blick" (villa and Das Sellin) */
.ok-glance { margin-top: 32px; }
.ok-glance .ok-eyebrow { margin: 0 0 16px; }
.ok-glance .ok-checks { margin: 0 0 32px; gap: 10px; font-size: 15px; line-height: 1.45; }
.ok-glance .ok-checks li { align-items: flex-start; }
.ok-glance .ok-checks li::before { flex: none; margin-top: 3px; color: var(--wp--custom--icon--brand); }

/* apartment cards: parking fact and "ab … € / Nacht" */
.ok-apt .ok-price { margin: 12px 24px 0; }

/* content groups: headings and lists keep the same measure as their paragraphs */
.ok-content :where(.wp-block-group.is-layout-constrained:not(.alignfull, .ok-section, .ok-box, .ok-grid)) > :where(h2, h3, h4, ul, ol, .wp-block-buttons) { max-width: 760px; }
.ok-filter-note { margin: 0 0 24px; max-width: 68ch; color: var(--ok-c-text-2); }
.ok-content :where(.wp-block-group.is-layout-constrained:not(.alignfull, .ok-section, .ok-box, .ok-grid)) > :where(p, ul, ol) { margin-left: max(0px, calc((100% - 760px) / 2)) !important; margin-right: auto !important; }
@media (max-width: 781px) { .ok-content .ok-media-first > .wp-block-column:first-child { order: 2; } }
/* Filter Everything: selected chip in the brand colour (plugin blue was 4.4:1) */
body .wpc-filters-main-wrap input.wpc-label-input:checked + label span.wpc-filter-label-wrapper { background-color: var(--wp--custom--bg--inverse) !important; color: var(--wp--custom--text--on-inverse) !important; }
body .wpc-filters-main-wrap input.wpc-label-input:checked + label { border-color: var(--wp--custom--bg--inverse) !important; }
body .wpc-filters-main-wrap input.wpc-label-input:checked + label span.wpc-filter-label-wrapper * { color: inherit !important; }

/* Contact content follows the same left edge as the page heading. */
.ok-content > .ok-contact { max-width: var(--wp--style--global--content-size); margin-inline: auto; }
.ok-content .ok-contact > * { margin-left: 0 !important; margin-right: 0 !important; }
.ok-content .ok-contact .ok-cards { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ok-contact__photo { max-width: 100%; margin-top: 40px !important; }
.ok-contact__photo img { width: 100%; height: auto; }
@media (max-width: 1000px) { .ok-content .ok-contact .ok-cards { grid-template-columns: 1fr; } }

/* Editorial pages: keep images and copy on the same readable measure. */
.ok-content > .ok-editorial-image { max-width: 760px; }
.ok-editorial-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 782px) {
 .ok-content .ok-dog-intro { max-width: 1080px; align-items: center; }
 .ok-content .ok-dog-intro .wp-block-column > h2:first-child { margin-top: 0; }
 .ok-content > .ok-cards { max-width: 1080px; }
 .ok-gallery-block + .ok-reviews-block { padding-top: 24px; }
}
