/*
 * Minimal layout shell — theme will extend.
 */
.cmh-listing-shell {
	--cmh-header-fallback: #64748b;
	--cmh-accent-link: #09716a;
	--cmh-button-bg: #424242;
	--cmh-button-fg: #ffffff;
	max-width: 52rem;
	margin: 1.5rem auto;
	padding: 0 1rem;
}

/* Neutral / white-surfaces inline links inside the listing shell. */
.cmh-listing-shell .cmh-entry-content a,
.cmh-listing-shell .cmh-block:not(.cmh-block-contact-form) .cmh-contact-strip__link,
.cmh-listing-shell .cmh-address a,
.cmh-listing-shell .cmh-checked-list__txt a,
.cmh-listing-shell .cmh-review-card__body a {
	color: var(--cmh-accent-link);
	text-decoration-thickness: 1px;
}
.cmh-listing-shell .cmh-entry-content a:hover,
.cmh-listing-shell .cmh-block:not(.cmh-block-contact-form) .cmh-contact-strip__link:hover,
.cmh-listing-shell .cmh-address a:hover,
.cmh-listing-shell .cmh-checked-list__txt a:hover,
.cmh-listing-shell .cmh-review-card__body a:hover {
	color: #065f59;
	text-decoration-thickness: 2px;
}

/* Listing actions: teal primary buttons only (omit toolbar / carousel / dialogs). */
.cmh-listing-shell form.cmh-review-form button[type="submit"],
.cmh-listing-shell form.cmh-listing-contact-form button[type="submit"] {
	background-color: var(--cmh-button-bg) !important;
	color: var(--cmh-button-fg) !important;
	border-color: var(--cmh-button-bg) !important;
	box-shadow: none;
	font-weight: 600;
	padding: 0.45rem 1.05rem;
	border-radius: 6px;
}
.cmh-listing-shell form.cmh-review-form button[type="submit"]:hover,
.cmh-listing-shell form.cmh-listing-contact-form button[type="submit"]:hover {
	background-color: #2f2f2f !important;
	border-color: #2f2f2f !important;
	filter: none;
	color: var(--cmh-button-fg) !important;
}

/* CPT single biography / theme entry body — aligns width with Croatia Med shell columns (themes like GeneratePress). */
.cmh-listing-shell.cmh-listing-shell--theme-body {
	margin-top: 0;
	margin-bottom: 0;
	max-width: 52rem;
}

/* Two-column single listing: main + aside (natural page scroll — no inset sidebar scrollbar; filter `cmh_listing_sidebar_block_ids`). */
.cmh-listing-shell--two-col {
	max-width: 72rem;
}

/* Plugin-owned single layout: widen slightly when theme sidebar is irrelevant. */
.cmh-listing-shell--plugin.cmh-listing-shell--two-col {
	max-width: min(100%, 78rem);
}

.cmh-listing-shell__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
	gap: 2rem;
	align-items: start;
}

.cmh-listing-shell__main .cmh-block:first-child {
	margin-top: 0;
}

/* No sticky/max-height sidebar: avoids nested scroll + embedded video conflicts on narrower desktop viewports */
.cmh-listing-shell__aside {
	padding: 0.25rem 0 1rem;
}

/*
 * Aside “card“ feel without changing block markup — matches listing card language.
 */
.cmh-listing-shell__aside .cmh-block {
	margin: 0 0 1.25rem;
	padding: 1rem 1.1rem;
	border-radius: 10px;
	border: 1px solid rgba(15, 23, 42, 0.09);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
	background: #fff;
}

.cmh-listing-shell__aside .cmh-block:last-child {
	margin-bottom: 0;
}

/* Tighter stack for contact-ish aside blocks — consecutive cards visually merge */
.cmh-listing-shell__aside .cmh-block--aside-contact + .cmh-block--aside-contact {
	margin-top: -1px;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	box-shadow: none;
}

@media (max-width: 959px) {
	.cmh-listing-shell__grid {
		display: block;
	}

	.cmh-listing-shell__aside {
		margin-top: 2rem;
		border-top: 1px solid rgba(15, 23, 42, 0.08);
		padding-top: 2rem;
	}
}

/* Main column spacing; aside uses tighter rules above (same specificity avoided). */
.cmh-listing-shell:not(.cmh-listing-shell--two-col) .cmh-block {
	margin: 2rem 0;
}

.cmh-listing-shell--two-col .cmh-listing-shell__main .cmh-block {
	margin: 2rem 0;
}

.cmh-listing-shell .cmh-entry-content {
	line-height: 1.65;
	font-size: 1rem;
}

.cmh-listing-shell .cmh-listing-title {
	margin: 0 0 0.25rem;
	font-size: 1.75rem;
	line-height: 1.2;
}

.cmh-listing-shell .cmh-block__heading {
	margin: 0 0 0.75rem;
	font-size: 1.125rem;
}

.cmh-listing-shell .cmh-block__heading--taxonomy {
	font-size: 1.45rem;
	font-weight: 600;
	line-height: 1.25;
	color: #0f172a;
}

.cmh-listing-shell .cmh-block--compact {
	margin: 1rem 0;
	font-size: 0.95rem;
	line-height: 1.55;
}

.cmh-listing-shell .cmh-block--compact .cmh-block__heading {
	margin-bottom: 0.35rem;
	font-size: 1rem;
}

.cmh-listing-shell .cmh-block--compact .cmh-block__heading--taxonomy {
	font-size: 1.38rem;
	font-weight: 600;
	line-height: 1.28;
	color: #0f172a;
}

.cmh-listing-shell .cmh-block--highlighted {
	padding: 1rem 1.1rem;
	border-radius: 6px;
	border: 1px solid rgba( 15, 23, 42, 0.12 );
	background: rgba( 15, 23, 42, 0.04 );
}

/* B13 / B18 / B19 — brand media (logo, portrait, hero). */
.cmh-media-brand {
	display: flex;
	justify-content: center;
	align-items: center;
}
.cmh-media-logo .cmh-listing-logo__img,
img.cmh-sidebar-brand-img.cmh-listing-logo__img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 200px;
	object-fit: contain;
}
.cmh-listing-shell__aside .cmh-media-brand--listing-logo {
	width: 100%;
}
.cmh-listing-shell__aside .cmh-media-portrait--listing-ring {
	justify-content: flex-start;
	margin-inline: 0;
	display: flex;
}
.cmh-media-portrait.cmh-media-portrait--listing-ring .cmh-listing-portrait__img,
.cmh-media-portrait.cmh-media-portrait--listing-ring .cmh-sidebar-brand-img {
	display: block;
	width: 250px;
	height: 250px;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	object-fit: cover;
	border: 1.5px solid #fff;
	box-shadow: 0 6px 28px rgba(15, 23, 42, 0.13);
	margin: 0;
}
.cmh-listing-hero {
	margin: 0;
	line-height: 0;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(15, 23, 42, 0.09);
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
	background: #f1f5f9;
	height: 250px;
	box-sizing: border-box;
}
.cmh-listing-hero .cmh-listing-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
/* Full-width banner before theme body (single CPT auto-append): same column width shell as listing. */
.cmh-listing-hero-strip.cmh-listing-shell {
	max-width: min(100%, 78rem);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
	box-sizing: border-box;
}
.cmh-listing-hero-strip:not(.cmh-listing-hero-strip--with-portrait) .cmh-listing-hero {
	border-radius: 10px;
}
.cmh-listing-hero-strip--with-portrait {
	--cmh-hero-pair-height: 250px;
}
/* Banner + portrait on single CPT tops (portrait first = left on LTR). */
.cmh-hero-banner-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 1.25rem;
}
.cmh-hero-banner-row--with-portrait {
	align-items: center;
}
.cmh-hero-banner-row__banner {
	flex: 1 1 240px;
	min-width: 0;
	display: flex;
	align-items: stretch;
}
.cmh-hero-banner-row--with-portrait .cmh-hero-banner-row__banner .cmh-listing-hero {
	flex: 1;
	min-height: var(--cmh-hero-pair-height);
	max-height: var(--cmh-hero-pair-height);
	display: flex;
	align-items: stretch;
}
.cmh-hero-banner-row__portrait {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}
.cmh-media-portrait--hero {
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}
.cmh-media-portrait--hero .cmh-listing-portrait__img--hero {
	display: block;
	width: var(--cmh-hero-pair-height);
	height: var(--cmh-hero-pair-height);
	max-width: 100%;
	flex: 0 0 auto;
	border-radius: 50%;
	object-fit: cover;
	aspect-ratio: 1 / 1;
	border: 1.5px solid #fff;
	box-shadow: 0 6px 28px rgba(15, 23, 42, 0.13);
}

@media (max-width: 959px) {
	.cmh-media-portrait--hero .cmh-listing-portrait__img--hero {
		margin-inline: auto;
	}
}

.cmh-listing-shell__main .cmh-listing-theme-entry {
	margin: 0 0 2rem;
	font-size: 1rem;
	line-height: 1.65;
}
.cmh-listing-shell__main .cmh-listing-theme-entry > :first-child {
	margin-top: 0;
}
.cmh-listing-shell__main .cmh-listing-theme-entry > :last-child {
	margin-bottom: 0;
}

.cmh-block-contact-form textarea.cmh-input {
	min-height: 7rem;
}
.cmh-listing-shell:not(.cmh-listing-hero-strip--with-portrait) .cmh-listing-hero__img,
.cmh-listing-hero-strip:not(.cmh-listing-hero-strip--with-portrait) .cmh-listing-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 250px;
	object-fit: cover;
	object-position: center;
}

/* B17 / B21 — embeds responsive inside plugin shell */
.cmh-fluid-embed iframe,
.cmh-contact-embed iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	border: 0;
	border-radius: 8px;
}
.cmh-youtube {
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid rgba(15, 23, 42, 0.1);
	background: #0f172a;
	line-height: 0;
}
.cmh-youtube .wp-block-embed__wrapper,
.cmh-youtube > .embed-youtube {
	width: 100%;
}
.cmh-youtube iframe.cmh-youtube__iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	max-height: none;
}
.cmh-youtube iframe:not(.cmh-youtube__iframe),
.cmh-youtube embed,
.cmh-youtube object {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	max-width: 100%;
	border: 0;
}
.cmh-promo-slot :where(img, video, iframe) {
	max-width: 100%;
	height: auto;
}

/* B12 — OpenStreetMap map (Leaflet). Fixed 4:3 frame avoids tall grey gaps in sidebar. */
.cmh-map-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	max-height: min(280px, 52vw);
	overflow: hidden;
	border-radius: 10px;
	border: 1px solid rgba(15, 23, 42, 0.09);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
	background: #f8fafc;
}
.cmh-map-canvas.cmh-map,
.cmh-map-canvas.leaflet-container {
	width: 100%;
	height: 100%;
	min-height: 0;
	box-sizing: border-box;
	font-family: inherit;
}
.cmh-map-canvas .leaflet-tile,
.cmh-map-canvas .leaflet-marker-icon,
.cmh-map-canvas .leaflet-marker-shadow {
	max-width: none !important;
}
.cmh-map-consent-note {
	font-size: 0.8125rem;
	margin: 0.5rem 0 0;
	color: rgba(15, 23, 42, 0.75);
}

.cmh-map-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem 1rem;
	margin-top: 0.65rem;
	padding: 0.55rem 0;
	font-size: 0.92rem;
}

.cmh-map-footer__addr {
	color: #334155;
	flex: 1 1 12rem;
}

.cmh-map-directions {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: #0693e3;
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
}

.cmh-map-directions:hover,
.cmh-map-directions:focus {
	text-decoration: underline;
}

.cmh-map-directions__ico {
	font-size: 0.95em;
	line-height: 1;
}

/* Map popup rows: see listing-map.css (loaded with Leaflet on all map views). */

/* B20 — image gallery grid (+ lightbox via listing-gallery.js). */
.cmh-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(148px, 100%), 1fr));
	gap: 0.85rem;
}
.cmh-gallery__figure {
	display: flex;
	flex-direction: column;
	margin: 0;
	line-height: 1.35;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
	background: #fff;
}
.cmh-gallery__link {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: linear-gradient(180deg, #f8fafc, #eef2f6);
	outline-offset: 2px;
}
.cmh-gallery__link:focus-visible {
	outline: 2px solid #2271b1;
}

.cmh-gallery__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}
.cmh-gallery__caption {
	margin: 0;
	padding: 0.4rem 0.55rem 0.55rem;
	font-size: 0.78125rem;
	line-height: 1.35;
	color: rgba(15, 23, 42, 0.78);
	text-align: center;
	word-break: break-word;
	flex-shrink: 0;
}

.cmh-gallery__link.cmh-gallery__link--solo {
	cursor: default;
}

dialog.cmh-gallery-dlg {
	padding: 0;
	border: none;
	background: transparent;
	max-width: min(94vw, 1100px);
	width: auto;
	box-sizing: border-box;
	box-shadow: none;
	overflow: visible;
}
dialog.cmh-gallery-dlg::backdrop {
	background: rgba(15, 23, 42, 0.78);
	cursor: zoom-out;
}
.cmh-gallery-dlg__box {
	position: relative;
	padding: 0;
	margin: 0;
	line-height: 0;
	max-height: calc(100vh - 4rem);
}
.cmh-gallery-dlg__img {
	display: block;
	max-width: min(1100px, 94vw);
	max-height: calc(100vh - 4rem);
	width: auto;
	height: auto;
	margin: 0 auto;
	border-radius: 8px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
	box-sizing: border-box;
	object-fit: contain;
}
.cmh-gallery-dlg__close {
	position: absolute;
	right: -0.5rem;
	top: -0.5rem;
	z-index: 2;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	font-size: 1.65rem;
	line-height: 1;
	cursor: pointer;
	color: #0f172a;
	background: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	transition: transform 0.12s ease, background 0.12s ease;
}
@media (prefers-reduced-motion: reduce) {
	.cmh-gallery-dlg__close {
		transition: none;
	}
}

.cmh-gallery-dlg__close:hover,
.cmh-gallery-dlg__close:focus-visible {
	transform: scale(1.06);
	background: #f8fafc;
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

/* B25 — reviews + moderation on admin. */
.cmh-review-card {
	padding: 0.85rem 1rem;
	margin: 0 0 1rem;
	border-radius: 8px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	background: #f9fafb;
}
.cmh-review-card__hdr {
	margin: 0 0 0.35rem;
}
.cmh-review-card__stars {
	letter-spacing: 0.02em;
}
.cmh-review-card__body {
	margin: 0;
	line-height: 1.55;
	word-break: break-word;
	font-size: 0.975rem;
}
.cmh-review-empty {
	margin: 0 0 1rem;
}
.cmh-review-form__fieldset {
	position: relative;
	margin: 1.25rem 0 0;
	padding: 1rem;
	border: 1px solid rgba(15, 23, 42, 0.1);
	border-radius: 8px;
}
.cmh-review-label {
	display: block;
	margin: 0 0 0.75rem;
}
.cmh-review-label-txt {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	font-size: 0.9rem;
}
.cmh-hp-hidden {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}
.cmh-review-flash {
	margin: 0 0 1rem;
	padding: 0.65rem 0.85rem;
	border-radius: 6px;
	border-left: 3px solid #2271b1;
	background: #f0f6fc;
}

.cmh-listing-error {
	max-width: 40rem;
	margin: 2rem auto;
	padding: 0.85rem 1rem;
	border-left: 4px solid #d63638;
	background: #fcf0f1;
	border-radius: 4px;
}

/* B25 — heart + cardiogram rating row (default). Settings → General: medical crosses optional. */
.cmh-rating--heart-pulse {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	vertical-align: middle;
	color: #18898a;
}

.cmh-rating--heart-pulse .cmh-rating-heart--off {
	opacity: 0.32;
}

.cmh-review-card__stars .cmh-rating--heart-pulse {
	margin-left: 0.15rem;
}

/* B25 — SVG “medical” rating row (alternative). Settings → General controls mode. */
.cmh-rating--medical-cross {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	vertical-align: middle;
	color: #0f766e;
}
.cmh-rating--medical-cross .cmh-cross-slot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}
.cmh-rating--medical-cross .cmh-cross--empty {
	opacity: 0.32;
	color: rgba(15, 23, 42, 0.45);
}
.cmh-review-card__stars .cmh-rating--medical-cross {
	margin-left: 0.15rem;
}

/* B05 / B26 / B27 — Opening hours grids */
.cmh-hours-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0.35rem 0 0;
	font-size: 0.95rem;
	line-height: 1.45;
}

.cmh-hours-table th {
	text-align: start;
	vertical-align: top;
	padding: 0.35rem 0.75rem 0.35rem 0;
	width: 9.25rem;
	font-weight: 600;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
	color: rgb(51, 65, 85);
}

.cmh-hours-table td {
	padding: 0.35rem 0;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
	vertical-align: top;
}

.cmh-hours-table tbody tr:last-child th,
.cmh-hours-table tbody tr:last-child td {
	border-bottom: 0;
}

.cmh-hours-table--duty th,
.cmh-hours-table--special th {
	width: auto;
	min-width: 7rem;
}

.cmh-hours-note,
.cmh-hours-emergency-badge-row {
	margin-top: 0.65rem;
}

.cmh-hours-note,
.cmh-pharmacy-extras {
	font-size: 0.95rem;
	line-height: 1.55;
}

.cmh-pharmacy-extras {
	margin-top: 0.75rem;
}

/* B20 — carousel + thumbnails (listing-gallery.js). */
.cmh-gallery-carousel {
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
	background: #fff;
}
.cmh-gallery-carousel:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}
.cmh-gallery-carousel__stage {
	position: relative;
	background: linear-gradient(180deg, #f8fafc, #eef2f6);
}
.cmh-gallery-carousel__viewport {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 4 / 3;
	min-height: clamp(220px, 52vw, 420px);
	max-height: min(520px, 72vh);
	overflow: hidden;
	background: linear-gradient(180deg, #f8fafc, #eef2f6);
	touch-action: pan-y pinch-zoom;
	cursor: grab;
}
.cmh-gallery-carousel__viewport:active {
	cursor: grabbing;
}
.cmh-gallery-carousel__feature {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
	background: transparent;
}
.cmh-gallery-carousel__caption {
	margin: 0;
	padding: 0.55rem 0.75rem;
	font-size: 0.85rem;
	line-height: 1.4;
	color: rgba(15, 23, 42, 0.75);
	text-align: center;
	border-top: 1px solid rgba(15, 23, 42, 0.06);
	background: #fff;
}
.cmh-gallery-carousel__caption[hidden] {
	display: none !important;
}
.cmh-gallery-carousel__thumbs {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.55rem;
	padding: 0.65rem 0.75rem;
	overflow-x: auto;
	border-top: 1px solid rgba(15, 23, 42, 0.06);
	background: #fff;
}
.cmh-gallery-carousel__thumb-button {
	flex: 0 0 auto;
	width: 92px;
	height: 70px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	background: #f1f5f9;
	cursor: pointer;
}
.cmh-gallery-carousel__thumb-button.is-active {
	border-color: #0f766e;
	box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.35);
}
.cmh-gallery-carousel__thumb-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #f8fafc;
}

/* B02 / B29 — green checklist. */
.cmh-checked-list {
	list-style: none;
	margin: 0.25rem 0 0;
	padding: 0;
}
.cmh-checked-list__item {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	padding: 0.35rem 0;
	border-bottom: 1px solid rgba(15, 23, 42, 0.07);
	font-size: 0.98rem;
	line-height: 1.45;
}
.cmh-checked-list__item:last-child {
	border-bottom: 0;
}
.cmh-checked-list__tick {
	flex: 0 0 auto;
	margin-top: 0.1rem;
	color: #15803d;
}
.cmh-checked-list__txt {
	color: #0f172a;
}
.cmh-checked-list__item--extra {
	display: none;
}
.cmh-checked-list-wrap.is-expanded .cmh-checked-list__item--extra {
	display: flex;
}
.cmh-checked-list__toggle {
	display: inline-flex;
	align-items: center;
	margin-top: 0.5rem;
	padding: 0.35rem 0;
	border: 0;
	background: none;
	color: #15803d;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}
.cmh-checked-list__toggle:hover,
.cmh-checked-list__toggle:focus-visible {
	color: #166534;
}

.cmh-listing-back {
	margin: 0 0 1rem;
}
.cmh-listing-back__link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #0f766e;
	text-decoration: none;
}
.cmh-listing-back__link:hover,
.cmh-listing-back__link:focus-visible {
	text-decoration: underline;
}
.cmh-char-counter {
	margin: 0.35rem 0 0;
}
.cmh-char-counter.is-over {
	color: #b91c1c;
	font-weight: 600;
}

.cmh-b29-public {
	display: flex;
	flex-direction: column;
	gap: 1.15rem;
}

.cmh-b29-public__title {
	margin: 0 0 0.35rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #334155;
	letter-spacing: 0.01em;
}

.cmh-b29-public__group .cmh-checked-list {
	margin-top: 0;
}

/* B30 + engagement bar. */
.cmh-listing-shell__main > .cmh-listing-engage {
	margin: 0 0 1rem;
}
.cmh-listing-engage {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
}
.cmh-listing-engage__actions {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: flex-end;
	margin-left: auto;
}
.cmh-listing-engage__verified {
	display: inline-flex;
	align-items: center;
}
.cmh-listing-engage__verified .dvb-verified-wrap {
	display: inline-flex;
	margin-left: 0;
}
.cmh-listing-engage__views {
	border: 1px solid rgba(15, 23, 42, 0.12);
	background: #fff;
	border-radius: 999px;
	padding: 0.35rem 0.7rem;
	font-size: 0.9rem;
	line-height: 1.2;
	color: #0f172a;
	display: inline-flex;
	align-items: center;
	gap: 0.42rem;
	white-space: nowrap;
	cursor: default;
	user-select: none;
}
.cmh-listing-engage__views-ico {
	display: block;
	flex-shrink: 0;
	color: rgba(15, 118, 110, 0.92);
}
.cmh-listing-engage__views-num {
	font-variant-numeric: tabular-nums;
}
.cmh-listing-engage__fav,
.cmh-listing-engage__share {
	border: 1px solid rgba(15, 23, 42, 0.12);
	background: #fff;
	border-radius: 999px;
	padding: 0.35rem 0.75rem;
	cursor: pointer;
	color: #0f172a;
	font-size: 0.9rem;
	line-height: 1.2;
	transition: background 0.12s ease, border-color 0.12s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}
.cmh-listing-engage__fav svg {
	display: block;
}
.cmh-listing-engage__share {
	padding-left: 0.45rem;
	padding-right: 0.45rem;
}
.cmh-listing-engage__share svg {
	display: block;
}
.cmh-listing-engage__fav.is-active {
	background: rgba(24, 137, 138, 0.12);
	border-color: rgba(24, 137, 138, 0.45);
	color: #18898a;
}

.cmh-listing-engage__fav.is-active .cmh-fav-bookmark {
	fill: rgba(24, 137, 138, 0.1);
}

.cmh-listing-engage__fav.is-active .cmh-fav-star {
	fill: #18898a;
}
dialog.cmh-share-dialog {
	padding: 0;
	border: none;
	background: transparent;
	max-width: calc(100vw - 2rem);
}
dialog.cmh-share-dialog::backdrop {
	background: rgba(15, 23, 42, 0.55);
}
.cmh-share-dialog__box {
	min-width: min(22rem, calc(100vw - 2rem));
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 18px 52px rgba(0, 0, 0, 0.35);
	padding: 2.65rem 1.25rem 1.35rem;
	position: relative;
}
.cmh-listing-shell .screen-reader-text:not(:focus):not(:active) {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	word-wrap: normal;
	border: 0;
}

.cmh-share-dialog__close {
	position: absolute;
	right: 0.55rem;
	top: 0.45rem;
	border: 0;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #475569;
}
.cmh-share-dialog__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.65rem;
}
.cmh-share-dialog__links li {
	margin: 0;
	padding: 0;
	flex: 0 0 auto;
}
.cmh-share-dialog__icon-btn {
	box-sizing: border-box;
	min-width: 2.875rem;
	min-height: 2.875rem;
	width: 2.875rem;
	height: 2.875rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	border: 1px solid rgba(15, 23, 42, 0.1);
	background: #f9fafb;
	cursor: pointer;
	color: #4b5563;
	transition:
		background 0.15s ease,
		border-color 0.15s ease,
		color 0.15s ease;
}
.cmh-share-dialog__icon-btn:hover {
	background: #eef2ff;
	border-color: rgba(15, 23, 42, 0.16);
	color: #374151;
}
.cmh-share-dialog__icon-btn:focus-visible {
	outline: 2px solid #6366f1;
	outline-offset: 2px;
}
.cmh-share-dialog__icon-btn svg,
.cmh-share-svg {
	display: block;
	flex-shrink: 0;
}
.cmh-share-dialog__flash {
	min-height: 1.2em;
	margin: 0.65rem 0 0;
	font-size: 0.85rem;
	color: #047857;
}

.cmh-listing-views {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.95rem;
	color: rgba(15, 23, 42, 0.78);
}
.cmh-listing-shell__aside .cmh-listing-views {
	justify-content: flex-start;
	width: 100%;
}
.cmh-listing-views__eye {
	flex: 0 0 auto;
	color: rgba(15, 118, 110, 0.92);
}
.cmh-listing-views__number {
	font-variant-numeric: tabular-nums;
}

/* Contact strip (B14–16, B23 sidebar). */
.cmh-contact-strip__row {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0.45rem 0 0;
}
.cmh-contact-strip__row:first-child {
	margin-top: 0;
}
.cmh-contact-strip__svg {
	flex: 0 0 auto;
	color: rgb(148, 163, 184);
}
.cmh-contact-strip__body {
	flex: 1 1 auto;
	min-width: 0;
	word-break: break-word;
	line-height: 1.35;
	font-size: 0.975rem;
}
.cmh-contact-strip__link {
	text-decoration: none;
}
.cmh-contact-strip__link:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
	border-radius: 2px;
}
.cmh-contact-strip__link--accent {
	color: var(--cmh-accent-link);
	font-weight: 500;
}
.cmh-contact-strip__link--mail {
	color: var(--cmh-accent-link);
}

.cmh-ad-listing-card__metric {
	opacity: 0.88;
}

.cmh-b06-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.45rem;
}

.cmh-b06-list li {
	position: relative;
	padding-left: 1.35rem;
	line-height: 1.45;
}

.cmh-b06-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.45rem;
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 999px;
	background: var(--cmh-accent-link, #0d9488);
}

.cmh-b07-fee {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
	color: rgba(15, 23, 42, 0.9);
}

.cmh-b08-offer {
	display: grid;
	gap: 0.85rem;
}

.cmh-b08-offer__img {
	width: 100%;
	max-width: 420px;
	height: auto;
	border-radius: 10px;
	display: block;
}

.cmh-b08-offer__text > :first-child {
	margin-top: 0;
}

.cmh-b08-offer__text > :last-child {
	margin-bottom: 0;
}

/* FAQ (B22) — native accordion on public listings. */
.cmh-b22-faq--accordion {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.cmh-b22-faq--accordion .cmh-b22-faq__item {
	border: 1px solid rgba(148, 163, 184, 0.4);
	border-radius: 10px;
	background: rgba(248, 250, 252, 0.9);
	overflow: hidden;
}

.cmh-b22-faq--accordion .cmh-b22-faq__item:not([open]) .cmh-b22-faq__a {
	display: none;
}

.cmh-b22-faq--accordion .cmh-b22-faq__q {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
	padding: 0.85rem 1rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	color: #0f172a;
	cursor: pointer;
	list-style: none;
}

.cmh-b22-faq--accordion .cmh-b22-faq__q::-webkit-details-marker {
	display: none;
}

.cmh-b22-faq--accordion .cmh-b22-faq__q::before {
	content: "▸";
	flex: 0 0 auto;
	color: #64748b;
	transition: transform 0.15s ease;
}

.cmh-b22-faq--accordion .cmh-b22-faq__item[open] > .cmh-b22-faq__q::before {
	transform: rotate(90deg);
}

.cmh-b22-faq--accordion .cmh-b22-faq__a {
	padding: 0 1rem 0.9rem;
	font-size: 0.95rem;
	line-height: 1.55;
	color: rgba(51, 65, 85, 0.92);
	border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.cmh-b22-faq--accordion .cmh-b22-faq__item[open] > .cmh-b22-faq__a {
	padding-top: 0.75rem;
}

.cmh-b22-faq--accordion .cmh-b22-faq__a > :first-child {
	margin-top: 0;
}

.cmh-b22-faq--accordion .cmh-b22-faq__a > :last-child {
	margin-bottom: 0;
}

/* Emergency phone (B23) — always red. */
.cmh-contact-strip__row--emergency .cmh-contact-strip__svg,
.cmh-contact-strip__link--emergency,
.cmh-emergency-phone a {
	color: #c81e1e;
}

.cmh-contact-strip__link--emergency {
	font-weight: 600;
	text-decoration: none;
}

.cmh-contact-strip__link--emergency:hover,
.cmh-contact-strip__link--emergency:focus-visible {
	color: #991b1b;
}

.cmh-contact-strip__emergency-label {
	display: block;
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #c81e1e;
	margin-bottom: 0.1rem;
}

.cmh-listing-mobile-portrait-strip {
	display: block;
}

/* Mobile listing view (≤767px): portrait top, no hero banner; sidebar order tuned. */
@media (max-width: 767px) {
	.cmh-listing-mobile-portrait-strip {
		display: block;
		width: 95%;
		max-width: 95%;
		margin: 0 auto 1rem;
		padding: 0.5rem 0;
		box-sizing: border-box;
		text-align: center;
	}

	.cmh-listing-mobile-portrait-strip .cmh-media-portrait--mobile-top {
		justify-content: center;
		margin-inline: auto;
	}

	.cmh-listing-mobile-portrait-strip .cmh-listing-portrait__img {
		width: min(220px, 85%);
		height: auto;
		margin-inline: auto;
	}

	.cmh-listing-shell__aside .cmh-block-b18 {
		display: none !important;
	}

	.cmh-listing-shell__aside .cmh-block-b13 {
		order: 99;
	}

	.cmh-listing-shell__aside {
		display: flex;
		flex-direction: column;
	}

	.cmh-listing-hero-strip {
		display: none !important;
	}

	.single-cmh_doctor .inside-article,
	.single-cmh_hospital .inside-article,
	.single-cmh_pharmacy .inside-article {
		overflow-x: clip;
	}

	.cmh-listing-shell,
	.cmh-listing-shell--two-col,
	.cmh-listing-shell--plugin {
		width: 95%;
		max-width: 95%;
		margin-inline: auto;
		overflow-x: clip;
		padding-inline: 0;
		box-sizing: border-box;
	}

	.cmh-listing-shell .cmh-listing-title {
		font-size: 1.45rem;
	}

	.cmh-listing-shell__aside {
		margin-top: 1.5rem;
		padding-top: 1.5rem;
	}

	.cmh-listing-shell__aside .cmh-block {
		padding: 0.85rem 0.95rem;
	}

	.cmh-media-portrait.cmh-media-portrait--listing-ring .cmh-listing-portrait__img,
	.cmh-media-portrait.cmh-media-portrait--listing-ring .cmh-sidebar-brand-img {
		width: min(220px, 85%);
		height: auto;
		margin-inline: auto;
	}

	.cmh-listing-shell__aside .cmh-media-portrait--listing-ring {
		justify-content: center;
	}

	.cmh-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.65rem;
	}

	.cmh-gallery__caption {
		font-size: 0.72rem;
		padding: 0.35rem 0.4rem 0.45rem;
	}

	.cmh-gallery-carousel {
		border-radius: 12px;
	}

	.cmh-gallery-carousel__viewport {
		aspect-ratio: 4 / 3;
		min-height: clamp(200px, 58vw, 360px);
		max-height: none;
	}

	.cmh-gallery-carousel__thumb-button {
		width: 72px;
		height: 54px;
	}

	.cmh-gallery-dlg__close {
		right: 0.35rem;
		top: 0.35rem;
	}

	.cmh-map-wrap {
		max-height: min(240px, 58vw);
	}
}
