/**
 * 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%;
}

/* Pill heading — 0.92.1 (Alex, 18 Oct 2026): white on the active blue, the
   same as the current Clip heading and the Notes blocks ("stronger and
   better"). 0.80.9–0.92.0 it was the pale tint + navy; before that green. */
/* 0.94.2 (Alex, 23 Oct 2026: "definitely C, very nice"): no longer a filled
   blue pill — it is a label, not a button. Small letter-spaced caps in the
   muted grey (same family as the Size / Constructed labels, one step more
   formal) over a hairline of the site's pale blue. */
.asc-apt-pill {
	display: inline-block;
	font-size: 15px;          /* 0.94.4 (Alex): 12 → 14 → 15 */
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--asc-muted, #74746F);
	background: none;
	padding: 0 0 4px;
	border-bottom: 2px solid var(--asc-here-bg, #DEE8F3);
	border-radius: 0;
	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;
}

/* 0.100.2: list-style rows (ingredients etc.) — the label is the heading, the
   list is lighter body text. Added by render() when a value holds commas or
   is longer than a short fact. */
.asc-apt-row-list .asc-apt-label {
	font-size: 20px;
	font-weight: 600;
	letter-spacing: 0;
	color: #404040;
	margin: 0 0 6px;
}
.asc-apt-row-list .asc-apt-value {
	font-size: 16px;
	font-weight: 400;
	color: #6b6b6b;
	line-height: 1.5;
}

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

/* Location heading — sits above the facts and the map, left aligned. Sized like
   an h3 so the place reads as the panel's title; mainly for mobile, where the
   map stacks below the facts, but it anchors the desktop card too. */
.asc-apt-loc {
	margin: 0 0 20px;
	font-size: 28px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--alexi-ink);
	text-align: left;
}

@media ( max-width: 880px ) {
	.asc-apt-loc {
		font-size: 24px;
		margin-bottom: 16px;
	}
}

/* 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;
	}

	/* Stacked: the caption needs air between it and the last fact row. */
	.asc-apt-map {
		margin-top: 6px;
	}

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

/* ---------- Technology panel (asc/tech-products, 0.77.0) ----------
   The same card, but both columns are lists of links: the products / companies
   in the video, each a name or a logo that opens the maker's site. */

.asc-tech-cols {
	display: flex;
	gap: 32px;
	align-items: flex-start;
}

.asc-tech-col {
	flex: 1 1 50%;
	min-width: 0;
}

.asc-tech-head {
	font-size: 13px;
	letter-spacing: 0.04em;
	color: #6b6b6b;
	font-weight: 500;
	margin: 0 0 6px;
}

.asc-tech-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.asc-tech-item {
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px solid #cccccc;
}

.asc-tech-item:last-child {
	border-bottom: none;
}

.asc-tech-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.25;
	color: #404040;
}

/* Reuse the architect link's glyph, but no hairline under a whole row. */
.asc-tech-link.asc-apt-link {
	border-bottom: none;
}

.asc-tech-logo {
	display: block;
	max-height: 36px;
	max-width: 160px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Editor rows */
.asc-tech-row-edit {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4px 8px;
	padding: 10px 0;
	border-bottom: 1px solid #cccccc;
}

.asc-tech-row-edit:last-of-type {
	border-bottom: none;
}

.asc-tech-row-edit .asc-tech-name-edit {
	font-size: 22px;
	font-weight: 500;
	color: #404040;
	line-height: 1.25;
	margin: 0;
}

.asc-tech-row-edit .asc-tech-url-edit {
	grid-column: 1 / -1;
	font-size: 12px;
	color: #6b6b6b;
}

.asc-tech-row-edit .asc-tech-url-edit input {
	width: 100%;
	font-size: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 3px 6px;
}

.asc-tech-row-tools {
	display: flex;
	gap: 4px;
	align-items: flex-start;
}

.asc-tech-row-tools .components-button {
	min-height: 26px;
	padding: 0 6px;
	font-size: 12px;
}

.asc-tech-logo-edit {
	display: flex;
	align-items: center;
	gap: 8px;
}

.asc-tech-add {
	margin-top: 8px;
}

@media ( max-width: 880px ) {
	.asc-tech-cols {
		flex-direction: column;
		gap: 8px;
	}
	.asc-tech-col {
		width: 100%;
	}
}

/* ---------- Technology panel, banner mode (0.92.0) ----------
   One wide picture — the channel's course-page banner from Courses → Channels
   (TechZone's is 1707×282) or a per-course override — linking to the channel.
   Sized to the picture: full card width, height follows the aspect ratio, so
   a 6:1 strip and a squarer picture both sit right. */

.asc-tech-banner {
	margin: 0;
}

.asc-tech-banner-link {
	display: block;
	border-radius: 8px;
	overflow: hidden;
	line-height: 0;
	border-bottom: none;
}

a.asc-tech-banner-link:hover .asc-tech-banner-img,
a.asc-tech-banner-link:focus-visible .asc-tech-banner-img {
	opacity: 0.88;
}

.asc-tech-banner-img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	transition: opacity 0.15s ease;
}

/* 0.95.11 (Alex, 27 Oct 2026): the 0.95.6 dark card is gone — "I do not like
   this styling". The card is white like every other panel; the TECHNOLOGY
   label sits top LEFT and the channel banner top RIGHT on the same line, and
   the channel's About text (Courses → Channels) runs underneath, full width.
   Flex-wrap so the editor's preview (same classes) matches the front end. */
.asc-tech--banner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	column-gap: 24px;
}

.asc-tech--banner .asc-apt-pill {
	flex: 0 0 auto;
	margin-bottom: 0;
	align-self: flex-start;
}

.asc-tech--banner .asc-tech-banner {
	flex: 0 1 50%;
	max-width: 50%;
	/* 0.95.12 (Alex: "less padding around the banner"): the picture reaches
	   into the card's 1.75rem padding, leaving 0.75rem to the top and right
	   edges; the label keeps its place. */
	margin: -1rem -1rem 0 auto;
}

.asc-tech-about {
	flex: 0 0 100%;
	margin: 14px 0 0;
	font-size: 17px;
	line-height: 1.55;
	color: var(--alexi-body, #2E2E2C);
}

@media (max-width: 600px) {
	.asc-tech--banner .asc-tech-banner {
		flex-basis: calc(100% + 2rem);
		max-width: calc(100% + 2rem);
		margin: 12px -1rem 0;
	}
	.asc-tech-about {
		margin-top: 18px;
		font-size: 16px;
	}
}

/* Editor: nothing saved yet */
.asc-tech-banner-empty {
	padding: 28px 20px;
	border: 1px dashed #c9c8c3;
	border-radius: 8px;
	color: #6b6b6b;
	font-size: 14px;
	text-align: center;
}

.asc-tech-override {
	margin-top: 8px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
}
