/*
Theme Name: DM Commercial Group
Description: Flatsome child theme for DM Commercial Group
Author: Vibes Design
Template: flatsome
Version: 2.0.0
*/

/*
 * Flatsome-first: typography, colours, buttons, header and footer are set in
 * Flatsome → Theme Options, and page layout is built with native UX Builder
 * elements. This file only covers what Flatsome can't: REX listing templates,
 * the hero mark, property search, the results ledger and a few header fixes.
 * Fonts: Figtree everywhere (stand-in for TT Commons Pro, incl. the alt font) – client rejected the mono label face.
 */

/* ==========================================================================
   Brand tokens – DMC Brand Guide V1 (July 2026)
   ========================================================================== */
:root {
	--dm-teal: #69F2D0;
	--dm-teal-ink: #0B5C4A;      /* readable teal for text on white (AA) */
	--dm-black: #000000;
	--dm-dark: #333333;
	--dm-light: #F2F2F2;
	--dm-divider: #D9D9D9;
	--dm-white: #FFFFFF;
	--dm-muted: #6B6B6B;
	--dm-label: 'Figtree', 'TT Commons Pro', system-ui, sans-serif; /* labels/facts – brand sans (alt font = Figtree) */
	--dm-radius: 4px;
	--dm-ease: cubic-bezier(.2, .7, .2, 1);
}

/* Brand display tracking (Flatsome has no letter-spacing option) */
h1, h2 { letter-spacing: -.025em; }
h1 { letter-spacing: -.04em; }

/* Brand button hover: primary → teal */
.button.primary:not(.is-outline):not(.is-link):not(.is-underline):hover { color: var(--dm-black); background-color: var(--dm-teal); }

/* ==========================================================================
   Badges
   ========================================================================== */
.dm-badge {
	display: inline-block;
	padding: 6px 10px;
	font-family: var(--dm-label);
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	color: var(--dm-black);
	background: var(--dm-teal);
	border-radius: 2px;
}
.dm-badge--leased,
.dm-badge--sold { color: var(--dm-white); background: var(--dm-black); }
.dm-badge--under-offer { color: var(--dm-black); background: var(--dm-white); }

/* ==========================================================================
   Listing grid + cards  ([rex-listings] shortcode)
   ========================================================================== */
.dm-listings__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 24px;
}
.dm-listings__grid.dm-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dm-listings__grid.dm-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .dm-listings__grid[class] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px)  { .dm-listings__grid[class] { grid-template-columns: 1fr; gap: 24px; } }

.dm-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--dm-white);
	border: 1px solid var(--dm-divider);
	border-radius: var(--dm-radius);
	overflow: hidden;
	transition: border-color .25s var(--dm-ease), box-shadow .25s var(--dm-ease);
}
.dm-card:hover { border-color: var(--dm-black); }

.dm-card__media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2; /* matches REX/portal marketing images */
	background: var(--dm-light);
	overflow: hidden;
}
.dm-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s var(--dm-ease);
}
.dm-card:hover .dm-card__media img { transform: scale(1.04); }
.dm-card__media .dm-badge { position: absolute; top: 14px; left: 14px; }
.dm-card--leased .dm-card__media img,
.dm-card--sold .dm-card__media img { filter: grayscale(.35); }

.dm-card__body { display: flex; flex: 1; flex-direction: column; padding: 18px 18px 0; }
.dm-card__suburb {
	margin: 0 0 4px;
	font-family: var(--dm-label);
	font-size: 13px;
	color: var(--dm-muted);
}
.dm-card__title { margin: 0 0 6px; font-size: 19px; font-weight: 700; line-height: 1.25; }
.dm-card__title a { color: var(--dm-black); text-decoration: none; }
/* whole card is clickable via the title link */
.dm-card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.dm-card__title a:focus-visible { outline: none; }
.dm-card:has(.dm-card__title a:focus-visible) { outline: 2px solid var(--dm-black); outline-offset: 2px; }
.dm-card__headline {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.45;
	min-height: 2.9em; /* always 2 lines so the View Listing buttons align; longer headlines end in … */
	color: var(--dm-dark);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dm-card__spec {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 16px;
	margin: auto -18px 0;
	padding: 14px 18px;
	font-family: var(--dm-label);
	font-size: 14px;
	color: var(--dm-black);
	border-top: 1px solid var(--dm-divider);
}

/* Facts on the single listing */
.dm-facts dt {
	margin: 0;
	font-family: var(--dm-label);
	font-size: 12px;
	font-weight: 400;
	color: var(--dm-muted);
}
.dm-facts dt,
.dm-facts dd { display: block; padding: 0; text-transform: none; }

.dm-listings__empty {
	padding: 48px 24px;
	text-align: center;
	background: var(--dm-light);
	border-radius: var(--dm-radius);
}
.dm-listings__empty p { max-width: 46ch; margin: 0 auto; }

.dm-listings__pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.dm-listings__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	font-weight: 600;
	color: var(--dm-black);
	border: 1px solid var(--dm-divider);
	border-radius: var(--dm-radius);
}
.dm-listings__pagination .page-numbers.current,
.dm-listings__pagination a.page-numbers:hover { background: var(--dm-black); border-color: var(--dm-black); color: var(--dm-white); }

@media (prefers-reduced-motion: reduce) {
	.dm-card, .dm-card__media img { transition: none; }
	.dm-card:hover .dm-card__media img { transform: none; }
}

/* ==========================================================================
   Single listing
   ========================================================================== */
.dm-single { padding-bottom: 80px; }
.dm-single__header { padding-top: 32px; padding-bottom: 24px; }
.dm-single__back {
	display: inline-block;
	margin-bottom: 24px;
	font-size: 14px;
	font-weight: 600;
	color: var(--dm-dark);
}
.dm-single__back:hover { color: var(--dm-black); text-decoration: underline; }
.dm-single__header .dm-badge { display: table; margin-bottom: 16px; }
.dm-single__address { margin: 0 0 4px; font-size: clamp(32px, 5vw, 56px); }
.dm-single__suburb {
	margin: 0;
	font-family: var(--dm-label);
	font-size: 14px;
	color: var(--dm-muted);
}

.dm-single__gallery .listing-details__image { border-radius: var(--dm-radius); }

.dm-single__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 64px;
	padding-top: 40px;
}
@media (max-width: 899px) { .dm-single__body { grid-template-columns: 1fr; gap: 40px; } }

.dm-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	margin: 0 0 40px;
	border-top: 1px solid var(--dm-divider);
	border-bottom: 1px solid var(--dm-divider);
}
.dm-facts > div { padding: 18px 20px 18px 0; }
.dm-facts dd { margin: 4px 0 0; font-size: 22px; font-weight: 600; color: var(--dm-black); }

.dm-single__headline { font-size: 28px; margin: 0 0 20px; }
.dm-single__main .listing-details__description { font-size: 17px; line-height: 1.65; }
.dm-single__main h3 { margin-top: 40px; font-size: 22px; }

.dm-single__aside { position: relative; }
.dm-enquire {
	position: sticky;
	top: 120px;
	padding: 28px;
	background: var(--dm-light);
	border-top: 4px solid var(--dm-teal);
	border-radius: var(--dm-radius);
}
.dm-enquire__label {
	margin: 0;
	font-family: var(--dm-label);
	font-size: 12px;
	color: var(--dm-muted);
}
.dm-enquire__price { margin: 4px 0 24px; font-size: 26px; font-weight: 700; color: var(--dm-black); }
.dm-agents { padding-top: 20px; border-top: 1px solid var(--dm-divider); }
.dm-agent { display: flex; gap: 16px; align-items: center; margin-top: 16px; }
.dm-agent__photo {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--dm-black);
	color: var(--dm-teal);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	font-weight: 700;
}
.dm-agent__photo img { width: 100%; height: 100%; object-fit: cover; }
.dm-agent__name { margin: 0; font-weight: 700; color: var(--dm-black); }
.dm-agent__role { margin: 0 0 4px; font-size: 13px; color: var(--dm-muted); }
.dm-agent__link {
	display: inline-block;
	margin-right: 14px;
	font-size: 15px;
	font-weight: 600;
	color: var(--dm-black);
	text-decoration: underline;
	text-decoration-color: var(--dm-teal);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
.dm-agent__link:hover { color: var(--dm-black); text-decoration-color: var(--dm-black); }

/* ==========================================================================
   Hero mark ([dm_hero_mark]) – photo clipped into the DM logo mark
   ========================================================================== */
.dm-mark { position: relative; width: min(100%, 420px, calc((100vh - 220px) * .674)); margin: 0 0 0 auto; }
.dm-mark svg { display: block; width: 100%; height: auto; overflow: visible; }
.dm-mark__caption {
	position: absolute;
	right: 0;
	bottom: -30px;
	font-family: var(--dm-label);
	font-size: 12px;
	color: var(--dm-muted);
}
.dm-mark__top, .dm-mark__bottom { transition: transform 1.3s var(--dm-ease); }
.dm-mark__img { transition: transform 2.4s var(--dm-ease); transform-origin: 50% 50%; }
@media (prefers-reduced-motion: reduce) { .dm-mark__top, .dm-mark__bottom, .dm-mark__img { transition: none; } }
.dm-mark-loading .dm-mark__top { transform: translate(-3px, -9px); }
.dm-mark-loading .dm-mark__bottom { transform: translate(3px, 9px); }
.dm-mark-loading .dm-mark__img { transform: scale(1.12); }
@media (max-width: 849px) {
	.dm-mark { width: min(62vw, 280px); margin: 0 auto 8px; }
	.dm-mark__caption { display: none; }
}

/* ==========================================================================
   Property search ([dm_property_search])
   ========================================================================== */
.dm-search-wrap { position: relative; z-index: 2; margin-top: -72px; }
.dm-search {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: stretch;
	margin: 0;
	background: var(--dm-white);
	border: 1px solid var(--dm-divider);
	border-radius: var(--dm-radius);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .08);
}
.dm-search__tabs { display: flex; gap: 4px; padding: 8px; border-right: 1px solid var(--dm-divider); }
.dm-search__tab { position: relative; display: flex; margin: 0; cursor: pointer; }
.dm-search__tab input { position: absolute; opacity: 0; pointer-events: none; }
.dm-search__tab span {
	display: flex;
	align-items: center;
	padding: 0 18px;
	font-size: 15px;
	font-weight: 600;
	color: var(--dm-dark);
	border-radius: var(--dm-radius);
}
.dm-search__tab input:checked + span { color: var(--dm-black); background: var(--dm-teal); }
.dm-search__tab input:focus-visible + span { outline: 2px solid var(--dm-black); outline-offset: 2px; }
.dm-search .dm-search__input {
	height: 72px;
	margin: 0;
	padding: 0 22px;
	font-size: 17px;
	color: var(--dm-black);
	background: transparent;
	border: 0;
	box-shadow: none;
}
.dm-search .dm-search__input:focus { box-shadow: inset 0 0 0 2px var(--dm-black); }
.dm-search .dm-search__submit { margin: 8px; min-height: 56px; padding: 0 28px; }
@media (max-width: 849px) {
	.dm-search-wrap { margin-top: -40px; }
	.dm-search { grid-template-columns: 1fr; }
	.dm-search__tabs { border-right: 0; border-bottom: 1px solid var(--dm-divider); }
	.dm-search__tab { flex: 1; }
	.dm-search__tab span { justify-content: center; width: 100%; min-height: 44px; }
	.dm-search .dm-search__input { height: 60px; border-bottom: 1px solid var(--dm-divider); }
	.dm-search .dm-search__submit { margin: 8px; }
}
.dm-search-summary { margin: 0 0 32px; font-size: 17px; }
.dm-search-summary a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--dm-teal); text-underline-offset: 4px; }

/* Featured listings: swipe row on phones */
@media (max-width: 599px) {
	.dm-featured .dm-listings__grid[class] {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 82%;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 8px;
	}
	.dm-featured .dm-card { scroll-snap-align: start; }
}

/* ==========================================================================
   Results ledger ([dm_results])
   ========================================================================== */
.dm-ledger-wrap { overflow-x: auto; }
.dm-ledger { width: 100%; margin: 0; border-collapse: collapse; font-family: var(--dm-label); font-size: 15px; font-variant-numeric: tabular-nums; }
.dm-ledger th {
	padding: 0 16px 14px 0;
	font-size: 12px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	text-align: left;
	color: var(--dm-muted);
	border-bottom: 1px solid var(--dm-black);
}
.dm-ledger td { padding: 22px 16px 22px 0; color: var(--dm-black); border-bottom: 1px solid var(--dm-divider); vertical-align: middle; }
.dm-ledger .dm-ledger__num { text-align: right; }
.dm-ledger .dm-ledger__addr { font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; letter-spacing: -.01em; }
.dm-ledger .dm-ledger__addr a { color: var(--dm-black); text-decoration: none; }
.dm-ledger .dm-ledger__addr a:hover { text-decoration: underline; text-decoration-color: var(--dm-teal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.dm-ledger tbody tr { transition: background-color .2s var(--dm-ease); }
.dm-ledger tbody tr:hover { background: var(--dm-light); }
@media (max-width: 759px) {
	.dm-ledger thead { display: none; }
	.dm-ledger tr { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 6px 14px; padding: 18px 0; border-bottom: 1px solid var(--dm-divider); }
	.dm-ledger td { padding: 0; border: 0; }
	.dm-ledger .dm-ledger__addr { grid-column: 1 / -1; }
}

/* ==========================================================================
   Header + mobile drawer
   ========================================================================== */
/* GTranslate dropdown widget: keep Flatsome's select styling, just size it for the header */
.header-main .gtranslate_wrapper select { width: auto; margin: 0; }

/* Header fits on one line on smaller desktops */
.header-main .header-nav { flex-wrap: nowrap; }
.header-main .nav > li > a { white-space: nowrap; }
.header-main .header-nav-main .nav-icon { display: none; }
@media (max-width: 1279px) {
	.header-main .nav-spacing-large > li { margin: 0 9px; }
	.header-main .nav > li > a { font-size: 14px; }
	.header-main .header-divider { display: none; }
}
/* 850–1199px: collapse the menu into the drawer, keep the appraisal button */
@media (max-width: 1199px) and (min-width: 850px) {
	.header-main .header-nav-main > li.menu-item,
	.header-main .html_topbar_left { display: none; }
	.header-main .header-nav-main .nav-icon { display: list-item; }
}

/* Mobile drawer */
.off-canvas .sidebar-menu { padding: 32px 24px; }
.off-canvas-right .mfp-content,
.off-canvas-left .mfp-content { background-color: var(--dm-white); }
.off-canvas .nav-vertical > li > a {
	font-size: 18px;
	font-weight: 600;
	color: var(--dm-black);
	padding: 12px 0 !important;
}
.nav-vertical > li > ul li a { color: var(--dm-dark); }
.nav-vertical > li > ul li a:hover { color: var(--dm-black); text-decoration: underline; }

/* Placeholder marker for content still to come from the client (remove before launch) */
.dm-tbc { padding: 1px 6px; font-family: var(--dm-label); font-size: .85em; color: #000; background: #FFF6C9; border-radius: 2px; }

/* ==========================================================================
   Home – "What we do" rows (section class "dm-services", row class "dm-svc")
   Whole row is the link; arrow slides and the thumbnail colours in on hover.
   ========================================================================== */
.dm-services .dm-svc { position: relative; }
.dm-services .dm-svc h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.dm-services .dm-svc h3 a span { display: inline-block; transition: transform .3s var(--dm-ease); }
.dm-services .dm-svc:hover h3 a span,
.dm-services .dm-svc:focus-within h3 a span { transform: translateX(10px); }
.dm-services .dm-svc .img img { opacity: .55; transition: opacity .35s var(--dm-ease), filter .35s var(--dm-ease); }
.dm-services .dm-svc:hover .img img,
.dm-services .dm-svc:focus-within .img img { opacity: 1; filter: none; }
@media (prefers-reduced-motion: reduce) {
	.dm-services .dm-svc h3 a span, .dm-services .dm-svc .img img { transition: none; }
}

/* ==========================================================================
   Gravity Forms (Orbital) – compact spacing; size/colours set in the form styles
   ========================================================================== */
.gform-theme--orbital.gform_wrapper .gform_fields { row-gap: 14px; }
.gform-theme--orbital.gform_wrapper .gfield_label { margin-bottom: 4px; }
.gform-theme--orbital.gform_wrapper .gform_footer { margin-top: 18px; padding-top: 0; }

/* ==========================================================================
   Sprint 3 (client feedback, Oct 2026)
   ========================================================================== */

/* Listing card: "View Listing" button + area / asset type row */
.dm-card__btn { align-self: flex-start; margin: 4px 0 18px; pointer-events: none; }
.dm-card:hover .dm-card__btn { color: var(--dm-black); background-color: var(--dm-teal); border-color: var(--dm-teal); }
.dm-card__spec span:last-child { text-align: right; }

/* Labels in the brand sans now read better slightly heavier */
.dm-badge { font-weight: 600; }
.dm-card__suburb { font-weight: 500; }

/* Black header: teal hover/active on menu links */
.header-main.nav-dark .nav > li > a:hover,
.header-main.nav-dark .nav > li.active > a,
.header-main.nav-dark .nav > li.current-menu-ancestor > a { color: var(--dm-teal); }

/* Featured tabs */
.dm-featured-tabs > .nav { margin-bottom: 28px; gap: 8px 32px; }
.dm-featured-tabs > .nav > li > a { font-size: 17px; font-weight: 600; }
.dm-featured-tabs .tab-panels .button.is-underline { margin-top: 28px; }

/* What we do: title turns teal with the arrow */
.dm-services .dm-svc h3 a { transition: color .3s var(--dm-ease); }
.dm-services .dm-svc:hover h3 a,
.dm-services .dm-svc:focus-within h3 a { color: var(--dm-teal); }

/* Team on black: keep social icons visible on hover (overrides global !important) */
.dark .social-icons .button.icon:hover { color: var(--dm-black) !important; background-color: var(--dm-teal) !important; border-color: var(--dm-teal) !important; }
@media (max-width: 549px) {
	.dm-featured-tabs > .nav { gap: 4px 16px; flex-wrap: nowrap; }
	.dm-featured-tabs > .nav > li > a { font-size: 14px; }
}

/* ==========================================================================
   Single listing: video (Flatsome .open-video lightbox, YouTube/Vimeo)
   ========================================================================== */
.dm-single__gallery { position: relative; }
.dm-video-btn {
	position: absolute;
	top: 20px;
	right: 36px; /* top-right of the main image, clear of the arrows and thumbnail strip */
	z-index: 5;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px 12px 14px;
	font-weight: 600;
	color: var(--dm-black);
	background: var(--dm-teal);
	border-radius: 99px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
	transition: transform .25s var(--dm-ease), background-color .25s var(--dm-ease);
}
.dm-video-btn:hover { color: var(--dm-black); background: var(--dm-white); transform: translateY(-2px); }
.dm-video-btn__icon,
.dm-video__play { position: relative; display: inline-block; border-radius: 50%; background: var(--dm-black); }
.dm-video-btn__icon { width: 28px; height: 28px; }
.dm-video-btn__icon::after,
.dm-video__play::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-color: transparent transparent transparent var(--dm-teal);
}
.dm-video-btn__icon::after { border-width: 6px 0 6px 10px; }

.dm-video { margin: 40px 0; }
.dm-video__preview { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--dm-black); border-radius: var(--dm-radius); }
.dm-video__preview img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .5s var(--dm-ease), opacity .3s; }
.dm-video__play { position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%); transition: transform .3s var(--dm-ease); }
.dm-video__play::after { border-width: 13px 0 13px 21px; }
.dm-video__preview:hover img { transform: scale(1.03); opacity: 1; }
.dm-video__preview:hover .dm-video__play { transform: translate(-50%, -50%) scale(1.08); }
@media (max-width: 849px) {
	.dm-video-btn { top: 12px; right: 24px; padding: 10px 16px 10px 10px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.dm-video-btn, .dm-video__preview img, .dm-video__play { transition: none; }
}

/* ==========================================================================
   Single listing: round 3 (Stella, 22 Oct 2026)
   ========================================================================== */
/* Black band for header + gallery, teal divider under the main menu */
.dm-single__top {
	background: var(--dm-black);
	border-top: 4px solid var(--dm-teal);
	padding-bottom: 32px;
}
.dm-single__top .dm-single__address { color: var(--dm-white); }
.dm-single__top .dm-single__suburb { color: rgba(255, 255, 255, .7); }
.dm-single__top .dm-single__back { color: rgba(255, 255, 255, .8); }
.dm-single__top .dm-single__back:hover { color: var(--dm-teal); }

/* Main image fills the container width (3:2, REX's native ratio) */
.dm-single__gallery .listing-details__image {
	height: auto !important; /* plugin sets a fixed 660/400/200px height with !important */
	aspect-ratio: 3 / 2;
	background-size: cover;
}
/* Thumbnails 3:2 instead of square */
.dm-single__gallery .listing-details__thumb {
	height: auto !important; /* plugin sets 160/80px with !important */
	aspect-ratio: 3 / 2;
	border-radius: 2px;
}
.dm-single__gallery .slick-arrow { margin: 0; } /* Flatsome gives <button> a right margin – kept the next arrow off the image edge */
.dm-single__gallery .listing-details__carousel { margin-bottom: 0; }
.dm-single__gallery .listing-details__thumb::after { background-color: rgba(0, 0, 0, .35); }
.dm-single__gallery .listing-details__thumb.slick-current::after,
.dm-single__gallery .listing-details__thumb:hover::after { background-color: transparent; }

/* Tighter vertical rhythm between sections */
.dm-single__body { padding-top: 32px; }
.dm-single__main h3 { margin-top: 28px; margin-bottom: 12px; }
.dm-single__main .listing-details__floorplans img { display: block; margin: 0 auto; }
/* Plugin sections carry 20px padding (indents the description, pads floor plans/map) */
.dm-single__main > [class^="listing-details__"] { padding: 0; }
.dm-single__main .listing-details__map p { margin-bottom: 12px; }
.dm-single { padding-bottom: 48px; }

/* Agent box + the two CTA buttons (sticky together) */
.dm-single__sticky { position: sticky; top: 120px; }
.dm-single__sticky .dm-enquire { position: static; }
.dm-agents { padding-top: 4px; }
.dm-enquire__actions { display: grid; gap: 12px; margin-top: 16px; }
.dm-enquire__actions .button.primary.dm-enquire__btn { margin: 0; color: var(--dm-black); background-color: var(--dm-teal); border-color: var(--dm-teal); }
.dm-enquire__actions .button.primary.dm-enquire__btn:hover { color: var(--dm-white); background-color: var(--dm-black); border-color: var(--dm-black); }
.dm-enquiry__title { margin: 0 0 16px; font-size: 22px; }

/* Similar properties */
.dm-similar { padding-top: 56px; }
.dm-similar__title { margin: 0 0 24px; font-size: 28px; }
@media (max-width: 899px) {
	.dm-single__sticky { position: static; }
}
