/* SEARCH MODULE — module-specific styles */

.wd-map-box {
    width: 100%; height: 70vh; min-height: 420px;
    border: 1px solid #B7E4C7; border-radius: 1rem;
    background: #F7FBF5; display: flex;
}
#wd-map:empty { background: repeating-linear-gradient(45deg, #F7FBF5, #F7FBF5 12px, #EDF7EF 12px, #EDF7EF 24px); }

/* Result cards */
.wd-res-card {
    background: #fff; border: 1px solid #B7E4C7; border-radius: 1rem;
    padding: 1rem 1.2rem; display: flex; gap: 14px;
    transition: box-shadow .15s ease, border-color .15s ease; cursor: pointer;
}
.wd-res-card:hover, .wd-res-card.highlight { border-color: #52B788; box-shadow: 0 8px 20px rgba(27,67,50,.10); }
.wd-res-thumb {
    width: 84px; height: 84px; border-radius: 12px; flex-shrink: 0;
    background: #D8F3DC; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; overflow: hidden;
}
.wd-res-thumb img { width: 100%; height: 100%; object-fit: cover; }

.wd-badge { display: inline-block; font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 9999px; border: 1px solid transparent; }
.wd-badge-green { background: #D8F3DC; color: #1B4332; border-color: #B7E4C7; }
.wd-badge-amber { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }
.wd-badge-blue  { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }

.wd-distance { color: #2D6A4F; font-weight: 600; font-size: 12px; }

/* Mobile list/map toggle */
.wd-view-btn.active { background: #2D6A4F; color: #fff; }
@media (max-width: 1023px) {
    #wd-map-wrap.mobile-visible { display: block !important; }
    #wd-results.mobile-hidden { display: none; }
}

/* Google info window */
.wd-iw { font-family: inherit; padding: 4px 2px; }
.wd-iw strong { color: #1B4332; font-size: 14px; }
.wd-iw span { color: #6B7568; font-size: 12px; display: block; margin-top: 2px; }
