/* Main container */

.blog-map-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.map-container {
    width: 100%;
    height: 400px; /* Adjust height as needed */
}

.locations-list {
    width: 100%;
    max-height: 500px; /* Optional: set a max height with scroll */
    overflow-y: auto;
}

.blog-map {
    height: 40vh; /* Shorter map for mobile */
    min-height: 300px;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Listings Panel */
.blog-locations-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    overflow-y: auto;
	margin-bottom: 20px;
    padding-top: 20px;
}

.gm-style .gm-style-iw-d .feature-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Change to 3 columns */
    gap: 0px;
}

/* Listing Card */
.listing-card {
    display: grid;
    grid-template-columns: 45% 1fr;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}
.gm-style .gm-style-iw-d .listing-card:hover {
    transform: none;
}
.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.listing-card.active {
    border-color: #000000;
    background-color: #fcfaf7;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

/* Image Container */
.listing-image {
    height: 100% !important;
    position: relative;
    border: none;
}

.listing-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.listing-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.listing-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.listing-location {
    font-size: 20px !important;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    line-height: 1.3;
}

.listing-price {
    font-size: 16px;
    font-weight: 500;
    color: #2d3748;
}

/* Property Features */
.property-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4a5568;
}

.property-feature i {
    font-size: 15px; /* Default icon size */
    color: #4a5568;
}

.property-status {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    padding: 4px 12px;
    background: #572c0d;
    border-radius: 0px;
    display: inline-block;
    align-self: flex-start;
}

/* Special styling for bathroom icon */
.property-feature:nth-child(2) svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.property-type {
    margin-left: auto;
    color: #718096;
    font-size: 12px;
}

.property-type::before {
    content: "•";
    margin-right: 4px;
}

.listing-status {
    font-size: 12px;
    font-weight: 600;
    color: #1a202c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.listing-date {
    font-size: 12px; /* Reduced from 13px */
    color: #718096;
}

.listing-preview {
    max-width: 250px;
    position: relative;
    border-radius: 0px;
    overflow: hidden;
}

.preview-image {
    width: 100%;
    height: 120px;
    position: relative;
    margin: 0;
}

.preview-image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.preview-content {
    padding: 12px;
    background: white;
}

.preview-status {
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 6px;
    font-size: 16px;
}

.preview-location {
    color: #4a5568;
    margin-bottom: 6px;
    font-size: 14px;
}

.preview-date {
    font-size: 13px;
    color: #718096;
    margin-bottom: 8px;
}

.preview-link-text {
    margin-top: 8px;
    border-top: 1px solid #edf2f7;
}

.preview-link-text a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: block;
    padding: 4px 0;
}

.preview-link-text a:hover {
    opacity: 0.7;
}

/* Google Maps InfoWindow Customization */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 0px !important;
    max-width: 355px !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
    max-width: unset !important;
}

.gm-style-iw-t::after {
    display: none !important;
}
/* Close button overlay */
.gm-ui-hover-effect {
    background: white !important;
    border-radius: 50% !important;
    padding: 0 !important;
    width: 26px !important;
    height: 26px !important;
    top: 8px !important;
    right: 8px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.gm-ui-hover-effect>span {
    margin: 0px !important;
    z-index: 9999999999;
    background-color: #000;
}
.gm-ui-hover-effect img {
    width: 16px !important;
    height: 16px !important;
    margin: 5px !important;
    opacity: 0.7 !important;
}

.gm-ui-hover-effect:hover {
    background: #f8f8f8 !important;
}
.gm-style-iw-chr {
    min-width: 100%;
    position: absolute;
    position-area: y-end;
    z-index: 9999;
}
/* Hide copyright and attribution elements */
.gm-style-cc,
.gm-style-cc * {
    display: none !important;
}

/* Optionally hide any attribution links */
a[href*="google.com/maps"] {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .blog-locations-list {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }
}

@media (max-width: 768px) {
    .listing-card {
        grid-template-columns: 50% 1fr;
    }

    .listing-content {
        padding: 12px;
        gap: 8px;
    }
    
    .listing-location {
        font-size: 18px !important;
        font-weight: 500 !important;
    }

    .listing-price {
        font-size: 15px !important;
        font-weight: 500 !important;
    }

    .feature-group {
        grid-template-columns: repeat(1, 1fr);
        gap: 0px;
    }

    .property-feature {
        font-size: 13px;
    }

    .property-feature i {
        font-size: 14px; /* Smaller icon size for mobile */
    }

    .listing-status {
        font-size: 11px;
    }

    .property-type {
        font-size: 11px;
    }

    /* Adjust list height for mobile */
    .blog-locations-list {
        padding-top: 10px;
        gap: 8px;
    }
    .gm-style .gm-style-iw-c {
        padding: 0 !important;
        border-radius: 0px !important;
        max-width: 300px !important;
    }
}

@media (max-width: 480px) {
    .listing-card {
        grid-template-columns: 50% 1fr;
    }
    

    .property-features {
        gap: 0px;
    }

    .property-feature svg {
        width: 14px;
        height: 14px;
    }
}

/* Optional: Add a nice scrollbar style */
.blog-locations-list::-webkit-scrollbar {
    width: 8px;
}

.blog-locations-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.blog-locations-list::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 4px;
}

.blog-locations-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .blog-map-container {
        grid-template-columns: 1fr 300px;
        gap: 24px;
    }

    .blog-map {
        height: calc(100vh - 100px);
        min-height: 600px;
    }

    .listing-card {
        padding: 0px;
    }
       

    .listing-status {
        font-size: 20px;
    }

    .listing-location {
        font-size: 15px;
    }

    .property-feature i {
        font-size: 15px; /* Larger icon size for desktop */
    }
}

/* Property Attributes */
.property-attributes {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.load-more-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    width: 100%;
}

.load-more-button {
   border-width: 0px !important;
}

.load-more-button:hover {
    opacity: 0.9;
    background-color: #DCDFD9 !important;
    color: #245138 !important;
    border-width: 0px !important;
}
