/* TownInvest Properties — стил, съобразен с темата на towninvest.bg
   (Playfair Display, злато #BDA588, тъмносиньо #173E62, текст #66717A) */

.tip-app {
	--tip-gold: #BDA588;
	--tip-navy: #173E62;
	--tip-text: #66717A;
	--tip-dark: #232323;
	--tip-border: #e1e1e1;
	--tip-bg: #ffffff;
	--tip-bg-soft: #f7f6f4;
	--tip-green: #23A455;
	--tip-amber: #c99a2e;
	--tip-red: #9a9a9a;
	margin: 0 0 40px;
	color: var(--tip-text);
	font-size: 15px;
	line-height: 1.6;
}

.tip-app *, .tip-app *:before, .tip-app *:after { box-sizing: border-box; }

/* ---------- head ---------- */
.tip-head { margin-bottom: 22px; }
.tip-title {
	font-family: "Playfair Display", Georgia, serif;
	color: var(--tip-dark);
	font-size: 30px;
	line-height: 1.2;
	margin: 0 0 4px;
}
.tip-location {
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 12px;
	color: var(--tip-gold);
}

/* ---------- image-led Block -> Floor -> Apartment navigator ---------- */
.tip-visual { margin: 0 0 30px; }
.tip-visual-trail {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
}
.tip-trail-step {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	background: transparent;
	color: #8b9298;
	font: inherit;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	padding: 4px 0;
	cursor: pointer;
}
.tip-trail-step:hover:not(:disabled),
.tip-trail-step.is-current { color: var(--tip-gold); }
.tip-trail-step:disabled { cursor: default; opacity: .45; }
.tip-trail-step.is-current:disabled { color: var(--tip-gold); opacity: 1; }
.tip-trail-arrow { color: #c4c8cb; }
.tip-visual-shell {
	display: grid;
	grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
	background: #0c0d0e;
	overflow: hidden;
}
.tip-visual-media {
	position: relative;
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
	background: #202225;
	overflow: hidden;
}
.tip-visual-media > img {
	display: block;
	width: 100%;
	height: auto;
}
.tip-map-marker {
	position: absolute;
	transform: translate(-50%, -50%);
	appearance: none;
	-webkit-appearance: none;
	width: 62px;
	height: 62px;
	border: 4px solid #fff;
	border-radius: 50%;
	background: rgba(222, 193, 117, .94);
	color: #181818;
	font: inherit;
	font-family: Georgia, serif;
	font-size: 18px;
	line-height: 54px;
	text-align: center;
	padding: 0;
	cursor: pointer;
	z-index: 2;
	box-shadow: 0 5px 18px rgba(0, 0, 0, .3);
	transition: transform .18s ease, background .18s ease;
}
.tip-map-marker:hover,
.tip-map-marker:focus-visible {
	transform: translate(-50%, -50%) scale(1.1);
	background: #fff;
	outline: 3px solid rgba(189, 165, 136, .45);
	outline-offset: 3px;
}
.tip-visual-menu {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: rgba(8, 9, 10, .98);
	color: #fff;
	z-index: 3;
	min-height: 0;
	overflow: hidden;
}
.tip-visual-menu-head {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 20px 18px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.tip-visual-menu-title {
	font-size: 12px;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 1.3px;
	color: #fff;
}
.tip-visual-back {
	align-self: flex-start;
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	background: transparent;
	color: var(--tip-gold);
	font: inherit;
	font-size: 12px;
	padding: 0;
	cursor: pointer;
}
.tip-visual-back:hover { color: #fff; }
.tip-visual-options {
	display: flex;
	flex: 1;
	flex-direction: column;
	overflow-y: auto;
	overscroll-behavior: contain;
	min-height: 0;
}
.tip-visual-option {
	display: flex;
	align-items: center;
	gap: 7px;
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	min-height: 46px;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, .24);
	background: #0b0c0d;
	color: #fff;
	font: inherit;
	font-size: 12px;
	line-height: 1.35;
	text-align: left;
	padding: 11px 16px;
	cursor: pointer;
	transition: background .16s ease, color .16s ease;
}
.tip-visual-option:hover,
.tip-visual-option:focus-visible,
.tip-visual-option.is-active {
	background: var(--tip-gold);
	color: #111;
	outline: none;
}
.tip-visual-option-label { flex: 1; }
.tip-visual-option-count { font-weight: 700; }
.tip-visual-unit-status {
	font-size: 9px;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: .6px;
	color: #8bd9a7;
}
.tip-visual-unit-status.tip-st-reserved { color: #f0ce76; }
.tip-visual-option:hover .tip-visual-unit-status,
.tip-visual-option.is-active .tip-visual-unit-status { color: #111; }
.tip-visual-empty-note {
	margin: 0;
	padding: 24px 18px;
	color: rgba(255, 255, 255, .62);
	font-size: 13px;
}
.tip-visual-plan-tabs {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
	z-index: 2;
}
.tip-visual-plan-tab {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid rgba(255, 255, 255, .7);
	background: rgba(10, 11, 12, .82);
	color: #fff;
	font: inherit;
	font-size: 11px;
	padding: 7px 10px;
	cursor: pointer;
}
.tip-visual-plan-tab:hover,
.tip-visual-plan-tab.is-active { background: var(--tip-gold); border-color: var(--tip-gold); color: #111; }

/* ---------- pills (buildings / floors) ---------- */
.tip-pills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
}
.tip-pill-label {
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 11px;
	color: var(--tip-dark);
	margin-right: 4px;
	white-space: nowrap;
}
.tip-pill {
	appearance: none;
	-webkit-appearance: none;
	background: var(--tip-bg);
	border: 1px solid var(--tip-border);
	color: var(--tip-dark);
	font: inherit;
	font-size: 13px;
	padding: 8px 16px;
	cursor: pointer;
	border-radius: 0;
	transition: all .2s ease;
	line-height: 1.3;
}
.tip-pill:hover { border-color: var(--tip-gold); color: var(--tip-gold); background: var(--tip-bg); }
.tip-pill.is-active {
	background: var(--tip-navy);
	border-color: var(--tip-navy);
	color: #fff;
}
.tip-pill-badge {
	display: inline-block;
	min-width: 18px;
	padding: 0 5px;
	margin-left: 6px;
	border-radius: 9px;
	background: var(--tip-green);
	color: #fff;
	font-size: 11px;
	line-height: 18px;
	text-align: center;
}
.tip-pill.is-active .tip-pill-badge { background: var(--tip-gold); }

/* ---------- plan ---------- */
.tip-plan { margin-bottom: 26px; }
.tip-plan-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tip-plan-tab {
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	color: var(--tip-text);
	font: inherit;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 6px 10px;
	cursor: pointer;
}
.tip-plan-tab:hover { color: var(--tip-gold); }
.tip-plan-tab.is-active { color: var(--tip-dark); border-bottom-color: var(--tip-gold); }
.tip-plan-figure {
	position: relative;
	margin: 0;
	border: 1px solid var(--tip-border);
	background: var(--tip-bg);
	padding: 10px;
}
.tip-plan-figure img {
	display: block;
	width: 100%;
	height: auto;
	cursor: zoom-in;
}
.tip-zoom-hint {
	position: absolute;
	right: 18px;
	bottom: 18px;
	appearance: none;
	-webkit-appearance: none;
	border: none;
	background: rgba(23, 62, 98, .88);
	color: #fff;
	font: inherit;
	font-size: 12px;
	letter-spacing: 1px;
	padding: 8px 14px;
	cursor: pointer;
	transition: background .2s ease;
}
.tip-zoom-hint:hover { background: var(--tip-gold); }

/* ---------- filter bar ---------- */
.tip-filterbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 0;
	border-top: 1px solid var(--tip-border);
}
.tip-stats { font-size: 14px; }
.tip-stats strong { color: var(--tip-dark); }
.tip-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.tip-select {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid var(--tip-border);
	background: var(--tip-bg) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2366717A'/%3E%3C/svg%3E") no-repeat right 12px center;
	color: var(--tip-dark);
	font: inherit;
	font-size: 13px;
	padding: 8px 32px 8px 12px;
	cursor: pointer;
	border-radius: 0;
	max-width: 240px;
}
.tip-select:focus { outline: none; border-color: var(--tip-gold); }

/* ---------- table ---------- */
.tip-scroll { overflow-x: auto; }
.tip-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	margin: 0;
}
.tip-table th {
	font-family: inherit;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 11px;
	font-weight: 600;
	color: var(--tip-dark);
	text-align: left;
	padding: 12px 14px;
	background: var(--tip-bg-soft);
	border-bottom: 2px solid var(--tip-gold);
	white-space: nowrap;
}
.tip-table th.tip-sortable { cursor: pointer; user-select: none; }
.tip-table th.tip-sortable:hover { color: var(--tip-gold); }
.tip-table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--tip-border);
	vertical-align: middle;
}
.tip-row.tip-clickable { cursor: pointer; }
.tip-row:hover td { background: var(--tip-bg-soft); }
.tip-row.is-selected td { background: rgba(189, 165, 136, .15); }
.tip-row.is-selected { box-shadow: inset 3px 0 0 var(--tip-gold); }
.tip-row.is-open td { background: var(--tip-bg-soft); border-bottom-color: transparent; }
.tip-unit-name { color: var(--tip-dark); font-weight: 600; }
.tip-st-sold .tip-unit-name { color: var(--tip-text); font-weight: 400; }
.tip-st-sold td { color: #9aa2a9; }
.tip-unit-note {
	display: inline-block;
	margin-left: 6px;
	font-size: 11px;
	color: var(--tip-gold);
	border: 1px solid var(--tip-gold);
	padding: 1px 7px;
	white-space: nowrap;
}
.tip-price { color: var(--tip-navy); font-weight: 600; white-space: nowrap; }

.tip-badge {
	display: inline-block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 4px 10px;
	white-space: nowrap;
}
.tip-badge.tip-st-available { background: rgba(35, 164, 85, .12); color: var(--tip-green); }
.tip-badge.tip-st-reserved { background: rgba(201, 154, 46, .13); color: var(--tip-amber); }
.tip-badge.tip-st-sold { background: #f0f0f0; color: #9a9a9a; }

.tip-cell-expand { width: 40px; text-align: right; }
.tip-expand {
	appearance: none;
	-webkit-appearance: none;
	width: 26px;
	height: 26px;
	border: 1px solid var(--tip-border);
	background: var(--tip-bg);
	color: var(--tip-navy);
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}
.tip-row:hover .tip-expand { border-color: var(--tip-gold); color: var(--tip-gold); }

.tip-details-row > td {
	background: var(--tip-bg-soft);
	padding: 4px 14px 18px;
}
.tip-desc { margin: 8px 0 10px; font-size: 13.5px; }
.tip-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 26px;
	margin: 6px 0 0;
}
.tip-fact { font-size: 13px; }
.tip-fact span { display: block; text-transform: uppercase; letter-spacing: 1px; font-size: 10px; color: #9aa2a9; }
.tip-fact strong { color: var(--tip-dark); font-weight: 600; }
.tip-prices { padding-top: 10px; margin-top: 10px; border-top: 1px dashed var(--tip-border); }
.tip-fact-price strong { color: var(--tip-navy); }

.tip-empty { padding: 24px 0; font-style: italic; }
.tip-note { margin-top: 14px; font-size: 12.5px; color: #9aa2a9; }

/* ---------- lightbox ---------- */
.tip-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(20, 26, 34, .92);
	display: none;
}
.tip-lightbox.is-open { display: block; }
body.tip-noscroll { overflow: hidden; }
.tip-lb-stage {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.tip-lb-stage img {
	max-width: 92%;
	max-height: 92%;
	cursor: grab;
	transition: transform .08s linear;
	will-change: transform;
	touch-action: none;
	user-select: none;
	-webkit-user-drag: none;
	box-shadow: 0 10px 60px rgba(0, 0, 0, .5);
	background: #fff;
}
.tip-lb-stage img.is-dragging { cursor: grabbing; transition: none; }
.tip-lb-toolbar {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 2;
	display: flex;
	gap: 8px;
}
.tip-lb-btn {
	appearance: none;
	-webkit-appearance: none;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, .35);
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: all .2s ease;
	padding: 0;
}
.tip-lb-btn:hover { background: var(--tip-gold); border-color: var(--tip-gold); }

/* ---------- noscript ---------- */
.tip-noscript { width: 100%; border-collapse: collapse; }
.tip-noscript th, .tip-noscript td { border: 1px solid #e1e1e1; padding: 8px 10px; text-align: left; }

/* ---------- mobile: table -> cards ---------- */
@media (max-width: 719px) {
	.tip-title { font-size: 24px; }
	.tip-visual-trail { gap: 5px; }
	.tip-trail-step { font-size: 10px; letter-spacing: .8px; }
	.tip-visual-shell { display: flex; flex-direction: column; min-height: 0; }
	.tip-visual-media { order: 1; width: 100%; min-height: 0; }
	.tip-visual-media > img { height: auto; min-height: 0; max-height: 62vh; object-fit: contain; }
	.tip-visual-menu { order: 2; max-height: 320px; }
	.tip-visual-menu-head { padding: 14px 16px 10px; }
	.tip-map-marker { width: 48px; height: 48px; border-width: 3px; font-size: 15px; line-height: 42px; }
	.tip-visual-plan-tabs { right: 8px; bottom: 8px; }
	.tip-filterbar { flex-direction: column; align-items: flex-start; }
	.tip-controls { width: 100%; }
	.tip-select { flex: 1 1 45%; max-width: none; }

	.tip-table thead { display: none; }
	.tip-table, .tip-table tbody { display: block; width: 100%; }
	.tip-table tr { display: block; }
	.tip-row {
		border: 1px solid var(--tip-border);
		margin-bottom: 10px;
		padding: 6px 0;
	}
	.tip-row td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 14px;
		border: none;
		padding: 5px 14px;
		text-align: right;
	}
	.tip-row td:before {
		content: attr(data-label);
		text-transform: uppercase;
		letter-spacing: 1px;
		font-size: 10px;
		color: #9aa2a9;
		text-align: left;
	}
	.tip-row td.tip-cell-expand { display: none; }
	.tip-row.is-open { margin-bottom: 0; border-bottom: none; }
	.tip-details-row { display: block; border: 1px solid var(--tip-border); border-top: none; margin-bottom: 10px; }
	.tip-details-row > td { display: block; }
	.tip-zoom-hint { right: 12px; bottom: 12px; padding: 6px 10px; }
}
