.tbw-map { margin-block: 1.5rem; }
.tbw-map__stops { margin: 0 0 1rem; padding-inline-start: 1.25rem; }
.tbw-map__canvas { background: #f0f0f0; border: 1px solid #ccc; height: 400px; max-height: 70vh; width: 100%; }
.tbw-map__load { background: var(--wp--preset--color--accent, #c2412e); border: 0; border-radius: 999px; color: #fff; cursor: pointer; font: inherit; font-weight: 600; min-height: 44px; padding: .5rem 1.4rem; }
.tbw-map__load:hover { background: var(--wp--preset--color--accent-dark, #9f3223); }
.tbw-map__pin { background: #fff; border: 1px solid #767676; border-radius: 4px; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); color: #14202b; font-size: 16px; padding: 4px 8px; white-space: nowrap; }
.tbw-map__dot { background: var(--wp--preset--color--accent, #c2412e); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); cursor: pointer; height: 18px; width: 18px; }
.tbw-map__note { color: var(--wp--preset--color--ink-soft, #4a5866); margin: 0 0 .75rem; }
.tbw-map__info { max-width: 15rem; position: relative; }
.tbw-map__info-link { color: var(--wp--preset--color--ink, #1b2733); display: block; font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.tbw-map__info-link img { aspect-ratio: 16 / 9; border-radius: 8px; display: block; height: auto; margin-bottom: .45rem; object-fit: cover; width: 100%; }
.tbw-map__info-title { -webkit-box-orient: vertical; -webkit-line-clamp: 2; display: -webkit-box; line-clamp: 2; overflow: hidden; }
a.tbw-map__info-link:hover .tbw-map__info-title, a.tbw-map__info-link:focus-visible .tbw-map__info-title { text-decoration: underline; text-underline-offset: .2em; }
.tbw-map__info-close { align-items: center; background: rgba(255, 255, 255, .92); border: 0; border-radius: 50%; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); color: #1b2733; cursor: pointer; display: flex; font: 600 20px/1 system-ui, sans-serif; height: 32px; justify-content: center; padding: 0; position: absolute; right: 6px; top: 6px; width: 32px; }
.tbw-map__info-close:hover, .tbw-map__info-close:focus-visible { background: #fff; }
/* Google wraps the balloon content in an overflow:scroll box with no right padding: an 18 px scrollbar gutter on the
   right only. Even 12 px on every side, for our destination balloons only. */
.gm-style-iw-c:has(.tbw-map__info) { padding: 12px !important; }
.gm-style-iw-d:has(.tbw-map__info) { overflow: hidden !important; }
/* The close cross is drawn with two bars (a text "×" sits off-centre because of the font's baseline). */
.tbw-map__info-close { font-size: 0 !important; }
.tbw-map__info-close::before, .tbw-map__info-close::after { background: #1b2733; border-radius: 1px; content: ""; height: 2px; left: 50%; position: absolute; top: 50%; width: 14px; }
.tbw-map__info-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.tbw-map__info-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
/* Balloons without a photo (post maps from Google My Maps lists, 2026-11-21): the close button sat on top of the name.
   Name and close button side by side instead. */
.tbw-map__info:not(:has(img)) { align-items: center; display: flex; gap: .6rem; }
.tbw-map__info:not(:has(img)) .tbw-map__info-body { flex: 1; min-width: 0; }
.tbw-map__info:not(:has(img)) .tbw-map__info-close { background: #f1eee8; box-shadow: none; flex: none; height: 28px; position: relative; right: auto; top: auto; width: 28px; }
/* Link to the place on Google Maps, under the name (2026-11-21). */
.tbw-map__info-gmaps { color: var(--wp--preset--color--accent-dark, #9f3223); display: inline-block; font-size: 13px; font-weight: 600; margin-top: .3rem; text-decoration: underline; text-underline-offset: .2em; }
/* Long lists of places, folded under post maps (2026-11-21). */
.tbw-map__places { margin-top: .75rem; }
.tbw-map__places summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.tbw-map__places .tbw-map__stops { columns: 2 12rem; margin: .5rem 0 0; }
.tbw-map__places summary { gap: .5rem; justify-content: space-between; list-style: none; }
.tbw-map__places summary::-webkit-details-marker { display: none; }
.tbw-map__places summary::after { content: "+"; font-size: 1.25rem; font-weight: 400; }
.tbw-map__places[open] summary::after { content: "\2212"; }
