/* Root Variables */

:root {
    --font-body: 'Open Sans', sans-serif;
    --font-heading: 'Lora', serif;
    --color-navy: #005F86;
    --color-beige: #B7B09C;
    --color-gray: #54585A;
}


/* Body Overrides */

body {
    overflow: unset !important;
}


/* Header Overrides */

#header-outer #top {
    background-color: #fff !important;
}
#header-outer #header-secondary-outer {
    background-color: #ebebeb !important;
    backdrop-filter: unset !important;
}
#header-outer #header-secondary-outer .topbar-left a {
    color: var(--darkText) !important;
}
#header-outer.small-nav #logo img,
#header-outer.small-nav .logo-spacing img,
#header-outer #logo img,
#header-outer .logo-spacing img {
    height: 60px !important;
}
#header-outer.small-nav #logo,
#header-outer.small-nav .logo-spacing {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}


/* Button Overrides */

body[data-button-style*="slightly_rounded"] button {
    border-radius: 0 !important;
}


/* Left Column: Properties Container */

.properties-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}
@media screen and (max-width: 768px) {
	.properties-container {
    	flex-direction: column-reverse;
	}
}
.property-cards-container {
    --column-width: calc(50% - 1rem);
    display: grid;
    grid-template-columns: var(--column-width) var(--column-width);
    gap: 2rem;
    width: 45%;
    padding: 3rem;
    min-height: 100vh;
}
@media screen and (max-width: 768px) {
	.property-cards-container {
		width: 100%;
		grid-template-columns: 1fr;
	}
}
.property-cards-container {
    position: relative;
}
.property-cards-container.loading::before {
    content: "Loading";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffffba;
    z-index: 100;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    backdrop-filter: blur(3px);
    /* Center the text using flexbox */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Ensure it's not affected by grid */
    grid-area: 1 / 1 / -1 / -1;
}
.property-card {
    width: 100%;
    height: 100%;
    background-color: #F3F0E8;
    transition: 250ms ease all;
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}


/* No Properties Found */

.no-properties-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
}
.no-properties-found p {
    margin: 0;
}


/* Property Carousel */

.splide__slide a {
    display: block;
    width: 100%;
    height: 100%;
}
.splide__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.splide__arrow {
    background-color: var(--color-navy);
    opacity: 1 !important;
    color: #fff;
    border-radius: 0 !important;
    transition: 250ms ease all;
}
.splide__arrow:hover {
    background-color: var(--color-gray);
    opacity: 1 !important;
}
.splide__arrow:disabled {
    opacity: 0 !important;
}
button.splide__arrow.splide__arrow--prev {
    left: 0 !important;
    border-radius: 0 !important;
}
button.splide__arrow.splide__arrow--next {
    right: 0 !important;
    border-radius: 0 !important;
}
.custom-pagination {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #00000061;
    padding: 0.5rem;
    line-height: 1;
    font-size: 12px;
    backdrop-filter: blur(2px);
    color: #ffffff;
    word-spacing: -1px;
    font-weight: 900;
}


/* Property Details */

.property-details {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    flex: 1;
}
.property-title {
    color: #333333;
    font-size: 1.25rem;
    letter-spacing: -0.75px;
    font-weight: 600;
    line-height: 1;
    margin: 0 0 0.15rem;
}
.property-price-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.property-price {
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--color-gray);
    letter-spacing: -0.5px;
}
.property-status {
    background: #3EBD77;
    padding: 0.5rem;
    font-size: 0.7rem;
    color: #fff;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1;
}
.property-status.available {
    background: #3EBD77;
}
.property-status.pending {
    background: #FFB031;
}
.property-status.sold {
    background: #DB5B59;
}


/* Property Features */

.property-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: auto 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid #E1DCCF;
}
.feature {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #fff;
    font-size: 0.8rem;
    padding: 0.5rem;
    gap: 0.35rem;
}
.feature.empty {
    opacity: 0.25;
}
.feature-icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}
.feature-value {
    margin-left: auto;
    font-weight: 900;
}


/* Property View Button */

.property-view-button {
    background-color: var(--color-navy);
    padding: 1rem;
    display: block;
    color: #ffffff !important;
    text-decoration: none !important;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    transition: 250ms ease all;
}
.property-view-button:hover {
    background-color: var(--color-gray);
}


/* Property Map */

.property-map-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 55%;
    background-color: #B2D8E6;
}
@media screen and (max-width: 768px) {
	.property-map-container {
		z-index: 1;
    	width: 100%;
		height: 40vh !important;
	}
}
#map {
    width: 100%;
    height: 100%;
}
.property-map-container.loading::before {
    content: "Loading";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffffba;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    backdrop-filter: blur(3px);
}


/* Bounce Marker */

.bounce {
    animation: bounceMarker 0.6s infinite;
}
#map gmp-advanced-marker {
    opacity: 1 !important;
    transition: 250ms ease all;
}
#map:has(.bounce) gmp-advanced-marker {
    opacity: 0.25 !important;
}
#map:has(.bounce) gmp-advanced-marker:has(.bounce) {
    opacity: 1 !important;
}
@keyframes bounceMarker {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}


/* Filters */

.filters--top {
    position: relative;
}
.filters--top-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    overflow: scroll;
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
}
button.filter-button {
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: #FFF;
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.10) !important;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    text-transform: capitalize;
    padding: 0.75rem;
    line-height: 1;
    outline: unset;
    border-radius: 0 !important;
    white-space: nowrap;
    color: #333333 !important;
    cursor: pointer;
    font-family: var(--font-body);
}
button.filter-button.active,
button.filter-button:hover {
    background-color: var(--color-navy);
    color: #fff !important;
}


/* Filters Bottom Toggle (Search) */

.filters-toggle {
    position: absolute;
    top: 0px;
    right: 0px;
    border: none;
    border-radius: 0 !important;
    height: 30px;
    width: 30px;
    cursor: pointer;
    z-index: 10;
    padding-top: 2px;
    background-color: #fff;
    transition: 250ms ease all;
}
.filters-toggle:hover {
    background-color: #f0f0f0 !important;
}
.filters--bottom button.filters-toggle.open {
    display: none;
}
.filters--bottom.closed {
    width: auto;
    padding: 0;
}

@media screen and (max-width: 768px) {
	.filters--bottom:not(.closed) {
    	position: fixed;
	    bottom: unset;
	    top: 50%;
	    transform: translateY(-50%);
	}	
}

.filters--bottom.closed button.filters-toggle.close {
    display: none;
}
.filters--bottom.closed button.filters-toggle.open {
    display: flex;
    height: unset;
    background-color: #fff;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 700;
    width: auto;
    position: relative;
    top: unset;
    left: unset;
    cursor: pointer;
    padding: 1rem;
}


/* Filters Bottom (Search) */

.filters--bottom {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 10;
    width: 375px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: #FFF;
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.10);
}

.filters--bottom form {
    display: grid;
    gap: 1.5rem;
    column-gap: 2rem;
    grid-template-columns: 1fr 1fr;
}
.filters--bottom.closed form {
    display: none;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.filter-field.slider {
    flex-grow: 1;
}
.filter-field.full {
    grid-column: 1 / -1;
}
.filter-field label {
    color: var(--color-grey, #888);
    font-family: var(--font-body);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.increment-decrement {
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.20);
    background: #FFF;
}
button.decrement,
button.increment {
    height: 40px;
    width: 40px;
    flex: 0 0 auto;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #ffffff;
    border-radius: 0 !important;
}
button.decrement.disabled {
    cursor: not-allowed;
    opacity: 0.15;
}
.increment-decrement input[type="text"] {
    padding: 0;
    height: 40px;
    text-align: center;
    background-color: #ffffff;
    color: #333;
    border: none !important;
    outline: unset !important;
    box-shadow: unset !important;
    border-radius: 0 !important;
}
.increment-decrement input[type="text"]::placeholder {
    color: #333;
}

.range-slider {
    height: 5px;
    position: relative;
    background-color: #F1F1F1;
    border-radius: 2px;
}
.range-selected {
    height: 100%;
    left: 30%;
    right: 30%;
    position: absolute;
    border-radius: 5px;
    background-color: #B9DAE7;
}
.range-input {
    position: relative;
}
.range-input input {
    position: absolute;
    width: calc(100% + 14px);
    height: 5px;
    top: -7px;
    left: -7px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
}
.range-input input::-webkit-slider-thumb {
    height: 14px;
    width: 14px;
    border-radius: 50%;
    border: 3px solid var(--color-navy);
    background-color: var(--color-navy);
    pointer-events: auto;
    -webkit-appearance: none;
}
.range-input input::-moz-range-thumb {
    height: 14px;
    width: 14px;
    border-radius: 50%;
    border: 3px solid var(--color-navy);
    background-color: var(--color-navy);
    pointer-events: auto;
    -moz-appearance: none;
}
.range-price {
    margin: 20px 0 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.range-price label {
    margin-right: 5px;
}
.range-price input {
    padding: 5px;
    width: 100%;
    text-align: center;
    background-color: #ffffff;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.20) !important;
    outline: unset !important;
    box-shadow: unset !important;
    border-radius: 0 !important;
    font-size: 12px;
}


.filters--bottom form select {
    border: 1px solid #cccccc;
    border-radius: 0;
    height: 40px;
    padding: 0 0.5rem;
    background-color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-style: normal;
    color: #333;
    text-align: center;
    box-shadow: unset !important;
}

/* Amenities Filter Styles */
.filter-field.amenities-filter .checkbox-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 5px;
}

.filter-field.amenities-filter .amenity-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-field.amenities-filter .checkbox-container::-webkit-scrollbar {
    width: 4px;
}

.filter-field.amenities-filter .checkbox-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.filter-field.amenities-filter .checkbox-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.filter-field.amenities-filter .checkbox-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.filter-field.amenities-filter .amenity-checkbox {
    display: flex;
    align-items: center;
}

.filter-field.amenities-filter .amenity-checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.filter-field.amenities-filter .amenity-checkbox label {
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Amenity Info Windows */
.amenity-info {
    padding: 8px;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
}

.amenity-info strong {
    color: var(--color-navy);
    font-size: 15px;
    display: block;
    margin-bottom: 3px;
    text-align: center;
}

.amenity-info .amenity-address {
    margin-bottom: 6px;
    font-style: italic;
    color: #555;
}

.amenity-info .amenity-label {
    margin-bottom: 6px;
    font-style: italic;
    color: var(--color-navy);
    font-weight: 600;
    text-align: center;
}

.amenity-info .amenity-image {
    display: block;
    width: 100%;
    height: 120px;
    margin: 8px 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.amenity-info .amenity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.amenity-info .amenity-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px solid #eee;
    padding-top: 8px;
    margin-top: 5px;
}

.amenity-info .amenity-feature-pill {
    background-color: var(--color-navy);
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
    letter-spacing: 0.25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.amenity-info .amenity-feature-pill:hover {
    background-color: var(--color-gray);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Property Info Windows */
.property-info {
    padding: 8px;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
}

.property-info strong {
    color: var(--color-navy);
    font-size: 15px;
    display: block;
    margin-bottom: 3px;
    text-align: center;
}

.property-info strong a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.property-info strong a:hover {
    color: var(--color-beige);
}

.property-info .property-price {
    font-weight: bold;
    margin-bottom: 4px;
    color: var(--color-gray);
}

.property-info .property-type {
    font-style: italic;
    color: #555;
    margin-bottom: 4px;
}

.property-info .property-status-info {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 1px solid #eee;
    padding-top: 5px;
    margin-top: 5px;
}

.property-info .property-status-info:empty {
    display: none;
}

/* Override Google Maps InfoWindow styles */
.gm-style .gm-style-iw-c {
    padding: 6px !important;
    box-shadow: 0 2px 7px 1px rgba(0,0,0,0.2) !important;
    background-color: rgba(255,255,255,0.9) !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
}

/* Style the close button */
.gm-style .gm-style-iw-t button,
.gm-style .gm-ui-hover-effect {
    display: block !important;
    top: 6px !important;
    right: 6px !important;
    width: 24px !important;
    height: 24px !important;
    opacity: 1 !important;
    padding: 0 !important;
    transform: translate(50%, -50%) !important;
}
.gm-ui-hover-effect:hover {
    background-color: #f0f0f0 !important;
}

/* Target absolutely all possible X icon elements with all possible selectors */
.gm-style .gm-style-iw-t button img,
.gm-style .gm-style-iw-t button span,
.gm-style .gm-style-iw-t button > *,
.gm-style .gm-ui-hover-effect > *,
.gm-style .gm-ui-hover-effect img,
.gm-style .gm-ui-hover-effect span,
.gm-style-iw-t button img,
.gm-ui-hover-effect img,
.gm-ui-hover-effect span,
div[style*="mask-image"] {
    width: 12px !important;
    height: 12px !important;
    margin: 6px !important;
    padding: 0 !important;
    display: block !important;
    transform: none !important;
    background-size: 12px !important;
}

/* Flash highlight effect for property cards */
@keyframes flash-highlight {
    0% { box-shadow: 0 0 0 0 rgba(0, 95, 134, 0); }
    20% { box-shadow: 0 0 20px 0 rgba(0, 95, 134, 0.8); }
    100% { box-shadow: 0 0 0 0 rgba(0, 95, 134, 0); }
}

.property-card.flash-highlight {
    animation: flash-highlight 1.5s ease;
    z-index: 1;
}

/* Fade effect for property cards when one is active */
.property-cards-container.has-active-card .property-card-container {
    opacity: 0.25;
    transition: opacity 0.3s ease-in-out;
}

.property-cards-container.has-active-card .property-card-container.active-card {
    opacity: 1;
    z-index: 1;
}