.map {
    width: 100%;
    height: 875px;
}

.search-properties__map .map,
.search-properties__map-layout-only .map {
    width: 100%;
    height: 875px;
}

.search-properties__results,
.search-properties__list-results {
    position: relative;
    min-height: 120px;
}

.search-properties__results--list {
    display: flex;
    flex-wrap: wrap;
}

.search-properties__feed {
    width: 100%;
    padding: 0 15px 30px;
    transition: all 0.3s ease-in-out;
}

.search-properties__map {
    width: 100%;
    position: relative;
    transition: all 0.3s ease-in-out;
}

@media (min-width: 1200px) {
    .search-properties__feed {
        width: 50%;
        padding: 0 30px;
    }

    .search-properties__map {
        width: 50%;
    }
}

.search-properties__results.grid-layout .search-properties__feed {
    width: 100%;
}

.search-properties__results.grid-layout .search-properties__map {
    width: 0;
    opacity: 0;
    pointer-events: none;
}

.search-properties__results.grid-layout .search-properties__list {
    width: calc(100% / 3);
}

.search-properties__results.grid-layout .search-properties__list--hover {
    display: flex;
    justify-content: space-between;
}

.search-properties__results.map-layout .search-properties__feed {
    width: 100%;
}

.search-properties__results.map-layout .search-properties__map {
    width: 0;
    opacity: 0;
    pointer-events: none;
    display: none;
}

.search-properties__results.map-layout .search-properties__list-results,
.search-properties__results.map-layout .search-properties__pagination {
    display: none;
}

.search-properties__map-layout-only {
    display: none;
}

.search-properties__map-layout-only.active {
    display: block !important;
    width: 100%;
    margin: 35px 0 0;
    position: relative;
}

.search-properties__map-layout-only .search-properties__map {
    width: 100%;
}

.map-polygon-controls {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 120px);
}

.map-polygon-btn {
    appearance: none;
    border: 0;
    border-radius: 4px;
    background: #fff;
    color: #1f4b7a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    padding: 11px 14px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.map-polygon-btn:hover,
.map-polygon-btn:focus {
    background: #1f4b7a;
    color: #fff;
}

.map-polygon-controls.is-drawing .map-polygon-btn--draw {
    background: #1f4b7a;
    color: #fff;
}

.map-polygon-status {
    display: none;
    background: rgba(31, 75, 122, 0.92);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 10px 12px;
}

.map-polygon-btn--finish,
.map-polygon-hint {
    display: none;
}

.map-polygon-controls.is-drawing .map-polygon-btn--finish,
.map-polygon-controls.is-drawing .map-polygon-hint {
    display: inline-flex;
}

.map-polygon-hint {
    background: rgba(255, 255, 255, 0.95);
    color: #1f4b7a;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    padding: 10px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.map-polygon-controls.is-active .map-polygon-status {
    display: inline-flex;
}

[class*="__map--custom-links"] {
    list-style: none;
    margin: 0;
    padding: 0;
}

[class*="__map--custom-links"] li {
    margin: 0;
    padding: 0;
}

[class*="__map--custom-links"] li.map-draw-control {
    display: none;
}

[class*="__map--custom-links"] li.map-draw-control.is-visible {
    display: block;
}

[class*="__map--custom-links"] a.map-draw-control {
    display: none;
}

[class*="__map--custom-links"] a.map-draw-control.is-visible {
    display: flex;
}

[class*="__map--custom-links"] a {
    cursor: pointer;
    text-decoration: none;
}

[class*="__map--custom-links"] a span img {
    pointer-events: none;
}

[class*="__map--custom-links"] a.is-drawing::after,
[class*="__map--custom-links"] a.is-active::after {
    opacity: 1;
}

[class*="__map--custom-links"] a.is-drawing span,
[class*="__map--custom-links"] a.is-active span {
    color: #fff;
}

.filter-loc-type a.is-drawing {
    background: #1f4b7a;
    color: #fff;
}

.search-properties .bed-bath-dd .bed-bath-options span,
.search-properties__filter--dropdown.bed-bath-dd .bed-bath-options span {
    background: #fff !important;
    border: 1px solid #828282 !important;
    color: #8C8C8C !important;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.search-properties .bed-bath-dd .bed-bath-options span:hover,
.search-properties .bed-bath-dd .bed-bath-options span.active,
.search-properties__filter--dropdown.bed-bath-dd .bed-bath-options span:hover,
.search-properties__filter--dropdown.bed-bath-dd .bed-bath-options span.active,
.search-properties .bed-bath-dd .bed-bath-options a:hover,
.search-properties .bed-bath-dd .bed-bath-options a.active,
.search-properties__filter--dropdown.bed-bath-dd .bed-bath-options a:hover,
.search-properties__filter--dropdown.bed-bath-dd .bed-bath-options a.active {
    border-color: var(--primary, #F4B013) !important;
    background: var(--primary, #F4B013) !important;
    color: #000 !important;
}

.search-properties__slide-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.search-properties__slide-link:hover,
.search-properties__slide-link:focus {
    color: inherit;
    text-decoration: none;
}

.map-marker-infowindow {
    width: 220px;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background: linear-gradient(92deg, #f3c828, #f4b013 99.98%);
    padding: 6px;
    border-radius: 4px;
    box-sizing: border-box;
}

.map-marker-infowindow__image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f2f2f2;
    border-radius: 2px;
}

.map-marker-infowindow__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gm-style .map-marker-infowindow {
    cursor: default;
}

.search-properties .gm-style-iw-chr,
.search-properties__map-layout-only .gm-style-iw-chr {
    display: none !important;
}

.search-properties .gm-style-iw-c,
.search-properties__map-layout-only .gm-style-iw-c {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.search-properties .gm-style-iw-d,
.search-properties__map-layout-only .gm-style-iw-d {
    overflow: hidden !important;
    max-height: none !important;
}

.search-properties .gm-ui-hover-effect,
.search-properties__map-layout-only .gm-ui-hover-effect {
    display: none !important;
}
