/* ── Infobox base ─────────────────────────────────────────── */
.infobox {
    position: relative;
    background: #fff;
    width: auto;
    max-width: 520px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
}
/* Close button */
.infobox .close-x {
    position: absolute;
    right: 8px;
    top: 8px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    text-align: center;
    font-size: 18px;
    line-height: 24px;
    color: #c00;
    cursor: pointer;
    z-index: 5;
}
.infobox .close-x:hover {
    color: #900;
}
/* Content layout */
.infobox .infobox-body {
    padding: 10px;
}
.infobox .infobox-scroll {
    max-height: 420px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
}
.infobox .info-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.infobox .text-col {
    flex: 1 1 auto;
    min-width: 0;
}
.infobox .title {
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 4px;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.infobox .meta {
    color: #333;
    margin-bottom: 8px;
}
.infobox .cta {
    display: inline-block;
    padding: .5rem .8rem;
    border-radius: 10px;
}
/* Image + container */
.infobox .image-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    flex: 0 0 200px;
    width: 200px;
    height: 120px;
}
.infobox .image-wrap--single {
    flex-basis: 180px;
    width: 180px;
    height: 120px;
}
.infobox .image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* ── Mobile tweaks ───────────────────────────────────────── */
@media (max-width:600px) {
.infobox {
    width: 90vw;
    max-width: 340px;
    font-size: .92rem;
}
.infobox .info-row {
    flex-direction: column;
}
.infobox .image-wrap, .infobox .image-wrap--single {
    width: 100%;
    height: auto;
    max-height: 160px;
    aspect-ratio: 16/9;
}
.infobox .image-wrap img {
    max-height: 160px;
}
.infobox .spec-badge {
    font-size: .7rem;
    padding: 4px 8px;
}
.infobox .title {
    font-size: .95rem;
}
}
/* ── Google Maps scoping & paint hacks ───────────────────── */
.gm-style .infobox .image-wrap {
    position: relative !important;
    overflow: hidden !important;
}
.gm-style .infobox .image-wrap img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: relative !important;
    z-index: 1 !important;
    -webkit-transform: none !important;
    transform: none !important; /* avoid creating a new stacking context */
}
/* ── Badge (always above image) ──────────────────────────── */
.gm-style .infobox .spec-badge {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    z-index: 2 !important;
    pointer-events: none !important;
    background: #002b59 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 6px !important;
    padding: 6px 8px !important;
    font-weight: 600 !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;     /* keep on one line even without NBSPs */
    padding-left: 14px !important;      /* reserve space for the dot */
}
/* Dot (absolute so it never squishes) */
.gm-style .infobox .spec-badge::before {
    content: "" !important;
    position: absolute !important;
    left: 6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    display: block !important;
}
/* Status colors */
.gm-style .infobox .spec-badge[data-status="Now Available"]::before {
    background: #2ecc71 !important;
}
.gm-style .infobox .spec-badge[data-status="Coming Soon"]::before {
    background: #f39c12 !important;
}
.gm-style .infobox .spec-badge[data-status="Closeout"]::before {
    background: #e74c3c !important;
}
#map {
    width: 100vw;
    height: 560px;
}