/* Magic Millions Real Estate: listings and property pages. Matches the magic-millions theme (Prata headings in #094fa3,
   Source Sans Pro text, gold uppercase buttons, square corners). Everything is scoped to .mmre so the theme is untouched. */
.mmre {
	--mmre-blue: #094fa3;
	--mmre-link: #1e73be;
	--mmre-gold: #fcbf30;
	--mmre-navy: #203147;
	--mmre-ink: #333;
	--mmre-muted: #6b6b6b;
	--mmre-line: #ddd;
	--mmre-grey: #eee;
	--mmre-sold: #555b66;
	--mmre-head: "Prata", Georgia, "Times New Roman", serif;
	--mmre-body: "Source Sans Pro", "Source Sans 3", "Segoe UI", Arial, sans-serif;
	color: var(--mmre-ink);
	font: 400 15px/1.55 var(--mmre-body);
}
.mmre *, .mmre *::before, .mmre *::after { box-sizing: border-box; }
.mmre a { color: var(--mmre-link); text-decoration: none; }
.mmre a:hover { text-decoration: underline; }
.mmre :focus-visible { outline: 3px solid var(--mmre-gold); outline-offset: 2px; }
.mmre-wrap { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
.mmre-h1 { font: 400 36px/1.2 var(--mmre-head); color: var(--mmre-blue); margin: 10px 0 0; text-wrap: balance; }
.mmre-h2 { font: 400 28px/1.25 var(--mmre-head); color: var(--mmre-blue); margin: 0 0 22px; text-align: center; }
/* polo-style eyebrow (Natasha 2026-10-14): small uppercase gold label with a short rule either side */
.mmre-eyebrow { margin: 0; font: 600 12px/1.2 var(--mmre-body); letter-spacing: .22em; text-transform: uppercase; color: #a87a00; }
.mmre-eyebrow--centre { display: flex; align-items: center; justify-content: center; gap: 12px; }
.mmre-eyebrow--centre::before, .mmre-eyebrow--centre::after { content: ""; width: 28px; height: 1px; background: var(--mmre-gold); }
.mmre-preview-note { margin: 0; padding: 8px 20px; background: #fff4d6; border-bottom: 1px solid #f0d58a; text-align: center; font-size: 14px; }
.mmre-preview-note--check { background: #eef4fb; border-color: #c9dcf0; }
.mmre-btn { display: inline-block; background: var(--mmre-gold); color: #fff !important; text-transform: uppercase; letter-spacing: 1px; font-size: 15px; padding: 9px 14px; border: 0; cursor: pointer; line-height: 1.2; text-align: center; }
.mmre-btn:hover { text-decoration: none !important; filter: brightness(.96); }
.mmre-btn--line { background: none; color: var(--mmre-blue) !important; border: 1px solid var(--mmre-blue); }
.mmre-small { font-size: 13px; color: var(--mmre-muted); margin: 8px 0 0; }

/* band at the top (same grey-to-white as the theme) */
.mmre-band { background: linear-gradient(#ececec, #fff 220px); }
.mmre-band__inner { padding-block: 34px 0; text-align: center; }
.mmre-intro { max-width: 70ch; margin: 10px auto 0; }
.mmre-switch { display: inline-flex; margin-top: 22px; border: 1px solid var(--mmre-blue); }
.mmre-switch a { padding: 9px 20px; color: var(--mmre-blue); text-transform: uppercase; letter-spacing: 1px; font-size: 14px; background: #fff; }
.mmre-switch a + a { border-left: 1px solid var(--mmre-blue); }
.mmre-switch a[aria-current] { background: var(--mmre-blue); color: #fff; }
.mmre-switch a:hover { text-decoration: none; }
.mmre-switch span { opacity: .75; margin-left: 5px; font-variant-numeric: tabular-nums; }

/* listings */
.mmre-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 30px; align-items: start; padding-block: 30px 50px; }
.mmre-filters { border: 1px solid var(--mmre-line); background: #fafafa; padding: 18px; position: sticky; top: 12px; }
.mmre-filters__body { display: flex; flex-direction: column; gap: 20px; }
.mmre-filters fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.mmre-filters legend { font: 700 13px/1.2 var(--mmre-body); color: var(--mmre-blue); text-transform: uppercase; letter-spacing: .04em; padding: 0; margin-bottom: 8px; }
.mmre-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mmre-chip { cursor: pointer; margin: 0; }
.mmre-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mmre-chip span { display: inline-block; border: 1px solid var(--mmre-line); background: #fff; padding: 4px 11px; font-size: 14px; line-height: 1.35; }
.mmre-chip input:checked + span { background: var(--mmre-blue); border-color: var(--mmre-blue); color: #fff; }
.mmre-chip input:focus-visible + span { outline: 3px solid var(--mmre-gold); outline-offset: 2px; }
.mmre-radios { display: flex; flex-direction: column; gap: 3px; }
.mmre-radios label { display: flex; gap: 8px; align-items: center; cursor: pointer; font-size: 15px; margin: 0; font-weight: 400; }
.mmre-radios input { accent-color: var(--mmre-blue); margin: 0; }
.mmre-filters__actions { display: flex; gap: 14px; align-items: center; font-size: 14px; }
.mmre-filters.is-live .mmre-filters__actions .mmre-btn { display: none; }
.mmre-filters__toggle { display: none; }
.mmre-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 16px; color: var(--mmre-muted); }
.mmre-sort a { margin-left: 10px; }
.mmre-sort a[aria-current] { color: var(--mmre-ink); font-weight: 600; }
.mmre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.mmre-sellband { margin-top: 36px; padding: 26px 24px; background: var(--mmre-navy); border-top: 3px solid var(--mmre-gold); color: #fff; text-align: center; }
.mmre-sellband .mmre-h2 { color: #fff; margin: 6px 0 8px; }
.mmre-sellband p { margin: 0 0 16px; }
.mmre-sellband .mmre-eyebrow { color: var(--mmre-gold); margin: 0; }
.mmre-empty { border: 1px dashed var(--mmre-line); padding: 30px; text-align: center; color: var(--mmre-muted); }

.mmre-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mmre-line); color: var(--mmre-ink) !important; transition: box-shadow .15s; }
.mmre-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .12); text-decoration: none !important; }
.mmre-card__photo { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--mmre-grey); }
.mmre-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mmre-card__nophoto { display: grid; place-items: center; height: 100%; color: var(--mmre-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.mmre-card__flag { position: absolute; right: 8px; top: 12px; background: #b3261e; color: #fff; font-size: 12px; padding: 3px 8px; }
.mmre-card .mmre-badge { position: absolute; left: 0; top: 12px; }
.mmre-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 5px 12px; background: var(--mmre-gold); color: #fff; }
.mmre-badge--sold { background: var(--mmre-sold); }
.mmre-badge--hidden { background: #b3261e; }
.mmre-card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.mmre-card__title { font: 400 21px/1.25 var(--mmre-head); color: var(--mmre-blue); }
.mmre-card__place { color: var(--mmre-muted); font-size: 14px; }
.mmre-card__facts { display: flex; flex-wrap: wrap; font-size: 14px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.mmre-card__facts span + span::before { content: "|"; color: #bbb; margin: 0 8px; }
.mmre-card__price { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--mmre-grey); font-weight: 600; }
.mmre-card__price.is-muted { color: var(--mmre-muted); font-weight: 400; }

/* property page */
.mmre-head { padding-block: 24px 0; text-align: center; }
.mmre-back { display: inline-block; font-size: 14px; margin-bottom: 14px; }
.mmre-head .mmre-badge { display: table; margin: 0 auto; }
.mmre-addr { font: 400 21px/1.35 var(--mmre-head); color: var(--mmre-blue); margin: 8px 0 0; }
.mmre-price { margin: 10px 0 0; font-size: 18px; font-weight: 600; }
.mmre-mosaic { display: grid; gap: 6px; margin-top: 24px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.mmre-mosaic button { border: 0; padding: 0; margin: 0; cursor: zoom-in; position: relative; overflow: hidden; background: var(--mmre-grey); aspect-ratio: 3 / 2; min-width: 0; }
.mmre-mosaic button:first-child { grid-row: span 2; aspect-ratio: auto; }
.mmre-mosaic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.mmre-mosaic button:hover img { transform: scale(1.03); }
.mmre-mosaic--1 { grid-template-columns: 1fr; grid-template-rows: auto; }
.mmre-mosaic--1 button:first-child { aspect-ratio: 16 / 9; }
.mmre-mosaic--2, .mmre-mosaic--3, .mmre-mosaic--4 { grid-template-columns: 2fr 1fr; }
.mmre-mosaic--2 button:first-child { grid-row: auto; aspect-ratio: 3 / 2; }
.mmre-mosaic__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }
.mmre-keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 6px 0 0; background: var(--mmre-navy); border-top: 3px solid var(--mmre-gold); color: #fff; }
.mmre-keyfacts div { padding: 14px 16px; }
.mmre-keyfacts dt { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #aab6c8; }
.mmre-keyfacts dd { margin: 3px 0 0; font-size: 17px; font-weight: 600; }
.mmre-cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: start; padding-block: 32px 50px; }
.mmre-prose { min-width: 0; } /* fills the column up to the enquiry box (Natasha 2026-10-14) */
.mmre-prose p { margin: 0 0 14px; }
.mmre-prose h2, .mmre-prose h3 { font-family: var(--mmre-head); color: var(--mmre-blue); font-weight: 400; }
.mmre-prose h4 { font: 700 17px/1.3 var(--mmre-body); color: var(--mmre-blue); text-transform: uppercase; margin: 26px 0 8px; }
.mmre-prose ul { margin: 0 0 14px; padding-left: 20px; }
.mmre-prose .has-text-align-center { text-align: left; }
.mmre-prose .wp-block-gallery { margin-bottom: 20px; }
.mmre-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; margin: 0 0 6px; }
.mmre-tags li { border: 1px solid var(--mmre-line); padding: 4px 12px; font-size: 14px; margin: 0; }
.mmre-video iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.mmre-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 12px; }
.mmre-box { border: 1px solid var(--mmre-line); background: #fafafa; padding: 18px; }
.mmre-box h4 { font: 700 16px/1.3 var(--mmre-body); color: var(--mmre-blue); text-transform: uppercase; margin: 0 0 10px; }
.mmre-box p { margin: 0 0 12px; }
.mmre-enquiry input:not([type=checkbox]):not([type=radio]):not([type=submit]), .mmre-enquiry textarea { width: 100%; max-width: 100%; }
.mmre-agent { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--mmre-grey); }
.mmre-agent:first-of-type { border-top: 0; }
.mmre-agent__initials { width: 42px; height: 42px; border-radius: 50%; background: var(--mmre-blue); color: #fff; display: grid; place-items: center; font-weight: 600; flex: none; }
.mmre-agent small { display: block; color: var(--mmre-muted); font-size: 13px; }
.mmre-partner { border-top: 1px solid var(--mmre-grey); margin-top: 12px; padding-top: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.mmre-partner img { max-width: 220px; max-height: 120px; width: auto; height: auto; }
.mmre-partner__name { font: 400 18px/1.2 var(--mmre-head); color: #1d1d1b; }
.mmre-similar { border-top: 1px solid var(--mmre-grey); padding-block: 34px 50px; }

/* photo viewer */
.mmre-lb { border: 0; padding: 0; background: transparent; width: min(1100px, 96vw); max-width: none; max-height: 96vh; overflow: visible; color: #fff; }
.mmre-lb::backdrop { background: rgba(5, 8, 15, .92); }
.mmre-lb__stage { position: relative; text-align: center; touch-action: pan-y; }
.mmre-lb__stage img { display: inline-block; max-width: 100%; max-height: 72vh; width: auto; height: auto; }
.mmre-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: 22px; cursor: pointer; padding: 0; }
.mmre-lb__prev { left: 8px; }
.mmre-lb__next { right: 8px; }
.mmre-lb__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 2px 6px; font-size: 14px; }
.mmre-lb__bar button { background: rgba(255, 255, 255, .15); color: #fff; border: 0; padding: 6px 12px; cursor: pointer; font: inherit; }
.mmre-lb__thumbs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.mmre-lb__thumbs button { flex: none; width: 84px; aspect-ratio: 3 / 2; border: 2px solid transparent; padding: 0; background: #222; cursor: pointer; opacity: .6; }
.mmre-lb__thumbs button[aria-current="true"] { border-color: var(--mmre-gold); opacity: 1; }
.mmre-lb__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* "Sell your property" page (Leigh 2026-10-14: "looks badly aligned"): a normal theme page, so no .mmre wrapper; scoped
   to body.mmre-sell. No blog sidebar; the Contact Form 7 form in a box, labels above full-width fields, two columns,
   tick boxes as chips. */
.mmre-sell .site-content-container { background-image: none; }
.mmre-sell .site-content { display: block; }
.mmre-sell .site-content .content-area { display: block; width: auto; max-width: 880px; padding: 40px 0; }
.mmre-sell #secondary { display: none; }
.mmre-sell .wpcf7-form { background: #fafafa; border: 1px solid #ddd; border-top: 3px solid #fcbf30; padding: 22px 28px 26px; margin: 26px 0 22px; }
.mmre-sell .wpcf7-form h4 { font: 700 15px/1.3 "Source Sans Pro", "Source Sans 3", Arial, sans-serif; color: #094fa3; text-transform: uppercase; letter-spacing: 1px; margin: 22px 0 12px; }
.mmre-sell .wpcf7-form > p { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; margin: 0 0 14px; }
.mmre-sell .wpcf7-form > p > br { display: none; }
.mmre-sell .wpcf7-form label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 600; margin: 0; }
.mmre-sell .wpcf7-form label:has(textarea) { grid-column: 1 / -1; }
.mmre-sell .wpcf7-form .wpcf7-form-control-wrap { display: block; }
.mmre-sell .wpcf7-form input:not([type=checkbox]):not([type=submit]), .mmre-sell .wpcf7-form select, .mmre-sell .wpcf7-form textarea { width: 100%; max-width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #ccc; background: #fff; font: inherit; font-weight: 400; min-height: 40px; }
.mmre-sell .wpcf7-form > p:has(.wpcf7-checkbox), .mmre-sell .wpcf7-form > p:has(.wpcf7-submit) { display: block; font-size: 14px; font-weight: 600; }
.mmre-sell .wpcf7-form .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; font-weight: 400; }
.mmre-sell .wpcf7-form .wpcf7-list-item { margin: 0; }
.mmre-sell .wpcf7-form .wpcf7-list-item label { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; border: 1px solid #ddd; background: #fff; padding: 6px 12px; cursor: pointer; }
.mmre-sell .wpcf7-form .wpcf7-list-item label:has(input:checked) { border-color: #094fa3; background: #eef4fb; }
.mmre-sell .wpcf7-form .wpcf7-list-item-label { margin: 0; }
.mmre-sell .wpcf7-form .wpcf7-submit { margin-top: 6px; }
@media (max-width: 1140px) {
	.mmre-sell .site-content .content-area { padding: 32px 20px; box-sizing: border-box; }
}
@media (max-width: 700px) {
	.mmre-sell .wpcf7-form { padding: 18px 16px 20px; }
	.mmre-sell .wpcf7-form > p { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
	.mmre-layout, .mmre-cols { grid-template-columns: minmax(0, 1fr); }
	.mmre-filters, .mmre-side { position: static; }
	.mmre-filters__toggle { display: flex; justify-content: space-between; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; color: var(--mmre-blue); font: 700 15px var(--mmre-body); text-transform: uppercase; }
	.mmre-filters__toggle::after { content: "▾"; }
	.mmre-filters.is-collapsed .mmre-filters__body { display: none; }
	.mmre-filters:not(.is-collapsed) .mmre-filters__body { margin-top: 16px; }
	.mmre-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
	.mmre-mosaic button:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 3 / 2; }
	.mmre-mosaic button:nth-child(n+4) { display: none; }
	.mmre-h1 { font-size: 30px; }
	.mmre-addr { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.mmre-card, .mmre-mosaic img { transition: none; }
}
