/* ══════════════════════════════════════════════════════════════════════════
   Blok Google Maps — gaya v2 (page-builder.js renderMap()).
   .bk-map.bk-map-{card|split|float}[.bk-map-gray][.bk-map-pr].bk-map-r-{none|md|lg}
     > .bk-map-frame (iframe) + .bk-map-info (nama, alamat, kontak, petunjuk arah)
   Gaya "Polos" (bawaan lama) tetap iframe saja tanpa kelas ini.
   ══════════════════════════════════════════════════════════════════════════ */
.bk-map { --acx: var(--main-color, #b30202); --r: 18px; margin: 2rem 0; }
.bk-map-r-none { --r: 0px; }
.bk-map-r-lg { --r: 26px; }
.bk-map .bk-map-frame { position: relative; overflow: hidden; background: #eef1f6; }
.bk-map .bk-map-frame iframe { width: 100%; }
.bk-map-gray .bk-map-frame iframe { filter: grayscale(1) contrast(1.05); transition: filter .5s ease; }
.bk-map-gray:hover .bk-map-frame iframe { filter: none; }

/* Info */
.bk-map .bk-map-info { padding: clamp(20px, 3vw, 32px); background: #fff; }
.bk-map .bk-map-place { margin: 0 0 16px !important; font-size: 20px !important; font-weight: 800; line-height: 1.3; color: #101828; border: 0 !important; padding: 0 !important; }
.bk-map .bk-map-place::before, .bk-map .bk-map-place::after { content: none !important; }
.bk-map .bk-map-list { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 14px; }
.bk-map .bk-map-list li { display: flex; gap: 12px; align-items: flex-start; margin: 0 !important; }
.bk-map .bk-map-ic { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--acx) 10%, #fff); color: var(--acx); font-size: 16px; }
.bk-map .bk-map-list small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #98a2b3; margin-bottom: 1px; }
.bk-map .bk-map-list span, .bk-map .bk-map-list a { font-size: 14.5px; line-height: 1.5; color: #344054 !important; text-decoration: none !important; word-break: break-word; }
.bk-map .bk-map-list a:hover { color: var(--acx) !important; }
.bk-map a.bk-map-dir { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 11px 18px; border-radius: 10px; background: var(--acx);
    color: #fff !important; font-size: 14px; font-weight: 650; text-decoration: none !important; transition: filter .2s, transform .2s; }
.bk-map a.bk-map-dir:hover { filter: brightness(.92); transform: translateY(-1px); }

/* Kartu: peta + info di bawah dalam satu kotak */
.bk-map-card { border: 1px solid #eaecf0; border-radius: var(--r); overflow: hidden; background: #fff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .05), 0 16px 36px -22px rgba(16, 24, 40, .25); }
.bk-map-card .bk-map-info { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 24px; border-top: 1px solid #eaecf0; }
.bk-map-card .bk-map-list { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.bk-map-card .bk-map-place { grid-column: 1 / -1; }
.bk-map-card a.bk-map-dir { margin-top: 0; }

/* Peta + Info berdampingan */
.bk-map-split { display: grid; grid-template-columns: minmax(260px, 2fr) 3fr; border: 1px solid #eaecf0; border-radius: var(--r); overflow: hidden; background: #fff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .05), 0 16px 36px -22px rgba(16, 24, 40, .25); }
.bk-map-split.bk-map-pr { grid-template-columns: 3fr minmax(260px, 2fr); }
.bk-map-split.bk-map-pr .bk-map-info { order: 2; }
.bk-map-split .bk-map-frame, .bk-map-split .bk-map-frame iframe { height: 100%; min-height: 320px; }
.bk-map-split .bk-map-info { display: flex; flex-direction: column; justify-content: center; }
.bk-map-split .bk-map-dir { align-self: flex-start; }

/* Kartu mengambang di atas peta */
/* grid bertumpuk: tinggi blok = yang lebih tinggi antara peta & kartu info (kartu tidak terpotong) */
.bk-map-float { display: grid; border-radius: var(--r); overflow: hidden; }
.bk-map-float > * { grid-area: 1 / 1; }
.bk-map-float .bk-map-frame { align-self: stretch; }
.bk-map-float .bk-map-frame iframe { height: 100% !important; }
.bk-map-float .bk-map-info { position: relative; z-index: 2; align-self: start; justify-self: start; margin: 20px; width: min(340px, calc(100% - 40px)); border-radius: 16px;
    box-shadow: 0 20px 44px -16px rgba(16, 24, 40, .45); }
.bk-map-float.bk-map-pr .bk-map-info { justify-self: end; }

@media (max-width: 767.98px) {
    .bk-map-split, .bk-map-split.bk-map-pr { grid-template-columns: 1fr; }
    .bk-map-split .bk-map-frame { order: -1; }
    .bk-map-split .bk-map-frame, .bk-map-split .bk-map-frame iframe { min-height: 260px; height: 260px; }
    .bk-map-float { overflow: visible; }
    .bk-map-float > * { grid-area: auto; }
    .bk-map-float .bk-map-frame { border-radius: var(--r); overflow: hidden; }
    .bk-map-float .bk-map-frame iframe { height: 300px !important; }
    .bk-map-float .bk-map-info, .bk-map-float.bk-map-pr .bk-map-info { justify-self: stretch; width: auto; margin: -40px 12px 0; }
    .bk-map-card .bk-map-info { grid-template-columns: 1fr; }
    .bk-map-card a.bk-map-dir { margin-top: 16px; justify-self: start; }
}

/* Peta mengambang selebar layar: kartu info sejajar dengan lebar konten halaman (bukan menempel tepi layar) */
@media (min-width: 768px) {
    .bk-flexrow-full .bk-map-float .bk-map-info { margin-inline: max(20px, calc((100% - 1290px) / 2)); }
}
