/**
 * Apartment Details block — front end + editor.
 * Recreates the alexi.cz fact panel (green pill, muted labels, large values with
 * hairline dividers) beside a location map. Scoped under .asc-apt.
 */

.asc-apt {
	margin: 0 0 8px;
}

.asc-apt-inner {
	display: flex;
	gap: 32px;
	align-items: flex-start;
}

.asc-apt-facts {
	flex: 0 0 40%;
	max-width: 40%;
}

.asc-apt-map {
	flex: 1 1 60%;
	min-width: 0;
}

/* No map → let the facts breathe across the full width. */
.asc-apt--nomap .asc-apt-facts {
	flex-basis: 100%;
	max-width: 100%;
}

/* Green pill heading */
.asc-apt-pill {
	display: inline-block;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: #173404;
	background: #eaf3de;
	padding: 4px 14px;
	border-radius: 6px;
	margin-bottom: 22px;
}

/* Small muted label */
.asc-apt-label {
	font-size: 13px;
	letter-spacing: 0.04em;
	color: #6b6b6b;
	margin: 0 0 2px;
	text-transform: none;
}

/* Large value with hairline divider */
.asc-apt-value {
	font-size: 26px;
	font-weight: 500;
	color: #404040;
	margin: 0 0 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid #cccccc;
	line-height: 1.2;
}

/* Drop the divider under the last fact row. */
.asc-apt-facts .asc-apt-row:last-child .asc-apt-value {
	border-bottom: none;
}

/* Map embed */
.asc-apt-map iframe {
	width: 100%;
	height: 320px;
	border: 0;
	display: block;
	border-radius: 6px;
}

/* Editor-only placeholder standing in for the live map. */
.asc-apt-map-ph {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 320px;
	border: 1px dashed #c7ddac;
	border-radius: 6px;
	background: #f6faf0;
	color: #5b6b4a;
	text-align: center;
	padding: 16px;
}

.asc-apt-map-ph .dashicons {
	font-size: 30px;
	width: 30px;
	height: 30px;
}

.asc-apt-map-ph-text {
	font-size: 13px;
	max-width: 220px;
}

/* Editor: keep the inline-edited pill from stretching full width. */
.asc-apt--editor .asc-apt-pill {
	max-width: max-content;
}

/* Stack on narrow screens, matching the plugin's 880px breakpoint. */
@media ( max-width: 880px ) {
	.asc-apt-inner {
		flex-direction: column;
	}

	.asc-apt-facts,
	.asc-apt-map {
		flex-basis: auto;
		max-width: 100%;
		width: 100%;
	}
}
