/* ==========================================================================
   TALO Silesia - zmienne kolorystyczne
   Granat z logo = kolor główny (profesjonalizm, zaufanie)
   Błękit z logo = akcent (świeżość, przyjazność)
   ========================================================================== */
:root {
	--talo-navy: #12213D;
	--talo-navy-light: #1E3358;
	--talo-blue: #4A9FE0;
	--talo-blue-light: #EAF4FC;
	--talo-bg: #F7F8FA;
	--talo-white: #FFFFFF;
	--talo-text: #2B2E36;
	--talo-text-muted: #6B7280;
	--talo-border: #E4E7EC;
	--talo-success: #2E9E5B;
	--talo-warning: #D8A227;
	--talo-danger: #C0392B;
	--talo-radius: 14px;
	--talo-shadow: 0 4px 18px rgba(18, 33, 61, 0.08);
}

.talo-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* --- Siatka kart --- */
.talo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 24px;
	margin-top: 24px;
}

.talo-section {
	padding: 48px 0;
}

.talo-section__title {
	font-size: 28px;
	font-weight: 700;
	color: var(--talo-navy);
	margin-bottom: 4px;
	position: relative;
}

.talo-section__title::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	background: var(--talo-blue);
	margin-top: 10px;
	border-radius: 2px;
}

/* --- Karta oferty --- */
.talo-card {
	display: block;
	background: var(--talo-white);
	border-radius: var(--talo-radius);
	overflow: hidden;
	box-shadow: var(--talo-shadow);
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	border: 1px solid var(--talo-border);
}

.talo-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 28px rgba(18, 33, 61, 0.14);
}

.talo-card__image {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--talo-blue-light);
	overflow: hidden;
}

.talo-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.talo-card__no-image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--talo-navy);
	font-weight: 700;
	letter-spacing: 1px;
}

.talo-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--talo-navy);
	color: var(--talo-white);
	font-size: 12px;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 20px;
	letter-spacing: 0.3px;
}

.talo-badge--trans {
	background: var(--talo-blue);
}

.talo-badge--status {
	left: auto;
	right: 12px;
	background: var(--talo-warning);
}

.talo-card__body {
	padding: 18px 20px 20px;
}

.talo-card__title {
	font-size: 17px;
	font-weight: 700;
	color: var(--talo-navy);
	margin: 0 0 6px;
	line-height: 1.35;
}

.talo-card__adres {
	font-size: 13px;
	color: var(--talo-text-muted);
	margin: 0 0 10px;
}

.talo-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	font-size: 13px;
	color: var(--talo-text-muted);
	margin-bottom: 12px;
}

.talo-card__cena {
	font-size: 20px;
	font-weight: 800;
	color: var(--talo-navy);
	margin: 0;
}

/* --- Wyszukiwarka --- */
.talo-search-form {
	background: var(--talo-white);
	border: 1px solid var(--talo-border);
	border-radius: var(--talo-radius);
	padding: 20px;
	box-shadow: var(--talo-shadow);
}

.talo-search-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.talo-search-form select,
.talo-search-form input {
	padding: 10px 14px;
	border: 1px solid var(--talo-border);
	border-radius: 8px;
	font-size: 14px;
	background: var(--talo-bg);
	flex: 1;
	min-width: 140px;
}

/* --- Przyciski --- */
.talo-btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	border: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.talo-btn--primary {
	background: var(--talo-navy);
	color: var(--talo-white);
}

.talo-btn--primary:hover {
	background: var(--talo-blue);
	color: var(--talo-white);
}

.talo-btn--outline {
	background: transparent;
	color: var(--talo-navy);
	border: 1px solid var(--talo-navy);
	margin-top: 10px;
}

.talo-btn--block {
	display: block;
	width: 100%;
	margin-top: 10px;
}

/* --- Archiwum --- */
.talo-archive-wrap {
	padding: 150px 0 60px;
	background: var(--talo-bg);
}

.talo-archive-title {
	font-size: 32px;
	color: var(--talo-navy);
	margin-bottom: 20px;
}

.talo-no-results {
	grid-column: 1 / -1;
	text-align: center;
	padding: 40px;
	color: var(--talo-text-muted);
}

.talo-pagination {
	margin-top: 40px;
	text-align: center;
}

/* --- Pojedyncza oferta --- */
.talo-single-wrap {
	padding: 150px 0 60px;
	background: var(--talo-bg);
}

.talo-single-header h1 {
	font-size: 32px;
	color: var(--talo-navy);
	margin-bottom: 6px;
}

.talo-single-adres {
	color: var(--talo-text-muted);
	margin-bottom: 12px;
}

.talo-single-badges .talo-badge {
	position: static;
	display: inline-block;
	margin-right: 8px;
}

.talo-single-gallery {
	margin: 24px 0;
}

.talo-single-gallery__main {
	position: relative;
}

.talo-single-gallery__main img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
	border-radius: var(--talo-radius);
}

.talo-gallery-expand {
	position: absolute;
	bottom: 16px;
	right: 16px;
	background: rgba(18, 33, 61, 0.75);
	color: #fff;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.talo-single-gallery__thumbs {
	display: flex;
	gap: 10px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.talo-single-gallery__thumbs img {
	width: 90px;
	height: 90px;
	object-fit: cover;
	border-radius: 8px;
	border: 2px solid transparent;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}

.talo-single-gallery__thumbs img:hover {
	opacity: 1;
}

.talo-single-gallery__thumbs img.is-active {
	opacity: 1;
	border-color: var(--talo-blue);
}

/* --- Lightbox pełnoekranowy --- */
.talo-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(18, 33, 61, 0.94);
	z-index: 99999;
	align-items: center;
	justify-content: center;
}

.talo-lightbox.is-open {
	display: flex;
}

.talo-lightbox__close,
.talo-lightbox__prev,
.talo-lightbox__next {
	position: absolute;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border: none;
	cursor: pointer;
	border-radius: 50%;
	width: 48px;
	height: 48px;
	font-size: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.talo-lightbox__close:hover,
.talo-lightbox__prev:hover,
.talo-lightbox__next:hover {
	background: rgba(255, 255, 255, 0.25);
}

.talo-lightbox__close {
	top: 24px;
	right: 24px;
}

.talo-lightbox__prev {
	left: 24px;
	top: 50%;
	transform: translateY(-50%);
}

.talo-lightbox__next {
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
}

#talo-lightbox-img {
	max-width: 88vw;
	max-height: 82vh;
	object-fit: contain;
	border-radius: 8px;
}

.talo-lightbox__counter {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 14px;
	background: rgba(255, 255, 255, 0.12);
	padding: 6px 14px;
	border-radius: 20px;
}

.talo-single-content {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 32px;
	margin-top: 24px;
}

.talo-single-params {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	background: var(--talo-white);
	border-radius: var(--talo-radius);
	padding: 20px;
	box-shadow: var(--talo-shadow);
	margin-bottom: 24px;
}

.talo-param {
	display: flex;
	flex-direction: column;
	min-width: 90px;
}

.talo-param strong {
	font-size: 18px;
	color: var(--talo-navy);
}

.talo-param span {
	font-size: 12px;
	color: var(--talo-text-muted);
}

.talo-param--cena {
	font-size: 26px;
	font-weight: 800;
	color: var(--talo-navy);
	justify-content: center;
	background: var(--talo-blue-light);
	border-radius: 10px;
	padding: 8px 16px;
}

.talo-single-description {
	background: var(--talo-white);
	border-radius: var(--talo-radius);
	padding: 24px;
	box-shadow: var(--talo-shadow);
	line-height: 1.7;
}

.talo-contact-box {
	background: var(--talo-navy);
	color: var(--talo-white);
	border-radius: var(--talo-radius);
	padding: 24px;
	text-align: center;
}

.talo-contact-box h3 {
	margin-top: 0;
	color: var(--talo-white);
}

.talo-contact-box .talo-btn--outline {
	color: var(--talo-white);
	border-color: var(--talo-white);
}

@media (max-width: 820px) {
	.talo-single-content {
		grid-template-columns: 1fr;
	}
}
