/* ── Nuvo Location Map v2.3 ─────────────────────────────────────────────────── */

.nlm-container {
    display: flex;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: var(--nlm-map-height, 500px);
}

.nlm-map {
    flex: var(--nlm-map-flex, 60) 1 0%;
    min-height: var(--nlm-map-height, 500px);
    z-index: 1;
}

/* ── Card ───────────────────────────────────────────────────────────────────── */
.nlm-card {
    flex: 0 0 var(--nlm-card-width, 320px);
    background: #fff;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e8e8e8;
    position: relative;
    overflow-y: auto;
}
.nlm-card--empty { background: #f7f8fa; }

.nlm-card__inner {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nlm-card__hint {
    color: #aaa;
    font-size: 14px;
    margin: auto;
    text-align: center;
    line-height: 1.6;
    padding: 32px 24px;
}

/* Featured image — full bleed at top */
.nlm-card__featured {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

/* Content area below image */
.nlm-card__body {
    padding: 20px 24px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Group badge */
.nlm-card__group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    padding: 3px 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    width: fit-content;
}
/* Name + divider */
.nlm-card__name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
    line-height: 1.3;
}
.nlm-card__divider {
    width: 36px;
    height: 3px;
    border-radius: 2px;
    margin: 0 0 16px;
}

/* Details + logo layout */
.nlm-card__details {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex: 1;
}

.nlm-card__rows {
    flex: 1;
    min-width: 0;
}

.nlm-card__logo {
    flex-shrink: 0;
    width: 80px;
    max-height: 80px;
    object-fit: contain;
    object-position: top right;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 6px;
    background: #fafafa;
    align-self: flex-start;
    margin-top: 2px;
}

/* Detail rows */
.nlm-card__row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #444;
    line-height: 1.5;
}
.nlm-card__icon {
    flex-shrink: 0;
    width: 16px;
    display: flex;
    align-items: flex-start;
    padding-top: 1px;
    color: #999;
    font-style: normal;
}
.nlm-card__icon svg { display: block; flex-shrink: 0; }
.nlm-card__row a { color: #2271b1; text-decoration: none; word-break: break-all; }
.nlm-card__row a:hover { text-decoration: underline; }

/* Animation */
.nlm-card.nlm-card--active .nlm-card__inner {
    animation: nlm-fadein 0.25s ease;
}
@keyframes nlm-fadein {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Markers ─────────────────────────────────────────────────────────────────── */
.nlm-marker { cursor: pointer; }

/* ── Legend ──────────────────────────────────────────────────────────────────── */
.nlm-legend {
    background: #fff;
    border-radius: 6px;
    padding: 10px 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-size: 12px;
    line-height: 1.9;
}
.nlm-legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}
.nlm-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.1);
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
    .nlm-container { flex-direction: column; }
    .nlm-card { flex: 0 0 auto; border-left: none; border-top: 1px solid #e8e8e8; min-height: 220px; }
    .nlm-map  { min-height: 320px !important; }
    .nlm-card__featured { height: 120px; }
}
