input,form button,textarea,select { -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box; font: 14px Inter,sans-serif; font-weight: 400; color: #1a1a1a; width: 100%; background: #FFF; border: 1px solid #f6f5f5; padding: 14px 20px 15px; border-radius: 6px; transition: border-color 0.5s ease, box-shadow 0.5s ease; }
#search-partner input, #newsletter-mail input { border-color: #acacac; }

#search-engine input, #search-engine-list input, #real-estate-details-contact input, #real-estate-details-contact textarea { border: 1px solid #acacac; }

#partner-form input, #partner-form textarea, #add-new-offer input, #add-new-offer textarea, #add-new-offer select { background: #f5f5f5!important; border-color: #acacac; }
input[name=lokalizacja] { padding-left: 40px; }
#join-r input[name=nazwa_firmy] { margin-top: 5px; }
form button { background: #3d3d3d; border-color: #3d3d3d; color: #FFF!important; }
#add-new-offer button { background: #27a54a; border-color: #27a54a; }
form button:hover, #add-new-offer button:hover { background: var(--hover-color); border-color: var(--hover-color); cursor: pointer; }
input:hover,form button:hover,textarea:hover { color: var(--hover-color); border-color: var(--hover-color)!important; }
input:focus,form button:focus,textarea:focus { outline: none; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance:textfield; }

#wiek { display: none!important; }

.form-error, .form-ok { position: relative; padding-left: 30px; font-weight: 700; }
.form-error:before, .form-ok:before { position: absolute; top: -1px; left: 0;  font-size: 20px; }
.form-error:before { content: '\e88e'; color: var(--hover-color); }
.form-ok:before { content: '\e86c'; color: #27a54a; }

#search-engine-form { background: #FFF; border-radius: 6px; padding: 20px; }
#search-engine-list #search-engine-form { padding: 0; }
.kryteria li.kryt:nth-child(3) { position: relative; }
.kryteria li.kryt:nth-child(3):before { position: absolute; left: 15px; top: 14px; content: '\e0c8'; color: #7e7e7e; z-index: 1; }

.dodatkowe_zl, .dodatkowe_m2 { display: inline-block; margin: 0; position: relative; }
.dodatkowe_zl:after, .dodatkowe_m2:after { position: absolute; right: 15px; top: 17px; color: #7e7e7e; font: 12px Inter,sans-serif; font-weight: 400; transition:all 0.5s ease; }
.dodatkowe_zl:hover:after, .dodatkowe_m2:hover:after { color: var(--hover-color); }
.dodatkowe_zl:after { content: 'zł'; }
.dodatkowe_m2:after { content: 'm²'; }

.schowaj_dodatkowe { margin-top: 10px; display: grid; gap: 20px; }
.schowaj label, #add-new-offer label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 3px; }
.schowaj_dodatkowe li { text-align: left; }
.schowaj_dodatkowe li p { display: inline-block; width: calc(50% - 2px); }
.dodatkowe_margin { margin-right: 4px; }

.schowaj label.label-checkbox { display: inline-flex; }
.label-checkbox { display: inline-flex; align-items: center; cursor: pointer; user-select: none; }
.label-checkbox input { display: none; }
.label-checkbox span { padding: 14px 20px 15px; border: 1px solid #ccc; border-radius: 6px; background: #FFF; transition: all 0.5s ease; color: #333; display: inline-flex; align-items: center; gap: 6px; font: 14px Inter,sans-serif; font-weight: 400; }
.label-checkbox:hover span { border-color: var(--hover-color); color: var(--hover-color); }
.label-checkbox input:checked + span { background: var(--hover-color); border-color: var(--hover-color); color: #FFF; }

#search-partner { margin-bottom: 50px; }
#search-partner li { display: inline-block; }
#search-partner li:nth-child(2) { margin-left: 5px; }

#partner-form { padding: 30px; }
#partner-form input, #partner-form textarea, #join-r input, #real-estate-details-r input, #real-estate-details-r textarea{ margin-bottom: 5px; }
#partner-form .form-ok { margin-bottom: 0!important; }

#rodo { font-size: 11px; line-height: 14px; margin: 5px 0 10px; }
#rodo a { font-weight: 700; }

#newsletter-form p { display: inline-block; }
#newsletter-send { margin-left: 5px; }

.twitter-typeahead { width: 100%; }
.tt-dropdown-menu { background: #FFF; padding: 5px 0; margin-top: 2px; z-index: 999999!important; border-radius: 6px; box-shadow: 0 2px 14px rgba(0,0,0,0.2); }
.tt-suggestion { padding: 3px 30px; transition:all 0.5s ease; text-align: left; }
.tt-suggestion:hover { color: var(--hover-color); }
.tt-dropdown-menu p { margin: 0; }
.twitter-typeahead .tt-hint { padding-left: 40px; }

#real-estate-details-top button { background: #f5f5f5; position: relative; }
#real-estate-details-top button:hover { cursor: pointer; color: var(--hover-color); transition:all 0.5s ease; }
#backBtn { padding: 5px 0 5px 27px; }
#backBtn span { position: absolute; top: -2px; left: 0; }
#shareBtn { padding: 5px 38px 5px 0; }
#shareBtn span { position: absolute; top: -2px; right: 0; }

#msg { padding-top: 20px; }

.multi-select { position: relative; width: 100%; }
.select-box { border: 1px solid #acacac; padding: 14px 20px 15px; border-radius: 6px; cursor: pointer; background: #FFF; display: flex; justify-content: space-between; align-items: center; transition: all 0.5s ease; font-size: 14px; }
.select-box:hover { border-color: var(--hover-color); color: var(--hover-color); }
.multi-select .arrow { border-bottom: 2px solid #6f6f6f; border-right: 2px solid #6f6f6f;display: block; height: 5px; pointer-events: none; -webkit-transform-origin: 66% 66%; -ms-transform-origin: 66% 66%; transform-origin: 66% 66%; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); -webkit-transition: all 0.15s ease-in-out; transition: all 0.15s ease-in-out; width: 5px; }
.multi-select.open .arrow { transform: rotate(-135deg); }
.select-box:hover .arrow { border-color: var(--hover-color); }

.options { position: absolute; width: 100%; margin-top: 6px; background: #fff; border: 1px solid #d0d0d0; border-radius: 6px; box-shadow: 0 8px 18px rgba(0,0,0,0.08); max-height: 220px; overflow-y: auto; z-index: 100; opacity: 0; transform: translateY(-10px); visibility: hidden; transition: all 0.25s ease; }
.multi-select.open .options { opacity: 1; transform: translateY(0); visibility: visible; }

.options input { display: none; }
.options label { display: flex; align-items: center; cursor: pointer; user-select: none; padding: 8px 12px; transition: background 0.5s; }
.options label:hover { background: #f6f5f5; color: var(--hover-color); }
.options label span { position: relative; padding-left: 26px; }

.options label span::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border: 2px solid #ccc; border-radius: 4px; background: #fff; transition: all 0.5s ease; box-sizing: border-box; }

.options input:checked + span::before { background: var(--hover-color); border-color: var(--hover-color); transform: scale(1.05); }
.options input:checked + span::after { content: ""; position: absolute; left: 4px; top: 5px; width: 6px; height: 3px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }

.options::-webkit-scrollbar { width: 6px; }
.options::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.options::-webkit-scrollbar-thumb:hover { background: #bbb; }

.form-info-small { font-size: 12px; color: #666; line-height: 14px; margin-top: 3px; }
.licznik.krytyczny { font-weight: 700; }

/* -- 1 -- */
@media screen and (min-width: 1500px) {
	.kryteria li:nth-child(3) { width: 765px; }
	#search-engine-list .kryteria li:nth-child(3) { width: 1005px; }
}

/* -- 2 -- */
@media screen and (min-width: 1200px) and (max-width: 1499px) {
	.kryteria li:nth-child(3) { width: 665px; }
	.schowaj_dodatkowe input, .label-checkbox span { padding: 14px 18px 15px; }
}

@media screen and (min-width: 1200px) {
	#search-engine-form { margin: 50px auto; }
	#search-engine-list #search-engine-form { margin: 20px auto 50px; }
	.kryteria li { display: inline-block; }
	.kryteria li:nth-child(1), .kryteria li:nth-child(2) { width: 160px; }
	.kryteria li:nth-child(2) { margin: 0 5px; }	
	.kryteria li:nth-child(4) { margin-left: 5px; width: 160px; }
	
	.schowaj_dodatkowe { grid-template-columns: repeat(5,1fr); }
	#search-engine-list .schowaj_dodatkowe li:last-child { grid-column: span 2; }
	
	/* .schowaj_dodatkowe li:last-child { grid-column: 1 / -1; } */
	
	#search-partner { border-radius: 6px; padding: 10px; background: #FFF; } 
	#search-partner li:nth-child(1) { width: calc(100% - 165px); }
	#search-partner li:nth-child(2) { width: 160px; }	
	#search-partner button .material-symbols-outlined { display: none; }
	
	#newsletter-mail { width: calc(100% - 165px); }
	#newsletter-send { width: 160px; }
}

@media screen and (max-width: 1199px) {
	#search-partner button .hide-mobile { display: none; }
	#search-partner li:nth-child(2) button { position: relative; height: 48px; }
	#search-partner li:nth-child(2) button .material-symbols-outlined { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); }	
}

@media screen and (min-width: 801px) and (max-width: 1200px) {
	.schowaj_dodatkowe { grid-template-columns: repeat(3,1fr); }
	
	#footer-l, #footer-r { float: left; }
	#footer-l { width: calc(100% - 450px); margin-right: 50px; }
	#footer-r { width: 400px; }	
}

/* -- 3 -- */
@media screen and (min-width: 600px) and (max-width: 1199px) {
	#search-engine-form { margin-top: 20px; }
	.kryteria li { display: inline-block; }
	.kryteria li:nth-child(1), .kryteria li:nth-child(2) { width: calc(50% - 2px); margin-bottom: 5px; }
	.kryteria li:nth-child(1) { margin-right: 4px; }
	.kryteria li:nth-child(3) { width: calc(100% - 204px); margin-right: 4px; }
	.kryteria li:nth-child(4) { width: 200px; }
	
	#search-partner li:nth-child(1) { width: calc(100% - 95px); }
	#search-partner li:nth-child(2) { width: 90px; }
	
	#join-r { margin-top: 50px; padding: 30px; }

	#newsletter-mail { width: calc(100% - 155px); }
	#newsletter-send { width: 150px; }	
}

/* -- 4 -- */
@media screen and (max-width: 599px) {
	#search-hero { font-size: 11px; }
	#search-engine-form { margin-top: 20px; }
	.kryteria li { margin-bottom: 5px; }
	.kryteria > li:nth-child(1), .kryteria > li:nth-child(2) { height: 48px; }	
	
	#search-partner li:nth-child(1) { width: calc(100% - 65px); }
	#search-partner li:nth-child(2) { width: 60px; }
	
	#partner-form { padding: 30px 20px; }
	
	#join-r { margin-top: 50px; padding: 30px 20px; }	
	
	#newsletter-mail { width: calc(100% - 125px); }
	#newsletter-send { width: 120px; }
}

@media screen and (min-width: 360px) and (max-width: 599px) {
	.kryteria > li:nth-child(1), .kryteria > li:nth-child(2) { display: inline-block; width: calc(50% - 2px); }
	.kryteria > li:nth-child(1) { margin-right: 4px; }
}
@media screen and (max-width: 359px) {

}

.nice-select {
	-webkit-tap-highlight-color: transparent;
	/* background-color: #f5f5f5; */
	color: #555557; 
	border: solid 1px #d6d5d5;
	box-sizing: border-box;
	clear: both;
	cursor: pointer;
	display: block;
	float: left;
	font: 14px Inter,sans-serif;
	outline: none;
	position: relative;
	text-align: left !important;
	-webkit-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
	-webkit-user-select: none;
		-moz-user-select: none;
		-ms-user-select: none;
        user-select: none;
	white-space: nowrap;
	width: 100%;
}
.nice-select:hover { color: var(--hover-color)!important; border-color: var(--hover-color)!important; }

#search-engine .nice-select, #search-engine-list .nice-select, #join-r .nice-select { display: inline-block; color: #555557; font-weight: 300; height: 48px; padding: 14px 60px 14px 25px; border-radius: 6px!important; border: 1px solid #acacac; vertical-align: top; }
#search-engine-list .nice-select { background: #FFF; }
#join-r .nice-select { background: #FFF; border: none; }
#sort .nice-select, #offer_limit .nice-select { background: #FFF; color: #555557; height: 36px; padding: 9px 45px 11px 25px; border-radius: 6px!important; border: 0; vertical-align: top; }
#offer_limit .nice-select { padding: 9px 40px 11px 20px; }
#search-engine .nice-select:after, #search-engine-list .nice-select:after, #sort .nice-select:after, #offer_limit .nice-select:after { right: 20px; }

/* .nice-select:active, .nice-select.open, .nice-select:focus { border-color: #6f6f6f; } */
.nice-select:after {
    border-bottom: 2px solid #6f6f6f;
    border-right: 2px solid #6f6f6f;
    content: '';
    display: block;
    height: 5px;
    margin-top: -4px;
    pointer-events: none;
    position: absolute;
    right: 10px;
    top: 50%;
    -webkit-transform-origin: 66% 66%;
        -ms-transform-origin: 66% 66%;
            transform-origin: 66% 66%;
    -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
            transform: rotate(45deg);
    -webkit-transition: all 0.15s ease-in-out;
    transition: all 0.15s ease-in-out;
    width: 5px; }
.nice-select.open:after { -webkit-transform: rotate(-135deg); -ms-transform: rotate(-135deg); transform: rotate(-135deg); border-bottom: 2px solid var(--hover-color); border-right: 2px solid var(--hover-color); }
.nice-select.open .list { color: #323232; opacity: 1; pointer-events: auto; -webkit-transform: scale(1) translateY(0); -ms-transform: scale(1) translateY(0); transform: scale(1) translateY(0); border-radius: 6px; }
.nice-select.disabled { border-color: #ededed; color: #999; pointer-events: none; }
.nice-select.disabled:after { border-color: #cccccc; }
.nice-select.wide { width: 100%; }
.nice-select.wide .list { left: 0 !important; right: 0 !important; }
.nice-select.right { float: right; }
.nice-select.right .list { left: auto; right: 0; }
.nice-select.small { font-size: 12px; height: 32px; line-height: 30px; }
.nice-select.small:after { height: 4px; width: 4px; }
.nice-select.small .option { line-height: 32px; min-height: 32px; }
.nice-select .list { background-color: #fff; /* border-radius: 6px; */ box-shadow: 0 0 0 1px #d0d0d0; box-sizing: border-box; margin-top: 4px; opacity: 0; overflow: hidden; padding: 0; pointer-events: none; position: absolute; top: 100%; left: 0;
    -webkit-transform-origin: 50% 0;
        -ms-transform-origin: 50% 0;
            transform-origin: 50% 0;
    -webkit-transform: scale(0.75) translateY(-21px);
        -ms-transform: scale(0.75) translateY(-21px);
            transform: scale(0.75) translateY(-21px);
    -webkit-transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out;
    transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out;
    z-index: 9; }

.nice-select .list:hover .option:not(:hover) { background-color: transparent !important; }
.nice-select .option { cursor: pointer; font-weight: 400; line-height: 40px; list-style: none; min-height: 40px; outline: none; padding: 0 18px; /* padding-right: 29px; */text-align: left; -webkit-transition: all 0.2s; transition: all 0.2s; }
.nice-select .option:hover, .nice-select .option.focus, .nice-select .option.selected.focus { background-color: #f6f5f5; color: var(--hover-color); }
.nice-select .option.selected { font-weight: bold; }
.nice-select .option.disabled { background-color: transparent; color: #999; cursor: default; }

.no-csspointerevents .nice-select .list { display: none; }
.no-csspointerevents .nice-select.open .list { display: block; }  
ul.list li { display: block!important; width: auto!important; margin: 0!important; padding-top: 0!important; }