.ampre-idx-wrap {
	--ampre-idx-accent: #c6f135;
	--ampre-idx-dark: #14161a;
	--ampre-idx-card-min: 260px;
	--ampre-idx-radius: 999px;
	--ampre-idx-card-radius: 14px;
	--ampre-idx-border: #e6e6e9;
	--ampre-idx-font: inherit;
	max-width: 1200px;
	margin: 0 auto;
	box-sizing: border-box;
	font-family: var(--ampre-idx-font);
}

/* ------------------------------------------------------------------
   Style isolation: some themes/page-builders ship global rules for
   `button`, `a`, `input`, `select` (bold caps, forced colors, absolute
   positioning for hero-style CTAs, etc.) that otherwise win the
   cascade over this stylesheet depending on load order. `revert`
   rolls every element inside this widget back to the browser's own
   default styling -- wiping out the theme's authored rules entirely
   -- and every rule below then re-applies the actual design on top
   of that clean baseline. Custom properties (the --ampre-idx-* vars)
   are unaffected by `all`, so theming still flows through normally.
   ------------------------------------------------------------------ */
.ampre-idx-wrap * {
	all: revert;
	box-sizing: border-box;
}

.ampre-idx-wrap *, .ampre-idx-wrap *::before, .ampre-idx-wrap *::after { box-sizing: inherit; }

/* ---------- Search form ---------- */
.ampre-idx-form {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 12px;
	align-items: end;
	background: #fff;
	border: 1px solid var(--ampre-idx-border);
	border-radius: var(--ampre-idx-card-radius);
	padding: 18px;
	margin-bottom: 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.ampre-idx-col-2 { grid-column: span 2; }
.ampre-idx-col-3 { grid-column: span 3; }
.ampre-idx-col-5 { grid-column: span 5; }
.ampre-idx-col-6 { grid-column: span 6; }
.ampre-idx-col-12 { grid-column: 1 / -1; }
.ampre-idx-styles {
	display: flex !important; flex-wrap: wrap; gap: 8px; align-items: center;
	border: 0 !important; margin: 0 !important; padding: 0 !important; min-width: 0;
}
.ampre-idx-styles legend {
	font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #6b7280;
	padding: 0; margin: 0 0 6px; float: none; width: 100%;
}
.ampre-idx-chip { position: relative; display: inline-flex; cursor: pointer; margin: 0; }
.ampre-idx-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ampre-idx-chip span {
	display: inline-block; padding: 8px 16px; border: 1px solid var(--ampre-idx-border);
	border-radius: 999px; font-size: 14px; line-height: 1.2; background: #fff; color: var(--ampre-idx-dark);
	transition: background .15s ease, border-color .15s ease;
}
.ampre-idx-chip:hover span { border-color: var(--ampre-idx-dark); }
.ampre-idx-chip input:checked + span { background: var(--ampre-idx-accent); border-color: var(--ampre-idx-dark); font-weight: 600; }
.ampre-idx-chip input:focus-visible + span { outline: 2px solid var(--ampre-idx-dark); outline-offset: 2px; }
.ampre-idx-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ampre-idx-field label {
	font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #6b7280;
}
.ampre-idx-field input, .ampre-idx-field select {
	padding: 10px 12px;
	border: 1px solid var(--ampre-idx-border);
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	width: 100%;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.ampre-idx-field input:focus, .ampre-idx-field select:focus {
	outline: none;
	border-color: var(--ampre-idx-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ampre-idx-accent) 30%, transparent);
}
.ampre-idx-field-actions {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center;
	gap: 10px;
	width: auto !important;
}

.ampre-idx-btn-search {
	all: revert;
	box-sizing: border-box !important;
	cursor: pointer !important;
	flex: 0 0 auto !important;
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 10px !important;
	white-space: nowrap !important;
	width: auto !important;
	margin: 0 !important;
	padding: 5px 5px 5px 22px !important;
	border: none !important;
	border-radius: var(--ampre-idx-radius) !important;
	background: var(--ampre-idx-accent) !important;
	color: var(--ampre-idx-dark) !important;
	font-family: inherit !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	line-height: 1 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	text-shadow: none !important;
	box-shadow: none !important;
	transition: filter .15s ease, transform .1s ease;
}
.ampre-idx-btn-search:hover { filter: brightness(0.95); }
.ampre-idx-btn-search:active { transform: translateY(1px); }
.ampre-idx-btn-search:focus-visible { outline: 2px solid var(--ampre-idx-dark); outline-offset: 2px; }

.ampre-idx-btn-circle {
	all: revert;
	box-sizing: border-box !important;
	display: flex !important; align-items: center !important; justify-content: center !important;
	width: 34px !important; height: 34px !important; border-radius: 50% !important;
	background: var(--ampre-idx-dark) !important;
	margin: 0 !important; padding: 0 !important;
	flex-shrink: 0 !important;
}
/* The magnifying-glass icon is drawn with plain CSS (a bordered circle
   + a rotated bar for the handle) instead of an inline <svg>. Several
   themes/page-builders (Elementor included) ship a global rule like
   `svg { fill: currentColor !important }` that fights any inline icon
   no matter how it's scoped -- there's simply nothing for that kind of
   rule to target here, so it can't interfere. */
/* The magnifying-glass icon is drawn with plain CSS (a bordered circle
   + a rotated bar for the handle) instead of an inline <svg>. Several
   themes/page-builders (Elementor included) ship a global rule like
   `svg { fill: currentColor !important }` that fights any inline icon
   no matter how it's scoped -- there's simply nothing for that kind of
   rule to target here, so it can't interfere.

   The wrapper is sized to the icon's full visual footprint (circle +
   handle together), not just the circle -- the parent flexbox centers
   this whole box, so giving it the actual glyph bounds is what keeps
   the icon looking centered instead of pulled toward the handle. */
.ampre-idx-icon-search {
	all: revert;
	box-sizing: border-box !important;
	position: relative !important;
	display: block !important;
	width: 13px !important; height: 13px !important;
}
.ampre-idx-icon-search::before {
	content: "" !important;
	position: absolute !important;
	top: 0 !important; left: 0 !important;
	width: 8px !important; height: 8px !important;
	border: 1.6px solid #ffffff !important;
	border-radius: 50% !important;
	background: transparent !important;
	box-sizing: border-box !important;
}
.ampre-idx-icon-search::after {
	content: "" !important;
	position: absolute !important;
	right: 0 !important; bottom: 0 !important;
	width: 6px !important; height: 1.6px !important;
	background: #ffffff !important;
	border-radius: 1px !important;
	transform: rotate(45deg) !important;
	transform-origin: right bottom !important;
}

/* Clear is a real secondary button -- outlined in the same theme color
   as the rest of the widget, just inverted (light fill, dark line)
   so it's obviously clickable while staying visually quieter than the
   lime primary Search button. */
.ampre-idx-btn-clear,
.ampre-idx-btn-more,
.ampre-idx-btn-favs {
	all: revert;
	box-sizing: border-box !important;
	cursor: pointer !important;
	flex: 0 0 auto !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: auto !important;
	margin: 0 !important;
	padding: 11px 20px !important;
	border: 1.5px solid var(--ampre-idx-dark) !important;
	border-radius: var(--ampre-idx-radius) !important;
	background: #ffffff !important;
	color: var(--ampre-idx-dark) !important;
	font-family: inherit !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	line-height: 1 !important;
	text-transform: none !important;
	text-decoration: none !important;
	box-shadow: none !important;
	opacity: 1 !important;
	transition: background .15s ease, color .15s ease, opacity .15s ease;
}
.ampre-idx-btn-clear:hover,
.ampre-idx-btn-favs:hover {
	background: var(--ampre-idx-dark) !important;
	color: #ffffff !important;
}
.ampre-idx-btn-clear:active { transform: translateY(1px); }
.ampre-idx-btn-clear:focus-visible { outline: 2px solid var(--ampre-idx-dark); outline-offset: 2px; }



/* ---------- Status / count ---------- */
.ampre-idx-wrap [hidden] { display: none !important; }
.ampre-idx-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 14px; }
.ampre-idx-status { font-size: 14px; font-weight: 600; color: #374151; min-height: 18px; }
.ampre-idx-toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ampre-idx-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #6b7280; margin: 0; }
.ampre-idx-sort select { padding: 8px 10px; border: 1px solid var(--ampre-idx-border); border-radius: 8px; font-size: 14px; background: #fff; width: auto; }
.ampre-idx-btn-favs { padding: 8px 14px !important; font-size: 13px !important; }
.ampre-idx-btn-favs.is-on { background: var(--ampre-idx-accent) !important; }
.ampre-idx-btn-more:hover { background: var(--ampre-idx-dark) !important; color: #fff !important; }
.ampre-idx-more-count { display: inline-block; margin-left: 6px; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--ampre-idx-accent); color: var(--ampre-idx-dark); font-size: 12px; font-weight: 700; text-align: center; }

/* ---------- Cards: favourite heart ---------- */
.ampre-idx-card-wrap { position: relative; }
.ampre-idx-fav {
	all: revert; position: absolute !important; top: 10px; right: 10px; left: auto !important; z-index: 3; cursor: pointer !important;
	width: 38px !important; height: 38px !important; padding: 0 !important; margin: 0 !important;
	border: 0 !important; border-radius: 50% !important; background: rgba(255,255,255,.92) !important;
	color: #9aa0a6 !important; font-size: 20px !important; line-height: 38px !important; text-align: center !important;
	box-shadow: 0 1px 4px rgba(0,0,0,.2) !important;
}
.ampre-idx-fav.is-on { color: #e11d48 !important; }

/* ---------- More filters popup ---------- */
body.ampre-idx-noscroll { overflow: hidden; }
.ampre-idx-modal {
	position: fixed; inset: 0; z-index: 99999; background: rgba(20,22,26,.55);
	display: flex; align-items: center; justify-content: center; padding: 16px;
}
.ampre-idx-modal-box {
	background: #fff; width: 100%; max-width: 760px; max-height: 92vh; border-radius: 16px;
	display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.ampre-idx-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--ampre-idx-border); font-size: 18px; }
.ampre-idx-modal-x { all: revert; cursor: pointer !important; font-size: 28px !important; line-height: 1 !important; background: none !important; border: 0 !important; color: var(--ampre-idx-dark) !important; padding: 0 6px !important; }
.ampre-idx-modal-body { padding: 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.ampre-idx-mgroup { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.ampre-idx-mgroup legend { width: 100%; padding: 0; margin: 0 0 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #6b7280; }
.ampre-idx-mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ampre-idx-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.ampre-idx-modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--ampre-idx-border); background: #fff; }
@media (max-width: 520px) {
	.ampre-idx-modal { padding: 0; align-items: flex-end; }
	.ampre-idx-modal-box { max-height: 94vh; border-radius: 16px 16px 0 0; }
	.ampre-idx-mgrid { grid-template-columns: 1fr; }
}


/* ---------- Results grid ---------- */
.ampre-idx-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(var(--ampre-idx-card-min), 1fr));
	gap: 20px;
}
.ampre-idx-card {
	display: block; text-decoration: none; color: inherit;
	border: 1px solid var(--ampre-idx-border); border-radius: var(--ampre-idx-card-radius);
	overflow: hidden; background: #fff;
	transition: box-shadow .18s ease, transform .18s ease;
}
.ampre-idx-card:hover { box-shadow: 0 10px 28px rgba(20,20,30,.12); transform: translateY(-2px); }
.ampre-idx-card:hover .ampre-idx-photo-arrow { background: var(--ampre-idx-accent); color: var(--ampre-idx-dark); transform: rotate(0deg) scale(1.05); }

/* Dark card variant */
.ampre-idx-card-dark .ampre-idx-card {
	background: var(--ampre-idx-dark); border-color: rgba(255,255,255,.08); color: #fff;
}
.ampre-idx-card-dark .ampre-idx-address { color: #f2f2f2; }
.ampre-idx-card-dark .ampre-idx-meta { color: #b7bcc4; }

.ampre-idx-card-photo {
	position: relative; height: 190px; background-size: cover; background-position: center; background-color: #eef0f2;
	display: flex; align-items: center; justify-content: center;
}
.ampre-idx-no-photo { color: #9aa0a6; font-size: 13px; }
.ampre-idx-badge {
	position: absolute; top: 10px; left: 10px;
	background: var(--ampre-idx-accent); color: var(--ampre-idx-dark); font-size: 11px; font-weight: 700;
	padding: 4px 10px; border-radius: 999px; letter-spacing: .02em;
}
.ampre-idx-photo-arrow {
	all: revert;
	box-sizing: border-box !important;
	position: absolute !important; bottom: 10px !important; right: 10px !important;
	width: 32px !important; height: 32px !important; border-radius: 50% !important;
	background: rgba(255,255,255,.92) !important; color: var(--ampre-idx-dark) !important;
	display: flex !important; align-items: center !important; justify-content: center !important;
	font-size: 15px !important; line-height: 1 !important; font-family: inherit !important;
	transition: background .15s ease, color .15s ease, transform .15s ease;
}

.ampre-idx-card-body { padding: 14px 16px 16px; }
.ampre-idx-price { font-size: 19px; font-weight: 700; color: var(--ampre-idx-dark); }
.ampre-idx-card-dark .ampre-idx-price { color: var(--ampre-idx-accent); }
.ampre-idx-address { font-size: 14px; margin: 4px 0 8px; color: #333; line-height: 1.35; }
.ampre-idx-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #6b7280; }
.ampre-idx-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Pagination ---------- */
.ampre-idx-pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 26px 0 10px; }
.ampre-idx-page-btn {
	all: revert;
	box-sizing: border-box !important;
	cursor: pointer !important;
	display: inline-flex !important; align-items: center !important; justify-content: center !important;
	min-width: 36px !important; padding: 7px 10px !important; margin: 0 !important;
	border: 1px solid var(--ampre-idx-border) !important;
	background: #fff !important; color: #333 !important;
	border-radius: var(--ampre-idx-radius) !important; font-size: 13px !important; font-family: inherit !important; font-weight: 500 !important;
	text-transform: none !important; line-height: 1 !important; box-shadow: none !important;
	transition: background .15s ease, color .15s ease;
}
.ampre-idx-page-btn:hover { background: #f5f5f6 !important; }
.ampre-idx-page-btn.active { background: var(--ampre-idx-dark) !important; color: var(--ampre-idx-accent) !important; border-color: var(--ampre-idx-dark) !important; }

/* ---------- States ---------- */
.ampre-idx-empty, .ampre-idx-error { color: #6b7280; padding: 40px 0; text-align: center; font-size: 14px; }
.ampre-idx-error { color: #b3261e; }

/* Skeleton loading */
.ampre-idx-skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--ampre-idx-card-min), 1fr)); gap: 20px; }
.ampre-idx-skeleton-card { border: 1px solid var(--ampre-idx-border); border-radius: var(--ampre-idx-card-radius); overflow: hidden; }
.ampre-idx-skeleton-photo, .ampre-idx-skeleton-line {
	background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
	background-size: 400% 100%; animation: ampre-idx-shimmer 1.4s ease infinite;
}
.ampre-idx-skeleton-photo { height: 190px; }
.ampre-idx-skeleton-line { height: 12px; margin: 12px 16px; border-radius: 6px; }
.ampre-idx-skeleton-line.short { width: 40%; height: 16px; }
@keyframes ampre-idx-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.ampre-idx-disclaimer { font-size: 12px; color: #9aa0a6; margin-top: 22px; line-height: 1.5; }

/* ---------- Detail page ---------- */
.ampre-idx-breadcrumb { margin-bottom: 14px; font-size: 14px; }
.ampre-idx-breadcrumb a { color: #6b7280; text-decoration: none; }
.ampre-idx-breadcrumb a:hover { color: var(--ampre-idx-dark); }

.ampre-idx-gallery { margin-bottom: 22px; }
.ampre-idx-gallery-main { border-radius: var(--ampre-idx-card-radius); overflow: hidden; background: #eef0f2; }
.ampre-idx-gallery-main img { width: 100%; height: 420px; object-fit: cover; display: block; }
.ampre-idx-gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; margin-top: 8px; }
.ampre-idx-gallery-thumb {
	all: revert; box-sizing: border-box !important; cursor: pointer !important;
	width: 100% !important; height: 64px !important; border-radius: 8px !important;
	background-size: cover !important; background-position: center !important;
	border: 2px solid transparent !important; padding: 0 !important; margin: 0 !important;
	opacity: .7 !important; transition: opacity .15s ease, border-color .15s ease;
}
.ampre-idx-gallery-thumb:hover { opacity: 1 !important; }
.ampre-idx-gallery-thumb.active { opacity: 1 !important; border-color: var(--ampre-idx-accent) !important; }

.ampre-idx-detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.ampre-idx-status-badge {
	display: inline-block; background: var(--ampre-idx-accent); color: var(--ampre-idx-dark);
	font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; margin-bottom: 8px;
}
.ampre-idx-detail-address { margin: 0 0 2px; font-size: 26px; font-family: var(--ampre-idx-font); line-height: 1.25; }
.ampre-idx-detail-subaddress { margin: 0; color: #6b7280; font-size: 15px; }
.ampre-idx-detail-price { font-size: 28px; font-weight: 700; color: var(--ampre-idx-dark); white-space: nowrap; }

.ampre-idx-stat-bar {
	display: flex; flex-wrap: wrap; gap: 0; margin: 18px 0 26px;
	border: 1px solid var(--ampre-idx-border); border-radius: var(--ampre-idx-card-radius); overflow: hidden;
}
.ampre-idx-stat-bar > div {
	flex: 1 1 120px; padding: 14px 16px; text-align: center;
	border-right: 1px solid var(--ampre-idx-border);
}
.ampre-idx-stat-bar > div:last-child { border-right: none; }
.ampre-idx-stat-bar strong { display: block; font-size: 18px; color: var(--ampre-idx-dark); }
.ampre-idx-stat-bar span { display: block; font-size: 12px; color: #9aa0a6; text-transform: uppercase; letter-spacing: .03em; margin-top: 2px; }

.ampre-idx-detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.ampre-idx-detail-side { position: sticky; top: 20px; }

.ampre-idx-section { margin-bottom: 30px; }
.ampre-idx-section h2 { font-size: 18px; margin: 0 0 14px; font-family: var(--ampre-idx-font); color: var(--ampre-idx-dark); }
.ampre-idx-detail-remarks { line-height: 1.65; color: #333; }

.ampre-idx-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; border-top: 1px solid var(--ampre-idx-border); }
.ampre-idx-detail-row {
	display: flex; justify-content: space-between; gap: 12px;
	padding: 11px 0; border-bottom: 1px solid var(--ampre-idx-border); font-size: 14px;
}
.ampre-idx-detail-row span { color: #6b7280; }
.ampre-idx-detail-row strong { color: #222; font-weight: 600; text-align: right; }

.ampre-idx-feature-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ampre-idx-pill {
	display: inline-block; background: #f5f5f6; border: 1px solid var(--ampre-idx-border);
	border-radius: 999px; padding: 6px 14px; font-size: 13px; color: #333;
}

.ampre-idx-map-frame { border-radius: var(--ampre-idx-card-radius); overflow: hidden; border: 1px solid var(--ampre-idx-border); }
.ampre-idx-map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }

.ampre-idx-mortgage {
	border: 1px solid var(--ampre-idx-border); border-radius: var(--ampre-idx-card-radius);
	padding: 20px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center;
}
.ampre-idx-mortgage-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ampre-idx-mortgage-inputs label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #6b7280; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.ampre-idx-mortgage-inputs input {
	padding: 9px 10px; border: 1px solid var(--ampre-idx-border); border-radius: 8px; font-size: 14px; font-family: inherit;
}
.ampre-idx-mortgage-result { text-align: center; border-left: 1px solid var(--ampre-idx-border); padding-left: 24px; }
.ampre-idx-mortgage-result span { display: block; font-size: 12px; color: #6b7280; text-transform: uppercase; letter-spacing: .02em; }
.ampre-idx-mortgage-result strong { display: block; font-size: 28px; color: var(--ampre-idx-dark); margin: 6px 0; }
.ampre-idx-mortgage-note { font-size: 11px; color: #9aa0a6; margin: 0; line-height: 1.4; }

.ampre-idx-agent-card {
	border: 1px solid var(--ampre-idx-border); border-radius: var(--ampre-idx-card-radius);
	padding: 22px; text-align: center;
}
.ampre-idx-agent-avatar {
	width: 60px; height: 60px; border-radius: 50%; background: var(--ampre-idx-dark); color: var(--ampre-idx-accent);
	display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px;
	margin: 0 auto 12px;
}
.ampre-idx-agent-name { font-weight: 700; font-size: 15px; color: var(--ampre-idx-dark); }
.ampre-idx-agent-office { font-size: 13px; color: #6b7280; margin-top: 2px; margin-bottom: 14px; }
.ampre-idx-agent-contact {
	display: block; font-size: 13px; color: var(--ampre-idx-dark); text-decoration: none;
	padding: 9px 0; border-top: 1px solid var(--ampre-idx-border);
}
.ampre-idx-agent-contact:hover { color: var(--ampre-idx-accent-text, var(--ampre-idx-dark)); text-decoration: underline; }

.ampre-idx-similar { margin-top: 8px; }
.ampre-idx-card-courtesy { font-size: 11px; color: #9aa0a6; margin-top: 8px; line-height: 1.3; }
.ampre-idx-agent-label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #9aa0a6; margin-bottom: 6px; }
.ampre-idx-map-note { font-size: 12px; color: #9aa0a6; margin: 8px 0 0; }

/* ---------- Map / list toggle ---------- */
.ampre-idx-viewtoggle { display: inline-flex; border: 1.5px solid var(--ampre-idx-dark); border-radius: 999px; overflow: hidden; }
.ampre-idx-viewtoggle button {
	all: revert; cursor: pointer !important; padding: 8px 16px !important; margin: 0 !important; border: 0 !important;
	background: #fff !important; color: var(--ampre-idx-dark) !important; font-size: 13px !important; font-weight: 600 !important;
	border-radius: 0 !important; box-shadow: none !important; line-height: 1 !important;
}
.ampre-idx-viewtoggle button.is-on { background: var(--ampre-idx-dark) !important; color: #fff !important; }
.ampre-idx-mapwrap { margin-bottom: 16px; }
.ampre-idx-map { height: 480px; border-radius: var(--ampre-idx-card-radius); border: 1px solid var(--ampre-idx-border); z-index: 0; }
.ampre-idx-view-map .ampre-idx-results, .ampre-idx-view-map .ampre-idx-pagination { display: none; }
@media (max-width: 520px) { .ampre-idx-map { height: 360px; } }

/* ---------- Property page: actions, contact, forms ---------- */
.ampre-idx-action-card { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.ampre-idx-action-card .ampre-idx-btn-search, .ampre-idx-action-card .ampre-idx-action-btn { width: 100% !important; justify-content: center !important; text-align: center; }
.ampre-idx-action-card a.ampre-idx-action-btn { text-decoration: none !important; }
.ampre-idx-wa:hover { background: #25d366 !important; border-color: #25d366 !important; color: #fff !important; }
.ampre-idx-contact-card { border: 1px solid var(--ampre-idx-border); border-radius: var(--ampre-idx-card-radius); padding: 22px; margin-top: 16px; background: #fff; }
.ampre-idx-contact-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6b7280; margin-bottom: 6px; }
.ampre-idx-contact-big { display: block; font-size: 20px; font-weight: 700; color: var(--ampre-idx-dark); text-decoration: none; line-height: 1.5; }
.ampre-idx-contact-line { display: block; font-size: 14px; color: var(--ampre-idx-dark); text-decoration: none; line-height: 1.6; word-break: break-word; }
a.ampre-idx-contact-line:hover, a.ampre-idx-contact-big:hover { text-decoration: underline; }
.ampre-idx-contact-sep { height: 1px; background: var(--ampre-idx-border); margin: 16px 0; }
.ampre-idx-enq-box { max-width: 480px; }
.ampre-idx-enq-property { margin: 0; font-weight: 600; color: var(--ampre-idx-dark); }
.ampre-idx-enq-form { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.ampre-idx-enq-form textarea { padding: 10px 12px; border: 1px solid var(--ampre-idx-border); border-radius: 8px; font-size: 14px; font-family: inherit; width: 100%; }
.ampre-idx-enq-msg { margin: 0; min-height: 20px; font-size: 14px; }
.ampre-idx-enq-msg.is-ok { color: #15803d; }
.ampre-idx-enq-msg.is-error { color: #b91c1c; }
.ampre-idx-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.ampre-idx-col-2 { grid-column: span 4; }
	.ampre-idx-col-3 { grid-column: span 6; }
	.ampre-idx-col-5 { grid-column: span 6; }
	.ampre-idx-col-6 { grid-column: 1 / -1; }
	.ampre-idx-detail-layout { grid-template-columns: 1fr; }
	.ampre-idx-detail-side { position: static; }
	.ampre-idx-detail-grid { grid-template-columns: 1fr; }
	.ampre-idx-mortgage { grid-template-columns: 1fr; }
	.ampre-idx-mortgage-result { border-left: none; padding-left: 0; border-top: 1px solid var(--ampre-idx-border); padding-top: 16px; }
}
@media (max-width: 520px) {
	.ampre-idx-form { padding: 14px; }
	.ampre-idx-col-3, .ampre-idx-col-5 { grid-column: 1 / -1; }
	.ampre-idx-col-2 { grid-column: span 6; }
	.ampre-idx-card-photo { height: 160px; }
	.ampre-idx-detail-address { font-size: 21px; }
	.ampre-idx-gallery-main img { height: 240px; }
	.ampre-idx-mortgage-inputs { grid-template-columns: 1fr; }
	.ampre-idx-detail-header { flex-direction: column; }
}

/* ---------- Button states: final, highest-priority rules ----------
   Themes/Elementor ship global `button:hover`, `a:hover`, `:focus` rules
   (often with !important) that can blank out a button while the mouse is
   over it. These rules restate every state with enough specificity to win,
   so the buttons look right normally, on hover, on focus and when pressed. */
html body .ampre-idx-wrap .ampre-idx-btn-search,
html body .ampre-idx-wrap .ampre-idx-btn-search:visited,
html body .ampre-idx-wrap .ampre-idx-btn-search:focus,
html body .ampre-idx-wrap .ampre-idx-btn-search:hover,
html body .ampre-idx-wrap .ampre-idx-btn-search:active {
	background: var(--ampre-idx-accent) !important;
	background-color: var(--ampre-idx-accent) !important;
	color: var(--ampre-idx-dark) !important;
	border: 0 !important;
	opacity: 1 !important;
	visibility: visible !important;
	text-decoration: none !important;
	box-shadow: none !important;
	-webkit-text-fill-color: var(--ampre-idx-dark) !important;
}
html body .ampre-idx-wrap .ampre-idx-btn-search:hover { filter: brightness(0.93) !important; }
html body .ampre-idx-wrap .ampre-idx-btn-search > span:first-child {
	background: transparent !important; color: inherit !important; -webkit-text-fill-color: currentColor !important;
}
html body .ampre-idx-wrap .ampre-idx-btn-search .ampre-idx-btn-circle,
html body .ampre-idx-wrap .ampre-idx-btn-search:hover .ampre-idx-btn-circle {
	background: var(--ampre-idx-dark) !important; background-color: var(--ampre-idx-dark) !important; opacity: 1 !important;
}

html body .ampre-idx-wrap .ampre-idx-btn-clear,
html body .ampre-idx-wrap .ampre-idx-btn-more,
html body .ampre-idx-wrap .ampre-idx-btn-favs,
html body .ampre-idx-wrap a.ampre-idx-btn-clear,
html body .ampre-idx-wrap .ampre-idx-btn-clear:visited,
html body .ampre-idx-wrap .ampre-idx-btn-clear:focus,
html body .ampre-idx-wrap .ampre-idx-btn-more:focus,
html body .ampre-idx-wrap .ampre-idx-btn-favs:focus {
	background: #ffffff !important;
	background-color: #ffffff !important;
	color: var(--ampre-idx-dark) !important;
	-webkit-text-fill-color: var(--ampre-idx-dark) !important;
	border: 1.5px solid var(--ampre-idx-dark) !important;
	opacity: 1 !important;
	visibility: visible !important;
	text-decoration: none !important;
	box-shadow: none !important;
}
html body .ampre-idx-wrap .ampre-idx-btn-clear:hover,
html body .ampre-idx-wrap .ampre-idx-btn-more:hover,
html body .ampre-idx-wrap .ampre-idx-btn-favs:hover,
html body .ampre-idx-wrap a.ampre-idx-btn-clear:hover,
html body .ampre-idx-wrap .ampre-idx-btn-clear:active,
html body .ampre-idx-wrap .ampre-idx-btn-more:active {
	background: var(--ampre-idx-dark) !important;
	background-color: var(--ampre-idx-dark) !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	border-color: var(--ampre-idx-dark) !important;
	opacity: 1 !important;
	visibility: visible !important;
	text-decoration: none !important;
}
html body .ampre-idx-wrap .ampre-idx-btn-favs.is-on,
html body .ampre-idx-wrap .ampre-idx-btn-favs.is-on:focus {
	background: var(--ampre-idx-accent) !important; background-color: var(--ampre-idx-accent) !important; color: var(--ampre-idx-dark) !important; -webkit-text-fill-color: var(--ampre-idx-dark) !important;
}
html body .ampre-idx-wrap a.ampre-idx-wa:hover {
	background: #25d366 !important; background-color: #25d366 !important; border-color: #25d366 !important; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important;
}
html body .ampre-idx-wrap .ampre-idx-btn-more .ampre-idx-more-count { background: var(--ampre-idx-accent) !important; color: var(--ampre-idx-dark) !important; -webkit-text-fill-color: var(--ampre-idx-dark) !important; }
html body .ampre-idx-wrap .ampre-idx-btn-search:focus-visible,
html body .ampre-idx-wrap .ampre-idx-btn-clear:focus-visible,
html body .ampre-idx-wrap .ampre-idx-btn-more:focus-visible { outline: 2px solid var(--ampre-idx-dark) !important; outline-offset: 2px !important; }
html body .ampre-idx-wrap .ampre-idx-btn-search:focus:not(:focus-visible),
html body .ampre-idx-wrap .ampre-idx-btn-clear:focus:not(:focus-visible) { outline: none !important; }

html body .ampre-idx-wrap .ampre-idx-viewtoggle button,
html body .ampre-idx-wrap .ampre-idx-viewtoggle button:focus,
html body .ampre-idx-wrap .ampre-idx-viewtoggle button:hover { background: #ffffff !important; color: var(--ampre-idx-dark) !important; -webkit-text-fill-color: var(--ampre-idx-dark) !important; opacity: 1 !important; }
html body .ampre-idx-wrap .ampre-idx-viewtoggle button:hover { background: #f1f3f5 !important; }
html body .ampre-idx-wrap .ampre-idx-viewtoggle button.is-on,
html body .ampre-idx-wrap .ampre-idx-viewtoggle button.is-on:hover,
html body .ampre-idx-wrap .ampre-idx-viewtoggle button.is-on:focus { background: var(--ampre-idx-dark) !important; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }

/* ---------- Popup buttons (Send / Show results) ---------- */
html body .ampre-idx-wrap .ampre-idx-btn-search.ampre-idx-btn-plain {
	justify-content: center !important;
	padding: 13px 30px !important;
	min-height: 46px !important;
	font-size: 15px !important;
}
html body .ampre-idx-wrap .ampre-idx-modal-foot .ampre-idx-btn-clear {
	min-height: 46px !important;
	padding: 13px 26px !important;
	font-size: 15px !important;
}

/* ---------- Phone layout ---------- */
@media (max-width: 520px) {
	.ampre-idx-field-actions { flex-wrap: wrap !important; width: 100% !important; }
	.ampre-idx-field-actions > * { flex: 1 1 auto !important; justify-content: center !important; }
	html body .ampre-idx-wrap .ampre-idx-field-actions .ampre-idx-btn-search { justify-content: center !important; flex: 1 1 100% !important; order: -1; }
	html body .ampre-idx-wrap .ampre-idx-modal-foot { position: sticky; bottom: 0; }
	html body .ampre-idx-wrap .ampre-idx-modal-foot .ampre-idx-btn-search.ampre-idx-btn-plain { flex: 1 1 auto !important; }
	.ampre-idx-toolbar { flex-direction: column; align-items: stretch; }
	.ampre-idx-toolbar-right { justify-content: space-between; }
	.ampre-idx-detail-price { font-size: 26px; }
	.ampre-idx-stat-bar { flex-wrap: wrap; }
	.ampre-idx-enq-box { max-width: none; }
}

html body .ampre-idx-wrap .ampre-idx-arrow { display: block !important; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; font-size: 17px !important; line-height: 1 !important; background: transparent !important; }
