/* Pasek wyszukiwania nieruchomości */

.property-search-bar-wrap {
	position: relative;
	width: 100%;
}

/* Strzałka */
.property-search-bar-arrow {
	display: block;
	width: 0;
	height: 0;
	margin: 0 auto;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-bottom: 10px solid #ffffffb0;
}

/* Bar */
.property-search-bar {
	width: 100%;
	background: #ffffffb0;
	color: #000;
	padding: 2rem 2.5rem;
	box-sizing: border-box;
	backdrop-filter: blur(3px);
}

.property-search-bar-inner {
	max-width: 100%;
	margin: 0 auto;
}

.property-search-bar-form {
	margin: 0;
}

/* ===== GRID LAYOUT ===== */

.property-search-bar-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(180px, 1fr)) auto;
	gap: 2rem;
	align-items: end;
	width: 100%;
}

.property-search-bar-row-extra {
	margin-top: 1rem;
	padding-top: 1rem;
	/* border-top: 1px solid rgba(255, 255, 255, 0.25); */

	display: grid;
	grid-template-columns: repeat(4, minmax(180px, 1fr)) auto;
	gap: 2rem;
	align-items: end;
}

/* ===== GRUPY ===== */

.property-search-bar-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-width: 0;
}

/* ===== LABEL ===== */

.property-search-bar-label {
	font-family: 'Rosario';
	font-size: 2rem;
	font-weight: 400;
	white-space: nowrap;
	color: #000;
}

/* ===== CHECKBOXY ===== */

.property-search-bar-checkboxes {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.property-search-bar-checkboxes-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.4rem 1rem;
}

.property-search-bar-checkboxes label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.5rem;
	cursor: pointer;
	white-space: nowrap;
	color: #000;
}

.property-search-bar-checkboxes input[type="checkbox"] {
	width: 2.1rem;
	height: 2.1rem;
	margin: 0;
	flex-shrink: 0;
	cursor: pointer;
	accent-color: #b8384c;
	background: #fff;
	border-radius: 2px;
	padding: 5px;
}

/* ===== RANGE ===== */

.property-search-bar-group-range .property-search-bar-range {
	display: flex;
	gap: 0.5rem;
}

.property-search-bar-range input[type="number"] {
	width: 6rem;
	padding: 0.1rem 0.6rem;
	border: 1px solid #ccc;
	background: #fff;
	color: #222;
	font-size: 1.5rem;
	border-radius: 4px;
	box-sizing: border-box;
}

.property-search-bar-range input[type="number"]:focus {
	outline: none;
	border-color: #888;
}

.property-search-bar-range input::placeholder {
	color: #888;
}

/* ===== PRZYCISKI ===== */

.property-search-bar-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.75rem;
	justify-self: end;
}

.property-search-bar-actions-extra {
	justify-self: end;
}

.property-search-bar-btn {
	padding: 7px 14px;
	border: none;
	font-size: 2rem;
	font-weight: 600;
	cursor: pointer;
	gap: 0.5rem;
	width: 316px;
	height: 50px;
	text-align: center;
	white-space: nowrap;
}

.property-search-bar-btn-search {
	background: #b8384c;
	color: #fff;
}

.property-search-bar-btn-search:hover {
	background: #a45864;
}

/* .property-search-bar-icon-search {
	display: inline-block;
	width: 1.05em;
	height: 1.05em;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat center;
	mask-size: contain;
} */

/* Toggle */
.property-search-bar-toggle {
	background: #D3DADC;
	border: none;
	color: #fff;
	font-size: 2rem;
	cursor: pointer;
	gap: 0.3rem;
	width: 316px;
	height: 50px;	
	padding: 7px 14px;
	text-align: center;
}

.property-search-bar-toggle:hover {
	background: #BFC0C1;
}

/* ===== ROZWIJANIE ===== */

.property-search-bar-row-extra[hidden] {
	display: none !important;
}

.property-search-bar-row-extra:not([hidden]) {
	display: grid;
}

/* ===== RESPONSYWNOŚĆ ===== */

@media (max-width: 1100px) {
	.property-search-bar-row,
	.property-search-bar-row-extra {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.property-search-bar-row,
	.property-search-bar-row-extra {
		grid-template-columns: 1fr;
	}

	.property-search-bar-actions,
	.property-search-bar-actions-extra {
		justify-self: start;
	}
}
