/* The map of Haiti, shown on a public page and inside the Admin Backend. */
.hm { display: flex; flex-direction: column; gap: inherit; }
.column .hm { gap: 9px; }
.section-panel .hm { display: contents; }
.section-panel .hm-card { padding: 14px; border: 1px solid #dbe0f2; border-radius: 13px; background: #fff; box-shadow: 0 1px 5px #2a3c8c1c; scroll-margin-top: 8px; }
.section-panel .hm-card h2 { font-size: 16px; }
.section-panel .hm-card .muted { margin-top: 8px; color: #5a6486; font-size: 11.5px; }
/* Inside the admin panel the map's card is exactly as tall as the panel, so the whole country shows at once. */
.section-panel .hm #map { display: flex; flex-direction: column; height: 100%; min-height: 330px; }
.section-panel .hm #departments { margin-top: 14px; }
.section-panel .hm #map .muted { flex: none; }
.section-panel .hm .hm-view { flex: 1; min-height: 0; }
.section-panel .hm .hm-view img { display: block; width: 100%; max-width: none; height: 100%; object-fit: contain; user-select: none; }
.section-panel .hm .hm-view.is-zoomed img { height: auto; }
.hm-back { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 16px; background: linear-gradient(180deg, #2a48f0, #1020b8); color: #fff; font-size: 11px; font-weight: 800; text-decoration: none; }
.section-panel .hm-places { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; list-style: none; }
.section-panel .hm-places a { text-decoration: none; }
.hm-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.hm-tools { display: flex; align-items: center; gap: 6px; }
.hm-tools button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 32px; height: 32px; padding: 0 12px; border: 1.5px solid #1448d8; border-radius: 16px; background: #fff; color: #1448d8; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.hm-tools button:hover { background: #e8edfd; }
.hm-tools button:disabled { border-color: #c9d0ea; color: #9aa1c0; cursor: default; background: #fff; }
.hm-tools output { min-width: 42px; font-size: 11px; font-weight: 800; text-align: center; }
.hm-view { margin-top: 9px; overflow: auto; border: 1px solid #dbe0f2; border-radius: 12px; background: #fff; scroll-margin-top: 8px; }
.hm-view.is-zoomed { cursor: grab; }
.hm-view.is-zoomed:active { cursor: grabbing; }
.hm .hm-view img { display: block; width: 100%; max-width: none; height: auto; margin: 0; user-select: none; }
.hm .hm-places { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 10px 0 0; padding: 0; list-style: none; }
.hm .hm-places a { display: flex; align-items: center; gap: 10px; height: 100%; padding: 10px 12px; border: 1px solid #dbe0f2; border-left: 5px solid var(--dept); border-radius: 12px; background: #fff; box-shadow: 0 1px 6px #2a3c8c1f; color: #0a1238; transition: transform .15s, box-shadow .15s; }
.hm-places a:hover { transform: translateY(-2px); box-shadow: 0 6px 16px #2a3c8c33; }
.hm .hm-places a em { display: flex; flex: 0 0 32px; align-items: center; justify-content: center; height: 32px; border-radius: 50%; background: var(--dept); color: #fff; font-size: 13px; font-style: normal; font-weight: 800; }
.hm-places span { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.hm-places strong { font-size: 13px; }
.hm-places b { font-size: 10.5px; }
.hm .hm-places b i, .hm .hm-places a > i { color: var(--dept); }
.hm-places small { color: #5a6486; font-size: 9.5px; line-height: 1.35; }
body.is-phone .m-flow .hm-places { grid-template-columns: minmax(0, 1fr); }
body.is-phone .m-flow .hm-view img { max-width: none; }
body.is-phone .m-flow .hm-tools { flex-wrap: wrap; }
@media (max-width: 900px) {
    .section-panel .hm-places { grid-template-columns: minmax(0, 1fr); }
    .section-panel .hm-tools { flex-wrap: wrap; }
}
/* The admin phone layout limits pictures to the screen, which would stop the map being zoomed. */
body.ad-section .section-panel .hm .hm-view img { max-width: none; }
@media (max-width: 900px) {
    .section-panel .hm #map { height: auto; min-height: 0; }
    .section-panel .hm .hm-view { flex: none; }
    .section-panel .hm .hm-view img { height: auto; }
}
