/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* team desc */

@media (max-width: 768px) {
	.team-desc {
		max-height: 100px;
		overflow: hidden;
		position: relative;
		transition: max-height 0.5s ease;
	}

	.team-desc::after {
		content: '';
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 100px;
		background: linear-gradient(to bottom, transparent, #6c794d);
		pointer-events: none;
		transition: opacity 0.5s ease;
	}

	.team-desc.expanded::after {
		opacity: 0;
	}

	.team-desc-toggle {
		display: block;
		margin-top: 10px;
		background: #F6F2E8D6;
		border: 1px solid #F6F2E8D6;
		color: #a35027;
		cursor: pointer;
		border-radius: 500px;
		font-size: 14px;
		outline: 0;
		font-weight: 600;
		padding: 5px 15px;
	}

	.team-desc-toggle:hover {
		background: transparent;
		color: #F6F2E8D6;
	}
}

@media (min-width: 769px) {
	.team-desc-toggle {
		display: none;
	}
}

/* team desc */

/* fix obrazkow */

.single-mini-box {
	background-size: cover !important;
}

.single-box-highlighted {
	background-color: #A35027 !important;
}

.single-box-highlighted .elementor-icon-box-title, .single-box-highlighted a {
	color: #A35027 !important;
}

.single-box-highlighted svg path {
	fill: #A35027 !important;
}

/* agent */

.agent-photo {
	position: relative;
	width: 100%;             
	height: 0;
	padding-bottom: 100%;   
	overflow: hidden;  
}

.agent-photo img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;             
	height: 100%;            
	object-fit: cover;      
	border-radius: 14px;
}

/* search */

#esticrm-search .row {
	display: flex;
    flex-direction: row;
	align-items: center;
	gap: 26px;
	justify-content: space-around;
    width: 100%;
}

#esticrm-search .row .col {
	flex: 1;
}

#esticrm-search .row select {
	font-family: "DM Sans", Sans-serif;
	appearance: none;         
	-webkit-appearance: none; 
	-moz-appearance: none; 
	background-color: transparent;
	border: 0;
	padding: 15px 30px 15px 30px;
	font-size: 12px;
	line-height: 1.5;
	border-radius: 0;
	background-image: url("data:image/svg+xml;utf8,%3Csvg%20width%3D'11'%20height%3D'8'%20viewBox%3D'0%200%2011%208'%20fill%3D'none'%20xmlns%3D'http%3A//www.w3.org/2000/svg'%3E%3Cpath%20d%3D'M10%201L5.5%206L1%201'%20stroke%3D'%23F6F2E8'%20stroke-width%3D'1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.8em center;
	background-size: 12px;
	cursor: pointer;
	color: #fff;
	outline: 0;
	text-transform: uppercase;
	font-weight: 600;
	border-radius: 50px;
}

#esticrm-search .row select option {
	color: #333;
	background-color: #f9f9f9;
}

#esticrm-search .row select option:hover {
	background-color: #e0e0e0;
}

#esticrm-search .row .btn {
	display: flex;
	align-items: center;
	gap: 6px;
	background-color: #F6F2E8;
    font-family: "DM Sans", Sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 26px;
    letter-spacing: 0.2px;
    fill: #6C794D;
    color: #6C794D;
    transition-duration: 1s;
    border-style: none;
    border-radius: 50px 50px 50px 50px;
    padding: 15px 30px 15px 30px;
}

#esticrm-search .advanced {
	display: none;
    flex-direction: column;
    gap: 26px;
}

#esticrm-search .row .col.btn-wrapper {
	display: flex;
    flex-direction: row;
    border: 1px solid #F6F2E8;
    border-radius: 50px;
}

#esticrm-search .row .btn.btn-more {
	background-color: transparent;
	border: 0;
	color: #F6F2E8;
}

#esticrm-search .row .btn.btn-more svg {
	width: 12px;
	height: auto;
}

#esticrm-search .row .btn svg {
	width: 20px;
	height: auto;
}

/* search adv */

#esticrm-search {
	display: flex;
	flex-direction: column;
	gap: 26px;
}

#esticrm-search .row .range-input {
	display: flex;
	width: 100%;              
	border: 1px solid #F6F2E8;
	border-radius: 50px; 
	overflow: hidden;
}

#esticrm-search .row .range-input input {
	flex: 1;                 
	border: none;      
	outline: none;   
	font-size: 12px;
	border-radius: 50px;
	background: transparent;
	color: #F6F2E8;
	text-transform: uppercase;
	padding: 15px 30px 15px 30px;
	font-weight: 600;
}

#esticrm-search .row .range-input input:first-child {
  border-right: 1px solid #F6F2E8;
}

#esticrm-search .row .range-input input::placeholder {
  color: #F6F2E8;
}

#esticrm-search .row .col.input input {
	flex: 1;                 
	border: none;      
	outline: none;   
	font-size: 12px;
	background: transparent;
	color: #F6F2E8;
	text-transform: uppercase;
	padding: 15px 30px 15px 30px;
	border-radius: 50px;
	font-weight: 600;
}

#esticrm-search .row.adv :not(.range-input) input,
#esticrm-search .row.adv :not(.range-input) select {
  border: 1px solid #F6F2E8;
}

input::placeholder,
textarea::placeholder {
  color: #fff;
  opacity: 1;
}

#esticrm-search .row.adv .btn {
	width: 100%;
	justify-content: center;
}
  
#esticrm-search h2 {
	font-family: 'Aleo';
    color: #F6F2E8;
    font-size: 42px;
}

#esticrm-search .advanced .col.btn-wrapper {
	flex: unset;
}

#esticrm-search .advanced.open {
   display: flex;
}

#adv-radius {
	transition: border-radius 0.4s ease;
}

#adv-radius.rounded {
	border-radius: 10px;
}

#esticrm-search.open.form-first-row-hidden > .row {
	display: none;
}

@media (max-width: 1024px) {
	#esticrm-search h2 {
		font-size: 24px;
		text-align: center;
		margin-top: 12px;
        margin-bottom: 0;
	}
	#esticrm-search .row {
		flex-wrap: wrap;               
		justify-content: space-between;
		gap: 6px;
	}
	#esticrm-search .row .col {
		flex: 1 1 100%;                 
		margin: 0.5em;                  
	}
	#esticrm-search .row .btn {
		width: 100%;
		justify-content: center;
	}
	#esticrm-search .advanced {
		gap: 6px;
	}
	#esticrm-search .advanced .col.btn-wrapper {
		flex: 1;
	}
	#esticrm-search .row .btn.btn-more {
		width: 100%;
	}
}

/* polylang */

.cpel-switcher__lang {
	display: flex !important;
    align-items: center !important;
    background-color: #a35027 !important;
    transition-duration: 1s !important;
    border-style: none !important;
    border-radius: 50px 50px 50px 50px !important;
    padding: 15px 30px 15px 30px !important;
}

.cpel-switcher__lang a {
	background-color: transparent !important;
	font-family: "DM Sans", Sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    line-height: 26px !important;
    letter-spacing: 0.2px !important;
	color: #fff !important;
}

.cpel-switcher--layout-dropdown .cpel-switcher__toggle.cpel-switcher__toggle--on:after {
	width: 12px !important;
}

.cpel-switcher--layout-dropdown .cpel-switcher__toggle:after {
	content: "";
	position: absolute;
	top: 50%;
	right: 18px; 
	transform: translateY(-50%);
	width: 12px;
	height: 8px;
	  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='11' height='8' viewBox='0 0 11 8' fill='none'>\
<path d='M10 1L5.5 6L1 1' stroke='%23F6F2E8' stroke-width='1.5'/>\
</svg>");
	background-repeat: no-repeat;
	background-size: 12px 8px;
	cursor: pointer;
}

/* sortowanie */

#esticrm-sort-select {
	font-family: "DM Sans", Sans-serif;
	appearance: none;         
	-webkit-appearance: none; 
	-moz-appearance: none; 
	background-color: #a35027 !important;
    padding: 16px 48px 16px 24px;
	font-size: 12px;
	line-height: 1.5;
	background-image: url("data:image/svg+xml;utf8,%3Csvg%20width%3D'11'%20height%3D'8'%20viewBox%3D'0%200%2011%208'%20fill%3D'none'%20xmlns%3D'http%3A//www.w3.org/2000/svg'%3E%3Cpath%20d%3D'M10%201L5.5%206L1%201'%20stroke%3D'%23F6F2E8'%20stroke-width%3D'1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 24px center;
	background-size: 12px;
	cursor: pointer;
	color: #fff;
	outline: 0;
	text-transform: uppercase;
	font-weight: 600;
	border-radius: 50px;
	border: 0;
	width: fit-content;
	min-height: 56px;
}

#esticrm-search .row select option {
	color: #333;
	background-color: #f9f9f9;
}

#esticrm-search .row select option:hover {
	background-color: #e0e0e0;
}

/* zmiana kafelkow */

.view-toggle {
	display: flex;
	gap: 6px;
}

.view-toggle button {
	display: flex;
    align-items: center;
    background-color: #a35027;
    transition-duration: 1s;
    border-style: none;
    border-radius: 50px;
    padding: 20px 19px;
	min-height: 56px;
}

.view-toggle button svg {
	width: 16px;
	height: auto;
}

.view-toggle button.active {
	 background-color: #6C794D;
}

.view-toggle button:hover {
	 background-color: #6C794D;
}

@media (max-width: 1024px) {
	.view-toggle {
		display: none;
	}
}

/* mapa */
#show-listings-map {
	display: flex;
    align-items: center;
	gap: 6px;
    background-color: #a35027;
    transition-duration: 1s;
    border-style: none;
    border-radius: 50px;
    padding: 16px 24px;
	color: #fff;
	text-transform: uppercase;
	font-family: "DM Sans", Sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 26px;
    letter-spacing: 0.2px;
	color: #fff;
	min-height: 56px;
}

#show-listings-map svg {
	width: 16px;
	height: auto;
}


#show-listings-map:hover {
	 background-color: #6C794D;
}

#listings-map-modal {
	position: fixed; 
	top: 0; 
	left: 0;
	width: 100%; 
	height: 100%;
	z-index: 10000;
	display: flex; 
	align-items: center; 
	justify-content: center;
}

.map-overlay {
	position: absolute; 
	top: 0; 
	left: 0;
	width: 100%; 
	height: 100%;
	background: rgba(0,0,0,0.5);
}

.map-content {
	position: relative;
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
	z-index: 10001;
	width: 80%;
	height: 80vh;
}

#listings-map {
	width: 100%;
	height: 100%;
}

.btn-close {
	position: absolute; 
	top: 8px; 
	right: 8px;
	font-size: 48px; 
	background: none; 
	border: none;
	cursor: pointer;
	z-index: 9999999;
	display: flex;
    align-items: center;
    background-color: #a35027;
    transition-duration: 1s;
    border-style: none;
    border-radius: 50px;
    padding: 14px;
	line-height: 1;
}

.btn-close:hover {
	background-color: #6C794D;
}


.btn-close:hover {
	background: transaprent;
}

.custom-marker {
  position: relative;
  background-color: #6C744A;
  color: #F6F2E8;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
  line-height: 1;
}

.custom-marker::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: #6C744A transparent transparent transparent;
}

.leaflet-custom-popup .leaflet-popup-content-wrapper {
  background: transparent;
  border: none;
  box-shadow: none;
}

.leaflet-custom-popup .leaflet-popup-content {
  margin: 0;
}

.popup-price {
	font-family: "Aleo", Sans-serif;
	font-weight: 700;
	margin: 0;
	font-size: 16px;
	letter-spacing: 0.5px;
	font-weight: 600;
}

.leaflet-popup-content p {
	margin: 0;
}

.custom-popup {
	display: flex;
	gap: 10px;
	background-color: #6C744A;
	border-radius: 12px;
	color: #F6F2E8;
	overflow: hidden;
	position: relative;
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
	cursor: pointer;
	width: 515px;
}

.popup-image img {
	width: 150px;
	height: 100%;
	object-fit: cover;
	display: block;
	overflow: hidden;
}

.popup-content {
	display: flex;
	gap: 10px;
	flex-direction: column;
	align-self: center;
	padding: 12px;
	max-width: 360px;
}

.popup-content h3 {
	font-family: "Aleo", Sans-serif;
	font-weight: 700;
	margin: 0;
	font-size: 16px;
	letter-spacing: 0.5px;
	font-weight: 600;
}

.popup-address {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
}

.popup-price {
  margin-top: 6px;
  font-weight: 600;
  font-size: 15px;
}

.leaflet-popup-tip {
	background: #6C744A;
}

.popup-arrow {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #6C744A;
}

@media (max-width: 1024px) {
	.custom-popup {
		max-width: 260px;
	}
	.popup-content {
		max-width: auto;
	}
	.map-content {
		width: 90%;
	}
	.btn-close {
		padding: 8px;
	}
	.popup-image img {
		width: 150px;
	}
	.popup-content h3 {
		font-size: 12px;
	}
	.popup-price {
		font-size: 10px;
	}
}

/* paginacja */
.elementor-widget-container .elementor-pagination {
	margin-top: 24px;
}

.elementor-widget-container .elementor-pagination .page-numbers.current {
	font-weight: 600;
	opacity: 0.7;
}

.elementor-widget-container .elementor-pagination a, .elementor-widget-container .elementor-pagination span {
	padding: 4px 8px;
}

.elementor-widget-container .elementor-pagination .page-numbers {
	text-transform: uppercase;
	font-size: 12px;
}

/* switcher */
.custom-lang-switcher {
    position: relative;
    display: inline-block;
}

.current-lang {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    text-transform: uppercase;
    user-select: none;
    background-color: #A35027;
    font-family: "DM Sans", Sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 26px;
    letter-spacing: 0.2px;
    fill: #fff;
    color: #fff;
    transition-duration: 1s;
    border-style: none;
    border-radius: 50px;
    padding: 17px 15px;
}

.lang-arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.current-lang.open .lang-arrow {
    transform: rotate(180deg);
}
@media (hover: hover) and (pointer: fine) {
    .current-lang:hover .lang-arrow {
        transform: rotate(180deg);
    }
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    padding: 17px 15px;
    z-index: 9999999;
	min-width: 60px;
    background-color: #A35027;
    font-family: "DM Sans", Sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 26px;
    letter-spacing: 0.2px;
    fill: #fff;
    color: #fff;
    transition-duration: 1s;
    border-style: none;
    border-radius: 50px;
}

.current-lang.open .lang-dropdown {
    display: flex;
	flex-direction: column;
	align-items: center;
}

@media (hover: hover) and (pointer: fine) {
    .current-lang:hover .lang-dropdown {
        display: block;
    }
}

.lang-dropdown li a {
    display: block;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-family: "DM Sans", Sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 26px;
    text-align: center;
    letter-spacing: 0.2px;
}

.lang-dropdown li a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
	.lang-dropdown {
		min-width: 45px;
		font-size: 10px;
        padding: 11px 9px;
	}
    .current-lang {
        font-size: 10px;
        padding: 11px 9px;
    }
}

/* mapa nieruchomosc */
#custom-leaflet-map-single {
	height: 600px;
}

.custom-pin-wrapper-single {
	width: 40px;
	height: 40px;
	transform: translate(-20px, -40px);
	position: absolute;
}

@media (max-width: 1024px) {
    #custom-leaflet-map-single { 
		height: 400px;
	}
}
