/*
Theme Name: OwnerPath
Theme URI: https://example.com/ownerpath
Author: OwnerPath
Description: A theme for seller-financed / owner-financed / contract-for-deed home sellers. Includes a Homes listing type with price, down payment and monthly payment, filterable listings, a map search, automatic city and state landing pages with rent comparison and FAQs, buyer guide templates, a showing-request lead form, testimonials, and a one-click demo content importer.
Version: 1.0.2
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ownerpath
Tags: real-estate, custom-colors, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
	--op-primary: #1d3557;
	--op-primary-ink: #13243c;
	--op-accent: #d4703a;
	--op-accent-ink: #b45a28;
	--op-bg: #faf8f4;
	--op-surface: #ffffff;
	--op-soft: #f1ede4;
	--op-line: #e4dfd3;
	--op-text: #232a33;
	--op-muted: #5f6772;
	--op-good: #2f8a5b;
	--op-warn: #b8791f;
	--op-info: #3d6b8f;
	--op-radius: 14px;
	--op-shadow: 0 10px 30px rgba(19, 36, 60, .07);
	--op-font-head: "Fraunces", Georgia, "Times New Roman", serif;
	--op-font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--op-wrap: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--op-bg);
	color: var(--op-text);
	font-family: var(--op-font-body);
	font-size: 17px;
	line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--op-primary); }
a:hover { color: var(--op-accent-ink); }
h1, h2, h3, h4 {
	font-family: var(--op-font-head);
	color: var(--op-primary-ink);
	line-height: 1.15;
	font-weight: 600;
	margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: #fff; padding: 8px 12px; clip: auto; width: auto; height: auto; }
.op-wrap { max-width: var(--op-wrap); margin: 0 auto; padding: 0 20px; }
.op-narrow { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.op-section { padding: 72px 0; }
.op-section--soft { background: var(--op-soft); }
.op-section--dark { background: var(--op-primary-ink); color: #e9edf3; }
.op-section--dark h2, .op-section--dark h3 { color: #fff; }
.op-eyebrow {
	display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .09em;
	text-transform: uppercase; color: var(--op-accent-ink); margin-bottom: 10px;
}
.op-section--dark .op-eyebrow { color: #f2a679; }
.op-lead { font-size: 1.15rem; color: var(--op-muted); max-width: 680px; }
.op-center { text-align: center; }
.op-center .op-lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.op-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
	font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
	transition: background .18s, color .18s, border-color .18s, transform .18s;
	font-family: var(--op-font-body); line-height: 1.2;
}
.op-btn:hover { transform: translateY(-1px); }
.op-btn--accent { background: var(--op-accent); color: #fff; }
.op-btn--accent:hover { background: var(--op-accent-ink); color: #fff; }
.op-btn--primary { background: var(--op-primary); color: #fff; }
.op-btn--primary:hover { background: var(--op-primary-ink); color: #fff; }
.op-btn--ghost { background: transparent; color: var(--op-primary); border-color: var(--op-primary); }
.op-btn--ghost:hover { background: var(--op-primary); color: #fff; }
.op-btn--light { background: #fff; color: var(--op-primary-ink); }
.op-btn--block { width: 100%; }
.op-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.op-center .op-actions { justify-content: center; }

/* ---------- Header ---------- */
.op-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(250, 248, 244, .94); backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--op-line);
}
.admin-bar .op-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .op-header { top: 0; } }
.op-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.op-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--op-primary-ink); }
.op-brand__mark { width: 34px; height: 34px; flex: none; }
.op-brand__name { font-family: var(--op-font-head); font-weight: 700; font-size: 1.3rem; }
.op-brand img { max-height: 46px; width: auto; }
.op-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.op-nav a {
	display: block; padding: 8px 10px; white-space: nowrap; border-radius: 8px; text-decoration: none;
	color: var(--op-text); font-weight: 600; font-size: 15.5px;
}
.op-nav a:hover, .op-nav .current-menu-item > a { background: var(--op-soft); color: var(--op-primary-ink); }
.op-nav li.op-nav-cta > a { background: var(--op-accent); color: #fff; padding: 9px 16px; border-radius: 999px; }
.op-header__phone { font-weight: 700; text-decoration: none; white-space: nowrap; }
.op-menu-toggle {
	display: none; background: none; border: 1px solid var(--op-line); border-radius: 10px;
	width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center;
}
.op-menu-toggle span, .op-menu-toggle span::before, .op-menu-toggle span::after {
	display: block; width: 20px; height: 2px; background: var(--op-primary-ink); position: relative; content: ""; transition: transform .2s;
}
.op-menu-toggle span::before { position: absolute; top: -6px; }
.op-menu-toggle span::after { position: absolute; top: 6px; }
.op-menu-toggle[aria-expanded="true"] span { background: transparent; }
.op-menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.op-menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.op-mobile-nav { border-top: 1px solid var(--op-line); padding: 12px 20px 20px; background: var(--op-bg); }
.op-mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.op-mobile-nav a { display: block; padding: 11px 4px; text-decoration: none; font-weight: 600; color: var(--op-text); border-bottom: 1px solid var(--op-line); }
.op-mobile-nav h4 { margin: 18px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-family: var(--op-font-body); color: var(--op-muted); }
@media (max-width: 1320px) { .op-header__phone { display: none; } }
@media (max-width: 1080px) {
	.op-nav, .op-header__phone { display: none; }
	.op-menu-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.op-hero { position: relative; padding: 84px 0 64px; overflow: hidden; }
.op-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(900px 400px at 85% -10%, rgba(212, 112, 58, .15), transparent 60%),
		radial-gradient(700px 360px at -10% 110%, rgba(29, 53, 87, .10), transparent 60%);
}
.op-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.op-hero h1 em { font-style: italic; color: var(--op-accent-ink); }
.op-hero__media { border-radius: 22px; overflow: hidden; box-shadow: var(--op-shadow); aspect-ratio: 4/5; background: var(--op-soft); }
.op-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.op-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.op-chip { background: var(--op-surface); border: 1px solid var(--op-line); padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--op-primary-ink); }
@media (max-width: 860px) {
	.op-hero__grid { grid-template-columns: 1fr; }
	.op-hero__media { aspect-ratio: 16/10; }
}

/* ---------- Steps ---------- */
.op-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; margin-top: 44px; }
.op-step { background: var(--op-surface); border: 1px solid var(--op-line); border-radius: var(--op-radius); padding: 22px; position: relative; }
.op-step__label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--op-accent-ink); }
.op-step h3 { margin: 6px 0 6px; }
.op-step p { margin: 0; color: var(--op-muted); font-size: 15.5px; }
@media (max-width: 860px) { .op-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .op-steps { grid-template-columns: 1fr; } }

/* ---------- Benefits ---------- */
.op-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.op-benefit { padding: 28px; border-radius: var(--op-radius); background: var(--op-surface); border: 1px solid var(--op-line); }
.op-benefit__num { font-family: var(--op-font-head); font-size: 2.2rem; color: var(--op-accent); line-height: 1; margin-bottom: 14px; display: block; }
.op-benefit p { color: var(--op-muted); margin: 0; }
@media (max-width: 860px) { .op-benefits { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.op-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.op-quote { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--op-radius); padding: 26px; display: flex; flex-direction: column; }
.op-quote blockquote { margin: 0 0 18px; font-size: 16.5px; line-height: 1.65; flex: 1; }
.op-quote cite { font-style: normal; font-weight: 700; color: #fff; display: block; }
.op-quote small { color: #b9c3d1; }
@media (max-width: 860px) { .op-quotes { grid-template-columns: 1fr; } }

/* ---------- Home cards ---------- */
.op-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .op-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .op-grid { grid-template-columns: 1fr; } }
.op-card {
	background: var(--op-surface); border: 1px solid var(--op-line); border-radius: var(--op-radius);
	overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit;
	transition: box-shadow .2s, transform .2s;
}
.op-card:hover { box-shadow: var(--op-shadow); transform: translateY(-2px); color: inherit; }
.op-card[hidden] { display: none; }
.op-card__photo { position: relative; aspect-ratio: 4/3; background: var(--op-soft); overflow: hidden; }
.op-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.op-badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; justify-content: space-between; z-index: 3; pointer-events: none; }
.op-badge { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; color: #fff; background: var(--op-good); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.op-badge--pending { background: var(--op-warn); }
.op-badge--sold { background: #6b7280; }
.op-badge--new { background: var(--op-info); }
.op-badge--price { background: var(--op-accent-ink); }
.op-badge--upgraded { background: #6b4c9a; }
.op-badge--contractor { background: #4b5563; }
.op-carousel__btn {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
	width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(19, 36, 60, .55); color: #fff; font-size: 20px; line-height: 1;
	opacity: 0; transition: opacity .18s, background .18s;
}
.op-carousel__btn:hover { background: rgba(19, 36, 60, .85); }
.op-carousel__prev { left: 10px; } .op-carousel__next { right: 10px; }
.op-card:hover .op-carousel__btn, .op-carousel__btn:focus-visible { opacity: 1; }
@media (hover: none) { .op-carousel__btn { opacity: .9; } }
.op-carousel__count { position: absolute; bottom: 10px; right: 10px; z-index: 3; font-size: 12px; font-weight: 600; color: #fff; background: rgba(19, 36, 60, .6); padding: 2px 8px; border-radius: 10px; }
.op-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.op-card__monthly { font-family: var(--op-font-head); font-size: 1.6rem; font-weight: 700; color: var(--op-primary-ink); line-height: 1.1; }
.op-card__monthly small { font-family: var(--op-font-body); font-size: 15px; font-weight: 600; color: var(--op-muted); }
.op-card__terms { font-size: 15px; color: var(--op-muted); }
.op-card__terms strong { color: var(--op-text); }
.op-card__addr { margin-top: 6px; font-weight: 600; }
.op-card__specs { display: flex; gap: 14px; font-size: 14.5px; color: var(--op-muted); margin-top: 2px; }
.op-card__specs b { color: var(--op-text); }
.op-card__foot { margin-top: auto; padding-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--op-good); }

/* ---------- Filters ---------- */
.op-filters {
	display: grid; grid-template-columns: 2fr 1.2fr .8fr 1fr 1fr 1fr auto; gap: 12px; align-items: end;
	background: var(--op-surface); border: 1px solid var(--op-line); border-radius: var(--op-radius);
	padding: 18px; margin: 28px 0 32px;
}
.op-filters label { display: block; font-size: 13px; font-weight: 700; color: var(--op-muted); margin-bottom: 4px; }
.op-field, .op-filters input, .op-filters select, .op-form input, .op-form select, .op-form textarea {
	width: 100%; padding: 11px 12px; border: 1px solid var(--op-line); border-radius: 10px;
	background: #fff; font: inherit; font-size: 16px; color: var(--op-text);
}
.op-filters input:focus, .op-filters select:focus, .op-form :is(input, select, textarea):focus {
	outline: 2px solid var(--op-accent); outline-offset: 1px; border-color: transparent;
}
.op-filters__actions { display: flex; gap: 8px; }
.op-filters__reset { align-self: center; font-size: 14px; white-space: nowrap; }
@media (max-width: 1020px) { .op-filters { grid-template-columns: repeat(3, 1fr); } .op-filters__search { grid-column: 1 / -1; } }
@media (max-width: 560px) { .op-filters { grid-template-columns: 1fr 1fr; } }
.op-results-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; color: var(--op-muted); }

/* ---------- Page header / breadcrumb ---------- */
.op-pagehead { padding: 56px 0 28px; }
.op-pagehead .op-lead { margin-bottom: 0; }
.op-crumbs { font-size: 14px; color: var(--op-muted); margin-bottom: 18px; }
.op-crumbs a { color: var(--op-muted); text-decoration: none; }
.op-crumbs a:hover { color: var(--op-primary); text-decoration: underline; }
.op-crumbs span[aria-hidden] { margin: 0 6px; }

/* ---------- Single home ---------- */
.op-home-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; padding-bottom: 72px; }
@media (max-width: 960px) { .op-home-layout { grid-template-columns: 1fr; } }
.op-gallery-main { border-radius: var(--op-radius); overflow: hidden; background: var(--op-soft); aspect-ratio: 16/10; position: relative; }
.op-gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.op-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 10px; }
.op-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; background: var(--op-soft); }
.op-thumbs button[aria-current="true"] { border-color: var(--op-accent); }
.op-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.op-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0; }
.op-spec { background: var(--op-surface); border: 1px solid var(--op-line); border-radius: 12px; padding: 14px 16px; }
.op-spec b { display: block; font-family: var(--op-font-head); font-size: 1.6rem; color: var(--op-primary-ink); line-height: 1.1; }
.op-spec span { font-size: 14px; color: var(--op-muted); }
.op-terms {
	background: var(--op-surface); border: 1px solid var(--op-line); border-radius: 18px; padding: 26px;
	box-shadow: var(--op-shadow); position: sticky; top: 96px;
}
.op-terms__price { font-family: var(--op-font-head); font-size: 2.2rem; font-weight: 700; color: var(--op-primary-ink); line-height: 1; }
.op-terms__tag { display: inline-block; margin: 8px 0 16px; font-size: 13px; font-weight: 700; color: var(--op-good); text-transform: uppercase; letter-spacing: .06em; }
.op-terms dl { margin: 0 0 20px; }
.op-terms dl div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--op-line); }
.op-terms dt { color: var(--op-muted); }
.op-terms dd { margin: 0; font-weight: 700; }
.op-terms .op-btn { width: 100%; margin-top: 10px; }
.op-terms__note { font-size: 13px; color: var(--op-muted); margin: 14px 0 0; }
.op-calc { margin-top: 32px; background: var(--op-soft); border-radius: var(--op-radius); padding: 24px; }
.op-calc__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.op-calc label { font-size: 13px; font-weight: 700; color: var(--op-muted); display: block; margin-bottom: 4px; }
.op-calc output { display: block; margin-top: 16px; font-size: 1.1rem; }
.op-calc output b { font-family: var(--op-font-head); font-size: 1.6rem; color: var(--op-primary-ink); }
@media (max-width: 560px) { .op-calc__row { grid-template-columns: 1fr; } }
.op-lightbox { position: fixed; inset: 0; background: rgba(10, 16, 26, .92); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 40px 60px; }
.op-lightbox[hidden] { display: none; }
.op-lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 8px; }
.op-lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; cursor: pointer; }
.op-lightbox__close { top: 18px; right: 18px; }
.op-lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.op-lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Prose ---------- */
.op-prose { font-size: 18px; }
.op-prose h2 { margin-top: 1.6em; }
.op-prose h3 { margin-top: 1.4em; }
.op-prose ul, .op-prose ol { padding-left: 1.3em; }
.op-prose li { margin-bottom: .35em; }
.op-prose blockquote { border-left: 4px solid var(--op-accent); margin: 1.5em 0; padding: .3em 0 .3em 1.2em; color: var(--op-muted); }
.op-prose img { border-radius: var(--op-radius); }
.op-prose details, .op-faq details {
	background: var(--op-surface); border: 1px solid var(--op-line); border-radius: 12px; margin: 0 0 12px; padding: 0 20px;
}
.op-prose summary, .op-faq summary {
	cursor: pointer; padding: 18px 28px 18px 0; font-weight: 700; font-size: 17.5px; color: var(--op-primary-ink);
	list-style: none; position: relative;
}
.op-prose summary::-webkit-details-marker, .op-faq summary::-webkit-details-marker { display: none; }
.op-prose summary::after, .op-faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--op-accent); transition: transform .2s; }
.op-prose details[open] summary::after, .op-faq details[open] summary::after { transform: rotate(45deg); }
.op-prose details > :not(summary), .op-faq details > :not(summary) { padding-bottom: 6px; color: var(--op-muted); }
.wp-block-buttons .wp-block-button__link { background: var(--op-accent); border-radius: 999px; font-weight: 700; }
.alignwide { max-width: var(--op-wrap); }

/* ---------- Guide layout ---------- */
.op-guide-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding-bottom: 72px; align-items: start; }
@media (max-width: 960px) { .op-guide-layout { grid-template-columns: 1fr; } }
.op-aside { position: sticky; top: 96px; display: grid; gap: 18px; }
.op-aside__box { background: var(--op-surface); border: 1px solid var(--op-line); border-radius: var(--op-radius); padding: 20px; }
.op-aside__box h3 { font-size: 1.05rem; margin-bottom: 10px; }
.op-aside__box ul { list-style: none; margin: 0; padding: 0; }
.op-aside__box li { padding: 6px 0; border-bottom: 1px dashed var(--op-line); font-size: 15.5px; }
.op-aside__box li:last-child { border-bottom: 0; }
.op-aside__box a { text-decoration: none; }
.op-aside__box .count { color: var(--op-muted); font-size: 13px; }
.op-cta-box { background: var(--op-primary-ink); color: #dbe3ee; border-radius: var(--op-radius); padding: 28px; margin: 36px 0; }
.op-cta-box h3, .op-cta-box strong { color: #fff; }

/* ---------- Guides index / directory ---------- */
.op-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.op-tile {
	display: block; text-decoration: none; background: var(--op-surface); border: 1px solid var(--op-line);
	border-radius: var(--op-radius); padding: 20px; color: var(--op-text); transition: border-color .18s, box-shadow .18s;
}
.op-tile:hover { border-color: var(--op-accent); box-shadow: var(--op-shadow); color: var(--op-text); }
.op-tile strong { display: block; font-family: var(--op-font-head); font-size: 1.15rem; color: var(--op-primary-ink); margin-bottom: 4px; }
.op-tile span { color: var(--op-muted); font-size: 15px; }
.op-tiles--compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.op-tiles--compact .op-tile { padding: 14px 16px; }

/* ---------- Location page ---------- */
.op-rentbox { background: var(--op-surface); border: 2px solid var(--op-accent); border-radius: 18px; padding: 26px; margin: 8px 0 34px; }
.op-rentbox form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.op-rentbox .op-money { position: relative; flex: 0 1 220px; }
.op-rentbox .op-money span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--op-muted); font-weight: 700; }
.op-rentbox .op-money input { padding-left: 26px; }
.op-rentbox__result { margin: 12px 0 0; font-weight: 600; color: var(--op-primary-ink); }
.op-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 26px 0 0; }
@media (max-width: 760px) { .op-stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Forms ---------- */
.op-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.op-form .op-full { grid-column: 1 / -1; }
.op-form label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 5px; }
.op-form .op-req { color: var(--op-accent-ink); }
.op-form .op-hp { position: absolute; left: -9999px; }
.op-form .op-consent { font-size: 13.5px; color: var(--op-muted); font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.op-form .op-consent input { width: auto; margin-top: 4px; }
@media (max-width: 620px) { .op-form { grid-template-columns: 1fr; } }
.op-panel { background: var(--op-surface); border: 1px solid var(--op-line); border-radius: 18px; padding: 32px; box-shadow: var(--op-shadow); }
.op-notice { border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; font-weight: 600; }
.op-notice--ok { background: #e7f5ec; color: #1e6a42; border: 1px solid #bfe3cd; }
.op-notice--err { background: #fdecea; color: #9b2c1f; border: 1px solid #f3c4bd; }
.op-showing-for { background: var(--op-soft); border: 1px solid var(--op-line); border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; }
.op-showing-for small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--op-muted); font-weight: 700; }
.op-showing-for strong { font-size: 18px; }
.op-contact-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 32px; align-items: start; padding-bottom: 72px; }
@media (max-width: 900px) { .op-contact-grid { grid-template-columns: 1fr; } }

/* ---------- App CTA ---------- */
.op-app { text-align: center; }
.op-app__stores { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.op-app__store { display: flex; flex-direction: column; align-items: center; gap: 14px; flex: 0 1 240px; }
.op-app__store img { width: 132px; height: 132px; }
.op-app__store small { color: var(--op-muted); }
@media (max-width: 620px) { .op-app__store img { display: none; } }

/* ---------- Map ---------- */
.op-map-layout { display: grid; grid-template-columns: 1fr 420px; height: calc(100vh - 73px); }
.admin-bar .op-map-layout { height: calc(100vh - 105px); }
.op-map { height: 100%; min-height: 420px; background: var(--op-soft); }
.op-map-list { overflow-y: auto; padding: 18px; border-left: 1px solid var(--op-line); display: flex; flex-direction: column; gap: 14px; }
.op-map-list > * { flex-shrink: 0; }
.op-map-list .op-card { flex-direction: row; }
.op-map-list .op-card__photo { width: 140px; flex: none; aspect-ratio: auto; min-height: 120px; }
.op-map-list .op-badges > span:last-child, .op-map-list .op-carousel__btn, .op-map-list .op-carousel__count { display: none; }
.op-map-list .op-badge { font-size: 10px; padding: 3px 7px; }
.op-map-list .op-card__photo img { position: absolute; inset: 0; }
.op-map-list .op-card__body { padding: 12px 14px; }
.op-map-list .op-card__monthly { font-size: 1.25rem; }
.op-map-list .op-card.is-active { outline: 2px solid var(--op-accent); }
.op-map-pin { background: var(--op-primary); color: #fff; font-weight: 700; font-size: 12.5px; padding: 4px 8px; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); border: 2px solid #fff; transform: translate(-50%, -50%); display: inline-block; }
.op-map-pin.is-active { background: var(--op-accent); }
@media (max-width: 900px) {
	.op-map-layout { grid-template-columns: 1fr; height: auto; }
	.op-map { height: 60vh; }
	.op-map-list { border-left: 0; }
}

/* ---------- Pagination ---------- */
.op-pagination { margin: 40px 0 0; display: flex; justify-content: center; }
.op-pagination .page-numbers { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0 12px; margin: 0 3px; border-radius: 10px; border: 1px solid var(--op-line); background: #fff; text-decoration: none; font-weight: 700; }
.op-pagination .current { background: var(--op-primary); color: #fff; border-color: var(--op-primary); }

/* ---------- Footer ---------- */
.op-footer { background: var(--op-primary-ink); color: #c8d2df; padding: 64px 0 28px; font-size: 15.5px; }
.op-footer a { color: #e6ebf2; text-decoration: none; }
.op-footer a:hover { color: #f2a679; }
.op-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.op-footer h4 { color: #fff; font-family: var(--op-font-body); font-size: 13px; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 14px; }
.op-footer ul { list-style: none; margin: 0; padding: 0; }
.op-footer li { margin-bottom: 8px; }
.op-footer .op-brand { color: #fff; margin-bottom: 12px; }
.op-footer__phone { font-size: 1.3rem; font-weight: 700; display: inline-block; margin-bottom: 8px; }
.op-footer__legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: #9fb0c4; }
.op-footer__legal ul { display: flex; flex-wrap: wrap; gap: 14px; }
.op-footer__legal li { margin: 0; }
@media (max-width: 960px) { .op-footer__grid { grid-template-columns: 1fr 1fr; } .op-footer__about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .op-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Blog / misc ---------- */
.op-postlist { display: grid; gap: 22px; }
.op-postlist article { background: var(--op-surface); border: 1px solid var(--op-line); border-radius: var(--op-radius); padding: 24px; }
.op-postlist h2 { font-size: 1.4rem; }
.op-postlist h2 a { text-decoration: none; }
.op-meta { color: var(--op-muted); font-size: 14px; margin-bottom: 10px; }
.op-empty { text-align: center; padding: 56px 20px; background: var(--op-surface); border: 1px dashed var(--op-line); border-radius: var(--op-radius); }
.wp-caption, .gallery-caption { font-size: 14px; color: var(--op-muted); }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.sticky, .bypostauthor { }

/* ---------- Fixes ---------- */
[hidden], .op-btn[hidden] { display: none !important; }
.op-brand__name { white-space: nowrap; }

/* ---------- Page-builder compatibility ----------
   Some builders (e.g. Pagelayer) add a global "body.xyz a { color: … }" rule that overrides
   theme link colours. These rules restore the theme's colours with higher specificity,
   while leaving links inside builder-made sections alone. */
html:root body a:where(:not([class*="pagelayer-"], [class*="pagelayer-"]:not(body) a)) { color: var(--op-primary); }
html:root body a:where(:not([class*="pagelayer-"], [class*="pagelayer-"]:not(body) a)):hover { color: var(--op-accent-ink); }
html:root body .op-brand { color: var(--op-primary-ink); }
html:root body .op-nav a, html:root body .op-mobile-nav a { color: var(--op-text); }
html:root body .op-nav a:hover, html:root body .op-nav .current-menu-item > a { color: var(--op-primary-ink); }
html:root body .op-header__phone { color: var(--op-primary); }
html:root body .op-nav li.op-nav-cta > a, html:root body .op-nav li.op-nav-cta > a:hover { color: #fff; }
html:root body .op-btn--accent, html:root body .op-btn--accent:hover,
html:root body .op-btn--primary, html:root body .op-btn--primary:hover,
html:root body .op-btn--ghost:hover { color: #fff; }
html:root body .op-btn--ghost { color: var(--op-primary); }
html:root body .op-btn--light, html:root body .op-btn--light:hover { color: var(--op-primary-ink); }
html:root body .op-card, html:root body .op-card:hover, html:root body .op-tile, html:root body .op-tile:hover { color: var(--op-text); }
html:root body .op-crumbs a { color: var(--op-muted); }
html:root body .op-crumbs a:hover { color: var(--op-primary); }
html:root body .op-pagination .page-numbers { color: var(--op-primary); }
html:root body .op-pagination .current { color: #fff; }
html:root body .op-footer a, html:root body .op-footer .op-brand { color: #e6ebf2; }
html:root body .op-footer a:hover { color: #f2a679; }
html:root body .op-cta-box a:not(.op-btn) { color: #fff; }
