/* Full-bleed profile banner, independent of theme content widths. */
:root {
	--dm-primary: var(--wp--preset--color--primary, #087f5b);
	--dm-secondary: var(--wp--preset--color--secondary, #17222d);
	--dm-surface: #ffffff;
	--dm-surface-soft: #f6f8f7;
	--dm-line: #dfe6e3;
	--dm-text-muted: #64737b;
}

.dm-single-shell {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.dm-profile {
	width: 100%;
	max-width: none;
	color: var(--dm-secondary);
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.65;
}

.dm-profile *,
.dm-profile *::before,
.dm-profile *::after { box-sizing: border-box; }

.dm-profile :where(h1, h2, h3, h4, p, a, button, input, textarea, select, label, small, strong, dt, dd) {
	font-family: inherit;
}

.dm-profile :where(button, input, textarea, select) {
	font-size: 1rem;
	line-height: 1.4;
}

.dm-profile-gallery {
	left: 50%;
	width: 100vw;
	max-width: 100vw;
	margin-left: -50vw;
}

.dm-profile-actions {
	position: relative;
	left: 50%;
	width: 100vw;
	max-width: 100vw;
	margin-left: -50vw;
	border-top: 0;
	border-right: 0;
	border-bottom: 1px solid var(--dm-line);
	border-left: 0;
	background: #fff;
}

.dm-profile-identity {
	display: flex;
	align-items: flex-end;
	gap: 22px;
}

.dm-profile-logo {
	flex: 0 0 104px;
	width: 104px;
	height: 104px;
	overflow: hidden;
	border: 4px solid rgba(255, 255, 255, .95);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}

.dm-profile-logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.dm-profile-heading { min-width: 0; }
.dm-profile-heading > p { margin: 7px 0 0; }
.dm-profile-heading h1 {
	margin: .3rem 0 .55rem;
	font-family: inherit;
	font-size: clamp(2.35rem, 4.2vw, 4rem);
	font-weight: 650;
	line-height: 1.04;
	letter-spacing: -.035em;
	text-wrap: balance;
}

/* Consistent rhythm and visual hierarchy. */
.dm-profile-inner {
	position: relative;
	left: 50%;
	width: min(1240px, calc(100vw - 56px));
	max-width: none;
	margin-right: 0;
	margin-left: 0;
	transform: translateX(-50%);
}
.dm-profile-layout {
	grid-template-columns: minmax(0, 1fr) minmax(320px, 370px);
	gap: clamp(42px, 5vw, 68px);
	padding-block: 56px 80px;
	background: #fff;
	box-shadow: 0 0 0 100vmax #fff;
	clip-path: inset(0 -100vmax);
}
.dm-profile-section { margin-bottom: 44px; padding-bottom: 44px; }
.dm-profile-section h2 {
	margin: 0 0 20px;
	color: var(--dm-secondary);
	font-family: inherit;
	font-size: clamp(1.55rem, 2.2vw, 1.9rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.02em;
}
.dm-profile-section h3 {
	margin: 0 0 .35rem;
	color: var(--dm-secondary);
	font-family: inherit;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.35;
}
.dm-profile-section p:last-child { margin-bottom: 0; }
.dm-profile-section .dm-eyebrow,
.dm-contact-card .dm-eyebrow {
	margin: 0 0 .4rem;
	font-size: .72rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .11em;
}
.dm-intro .dm-lead-copy { max-width: 760px; margin: 12px 0 20px; font-size: 1.1rem; line-height: 1.7; }
.dm-description > :first-child { margin-top: 0; }
.dm-description > :last-child { margin-bottom: 0; }
.dm-description { font-size: 1rem; line-height: 1.75; }
.dm-profile-main { min-width: 0; }
.dm-profile-main > .dm-profile-section:first-child { padding-top: 0; }
.dm-services { display: grid; gap: 12px; }
.dm-services article {
	position: relative;
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	min-height: 90px;
	padding: 18px 20px;
	overflow: hidden;
	border: 1px solid var(--dm-line);
	border-radius: 13px;
	background: var(--dm-surface);
	box-shadow: 0 3px 13px rgba(23, 34, 45, .025);
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.dm-services article::before {
	display: grid;
	width: 46px;
	height: 46px;
	place-items: center;
	border-radius: 12px;
	background: color-mix(in srgb, var(--dm-primary) 10%, white);
	color: var(--dm-primary);
	content: "✓";
	font-size: 1rem;
	font-weight: 700;
}
.dm-services article::after {
	position: absolute;
	inset: 0 auto 0 0;
	width: 3px;
	background: var(--dm-primary);
	content: "";
	opacity: 0;
	transition: opacity .18s ease;
}
.dm-services article:hover {
	border-color: color-mix(in srgb, var(--dm-primary) 28%, var(--dm-line));
	box-shadow: 0 10px 28px rgba(23, 34, 45, .075);
	transform: translateY(-1px);
}
.dm-services article:hover::after { opacity: 1; }
.dm-services article h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.dm-services article p { margin: .2rem 0 0; color: var(--dm-text-muted); font-size: .88rem; line-height: 1.5; }
.dm-services article > strong {
	padding: 7px 11px;
	border-radius: 8px;
	background: var(--dm-surface-soft);
	color: var(--dm-secondary);
	font-size: .88rem;
	font-weight: 650;
	white-space: nowrap;
}
.dm-location-hours { align-items: start; gap: 34px; }
.dm-location-hours { grid-template-columns: minmax(300px, 1.1fr) minmax(235px, .9fr); }
.dm-map { border-color: var(--dm-line); box-shadow: 0 8px 24px rgba(23, 34, 45, .07); }
.dm-map iframe { height: 300px; }
.dm-review { padding-block: 26px; }
.dm-review-summary { padding: 28px; }
.dm-review-form {
	position: relative;
	margin-top: 32px;
	padding: 32px;
	overflow: hidden;
	border: 1px solid var(--dm-line);
	border-radius: 16px;
	background: linear-gradient(145deg, #fff 0%, var(--dm-surface-soft) 100%);
	box-shadow: 0 12px 34px rgba(23, 34, 45, .06);
}
.dm-review-form::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: var(--dm-primary);
	content: "";
}
.dm-review-form h3 {
	margin: 0 0 22px;
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: -.015em;
}
.dm-review-form .dm-fields {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}
.dm-review-form .dm-wide { grid-column: auto; }
.dm-review-form label {
	display: grid;
	gap: 7px;
	width: 100%;
	margin: 0;
}
.dm-review-form select { width: min(100%, 240px); }
.dm-review-form .dm-rating-select-fallback {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
.dm-star-picker {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
}
.dm-star-buttons {
	display: inline-flex;
	align-items: center;
	gap: 1px;
	padding: 6px 9px;
	border: 1px solid var(--dm-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 3px 12px rgba(23, 34, 45, .045);
}
.dm-review-form .dm-star-picker button {
	display: grid;
	width: 38px;
	height: 38px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #c8d0cd;
	font-family: inherit;
	font-size: 1.65rem;
	line-height: 1;
	cursor: pointer;
	transition: transform .15s ease, color .15s ease, background .15s ease;
}
.dm-review-form .dm-star-picker button:hover,
.dm-review-form .dm-star-picker button:focus-visible {
	outline: none;
	background: #fff7e5;
	transform: scale(1.12);
}
.dm-review-form .dm-star-picker button.is-selected,
.dm-review-form .dm-star-picker button.is-preview {
	background: transparent;
	color: #ffb423;
}
.dm-star-status {
	margin-left: 0;
	color: var(--dm-text-muted);
	font-size: .78rem;
	font-weight: 500;
	white-space: nowrap;
}
.dm-review-form input,
.dm-review-form textarea { width: 100%; }
.dm-review-form textarea { min-height: 150px; }
.dm-review-form > button {
	min-width: 160px;
	min-height: 46px;
	margin-top: 20px;
	padding: 11px 20px;
	border: 0;
	border-radius: 9px;
	font-family: inherit;
	font-size: .92rem;
	font-weight: 750;
	cursor: pointer;
}
.dm-contact-card { padding: 28px; }
.dm-contact-links > a,
.dm-contact-address { padding: 17px; }
.dm-sidebar-panel { padding: 22px; }
.dm-contact-card h2 {
	margin: .25rem 0 .5rem;
	font-family: inherit;
	font-size: 1.45rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.02em;
}
.dm-contact-card > p:not(.dm-eyebrow) { margin: 0 0 1.1rem; font-size: .9rem; line-height: 1.55; }
.dm-contact-card form { gap: 13px; }
.dm-contact-card label,
.dm-review-form label { font-size: .78rem; font-weight: 700; line-height: 1.4; }
.dm-contact-card input,
.dm-contact-card textarea,
.dm-review-form input,
.dm-review-form textarea,
.dm-review-form select {
	min-height: 46px;
	padding: .72rem .8rem;
	border-radius: 9px;
	font-family: inherit;
	font-size: .94rem;
}
.dm-contact-card textarea,
.dm-review-form textarea { min-height: 112px; resize: vertical; }
.dm-profile-actions a,
.dm-profile-actions button {
	min-height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
	font-size: .86rem;
	font-weight: 600;
	line-height: 1.2;
}
.dm-profile-actions .dm-profile-inner {
	justify-content: flex-start;
	padding-block: 14px;
}
.dm-profile-actions a,
.dm-profile-actions button { padding-inline: 16px; }
.dm-contact-links small,
.dm-contact-address small { font-size: .7rem; line-height: 1.3; }
.dm-contact-links strong,
.dm-contact-address strong { font-size: .88rem; line-height: 1.4; }
.dm-review > strong { font-size: .92rem; }
.dm-review h4 { margin: .5rem 0 .35rem; font-family: inherit; font-size: 1.05rem; line-height: 1.35; }
.dm-review > p { margin: 0; color: var(--dm-text-muted); font-size: .96rem; line-height: 1.7; }
.dm-rating-bars { font-size: .78rem; }
.dm-stars {
	display: inline-block;
	background: linear-gradient(90deg, #ffb423 var(--dm-rating, 0%), #cfd7d4 var(--dm-rating, 0%));
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	letter-spacing: .08em;
}
.dm-similar-grid a strong { font-size: .98rem; line-height: 1.35; }
.dm-similar-grid a small { font-size: .8rem; line-height: 1.5; }

/* Related listing image cards. */
.dm-similar-grid a {
  display: block;
  overflow: hidden;
  padding: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(20, 45, 37, .07);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.dm-similar-grid a:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--dm-primary, #087f5b) 45%, #dce4e8);
  box-shadow: 0 12px 30px rgba(20, 45, 37, .13);
}
.dm-similar-image {
  display: block;
  height: 150px;
  overflow: hidden;
  background: #e7efec;
}
.dm-similar-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.dm-similar-grid a:hover .dm-similar-image img { transform: scale(1.04); }
.dm-similar-image-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(135deg, var(--dm-primary, #087f5b), var(--dm-secondary, #17222d));
  color: #fff;
  font-size: 52px;
  font-weight: 850;
}
.dm-similar-content { display: grid; gap: 7px; padding: 16px 17px 18px; }
.dm-similar-content strong { color: var(--dm-secondary, #17222d); }
.dm-similar-content .dm-similar-rating { color: #a56b00; font-size: 13px; font-weight: 700; }
@media (max-width: 620px) { .dm-similar-image { height: 190px; } }
.dm-contact-card form button,
.dm-review-form > button,
.dm-sidebar-panel button,
.dm-profile .dm-action-primary,
.dm-profile .dm-action {
	font-weight: 600;
}
.dm-profile-sidebar { padding-top: 0; }
.dm-contact-card,
.dm-contact-links,
.dm-sidebar-panel { border-color: var(--dm-line); }
.dm-contact-card { box-shadow: 0 18px 50px rgba(23, 34, 45, .1); }
.dm-contact-links,
.dm-sidebar-panel { box-shadow: 0 7px 22px rgba(23, 34, 45, .045); }
.dm-hours-list > div { min-height: 38px; align-items: center; }
.dm-hours-list dt,
.dm-hours-list dd { font-size: .86rem; line-height: 1.35; }
.dm-review-summary { border: 1px solid var(--dm-line); background: var(--dm-surface-soft); }

/* Global directory palette. */
.dm-profile a:not(.dm-action-primary),
.dm-profile-section .dm-eyebrow,
.dm-contact-card .dm-eyebrow,
.dm-location-hours address a,
.dm-map > a,
.dm-socials a { color: var(--dm-primary); }
.dm-profile-actions .dm-action-primary,
.dm-contact-card form button,
.dm-review-form button,
.dm-sidebar-panel button { border-color: var(--dm-primary); background: var(--dm-primary); }
.dm-verified,
.dm-chips span,
.dm-contact-links > a > span,
.dm-contact-address > span { color: var(--dm-primary); background: color-mix(in srgb, var(--dm-primary) 10%, white); }
.dm-profile-actions a:hover,
.dm-profile-actions button:hover { border-color: var(--dm-primary); color: var(--dm-primary); }
.dm-profile-actions .dm-action-primary:hover,
.dm-contact-card form button:hover,
.dm-review-form button:hover,
.dm-sidebar-panel button:hover { filter: brightness(.92); color: #fff; }
.dm-contact-card input:focus,
.dm-contact-card textarea:focus,
.dm-review-form input:focus,
.dm-review-form textarea:focus,
.dm-review-form select:focus { border-color: var(--dm-primary); outline: 3px solid color-mix(in srgb, var(--dm-primary) 15%, transparent); }

/* Improve legibility when cover artwork already contains text. */
.dm-profile-overlay {
	background: linear-gradient(180deg, rgba(5, 15, 13, .04) 22%, rgba(5, 15, 13, .42) 58%, rgba(5, 15, 13, .94) 100%);
}
.dm-profile-title { padding-bottom: 30px; }
.dm-profile-identity { max-width: 980px; }
.dm-profile-heading { padding: 5px 0; text-shadow: 0 2px 16px rgba(0, 0, 0, .38); }
.dm-profile-heading .dm-verified { text-shadow: none; }

/* Keep the sidebar stack in normal document flow. */
.dm-profile-sidebar {
	position: relative;
	min-width: 0;
	align-self: stretch;
}

.dm-sidebar-sticky {
	position: static;
	top: auto;
	max-height: none;
	padding-right: 0;
	overflow: visible;
}

.dm-sidebar-sticky .dm-contact-card {
	position: static;
	top: auto;
}

.dm-location-hours address a {
	display: inline-flex;
	align-items: flex-start;
	gap: 7px;
	color: #087f5b;
	text-decoration: none;
	font-weight: 700;
}

.dm-location-hours address a:hover,
.dm-contact-address:hover strong {
	text-decoration: underline;
}

/* Location section shows only the map; directions and address remain in the contact rail. */
.dm-location-hours .dm-map > a,
.dm-location-hours address {
	display: none;
}

@media (max-width: 900px) {
	.dm-profile-inner { width: min(100vw - 36px, 800px); }
	.dm-profile-layout { grid-template-columns: 1fr; gap: 34px; padding-block: 42px 60px; }
	.dm-profile-sidebar { width: 100%; }
	.dm-sidebar-sticky {
		position: static;
		display: grid;
		max-height: none;
		padding-right: 0;
		overflow: visible;
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}

	.dm-sidebar-sticky .dm-contact-card { grid-row: span 2; }
	.dm-sidebar-sticky .dm-contact-links,
	.dm-sidebar-sticky .dm-sidebar-panel { margin-top: 0; }
}

@media (max-width: 620px) {
	.dm-profile-inner { width: calc(100vw - 28px); }
	.dm-profile-identity { align-items: flex-start; gap: 14px; }
	.dm-profile-logo { flex-basis: 74px; width: 74px; height: 74px; border-radius: 13px; }
	.dm-profile-heading h1 { margin-top: 5px; font-size: clamp(1.85rem, 9vw, 2.35rem); }
	.dm-profile-rating { flex-wrap: wrap; gap: 6px; font-size: .84rem; }
	.dm-profile-heading > p { font-size: .85rem; line-height: 1.45; }
	.dm-open-line { flex-wrap: wrap; font-size: .78rem; }
	.dm-profile-layout { padding-block: 32px 48px; }
	.dm-profile-section { margin-bottom: 32px; padding-bottom: 32px; }
	.dm-profile-section h2 { font-size: 1.5rem; }
	.dm-intro .dm-lead-copy { font-size: 1rem; }
	.dm-services article { grid-template-columns: 40px minmax(0, 1fr); align-items: flex-start; gap: 12px; padding: 17px; }
	.dm-services article::before { width: 40px; height: 40px; }
	.dm-services article > strong { grid-column: 2; justify-self: start; }
	.dm-review-form,
	.dm-review-summary,
	.dm-contact-card { padding: 20px; }
	.dm-profile-actions .dm-profile-inner { width: 100%; padding-inline: 14px; }
	.dm-profile-actions a,
	.dm-profile-actions button { min-height: 40px; padding: 9px 12px; font-size: .8rem; }
	.dm-review-form { padding: 24px 20px; }
	.dm-review-form select,
	.dm-review-form > button { width: 100%; }
	.dm-star-picker { flex-wrap: wrap; }
	.dm-review-form .dm-star-picker button { width: 36px; height: 36px; }
	.dm-star-status { flex-basis: 100%; margin: 3px 0 0; }
	.dm-map iframe { height: 250px; }
	.dm-sidebar-sticky { display: block; }
	.dm-sidebar-sticky .dm-contact-links,
	.dm-sidebar-sticky .dm-sidebar-panel { margin-top: 14px; }
}
