.gamma-apartments-wrapper {
	width: 100%;
	overflow-x: auto;
	margin-bottom: 0 !important;
}

.gamma-apartments-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	margin-bottom: 0 !important;
}

.gamma-apartments-table th {
	font-weight: normal;
	padding: 15px 10px;
	border-top: none !important;
	border-left: none !important;
	border-right: none !important;
	border-bottom: 2px solid #5C8374; /* Default line color based on image */
}

.gamma-apartments-table td {
	padding: 15px 10px;
	border: none !important;
	background-color: transparent !important;
}

.gamma-apartments-table td.gamma-td-right,
.gamma-apartments-table th.gamma-td-right {
	text-align: right;
}

.gamma-apartments-table tr {
	border-bottom: 1px solid #f0f0f0; /* Overridden by Elementor */
}

.gamma-price-m2 {
	font-size: 0.85em;
	color: #888;
	margin-left: 10px;
}

.gamma-history-icon {
	cursor: pointer;
	margin-left: 5px;
	color: #5C8374;
	position: relative;
	display: inline-block;
	vertical-align: middle;
}

.gamma-history-icon:hover {
	color: #000;
}

.gamma-btn {
	color: #d1503b;
	text-decoration: underline;
	font-weight: 500;
	transition: color 0.3s ease;
}

.gamma-btn.gamma-plan-btn {
	color: #3e6d62;
}

/* Tooltip / Popup for price history */
.gamma-history-popup {
	position: absolute;
	background: #fff;
	border: 1px solid #ddd;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	padding: 15px;
	z-index: 9999;
	border-radius: 4px;
	min-width: 200px;
	font-size: 14px;
	line-height: 1.5;
	display: none;
}

.gamma-history-popup h4 {
	margin: 0 0 10px 0;
	font-size: 14px;
	color: #333;
}

.gamma-history-popup ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gamma-history-popup li {
	margin-bottom: 5px;
	color: #666;
}
.gamma-history-popup li strong {
	color: #111;
}

/* Mobilna responsywnoÄąâ€şĂ„â€ˇ tabeli (ukÄąâ€šad blokowy ulepszony) */
@media (max-width: 1100px) {
	.gamma-apartments-table, 
	.gamma-apartments-table tbody {
		display: block;
		width: 100% !important;
	}
	
	.gamma-apartments-table tr {
		display: flex;
		flex-wrap: wrap;
		padding: 12px 0 0 0;
		position: relative;
	}
	
	.gamma-apartments-table td {
		width: 100% !important;
		flex: 0 0 100%;
		box-sizing: border-box;
		text-align: left !important;
		padding: 5px 10px;
		border: none !important;
		min-height: auto;
	}

	.gamma-apartments-table td:nth-child(1) {
		padding-right: 130px !important;
		font-weight: 600;
		font-size: 1.15em;
	}

	.gamma-apartments-table td:nth-child(5) {
		position: absolute;
		top: 12px;
		right: 0;
		width: auto !important;
		justify-content: flex-end !important;
	}
	
	.gamma-apartments-table td:nth-last-child(1),
	.gamma-apartments-table td:nth-last-child(2) {
		flex: 0 0 50%;
		max-width: 50%;
		border-top: 1px solid #e0e0e0 !important;
		margin-top: 12px;
		display: block !important;
	}
	
	.gamma-apartments-table td:nth-last-child(1) .gamma-btn,
	.gamma-apartments-table td:nth-last-child(2) .gamma-btn {
		padding: 12px 0 !important;
		box-sizing: border-box;
		width: auto !important;
		display: inline-flex !important;
	}
	
	.gamma-apartments-table td:nth-last-child(2) {
		text-align: left !important;
	}
	
	.gamma-apartments-table td:nth-last-child(1) {
		text-align: right !important;
	}
	
	.gamma-row-status-sprzedane td:nth-last-child(1),
	.gamma-row-status-sprzedane td:nth-last-child(2) {
		display: none !important;
	}
	
	.gamma-apartments-table td:empty {
		display: none !important;
	}
}

.gamma-call-btn { display: inline-flex; align-items: center; }
.gamma-btn-icon svg { display: block; }