/* Custom Styles for Community Map Shortcode */

.community-map-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

/* Search & Filter Bar */
.search-filter-bar {
    background: #8da2a1; /* Sage Green match */
    padding: 15px 30px;
    margin-bottom: 0; /* Flush with map */
}

.filter-controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Search Input */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 300px;
    border: 1px solid white;
    padding: 10px 15px;
}

.search-input-wrapper .search-icon {
    margin-right: 10px;
}

.map-filter-input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    font-size: 14px;
    text-transform: uppercase;
    outline: none;
}

.map-filter-input::placeholder {
    color: white;
    opacity: 1;
}

/* Filter Toggles */
.filter-toggles {
    display: flex;
    align-items: center;
    gap: 25px;
    color: white;
    font-family: inherit;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-label {
    margin-right: 5px;
}

/* Radio Button Styling */
.radio-filter {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
}

.radio-filter input {
    display: none;
}

.radio-mark {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid white; /* Thicker border as in design */
    display: inline-block;
    position: relative;
    box-sizing: border-box;
}

/* Filled circle for active state - Design shows ring with fill */
.radio-filter input:checked + .radio-mark {
    background: #2c3e50; /* Dark center */
    border-color: white; 
}
/* Simpler implementation to match screenshot usually just dot inside or filled */
.radio-filter input:checked + .radio-mark {
    background: transparent;
    position: relative;
}
.radio-filter input:checked + .radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}
/* Actually screenshot shows: Outer ring white, Inner circle dark/empty. 
   Selected: Outer Ring White, Inner Circle Filled White. 
   Let's stick to standard custom radio look. */
.radio-mark {
    border: 2px solid white;
    background: transparent;
}
.radio-filter input:checked + .radio-mark {
    background: #2c3e50; /* Dark fill like screenshot */
    border-color: #2c3e50; 
}


.more-filters-btn {
    background: transparent;
    border: none;
    color: white;
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 20px;
}

/* Map Container */
#community-map-canvas {
    width: 100%;
    height: 100%;
}

/* Sidebar List Styling */
.properties-list-sidebar {
    padding: 10px 10px;
}

.sidebar-property-card {
    border-bottom: 1px solid #707070;
    padding-bottom: 15px;
    margin-bottom: 25px;
    position: relative;
}
.sidebar-property-card:last-child {
    border-bottom: none;
}

.sidebar-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    margin-bottom: 12px;
}
.sidebar-image-wrapper img {
    width: 100%;
    height: 100%;
    objec-fit: cover;
}
.sidebar-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background: #0C1F2B; /* Default (For Sale) */
    color: white;
    padding: 3px 8px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* For Sale (Default match, but explicit just in case) */
.sidebar-badge.for_sale {
    background: #0C1F2B;
    color: white;
}

/* For Rent */
.sidebar-badge.for_rent {
    background: #959494;
    color: white;
}

/* Commercial */
.sidebar-badge.commercial,
.sidebar-badge.commercial_rent {
    background: #FFFFFF;
    color: #0C1F2B;
    border: 1px solid #0C1F2B; /* Adding border since it's white on white image possibly? Or just to match visibility request */
}

.sidebar-content h4 {
    margin: 0;
    color: #25282A;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
}

.sidebar-content p {
    margin: 5px 0 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Grid (Bottom) */
.bottom-grid {
    padding: 70px 60px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.property-card { 
    /* ... keep existing styles for bottom grid ... */
    background: white;
    /* ... */
}
/* ... rest of existing styles ... */



/* More Filters Dropdown */
.filter-toggles {
    position: relative; /* Anchor for dropdown */
}

.more-filters-dropdown {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: white;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 100;
    margin-top: 15px;
}
.more-filters-dropdown.show {
    display: block;
}

/* Triangle/Arrow for dropdown */
.more-filters-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0; 
    height: 0; 
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.filter-group {
    margin-bottom: 15px;
}
.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    color: #2c3e50;
    font-size: 13px;
    text-transform: uppercase;
}

.map-dropdown {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}
input#zip-search {
    background: #8da2a1;
    border: 0px;
}
/* Results Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(31.3%, 1fr));
    gap: 30px;
        background: #F4F4EF;
}

.property-card {
    background: white;
    border: 2px solid #829795;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    align-content: space-between;
}
.property-card-bottom {
    width: 100%;
}
.property-details span {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}
.property-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.property-content {
    padding: 20px;
}
.property-badge {
    display: flex;
    text-transform: uppercase;
    padding: 4px 12px;
    width: 100%;
    background: #0C1F2B;
    color: white;
    border-radius: 0px;
    font-size: 14px;
    margin-bottom: 0px;
    justify-content: space-between;
    flex-wrap: wrap;
}
.property-badge.for_sale { background: #0C1F2B; color:#ffffff; }
.property-badge.for_rent { background: #959494; color:#ffffff; }
.property-badge.commercial { background: #ffffff; color:#25282A;}

.property-content h3 {
    font-size:31px;
}

.property-content h3 a {
    color: #25282A;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
}
.property-content div {
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    color: #25282A;
}
.property-location {
    color: #25282A;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.property-details {
    display: flex;
    color: #ffffff;
}
.property-details img {
    display: inline-block;
    height: 20px;
    object-fit: contain;
}
.property-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.btn-view.grid-btn-full {
    display: inline-block;
    width: 100%;
    text-transform: uppercase;
    position: relative;
    font-size: 14px;
    background-color: #829795;
    color: white;
    padding-top: 10px !important;
    padding-right: 85px !important;
    padding-bottom: 10px !important;
    margin-bottom: 0px !important;
    padding-left: 30px !important;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s;
}
.btn-view.grid-btn-full:after {
    content: url(/wp-content/uploads/2026/01/arrow-right.webp) !important;
    position: absolute;
    right: 20px !important;
    height: 20px;
}
.btn-view:hover {
    background:#A31F36;
    
}
.btn-external{
    background:#A31F36!important;
    
}
.btn-external:hover{
    color:#fff;
}

/* InfoWindow Styles */
.gm-style-iw {
    padding: 0 !important;
}

.map-info-window {
    width: 280px;
}

.map-info-window img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px 4px 0 0;
}

.map-info-content {
    padding: 12px;
}

.map-info-content h4 {
    margin: 0 0 5px;
    font-size: 16px;
}

.map-info-content p {
    margin: 0 0 8px;
    color: #666;
    font-size: 13px;
}

.map-btn {
    display: inline-block;
    background: #0c1f2b;
    color: white;
    padding: 5px 12px;
    font-size: 12px;
    text-decoration: none;
}
.gm-style .gm-style-iw-c .gm-style-iw-d {
    padding-top: 15px !important;
    padding-left: 15px !important;
}
.gm-style-iw-chr {
    position: absolute;
    right: -5px;
    top: -5px;
    background: #ffffff;
    border-radius: 35px;
}
/* Mobile/Tablet adjustment for filters */
@media (max-width: 980px) {
.filter-controls-wrapper {
    flex-direction: column;
    align-items: flex-start;
}
.filter-toggles {
    flex-wrap: wrap;
    width: 100%;
    gap: 15px;
}

.bottom-grid {
    padding: 40px 30px;
}
.property-content div {
font-size: 22px;
}
.property-content h3 {
    font-size:28px;
}
div#community-sidebar-list {
    display: none;
}
.properties-grid {
    grid-template-columns: repeat(auto-fill, minmax(47%, 1fr));
}
}
@media (max-width: 768px) {
.filter-controls {
    flex-direction: column;
    align-items: stretch;
}
 .property-content div {
    font-size: 20px;
 }
.property-content h3 {
    font-size:26px;
}
.filter-input {
    width: 100%;
}

#community-map-canvas {
    height: 400px;
}
.bottom-grid {
    padding: 40px 30px;
}
}
@media (max-width: 480px) {
.properties-grid {
    grid-template-columns: 1fr;
}    
    
}
