/* EQAR on Houzez (child theme "EQAR (Houzez child)", 27 Nov 2026).
   eqar-style.css was written against Twenty Twenty-Five. This file restores the TT5 base
   that the EQAR layer relied on and neutralises Houzez/Bootstrap leaks into the EQAR chrome.
   Scope: body.eqar-chrome (every screen except the Houzez dashboard/CRM and splash). */

/* TT5 body defaults */
body.eqar-chrome { font-weight: 300; letter-spacing: -0.1px; }
body.eqar-page { background: #fff; }

/* Houzez screens (listings, search, 404, dashboard): fonts follow the language like the EQAR pages
   (Houzez Theme Options name Public Sans / Playfair Display, self-hosted by eqar-style.css). */
body:not(.eqar-page) { font-family: var(--body); }
body:not(.eqar-page) :is(h1, h2, h3, h4, h5, h6, .page-title, .item-title) { font-family: var(--display); }
body:not(.eqar-page) .btn { border-radius: 0; letter-spacing: .04em; }

/* Bootstrap's reboot (border-box on everything, buttons in the body font) replaced the browser
   defaults the EQAR header/footer were designed on. Restore those defaults at zero specificity
   (:where) so the explicit rules in eqar-style.css (.eqar-wrap, .eqar-btn ...) still win, as under TT5. */
:where(body.eqar-chrome) :where(.eqar-header, .eqar-header *, .eqar-header *::before, .eqar-header *::after,
	.eqar-footer, .eqar-footer *, .eqar-footer *::before, .eqar-footer *::after) { box-sizing: content-box; }
:where(body.eqar-chrome .eqar-header, body.eqar-chrome .eqar-footer) ul { box-sizing: content-box; } /* core block-library: ol,ul border-box (classic themes load it all) */
:where(body.eqar-chrome .eqar-header, body.eqar-chrome .eqar-footer) button {
	box-sizing: border-box; font-family: Arial, sans-serif; font-size: 13.3333px; line-height: normal;
}
body.eqar-chrome .eqar-header, body.eqar-chrome .eqar-footer { text-align: start; }

/* Houzez's main wrapper must not clip the sticky header or full-bleed bands. */
body.eqar-chrome #main-wrap { overflow: visible; }

/* Houzez chrome the EQAR design does not use */
body.eqar-chrome .back-to-top-wrap, body.eqar-chrome #back-to-top-btn { display: none !important; }

/* Listing PDF tool (beside favourite / share / print on the property page): same box as the Houzez tools
   (.item-tool > span: 30px high, 1px border, 4px radius), wider to fit an icon + "PDF". */
.eqar-pdf-tool > a.item-tool-pdf {
	display: flex; align-items: center; justify-content: center; gap: 5px;
	height: auto; min-height: 30px; align-self: stretch; padding: 0 9px; border: 1px solid #000; border-radius: 4px;
	color: #000; font-size: 14px; line-height: 30px; text-decoration: none; background: transparent;
}
.eqar-pdf-tool { display: flex; } /* the row stretches it to the height of its siblings (30px desktop, taller on phones) */
.eqar-pdf-tool > a.item-tool-pdf:hover, .eqar-pdf-tool > a.item-tool-pdf:focus-visible { background: #0A2036; border-color: #0A2036; color: #fff; }
.eqar-pdf-tool .eqar-pdf-tool__text { border: 0 !important; padding: 0; font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: .08em; line-height: 1; }
@media (max-width: 991.98px) { .eqar-pdf-tool > a.item-tool-pdf { border-color: #dce0e0; } }

/* Dashboard sidebar logo (Houzez sizes it for its own wide wordmark): fit the 64px bar. */
.dashboard-sidebar .sidebar-logo .logo img { height: 40px; width: auto; max-width: 100%; display: block; }

/* Demo listing banner (inc/listings.php) */
.eqar-demo-banner { background: var(--sand, #D9C6A8); color: var(--deep, #0A2036); text-align: center; padding: 10px 16px; font-size: 15px; line-height: 1.4; position: relative; z-index: 1001; }
.eqar-demo-banner strong { text-transform: uppercase; letter-spacing: .06em; }

/* ===== Listing gallery (houzez-child/property-details/top-area-v1.php + js/eqar-gallery.js) ===== */
.eqg-wrap { padding: 0 0 8px; background: transparent; }
.eqg { position: relative; }
.eqg-stage { position: relative; border-radius: 14px; overflow: hidden; background: var(--deep, #0A2036); box-shadow: 0 18px 40px -22px rgba(10, 32, 54, .55); }
.eqg-track { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; outline: none; }
.eqg-track::-webkit-scrollbar { display: none; }
.eqg-track:focus-visible { box-shadow: inset 0 0 0 3px var(--sand, #D9C6A8); }
.eqg-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; margin: 0; }
.eqg-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.eqg-img { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 640px; object-fit: cover; }
.eqg-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--deep, #0A2036); box-shadow: 0 6px 18px rgba(10, 32, 54, .25); cursor: pointer; transition: transform .2s, background .2s; }
.eqg-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.eqg-arrow:focus-visible { outline: 3px solid var(--sand, #D9C6A8); outline-offset: 2px; }
.eqg-prev { inset-inline-start: 18px; }
.eqg-next { inset-inline-end: 18px; }
.eqg-prev svg, [dir="rtl"] .eqg-next svg { transform: scaleX(-1); }
[dir="rtl"] .eqg-prev svg { transform: none; }
.eqg-dots { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2; display: flex; gap: 7px; padding: 6px 10px; border-radius: 999px; background: rgba(10, 32, 54, .45); backdrop-filter: blur(4px); }
.eqg-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: width .25s, background .25s; }
.eqg-dot.is-active { width: 20px; border-radius: 4px; background: #fff; }
.eqg-count, .eqg-all { position: absolute; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: .02em; }
.eqg-count { inset-inline-end: 16px; background: rgba(10, 32, 54, .72); color: #fff; backdrop-filter: blur(4px); }
.eqg-all { inset-inline-start: 16px; border: 0; background: #fff; color: var(--deep, #0A2036); box-shadow: 0 6px 18px rgba(10, 32, 54, .25); cursor: pointer; }
.eqg-all:hover { background: var(--paper, #EEF1F4); }
.eqg-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.eqg-thumbs::-webkit-scrollbar { display: none; }
.eqg-thumb { flex: 0 0 auto; width: 120px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; opacity: .6; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .2s, outline-color .2s; }
.eqg-thumb img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.eqg-thumb:hover { opacity: .9; }
.eqg-thumb.is-active { opacity: 1; outline-color: var(--metal, #8B7355); }
.eqg-thumb:focus-visible { outline-color: var(--sand, #D9C6A8); opacity: 1; }

/* Full-screen viewer */
html.eqg-locked { overflow: hidden; }
.eqg-lb { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(7, 24, 39, .97); color: #fff; overflow: hidden; }
.eqg-lb[open] { display: flex; flex-direction: column; }
.eqg-lb::backdrop { background: rgba(7, 24, 39, .97); }
.eqg-lb-bar { display: flex; align-items: center; gap: 16px; padding: max(12px, env(safe-area-inset-top, 0px)) 16px 12px; }
.eqg-lb-count { font-weight: 600; font-size: 15px; min-width: 56px; }
.eqg-lb-title { flex: 1; text-align: center; font-size: 15px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eqg-lb-close { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.eqg-lb-close:hover { background: rgba(255, 255, 255, .22); }
.eqg-lb-stage { position: relative; flex: 1; min-height: 0; }
.eqg-lb .eqg-track { height: 100%; }
.eqg-lb .eqg-slide { display: flex; align-items: center; justify-content: center; padding: 0 72px; }
.eqg-lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.eqg-lb .eqg-arrow { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
.eqg-lb .eqg-arrow:hover { background: rgba(255, 255, 255, .26); }
.eqg-lb-thumbs { justify-content: center; margin: 0; padding: 12px 16px max(14px, env(safe-area-inset-bottom, 0px)); }
.eqg-lb-thumbs .eqg-thumb { width: 84px; opacity: .45; }
.eqg-lb-thumbs .eqg-thumb.is-active { opacity: 1; outline-color: var(--sand, #D9C6A8); }

/* Houzez bits the EQAR gallery replaces */
.property-wrap .mobile-top-wrap .property-banner, #property-lightbox { display: none !important; }

@media (max-width: 767.98px) {
	.eqg-wrap { padding: 0; }
	.eqg-wrap > .container { padding-left: 0; padding-right: 0; max-width: none; }
	.eqg-stage { border-radius: 0; box-shadow: none; }
	.eqg-img { aspect-ratio: 4 / 3; max-height: 62vh; }
	.eqg-arrow { width: 38px; height: 38px; background: rgba(255, 255, 255, .85); }
	.eqg-arrow svg { width: 18px; height: 18px; }
	.eqg-prev { inset-inline-start: 10px; }
	.eqg-next { inset-inline-end: 10px; }
	.eqg-dots { bottom: 12px; }
	.eqg-count { bottom: auto; top: 12px; inset-inline-end: 12px; padding: 6px 11px; font-size: 13px; }
	.eqg-all { bottom: auto; top: 12px; inset-inline-start: 12px; padding: 6px 11px; font-size: 13px; }
	.eqg > .eqg-thumbs { display: none; }
	.eqg-lb .eqg-slide { padding: 0; }
	.eqg-lb-img { border-radius: 0; }
	.eqg-lb .eqg-arrow { display: none; }
	.eqg-lb-thumbs { justify-content: flex-start; }
	.eqg-lb-thumbs .eqg-thumb { width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
	.eqg-track { scroll-behavior: auto; }
	.eqg-arrow, .eqg-dot, .eqg-thumb { transition: none; }
}

/* Property page polish (2026-11-27) */
.property-wrap .detail-wrap { background: var(--paper, #EEF1F4); border: 1px solid rgba(10, 32, 54, .1); border-radius: 12px; }
@media (max-width: 767.98px) {
	.property-wrap .mobile-top-wrap .mobile-property-tools { padding: 12px 20px 0; border: 0; margin: 0; }
	.property-wrap .mobile-top-wrap .mobile-property-title { padding-top: 12px; }
	.property-wrap .mobile-property-tools .item-tool > span { width: 42px; height: 42px; }
	.property-wrap .mobile-property-tools .item-tool > a { height: 42px; }
}
/* "Updated on <date> at <time>" under Details: noise for buyers */
#property-detail-wrap .block-title-wrap .small-text { display: none; }

/* ===== Listing cards: Properties page, taxonomy archives, search (2026-11-27) ===== */
.item-listing-wrap.item-wrap-v1 { margin-bottom: 28px; }
.item-wrap-v1 .item-wrap { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px -18px rgba(10, 32, 54, .45); border: 1px solid rgba(10, 32, 54, .06); transition: transform .25s, box-shadow .25s; }
.item-wrap-v1 .item-wrap:hover { transform: translateY(-3px); box-shadow: 0 18px 38px -18px rgba(10, 32, 54, .55); }
.item-wrap-v1 .listing-thumb img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .5s; }
.item-wrap-v1 .item-wrap:hover .listing-thumb img { transform: scale(1.03); }
.item-wrap-v1 .item-header .label { border-radius: 999px; padding: 5px 10px; font-size: 11px; letter-spacing: .06em; background: rgba(10, 32, 54, .72); }
.item-wrap-v1 .item-price-wrap .item-price { font-size: 22px; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.item-wrap-v1 .item-tool > span { border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--deep, #0A2036); }
.item-wrap-v1 .item-tool > span:hover { background: #fff; color: var(--deep, #0A2036); }
.item-wrap-v1 .item-preview, .item-wrap-v1 .item-compare { display: none !important; }
.item-wrap-v1 .slick-arrow, .hz-item-gallery-js .slick-prev, .hz-item-gallery-js .slick-next { width: 34px !important; height: 34px !important; border-radius: 50% !important; background: rgba(10, 32, 54, .6) !important; color: #fff !important; backdrop-filter: blur(3px); }
.item-wrap-v1 .slick-arrow { opacity: 1 !important; }
.item-wrap-v1 .slick-arrow:before { color: #fff !important; opacity: 1 !important; font-size: 13px; line-height: 34px; }
.item-wrap-v1 .item-body { padding: 18px 20px 14px; }
.item-wrap-v1 .item-title { font-size: 19px; line-height: 1.35; }
.item-wrap-v1 .item-title a { color: var(--deep, #0A2036); }
.item-wrap-v1 .item-title a:hover { color: var(--metal-text, #7A6449); }
.item-wrap-v1 .btn-item { border-radius: 999px; height: auto; line-height: 1; padding: 9px 18px; align-items: center; }
.item-wrap-v1 .item-footer { padding: 12px 20px; border-top: 1px solid rgba(10, 32, 54, .08); }
.item-wrap-v1 .item-date { display: none !important; }
/* breathing room above the footer on listing archives */
.listing-wrap, .page-template-template-listing-grid-v1-fullwidth-3cols .content-wrap, .tax-property_type .content-wrap, .tax-property_city .content-wrap, .tax-property_status .content-wrap, .tax-property_label .content-wrap, .search .content-wrap { padding-bottom: 48px; }
