/* Zeylanda apartments presentation. Prefix: zb- */
/* Client palette (2026-11-16). */
:root {
	--zb-free-bg: #DFECC6;
	--zb-free-text: #2D5A18;
	--zb-taken-bg: #FAEBC0;
	--zb-taken-text: #B59B6F;
	--zb-cream: #F9F6F0;
	--zb-outline: #F4ECDF;
	--zb-label: #8a8072;
}

.zb-wrap,
.zb-floor-page {
	max-width: 100%;
	box-sizing: border-box;
}

.zb-floor-page *,
.zb-wrap * {
	box-sizing: border-box;
}

/* Building */
.zb-building {
	position: relative;
	line-height: 0;
}

.zb-building .zb-photo {
	display: block;
	width: 100%;
	height: auto;
}

.zb-building .zb-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.zb-floor {
	cursor: pointer;
	outline: none;
}

.zb-floor>* {
	fill: transparent;
	stroke: transparent;
	stroke-width: 3;
	transition: fill .2s, stroke .2s;
}

.zb-floor:hover>*,
.zb-floor:focus-visible>* {
	fill: rgba(255, 255, 255, .35);
	stroke: #fff;
}

.zb-floor.is-sold-out>* {
	fill: rgba(90, 90, 90, .05);
}

.zb-floor.is-sold-out:hover>*,
.zb-floor.is-sold-out:focus-visible>* {
	fill: rgba(120, 120, 120, .4);
	stroke: #999;
}

.zb-tooltip {
	position: absolute;
	z-index: 5;
	pointer-events: none;
	background: #fff;
	color: #0f172a;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	line-height: 1.5;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
	min-width: 150px;
}

.zb-tooltip[hidden] {
	display: none;
}

.zb-tooltip strong {
	display: block;
	font-size: 15px;
	margin-bottom: 4px;
}

.zb-tooltip .is-free {
	color: var(--zb-free-text);
}

.zb-tooltip .is-reserved {
	color: var(--zb-taken-text);
}

.zb-tooltip .is-sold {
	color: var(--zb-taken-text);
}

.zb-floors ul {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.zb-floors li {
	margin: 0;
}

.zb-floors a {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--zb-outline);
	border-radius: 8px;
	background: #fff;
	color: #0f172a;
	font-weight: 600;
	text-decoration: none;
}

.zb-floors a:hover {
	background: var(--zb-cream);
}

.zb-floors__free {
	color: var(--zb-free-text);
	font-weight: 400;
	font-size: .9em;
	margin-left: 4px;
}

/* Floor page */
.zb-topbar {
	background: #fff;
	border: 1px solid var(--zb-outline);
	padding: 16px 24px;
	border-radius: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.zb-back {
	background: var(--zb-cream);
	padding: 10px 16px;
	border-radius: 8px;
	color: #475569;
	font-weight: 600;
	text-decoration: none;
}

.zb-topbar__title h2 {
	font-size: 20px;
	font-weight: 700;
	margin: 0;
}

.zb-topbar__title span {
	font-size: 13px;
	color: #64748b;
}

.zb-count {
	color: var(--zb-free-text);
}

.zb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
	gap: 20px;
}

.zb-card {
	background: #fff;
	border: 1px solid var(--zb-outline);
	border-radius: 12px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.zb-card__body {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.zb-card__plan {
	width: 200px;
	max-width: 100%;
	min-height: 180px;
	background: #fff;
	border: 1px solid var(--zb-outline);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
	font-size: 13px;
	font-weight: 600;
	overflow: hidden;
}

.zb-card__plan-img {
	max-width: 100%;
	height: auto;
	display: block;
}

.zb-card__info {
	flex: 1 1 200px;
	min-width: 0;
}

.zb-card__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.zb-card__title {
	font-size: 18px;
	font-weight: 700;
	margin: 0;
}

.zb-status {
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	white-space: nowrap;
}

.zb-status--free {
	background: var(--zb-free-bg);
	color: var(--zb-free-text);
}

.zb-status--reserved {
	background: var(--zb-taken-bg);
	color: var(--zb-taken-text);
}

.zb-status--sold {
	background: var(--zb-taken-bg);
	color: var(--zb-taken-text);
}

.zb-specs {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
}

.zb-specs li {
	display: flex;
	justify-content: space-between;
	margin: 0;
}

.zb-specs span {
	color: var(--zb-label);
}

.zb-price {
	background: var(--zb-cream);
	border: 1px solid var(--zb-outline);
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 800;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 4px;
}

.zb-price small {
	font-size: 12px;
	color: var(--zb-label);
	font-weight: 400;
}

.zb-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.zb-btn {
	flex: 1 1 140px;
	padding: 12px;
	border-radius: 8px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.zb-btn--primary {
	flex-grow: 2;
	background: #464d1f;
	color: #fff;
}

.zb-btn--primary:hover {
	color: #fff;
	opacity: .9;
}

.zb-btn--secondary {
	background: var(--zb-cream);
	border: 1px solid var(--zb-outline);
	color: #475569;
}

.zb-empty {
	text-align: center;
	padding: 40px 0;
	color: #64748b;
}

/* Inquiry form: fallback modal (used when Flatsome lightbox is unavailable) */
.zb-inquiry {
	background: #fff;
	padding: 24px;
	max-width: 500px;
	margin: 0 auto;
	border-radius: 8px;
}

.zb-inquiry.zb-modal-open {
	display: block;
	position: fixed;
	z-index: 100000;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 32px);
	max-height: 90vh;
	overflow: auto;
	box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .6);
}

@media (max-width: 549px) {
	.zb-topbar {
		padding: 12px 16px;
	}

	.zb-card {
		padding: 14px;
	}

	.zb-card__plan {
		width: 100%;
	}
}

/* Price-transparency table [zeylanda_ceny] */
.zb-prices {
	width: 100%;
	overflow-x: auto;
	margin-top: 16px;
}

.zb-prices__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	background: #fff;
	color: #1f2937;
}

.zb-prices__table th {
	background: #464d1f;
	color: #fff;
	text-align: left;
	font-weight: 600;
	padding: 10px 12px;
	vertical-align: bottom;
	text-transform: none;
	letter-spacing: 0;
}

.zb-prices__table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--zb-outline);
	vertical-align: top;
}

.zb-prices__table tbody tr:nth-child(even) td {
	background: var(--zb-cream);
}

.zb-prices__table details summary {
	cursor: pointer;
	color: #b59b6f;
	white-space: nowrap;
}

.zb-prices__table details ul {
	margin: 6px 0 0 16px;
	font-size: 13px;
}

@media (max-width: 849px) {
	.zb-prices__table thead {
		display: none;
	}

	.zb-prices__table,
	.zb-prices__table tbody,
	.zb-prices__table tr,
	.zb-prices__table td {
		display: block;
		width: 100%;
	}

	.zb-prices__table tr {
		border: 1px solid var(--zb-outline);
		border-radius: 8px;
		margin-bottom: 12px;
		overflow: hidden;
	}

	.zb-prices__table td {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		text-align: right;
		background: #fff !important;
	}

	.zb-prices__table td::before {
		content: attr(data-label);
		font-weight: 600;
		text-align: left;
		color: #464d1f;
	}
}
