.crea-listing-grid { margin-top: 20px; }
.crea-card-link { text-decoration: none !important; color: inherit !important; display: block; transition: transform 0.2s; }
.crea-card-link:hover { transform: translateY(-5px); }
.crea-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border: 1px solid #eee; height: 100%; display: flex; flex-direction: column; }
/* Lock the container to a strict architectural ratio */
.crea-card .crea-card-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    background-color: #1a1a1a;
}

/* Force the image to cover the container perfectly */
.crea-card .crea-card-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
}

/* THE DOCTORX BADGE */
.crea-card-badge { position: absolute; top: 15px; left: 15px; background: rgba(0,0,0,0.7); color: #fff; padding: 6px 12px; border-radius: 4px; font-size: 0.85em; font-weight: bold; z-index: 2; backdrop-filter: blur(4px); }
.crea-card-badge.sold { background: #cc0000; }

.crea-card-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.crea-card-price { margin: 0 0 8px 0; font-size: 1.6em; color: #2c3e50; font-weight: 800; }
.crea-card-address { margin: 0 0 20px 0; color: #666; font-size: 0.95em; line-height: 1.4; height: 2.8em; overflow: hidden; }

/* BIG RED METRICS */
.crea-card-metrics { display: flex; gap: 20px; border-top: 1px solid #eee; pt: 15px; margin-top: auto; padding-top: 15px; }
.crea-metric { display: flex; align-items: center; gap: 8px; color: #444; font-weight: 700; font-size: 1.1em; }
.crea-metric svg { 
    width: 22px; 
    height: 22px; 
    stroke: #cc0000; 
    fill: none; 
    stroke-width: 2.5; 
    stroke-linecap: round; 
    stroke-linejoin: round; 
}

.map-open-limit .crea-listing-grid > a:nth-child(n+4) { display: none !important; }

/* DOCTORX V73.0 - Big Red Map Controls */
.leaflet-container .leaflet-control-zoom a, 
.leaflet-touch .leaflet-bar a {
    width: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
    font-size: 26px !important;
    background-color: #cc0000 !important;
    color: #ffffff !important;
    border-color: #990000 !important;
    font-weight: bold !important;
    transition: all 0.2s ease;
}
.leaflet-container .leaflet-control-zoom a:hover, 
.leaflet-touch .leaflet-bar a:hover {
    background-color: #aa0000 !important;
    color: #ffffff !important;
    transform: scale(1.05);
}

/* DOCTORX V75.0 - Map Popup Arrows */
.crea-popup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #cc0000 !important;
    font-size: 22px !important;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85) !important;
    padding: 6px 12px;
    border-radius: 4px;
    user-select: none;
    transition: all 0.2s ease;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.crea-popup-nav.left { left: 8px; }
.crea-popup-nav.right { right: 8px; }
.crea-popup-nav:hover {
    background: #cc0000 !important;
    color: #ffffff !important;
    transform: translateY(-50%) scale(1.05);
}

/* DOCTORX V76.0 - Push Arrows Outside & Lightbox */
.leaflet-popup-content-wrapper, .leaflet-popup-content { overflow: visible !important; }
.crea-popup-nav.left { left: -35px !important; }
.crea-popup-nav.right { right: -35px !important; }

/* BuyRealty Return Button */
.br-return-btn {
    background-color: #111111;
    color: #ffffff;
    border: 2px solid #cc0000;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.br-return-btn:hover {
    background-color: #f2f2f2;
    color: #111111;
    border-color: #111111;
}

/* Horizontal Carousel Fix */
.br-similar-carousel {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.br-similar-carousel > a,
.br-similar-carousel .crea-card-link {
    flex: 0 0 300px;
    max-width: 300px;
}
.br-similar-carousel::-webkit-scrollbar {
    height: 8px;
}
.br-similar-carousel::-webkit-scrollbar-track {
    background: #f2f2f2;
    border-radius: 4px;
}
.br-similar-carousel::-webkit-scrollbar-thumb {
    background: #cc0000;
    border-radius: 4px;
}
