/*
 * Komornik Auctions — Single auction page styles
 *
 * Palette:
 *   Navy  #1a3a5c  (primary, headings, borders)
 *   Red   #c0392b  (accent: document button, opening bid)
 *   Green #1a7a32  (upcoming status)
 *   Light #f4f6f8  (card backgrounds)
 */

/* ==========================================================================
   Page wrapper
   ========================================================================== */

.ka-page-main {
	width: 100%;
}

.ka-single {
	max-width: 1180px;
	margin: 0 auto;
	padding: 40px 24px 64px;
}

/* ==========================================================================
   Two-column layout — exactly 50/50
   ========================================================================== */

.ka-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;   /* equal halves */
	gap: 40px;
	align-items: start;
}

@media ( max-width: 900px ) {
	.ka-layout {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

/* ==========================================================================
   Gallery — left column
   ========================================================================== */

.ka-col-gallery {
	position: sticky;
	top: 24px;
	min-width: 0;   /* prevent overflow in grid */
}

/* Stage */
.ka-gallery__stage {
	position: relative;
	aspect-ratio: 4 / 3;
	background: #eaedf0;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0,0,0,.10);
	cursor: zoom-in;   /* signals lightbox on hover */
}

.ka-gallery__main-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .25s ease;
	pointer-events: none; /* clicks pass through to stage */
}

.ka-gallery__main-img.is-fading {
	opacity: 0;
}

/* Zoom hint icon — top-left corner of stage */
.ka-gallery__zoom-hint {
	position: absolute;
	top: 10px;
	left: 12px;
	width: 34px;
	height: 34px;
	background: rgba(0,0,0,.40);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	pointer-events: none;
	z-index: 2;
	opacity: .65;
	transition: opacity .2s;
}
.ka-gallery__stage:hover .ka-gallery__zoom-hint {
	opacity: 1;
}

/* Prev / Next arrows */
.ka-gallery__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	background: rgba(0,0,0,.45);
	color: #fff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	transition: background .2s, transform .15s;
	z-index: 3;
	-webkit-appearance: none;
	appearance: none;
}
.ka-gallery__nav:hover {
	background: rgba(0,0,0,.72);
	transform: translateY(-50%) scale(1.08);
}
.ka-gallery__nav--prev { left: 12px; }
.ka-gallery__nav--next { right: 12px; }

/* Counter badge */
.ka-gallery__counter {
	position: absolute;
	bottom: 10px;
	right: 12px;
	background: rgba(0,0,0,.5);
	color: #fff;
	font-size: 12px;
	padding: 3px 8px;
	border-radius: 20px;
	pointer-events: none;
	z-index: 2;
}

/* Hidden lightbox links container */
.ka-lightbox-links {
	display: none;
}

/* Thumbnail strip */
.ka-gallery__thumbs {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	overflow-x: auto;
	padding-bottom: 6px;
	scrollbar-width: thin;
	scrollbar-color: #ccc transparent;
}

/* ---- Button reset + thumb styles ---- */
.ka-gallery__thumb {
	/* Full button reset */
	-webkit-appearance: none;
	appearance: none;
	background: #eaedf0;
	border: 2px solid transparent;
	padding: 0;
	margin: 0;
	line-height: 0;       /* eliminates gap below inline img */
	font-size: 0;

	/* Dimensions */
	flex-shrink: 0;
	width: 76px;
	height: 76px;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;

	/* Transitions */
	transition: border-color .2s, transform .15s, box-shadow .2s;
}
.ka-gallery__thumb:hover {
	border-color: #8aa4bc;
	transform: translateY(-2px);
	box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.ka-gallery__thumb.is-active {
	border-color: #1a3a5c;
	box-shadow: 0 0 0 1px #1a3a5c;
}
.ka-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

/* No image placeholder */
.ka-gallery-empty {
	aspect-ratio: 4 / 3;
	background: #eaedf0;
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: #aaa;
	font-size: 14px;
}
.ka-gallery-empty i { font-size: 48px; }

/* ==========================================================================
   Right column — details
   ========================================================================== */

.ka-col-details {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

/* ── Taxonomy badges ── */
.ka-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ka-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 20px;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: .04em;
	transition: background .2s, color .2s;
}

/* Type badge — navy */
.ka-badge--type {
	background: #e8eef5;
	color: #1a3a5c;
}
.ka-badge--type:hover {
	background: #1a3a5c;
	color: #fff;
}

/* City badge — teal */
.ka-badge--city {
	background: #e6f4f1;
	color: #0d6e5a;
}
.ka-badge--city:hover {
	background: #0d6e5a;
	color: #fff;
}

/* ── Title ── */
.ka-title {
	margin: 0;
	font-size: clamp(20px, 3vw, 30px);
	font-weight: 700;
	line-height: 1.25;
	color: #1a3a5c;
}

/* ── Status + countdown ── */
.ka-status-wrap {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.ka-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 13px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
}
.ka-status--upcoming { background: #e6f4ea; color: #1a7a32; }
.ka-status--active   { background: #fff3cd; color: #7a5800; }
.ka-status--past     { background: #f0f0f0; color: #777;    }

@keyframes ka-pulse {
	0%, 100% { opacity: 1; }
	50%       { opacity: .3; }
}
.ka-pulse { animation: ka-pulse 1.6s ease infinite; }

.ka-countdown {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #555;
}
.ka-countdown strong {
	font-size: 15px;
	color: #1a3a5c;
	font-variant-numeric: tabular-nums;
}

/* ── Description ── */
.ka-description {
	font-size: 15px;
	line-height: 1.7;
	color: #3c434a;
	border-top: 1px solid #eaecee;
	padding-top: 18px;
}
.ka-description p:last-child { margin-bottom: 0; }

/* ── Document button ── */
.ka-btn-doc {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 22px;
	background: #c0392b;
	color: #fff;
	border-radius: 10px;
	text-decoration: none;
	transition: background .2s, box-shadow .2s, transform .15s;
	box-shadow: 0 4px 14px rgba(192,57,43,.25);
}
.ka-btn-doc:hover {
	background: #a93226;
	box-shadow: 0 6px 20px rgba(192,57,43,.35);
	transform: translateY(-2px);
	color: #fff;
}
.ka-btn-doc__icon-left  { font-size: 34px; flex-shrink: 0; }
.ka-btn-doc__icon-right { font-size: 20px; flex-shrink: 0; margin-left: auto; }

.ka-btn-doc__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.ka-btn-doc__text strong {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
}
.ka-btn-doc__text small {
	font-size: 11px;
	opacity: .8;
	word-break: break-all;
}

/* ── Meta grid ── */
.ka-meta-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

@media ( max-width: 500px ) {
	.ka-meta-grid { grid-template-columns: 1fr; }
}

.ka-meta-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	background: #f4f6f8;
	border-radius: 8px;
	border-left: 3px solid #1a3a5c;
	transition: box-shadow .2s;
}
.ka-meta-item:hover {
	box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.ka-meta-item--accent {
	border-left-color: #1a7a32;
	background: #f0f9f1;
}
.ka-meta-item--highlight {
	border-left-color: #c0392b;
	background: #fdf3f2;
}
.ka-meta-item--wide {
	grid-column: 1 / -1;   /* spans both columns */
}

.ka-meta-item__icon {
	font-size: 19px;
	color: #1a3a5c;
	margin-top: 2px;
	flex-shrink: 0;
	width: 22px;
	text-align: center;
}
.ka-meta-item--accent    .ka-meta-item__icon { color: #1a7a32; }
.ka-meta-item--highlight .ka-meta-item__icon { color: #c0392b; }

.ka-meta-item__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.ka-meta-item__label {
	font-size: 10px;
	font-weight: 700;
	color: #888;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.ka-meta-item__value {
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
	line-height: 1.3;
	word-break: break-word;
}
.ka-meta-item__value em {
	font-style: normal;
	color: #666;
	font-size: 12px;
	font-weight: 400;
	margin-left: 4px;
}

.ka-meta-item__value--money {
	font-size: 17px;
	font-variant-numeric: tabular-nums;
	letter-spacing: -.01em;
	color: #1a3a5c;
}
.ka-meta-item--highlight .ka-meta-item__value--money { color: #c0392b; }

/* ==========================================================================
   Breadcrumbs
   Obsługuje: manual fallback (.ka-breadcrumb), Rank Math, Yoast SEO
   ========================================================================== */

.ka-breadcrumb-wrap {
	margin-bottom: 20px;
}

/* ── Manual fallback ── */
.ka-breadcrumb {
	font-size: 13px;
	color: #888;
}

.ka-breadcrumb__list {
	list-style: none;
	margin: 0;
	padding: 0;
	line-height: 1.6;
}

.ka-breadcrumb__item {
	display: inline;
	color: #888;
}

/* Separator — inline, łamie się naturalnie ze słowami */
.ka-breadcrumb__item:not(.ka-breadcrumb__item--current)::after {
	content: " ›";
	color: #bbb;
	margin: 0 5px 0 2px;
	font-size: 12px;
}
.ka-breadcrumb__item a:hover {
	color: #1a3a5c;
}

.ka-breadcrumb__item--current {
	color: #1a3a5c;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 320px;
}

/* ── Rank Math override — match visual style ── */
.rank-math-breadcrumb {
	font-size: 13px;
	color: #888;
	margin-bottom: 0;
}
.rank-math-breadcrumb p {
	margin: 0;
	}
.rank-math-breadcrumb a {
	color: #555;
	text-decoration: none;
	transition: color .15s;
}
.rank-math-breadcrumb a:hover {
	color: #1a3a5c;
}
.rank-math-breadcrumb .separator {
	color: #bbb;
	font-size: 10px;
	margin: 0 6px;
}

/* ── Yoast override ── */
.ka-breadcrumb-wrap .yoast-breadcrumb {
	font-size: 13px;
	color: #888;
}
.ka-breadcrumb-wrap .yoast-breadcrumb a {
	color: #555;
	text-decoration: none;
	transition: color .15s;
}
.ka-breadcrumb-wrap .yoast-breadcrumb a:hover {
	color: #1a3a5c;
}

