/* ==========================================================================
   ROTÁTOR PŮDORYSŮ — .nps-plan-rotator
   ========================================================================== */

.nps-plan-rotator {
	position: relative;
	width: 100%;
	max-width: 400px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.nps-plan-rotator__slide {
	display: none !important;
	margin: 0;
	width: 100%;
}

.nps-plan-rotator__slide--active {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.nps-plan-rotator__link {
	position: relative;
	display: flex !important;
	justify-content: center;
	align-items: center;
	cursor: zoom-in;
	text-decoration: none;
	width: 100%;
	line-height: 0;
}

/* Všechny obrázky v rotátoru — pevná výška, šířka auto.
   Třídy i tag selektory dohromady aby specificita vždy vyhrála. */
.nps-plan-rotator__link img,
.nps-plan-rotator__link .nps-nabidka-unit__plan-img,
.nps-nabidka-unit__plan-link img,
.nps-nabidka-unit__plan-link .nps-nabidka-unit__plan-img {
	display: block !important;
	height: 200px !important;
	width: auto !important;
	max-width: 100% !important;
	max-height: 200px !important;
	object-fit: contain !important;
	margin-inline: auto !important;
}

.nps-plan-rotator__zoom {
	position: absolute;
	bottom: var(--space-2);
	right: var(--space-2);
	width: 32px;
	height: 32px;
	background: rgba(48, 60, 29, 0.75);
	color: var(--color-text-inverse);
	border-radius: 2px;
	display: flex !important;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity var(--transition-base);
	pointer-events: none;
}

.nps-plan-rotator__link:hover .nps-plan-rotator__zoom,
.nps-plan-rotator__link:focus-visible .nps-plan-rotator__zoom {
	opacity: 1;
}

.nps-plan-rotator__label {
	display: block;
	text-align: center;
	font-size: var(--text-xs);
	color: var(--color-text-muted);
	letter-spacing: 0.05em;
	margin-block-start: var(--space-2);
	line-height: var(--line-height-base);
}

.nps-plan-rotator__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: var(--space-3);
	margin-block-start: var(--space-3);
}

.nps-plan-rotator__dot {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	padding: 0;
	cursor: pointer;
	background: var(--color-border);
	transition: background var(--transition-fast), transform var(--transition-fast);
	appearance: none !important;
	box-shadow: none !important;
	line-height: 1;
	min-height: 0;
	min-width: 0;
	flex-shrink: 0;
}

/* WCAG AA touch target 44×44px */
.nps-plan-rotator__dot::before {
	content: '';
	position: absolute;
	inset: -18px;
}

.nps-plan-rotator__dot--active {
	background: var(--color-primary);
	transform: scale(1.5);
}

.nps-plan-rotator__dot:hover { background: var(--color-accent); }

.nps-plan-rotator__dot:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 4px;
}

/* ——————————————————————————————————————————————————
   KONTEXT: nabídka bytů (.nps-nabidka-unit__plan-col)
   —————————————————————————————————————————————————— */

.nps-nabidka-unit__plan-col .nps-plan-rotator {
	max-width: 400px;
	margin-inline: auto;
	align-self: center;
}

.nps-nabidka-unit__plan-link {
	display: flex !important;
	justify-content: center;
	align-items: center;
	cursor: zoom-in;
	text-decoration: none;
	width: 100%;
}

.nps-nabidka-unit__plan-link:hover img,
.nps-nabidka-unit__plan-link:hover .nps-nabidka-unit__plan-img {
	opacity: 0.85;
}

/* ——————————————————————————————————————————————————
   KONTEXT: homepage karty (.nps-unit-card__top)
   —————————————————————————————————————————————————— */

.nps-unit-card__top .nps-plan-rotator {
	max-width: 100%;
}

.nps-unit-card__top .nps-plan-rotator__slide--active {
	min-height: 160px;
	justify-content: center;
}

.nps-unit-card__top .nps-plan-rotator__link {
	min-height: 160px;
}

/* — Reduced motion — */
@media (prefers-reduced-motion: reduce) {
	.nps-plan-rotator__zoom,
	.nps-plan-rotator__dot { transition: none; }
}


.nps-nabidka-unit__plan-col {
    max-width: 680px !important;
    width: 100%;
}

#nps-unit-3-kk > div.nps-nabidka-unit__plan-col {
    margin-left: auto;
}




/* pro firmy */
body.page-template-page-firmy #nps-main > section.nps-section.nps-subpage-offer > div > ul{
grid-template-columns: 1fr;
    max-width: 600px;	
}