/* n49 engine styles — supplements the theme; the theme owns the design. */

/* Header where-suggestions */
.header form label.second { position: relative; }
.n49-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
    z-index: 1000;
    overflow: hidden;
}
.n49-suggest.hidden { display: none; }
.n49-suggest-item {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: #3b3b3b;
    text-decoration: none;
}
.n49-suggest-item:hover { background: #f5f5f5; }

/* Placeholder tiles when a listing has no logo */
.n49-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}
.n49-tile-lg { font-size: 42px; }

/* Sponsored tag on result cards */
.n49-sponsored-tag {
    display: inline-block;
    vertical-align: middle;
    background: #ec2028;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    margin-left: 6px;
    text-transform: uppercase;
}

/* Results map */
.directory .width-74 { position: relative; }
#n49-map { min-height: 500px; height: calc(100vh - 120px); z-index: 1; }
.acf-map.small { height: 260px; z-index: 1; }
.n49-map-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 500;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.n49-map-controls .btn { margin-top: 6px; display: inline-block; }
.n49-map-controls .hidden { display: none; }

/* Facets */
.n49-facet-extra.hidden { display: none; }
#n49-no-results.hidden { display: none; }
#n49-loading.hidden { display: none; }
.n49-loading { text-align: center; color: #afafaf; padding: 12px 0; }

/* Minimum reviews range */
#n49-filter-reviews { width: 100%; accent-color: #ec2028; }

/* Review avatars: theme positions but never sizes them; clamp hotlinked photos */
.review > .avatar, .replies > .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.replies > .avatar { width: 36px; height: 36px; }

/* Details social text links */
.n49-social-text a {
    display: inline-block;
    margin-right: 12px;
    font-weight: 700;
    text-decoration: underline;
}

/* Pricing */
.n49-pricing-controls { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.n49-price-card { height: 100%; }
.n49-price-features p { border-bottom: 1px solid #f0f0f0; padding: 6px 0; margin: 0; font-size: 14px; }
.n49-currency { padding: 6px 10px; border: 1px solid #e7e7e7; border-radius: 8px; }

/* Leaflet popup link color */
.leaflet-popup-content a { color: #ec2028; font-weight: 700; }
