/* ==========================================================================
   OFFICE DIRECTORY — "Architect's Ledger" edition
   Editorial blueprint aesthetic: JetBrains Mono for all display and
   spec readouts, hairline drafting rules, plate-number system, corner
   registration marks on the diagram. Accent lime is the only splash color.
   ========================================================================== */

.office-directory-section {
	/* Scoped tokens — consume the shared corporate palette so this section
	   blends into the page's continuous stone surface. Ink shifts from pure
	   black to a gray-charcoal ink; accent swaps to brushed brass. */
	--od-ink: var(--ink);
	/* Darker than global --text-soft / --text-muted so type and rules read on
	   --od-paper-tint (warm --surface) without changing site-wide tokens. */
	--od-ink-soft: color-mix(in srgb, var(--praxeti-gray-900) 58%, var(--praxeti-gray-700) 42%);
	--od-paper: var(--bg);
	--od-paper-tint: var(--surface);
	--od-rule: color-mix(in srgb, var(--border-strong) 55%, var(--praxeti-gray-700) 45%);
	--od-rule-soft: color-mix(in srgb, var(--border) 70%, var(--praxeti-gray-700) 30%);
	--od-muted: var(--praxeti-gray-700);
	--od-accent: var(--accent);
	--od-accent-ink: var(--accent-contrast);

	--od-font-display: system-ui, -apple-system, 'Segoe UI', sans-serif;
	--od-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	--od-font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;

	position: relative;
	padding: 6rem 0 7rem;
	background: var(--od-paper-tint);
	color: var(--od-ink);
	overflow: hidden;
	isolation: isolate;
}

@media (min-width: 1024px) {
	.office-directory-section {
		padding: 8rem 0 9rem;
	}
}

/* Decorative backdrop: a soft radial wash replaces the previous blueprint
   grid. Kept as a single breath of warm stone + brass so the section still
   has atmosphere without the draftsman mesh. */
.office-directory-section__backdrop {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(
			80% 60% at 50% 0%,
			rgba(27, 36, 49, 0.05) 0%,
			rgba(27, 36, 49, 0) 65%
		),
		radial-gradient(
			50% 40% at 92% 88%,
			color-mix(in srgb, var(--accent-on-dark) 8%, transparent) 0%,
			color-mix(in srgb, var(--accent-on-dark) 0%, transparent) 70%
		);
	opacity: 0.9;
}

.office-directory-section > .container {
	position: relative;
	z-index: 1;
}

/* --------------------------------------------------------------------------
   Header — asymmetric editorial masthead
   -------------------------------------------------------------------------- */

.od-header {
	display: grid;
	grid-template-columns: 1fr;
	row-gap: 1.25rem;
	margin-bottom: 3.5rem;
	padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
	.od-header {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
		column-gap: 3rem;
		row-gap: 0;
		align-items: end;
		margin-bottom: 4.5rem;
	}
}

.od-header__title {
	grid-column: 1;
	margin: 0;
	font-family: var(--od-font-display);
	font-weight: 700;
	font-size: clamp(2.1rem, 5.2vw, 4.25rem);
	line-height: 1.0 !important;
	letter-spacing: -0.025em;
	color: var(--od-ink);
	text-wrap: balance;
}

.od-header__intro {
	grid-column: 1;
	margin: 0;
	font-family: var(--od-font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--od-muted);
	max-width: 38ch;
}

@media (min-width: 768px) {
	.od-header__intro {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
		text-align: right;
		font-size: 1.0625rem;
	}
}

/* --------------------------------------------------------------------------
   Tabs — ledger row with plate numbers
   -------------------------------------------------------------------------- */

/* Modular-spaces footnote — sits at the foot of the office spec list as a
   drafting-style annotation. Asterisk in accent color reinforces the
   architect's-ledger language used elsewhere in the section. */
.office-directory__legend {
	margin: 0;
	font-family: var(--od-font-mono);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	line-height: 1.6;
	text-transform: uppercase;
	color: var(--od-muted);
}

.office-directory__legend::before {
	content: "* ";
	color: var(--od-accent);
	font-weight: 600;
}

.office-directory__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
	margin-bottom: 3rem;
	padding: 0.5rem 0;
	border: 0;
}

.office-directory__tab {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.78rem 1.5rem;
	background: var(--od-paper);
	border: 1px solid var(--od-rule);
	border-radius: 999px;
	color: var(--od-ink);
	cursor: pointer;
	font-family: var(--od-font-body);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	overflow: hidden;
	isolation: isolate;
	transition:
		color 0.3s ease,
		border-color 0.3s ease,
		transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
		box-shadow 0.3s ease;
}

.office-directory__tab + .office-directory__tab {
	border-left: 1px solid var(--od-rule);
}

.office-directory__tab-label {
	position: relative;
	z-index: 2;
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.office-directory__tab-trail {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: var(--od-ink);
	border-radius: inherit;
	transform: scale(0.6);
	opacity: 0;
	transform-origin: center;
	transition:
		transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
		opacity 0.3s ease;
}

.office-directory__tab:hover {
	color: var(--od-ink);
	border-color: var(--od-ink);
	transform: translateY(-2px);
	box-shadow: 0 6px 18px -10px rgba(27, 36, 49, 0.45);
}

.office-directory__tab:hover .office-directory__tab-label {
	transform: translateY(-1px);
}

.office-directory__tab:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px -6px rgba(27, 36, 49, 0.5);
}

.office-directory__tab:focus-visible {
	outline: none;
	border-color: var(--od-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--od-accent) 35%, transparent);
}

.office-directory__tab.is-active {
	color: var(--od-paper);
	border-color: var(--od-ink);
	animation: od-tab-pulse 2.8s ease-in-out infinite;
}

@keyframes od-tab-pulse {
	0%, 100% {
		box-shadow:
			0 10px 24px -14px rgba(27, 36, 49, 0.55),
			0 0 0 0 color-mix(in srgb, var(--od-accent) 45%, transparent),
			0 0 0 0 color-mix(in srgb, var(--od-accent) 25%, transparent);
	}
	50% {
		box-shadow:
			0 12px 28px -14px rgba(27, 36, 49, 0.6),
			0 0 0 4px color-mix(in srgb, var(--od-accent) 18%, transparent),
			0 0 22px 6px color-mix(in srgb, var(--od-accent) 22%, transparent);
	}
}

.office-directory__tab.is-active .office-directory__tab-trail {
	transform: scale(1);
	opacity: 1;
}

.office-directory__tab.is-active::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0.55rem;
	z-index: 2;
	width: 0.32rem;
	height: 0.32rem;
	background: var(--od-accent);
	border-radius: 50%;
	transform: translateX(-50%) scale(0);
	animation: od-tab-dot 0.5s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes od-tab-dot {
	from { transform: translateX(-50%) scale(0); opacity: 0; }
	to   { transform: translateX(-50%) scale(1); opacity: 1; }
}

@media (min-width: 768px) {
	.office-directory__tab {
		padding: 0.95rem 1.85rem;
		font-size: 0.82rem;
	}
}

/* --------------------------------------------------------------------------
   Stage & panels
   -------------------------------------------------------------------------- */

.office-directory__stage {
	position: relative;
	display: grid;
}

.office-directory__panel {
	grid-column: 1;
	grid-row: 1;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.4s ease, transform 0.4s ease;
	pointer-events: none;
}

.office-directory__panel.is-active {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.office-directory__panel.is-leaving {
	opacity: 0;
	transform: translateY(-10px);
}

.office-directory__panel-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: start;
}

@media (min-width: 1024px) {
	.office-directory__panel-grid {
		/* grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); */
		grid-template-columns: minmax(0, 50fr) minmax(0, 50fr);
		gap: 4.25rem;
	}
}

.office-directory__panel-info {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	min-width: 0;
}

/* Staggered reveal for children inside the active panel */
[data-reveal] {
	opacity: 0;
	transform: translateY(10px);
}

.office-directory__panel.is-active [data-reveal] {
	animation: od-reveal 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
	animation-delay: var(--reveal-delay, 0ms);
}

@keyframes od-reveal {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Panel head: italic heading + small caption label
   -------------------------------------------------------------------------- */

.od-panel-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
	align-items: start;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--od-rule);
	position: relative;
}

.od-panel-head::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 2.25rem;
	height: 7px;
	background: var(--od-accent);
}

.od-panel-head__text {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding-top: 0.5rem;
	min-width: 0;
}

.od-panel-head__heading,
.office-directory__panel-heading {
	margin: 0;
	font-family: var(--od-font-display);
	font-weight: 700;
	font-size: clamp(1.35rem, 2vw, 1.7rem);
	line-height: 1.15 !important;
	letter-spacing: -0.02em;
	color: var(--od-ink);
}

.od-panel-head__label {
	font-family: var(--od-font-mono);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--od-muted);
}

.office-directory__panel-description {
	margin: 0;
	font-family: var(--od-font-body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--od-ink-soft);
	max-width: 52ch;
}

/* --------------------------------------------------------------------------
   Amenity tags — square, drafting stamps
   -------------------------------------------------------------------------- */

.office-directory__amenities {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.office-directory__amenities li {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.5rem 0.8rem;
	border: 1px solid var(--od-rule);
	border-radius: 0;
	font-family: var(--od-font-mono);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--od-ink);
	background: var(--od-paper-tint);
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.office-directory__amenities li:hover {
	background: var(--od-ink);
	color: var(--od-paper);
	transform: translateY(-1px);
}

.office-directory__amenities li svg {
	width: 0.9rem;
	height: 0.9rem;
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Office spec cards — hairline ledger rows with italic surface hero
   -------------------------------------------------------------------------- */

.office-directory__offices {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	list-style: none;
	padding: 0;
	margin: 0;
	border-top: 1px solid var(--od-rule);
	font-family: var(--od-font-body);
}

@media (min-width: 640px) {
	.office-directory__offices {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		border-left: 1px solid var(--od-rule-soft);
	}
}

.od-office {
	position: relative;
	gap: 0.55rem;
	padding: 1.5rem 1.5rem 1.5rem 1.75rem;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--od-rule);
	transition: background-color 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.od-office::after {
	content: "↗";
	position: absolute;
	right: 1.25rem;
	bottom: 1.1rem;
	font-family: var(--od-font-body);
	font-size: 1.1rem;
	font-weight: 400;
	line-height: 1;
	color: var(--od-muted);
	opacity: 0;
	transform: translate(-4px, 4px);
	transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
	pointer-events: none;
	z-index: 2;
}

.od-office:hover::after,
.od-office:focus-within::after {
	opacity: 1;
	transform: translate(0, 0);
	color: var(--od-accent);
}

.od-office[data-status="unavailable"]::after {
	display: none;
}

@media (min-width: 640px) {
	.od-office {
		border-right: 1px solid var(--od-rule-soft);
	}
	.od-office:nth-child(2n) {
		border-right: 0;
	}
}

.od-office::before {
	content: "+";
	position: absolute;
	top: -0.45rem;
	left: -0.45rem;
	width: 0.9rem;
	height: 0.9rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--od-font-body);
	font-size: 0.8rem;
	line-height: 1;
	color: var(--od-ink);
	background: var(--od-paper);
	z-index: 1;
}

.od-office__stripe {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--od-rule-soft);
}

.od-office[data-status="available"] .od-office__stripe {
	background: var(--od-accent);
}

.od-office:hover,
.od-office:focus-within {
	background: rgba(27, 36, 49, 0.06);
}

.od-office:hover .od-office__stripe,
.od-office:focus-within .od-office__stripe {
	width: 6px;
}

.od-office[data-status="available"]:hover,
.od-office[data-status="available"]:focus-within {
	box-shadow: inset 0 -2px 0 0 var(--od-accent);
}

.od-office__surface {
	margin: 0.3rem 0 0.1rem;
	display: inline-flex;
	align-items: baseline;
	gap: 0.35rem;
	color: var(--od-ink);
	min-height: clamp(1.8rem, 3.15vw, 2.52rem);
}

.od-office__surface-num {
	font-family: var(--od-font-body);
	font-weight: 500;
	font-size: clamp(2rem, 3.5vw, 2.8rem);
	line-height: 0.9 !important;
	letter-spacing: -0.03em;
}

.od-office__surface-unit {
	font-family: var(--od-font-body);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: var(--od-muted);
	text-transform: lowercase;
}

/* --------------------------------------------------------------------------
   Diagram
   -------------------------------------------------------------------------- */

.office-directory__diagram,
.od-diagram {
	margin: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.75rem;
	aspect-ratio: auto;
	background: transparent;
	border: 0;
	align-self: stretch;
}

.od-diagram__media {
	position: relative;
	background: var(--od-paper-tint);
	aspect-ratio: 5 / 7;
	max-height: 760px;
	overflow: hidden;
}

.od-diagram__media img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 0;
	filter: contrast(1.02);
}

.od-diagram__caption {
	padding-top: 0.4rem;
	border-top: 1px solid var(--od-rule);
	text-align: right;
}

.od-diagram__caption-label {
	font-family: var(--od-font-mono);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--od-muted);
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */

.od-empty {
	text-align: center;
	font-family: var(--od-font-mono);
	font-size: 0.85rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--od-muted);
	padding: 3rem 0;
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.office-directory__panel,
	.office-directory__tab,
	.office-directory__tab-trail,
	.od-office,
	.od-office__stripe,
	.office-directory__amenities li {
		transition: none !important;
	}

	.office-directory__tab.is-active {
		animation: none !important;
		box-shadow: 0 10px 24px -14px rgba(27, 36, 49, 0.55) !important;
	}

	.office-directory__panel {
		transition: opacity 0.15s linear !important;
		transform: none !important;
	}

	.office-directory__panel.is-leaving {
		transform: none !important;
	}

	.office-directory__panel.is-active [data-reveal] {
		animation: none;
		opacity: 1;
		transform: none;
	}
}

/* --------------------------------------------------------------------------
   Layout F — card head, selection state, sticky preview
   -------------------------------------------------------------------------- */

/* Re-establish card grid for the new structural order:
   stripe (absolute) + select button (id row: title | meta+status) + surface + cta row. */
.od-office {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.od-office__select {
	appearance: none;
	background: transparent;
	border: 0;
	padding: 0 0 0.55rem;
	margin: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.3rem;
	color: var(--od-ink);
	cursor: pointer;
	text-align: left;
	border-bottom: .5px solid var(--od-rule-soft);
	transition: border-color 0.2s ease;
}

.od-office__select:disabled,
.od-office__select[aria-disabled="true"] {
	cursor: default;
	color: var(--od-muted);
}

.od-office__select:focus-visible {
	outline: 1px solid var(--od-accent);
	outline-offset: 4px;
}

.od-office__id-row {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.2rem;
	min-width: 0;
	width: 100%;
}

.od-office__id {
	display: block;
	min-width: 0;
	width: 100%;
	font-family: var(--od-font-body);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--od-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.2;
}

.od-office__id-tail {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.55rem;
	min-width: 0;
	width: 100%;
}

.od-office__meta {
	flex: 1 1 auto;
	display: block;
	margin: 0;
	min-width: 0;
	min-height: 1.25em;
	font-family: var(--od-font-body);
	font-size: 0.65rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--od-muted);
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.od-office__tag--status {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	padding: 0.3rem 0.55rem;
	border: 1px solid var(--od-rule);
	font-family: var(--od-font-body);
	font-size: 0.65rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1;
	color: var(--od-muted);
	background: transparent;
}

.od-office__tag--status.is-available {
	border-color: var(--od-accent);
	color: var(--od-ink);
}

.od-office__cta-row {
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.6rem;
	padding-top: 0.6rem;
}

.od-office__cta {
	appearance: none;
	background: transparent;
	border: 1px solid var(--od-ink);
	border-radius: 0;
	padding: 0.55rem 0.95rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--od-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--od-ink);
	cursor: pointer;
	transition: gap 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.od-office__cta:hover,
.od-office__cta:focus-visible {
	gap: 0.9rem;
	background: var(--od-ink);
	color: var(--od-paper);
	border-color: var(--od-ink);
	outline: none;
}

.od-office:hover .od-office__cta,
.od-office:focus-within .od-office__cta {
	background: var(--od-ink);
	color: var(--od-paper);
}

.od-office__cta-arrow {
	font-family: var(--od-font-body);
	font-weight: 400;
	letter-spacing: 0;
	transition: transform 0.25s ease;
}

.od-office__cta:hover .od-office__cta-arrow,
.od-office__cta:focus-visible .od-office__cta-arrow {
	transform: translateX(4px);
}

/* Selection state — only applied when card is selectable. */
.od-office.is-selected {
	background: color-mix(in srgb, var(--od-accent) 6%, transparent);
}

.od-office.is-selected .od-office__select {
	border-bottom-color: var(--od-ink);
}

.od-office.is-selected .od-office__stripe {
	width: 6px;
}

.od-office__stripe {
	transition: width 0.15s ease, background-color 0.15s ease;
}

@media (min-width: 1024px) {
	.office-directory__offices.has-selection .od-office:not(.is-selected) {
		opacity: 0.78;
		transition: opacity 0.2s ease;
	}
	.office-directory__offices.has-selection .od-office:not(.is-selected):hover,
	.office-directory__offices.has-selection .od-office:not(.is-selected):focus-within {
		opacity: 1;
	}
}

/* --------------------------------------------------------------------------
   Right-panel sticky floorplan preview
   -------------------------------------------------------------------------- */

.od-floorplan-preview {
	position: relative;
}

@media (min-width: 1024px) {
	.od-floorplan-preview {
		position: sticky;
		top: 6rem;
	}
}

.od-floorplan-preview__media {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
}

@media (min-width: 1024px) {
	.od-floorplan-preview__media {
		aspect-ratio: 5 / 7;
	}
}

.od-floorplan-preview__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 1rem;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.od-floorplan-preview__image.is-active {
	opacity: 1;
	padding-top: 140px;
}

.od-floorplan-preview__zoom {
	position: absolute;
	right: 0.75rem;
	bottom: 0.75rem;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.4rem 0.65rem;
	background: rgba(15, 15, 15, 0.65);
	color: var(--od-paper);
	border: 0;
	font-family: var(--od-font-mono);
	font-size: 0.65rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	cursor: zoom-in;
	backdrop-filter: blur(4px);
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 4;
}

.od-floorplan-preview:hover .od-floorplan-preview__zoom,
.od-floorplan-preview:focus-within .od-floorplan-preview__zoom,
.od-floorplan-preview__zoom:focus-visible {
	opacity: 1;
	transform: translateY(0);
}

.od-floorplan-preview__zoom:focus-visible {
	outline: 1px solid var(--od-accent);
	outline-offset: 2px;
}

/* Mobile: preview sits at the top of the panel grid via order. */
@media (max-width: 1023.98px) {
	.office-directory__panel-grid > .od-floorplan-preview {
		order: -1;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.od-office__cursor,
	.od-office__select,
	.od-office__stripe,
	.od-office__cta,
	.od-office__cta-arrow,
	.od-floorplan-preview__image,
	.od-floorplan-preview__zoom {
		transition: none !important;
	}
}

/* --------------------------------------------------------------------------
   Detail modal — Plano | Galería
   -------------------------------------------------------------------------- */

.od-detail-modal {
	--od-ink: var(--ink);
	--od-paper: var(--bg);
	--od-paper-tint: var(--surface);
	--od-rule: var(--border-strong);
	--od-rule-soft: var(--border);
	--od-muted: var(--text-muted);
	--od-accent: var(--accent);
	--od-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	--od-detail-head-offset: 4.25rem;

	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(1rem, 4vw, 3rem);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.od-detail-modal:not([hidden]) { display: flex; }
.od-detail-modal.is-open { opacity: 1; pointer-events: auto; }

@media (max-width: 640px) {
	.od-detail-modal {
		--od-detail-head-offset: 3.75rem;
	}
}

.od-detail-modal__overlay {
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, var(--ink) 78%, transparent);
	backdrop-filter: blur(4px);
}

.od-detail-modal__panel {
	position: relative;
	z-index: 1;
	overflow: hidden;
	background: var(--od-paper-tint);
	color: var(--od-ink);
	width: min(1100px, 100%);
	max-height: calc(100vh - 4rem);
	display: flex;
	flex-direction: column;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.od-detail-modal__head {
	position: absolute;
	inset: 0 0 auto 0;
	z-index: 3;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 0.75rem;
	padding: 0.9rem 1rem;
	border-bottom: 0;
	background: linear-gradient(180deg, rgba(15, 15, 15, 0.55) 0%, rgba(15, 15, 15, 0) 100%);
	pointer-events: none;
}

.od-detail-modal__head .od-detail-modal__heading,
.od-detail-modal__head .od-detail-modal__tabs,
.od-detail-modal__head .od-detail-modal__close {
	pointer-events: auto;
}

@media (max-width: 640px) {
	.od-detail-modal__head {
		padding: 0.65rem 0.75rem;
		gap: 0.5rem;
	}

	.od-detail-modal__title {
		font-size: 0.8rem;
		letter-spacing: 0.08em;
	}
}

@media (max-width: 479.98px) {
	.od-detail-modal__eyebrow {
		display: none;
	}
}

.od-detail-modal__heading {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
	flex: 1 1 auto;
	color: var(--od-paper);
}

.od-detail-modal__eyebrow {
	font-family: var(--od-font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--od-paper);
}

.od-detail-modal__title {
	margin: 0;
	font-family: var(--od-font-mono);
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--od-paper);
}

.od-detail-modal__tabs {
	display: inline-flex;
	flex-shrink: 0;
	gap: 0;
	border: 1px solid rgba(246, 243, 236, 0.4);
}

.od-detail-modal__tab {
	appearance: none;
	background: rgba(15, 15, 15, 0.35);
	border: 0;
	padding: 0.5rem 0.85rem;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--od-font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--od-paper);
	cursor: pointer;
	backdrop-filter: blur(4px);
}

.od-detail-modal__tab + .od-detail-modal__tab {
	border-left: 1px solid rgba(246, 243, 236, 0.35);
}

.od-detail-modal__tab.is-active {
	background: var(--od-ink);
	color: var(--od-paper);
	backdrop-filter: none;
}

.od-detail-modal__tab:focus-visible {
	outline: 1px solid var(--od-accent);
	outline-offset: -2px;
}

.od-detail-modal__close {
	appearance: none;
	flex-shrink: 0;
	background: rgba(15, 15, 15, 0.35);
	border: 1px solid rgba(246, 243, 236, 0.4);
	color: var(--od-paper);
	width: 2.25rem;
	height: 2.25rem;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	backdrop-filter: blur(4px);
}

.od-detail-modal__close:hover,
.od-detail-modal__close:focus-visible {
	background: var(--od-ink);
	color: var(--od-paper);
	border-color: var(--od-ink);
	outline: none;
}

.od-detail-modal__body {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
}

.od-detail-modal__pane {
	flex: 1;
	display: none;
	overflow: hidden;
	min-height: 0;
	position: relative;
}

.od-detail-modal__pane.is-active {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.od-detail-modal__frame {
	position: relative;
	flex: 1;
	width: 100%;
	height: 100%;
	min-height: clamp(12rem, 32vh, 22rem);
	padding-top: var(--od-detail-head-offset);
	background: var(--od-paper-tint);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.od-detail-modal__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 0;
	display: block;
	background: var(--od-paper-tint);
	transition: opacity 0.2s ease;
}

.od-detail-modal__placeholder {
	margin: 0;
	font-family: var(--od-font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--od-muted);
}

.od-detail-modal__placeholder--gallery {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	padding: 2rem;
	text-align: center;
}

.od-detail-modal__placeholder--gallery[hidden] {
	display: none;
}

.od-detail-modal__gallery {
	position: relative;
	display: block;
	flex: 1;
	width: 100%;
	height: 100%;
	min-height: clamp(22rem, 70vh, 44rem);
}

.od-detail-modal__gallery-frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: clamp(22rem, 70vh, 44rem);
	background: var(--od-paper-tint);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.od-detail-modal__gallery-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	padding: 0;
	display: block;
	transition: opacity 0.2s ease;
}

.od-detail-modal__nav {
	appearance: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 2px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(15, 15, 15, 0.5);
	color: var(--od-paper);
	font-family: var(--od-font-mono);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	backdrop-filter: blur(4px);
	z-index: 3;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.od-detail-modal__nav--prev {
	left: 0.75rem;
}

.od-detail-modal__nav--next {
	right: 0.75rem;
}

.od-detail-modal__nav:hover {
	background: rgba(15, 15, 15, 0.72);
	color: var(--od-paper);
}

.od-detail-modal__nav:focus-visible {
	background: rgba(15, 15, 15, 0.72);
	color: var(--od-paper);
	outline: 1px solid var(--od-accent);
	outline-offset: 2px;
}

.od-detail-modal__gallery-dots {
	position: absolute;
	left: 50%;
	bottom: 0.75rem;
	transform: translateX(-50%);
	display: inline-flex;
	gap: 0.35rem;
	padding: 0.35rem 0.5rem;
	background: rgba(15, 15, 15, 0.55);
	backdrop-filter: blur(4px);
	z-index: 4;
}

.od-detail-modal__gallery-dot {
	appearance: none;
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
	width: 0.9rem;
	height: 0.9rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.od-detail-modal__gallery-dot span {
	display: block;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: rgba(246, 243, 236, 0.55);
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.od-detail-modal__gallery-dot.is-active span {
	background: var(--od-accent);
	transform: scale(1.25);
}

.od-detail-modal__gallery-dot:focus-visible {
	outline: 1px solid var(--od-accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.od-detail-modal,
	.od-detail-modal__close,
	.od-detail-modal__nav,
	.od-detail-modal__image,
	.od-detail-modal__gallery-image,
	.od-detail-modal__gallery-dot span {
		transition: none !important;
	}
}

/* --------------------------------------------------------------------------
   Buildings thumbnail — corner pin on the diagram media
   Acts as a context locator (which building hosts this office) and opens
   the buildings lightbox. Pin marker dot points at the active building.
   -------------------------------------------------------------------------- */

.od-buildings-thumb {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	width: clamp(171px, 39%, 265px);
	aspect-ratio: 3 / 2;
	padding: 0;
	margin: 0;
	border: 1px solid var(--od-rule);
	background: var(--od-paper);
	box-shadow:
		0 1px 0 rgba(15, 15, 15, 0.04),
		0 14px 24px -18px rgba(15, 15, 15, 0.45);
	cursor: zoom-in;
	overflow: hidden;
	z-index: 5;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.od-buildings-thumb::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(15, 15, 15, 0.45) 100%);
	opacity: 0.85;
	z-index: 2;
}

.od-buildings-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	padding: 0;
	filter: saturate(0.92) contrast(1.02);
	z-index: 1;
}

.od-buildings-thumb__hint {
	position: absolute;
	left: 0.5rem;
	bottom: 0.4rem;
	z-index: 3;
	font-family: var(--od-font-mono);
	font-size: 0.55rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--od-paper);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

/* Tiny pulsing marker pinned over the active building region. */
.od-buildings-thumb__pin {
	position: absolute;
	z-index: 3;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: var(--od-accent);
	box-shadow:
		0 0 0 2px rgba(255, 255, 255, 0.85),
		0 0 0 4px color-mix(in srgb, var(--od-accent) 45%, transparent);
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.6);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.od-buildings-thumb.has-active .od-buildings-thumb__pin {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
	animation: od-buildings-pulse 2.4s ease-in-out infinite;
}

.od-buildings-thumb[data-active-building="elipse"] .od-buildings-thumb__pin {
	left: 24%;
	top: 52%;
}

.od-buildings-thumb[data-active-building="oriente"] .od-buildings-thumb__pin {
	left: 68%;
	top: 50%;
}

@keyframes od-buildings-pulse {
	0%, 100% {
		box-shadow:
			0 0 0 2px rgba(255, 255, 255, 0.85),
			0 0 0 4px color-mix(in srgb, var(--od-accent) 45%, transparent);
	}
	50% {
		box-shadow:
			0 0 0 2px rgba(255, 255, 255, 0.85),
			0 0 0 9px color-mix(in srgb, var(--od-accent) 0%, transparent);
	}
}

.od-buildings-thumb:hover,
.od-buildings-thumb:focus-visible {
	transform: translateY(-2px);
	border-color: var(--od-accent);
	box-shadow:
		0 1px 0 rgba(15, 15, 15, 0.06),
		0 22px 36px -22px rgba(15, 15, 15, 0.6);
}

.od-buildings-thumb:focus-visible {
	outline: 1px solid var(--od-accent);
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Buildings lightbox — fullscreen overlay with spotlight on active building
   -------------------------------------------------------------------------- */

.od-buildings-lightbox {
	--odb-paper: var(--bg);
	--odb-ink: var(--ink);
	--odb-rule: var(--border-strong);
	--odb-muted: var(--text-muted);
	--odb-accent: var(--accent);
	--odb-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

	position: fixed;
	inset: 0;
	z-index: 10060;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(1rem, 4vw, 3rem);
}

.od-buildings-lightbox[hidden] {
	display: none;
}

.od-buildings-lightbox__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 15, 15, 0.78);
	backdrop-filter: blur(6px);
	animation: od-buildings-fade 0.25s ease forwards;
}

.od-buildings-lightbox__panel {
	position: relative;
	width: min(100%, 1100px);
	max-height: calc(100vh - 4rem);
	background: var(--odb-paper);
	border: 1px solid var(--odb-rule);
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55);
	display: flex;
	flex-direction: column;
	animation: od-buildings-rise 0.32s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.od-buildings-lightbox__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--odb-rule);
}

.od-buildings-lightbox__heading {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.od-buildings-lightbox__title {
	margin: 0;
	font-size: clamp(1.1rem, 2.2vw, 1.5rem);
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--odb-ink);
}

.od-buildings-lightbox__close {
	flex-shrink: 0;
	width: 2.25rem;
	height: 2.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--odb-rule);
	background: transparent;
	color: var(--odb-ink);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.od-buildings-lightbox__close:hover,
.od-buildings-lightbox__close:focus-visible {
	background: var(--odb-ink);
	color: var(--odb-paper);
	border-color: var(--odb-ink);
}

.od-buildings-lightbox__close:focus-visible {
	outline: 1px solid var(--odb-accent);
	outline-offset: 2px;
}

.od-buildings-lightbox__frame {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	background: var(--odb-paper);
	overflow: hidden;
}

.od-buildings-lightbox__image {
	display: block;
	width: 100%;
	height: 100%;
	max-height: calc(100vh - 10rem);
	object-fit: contain;
	padding: 1.5rem;
}

@keyframes od-buildings-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes od-buildings-rise {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.od-buildings-thumb,
	.od-buildings-thumb__pin,
	.od-buildings-lightbox__overlay,
	.od-buildings-lightbox__panel {
		animation: none !important;
		transition: none !important;
	}
}
