/* Tipota MAPS / viaggi — dots, cards and the booklet window. Layout, panel and colours come from common.css. */
.tipota-viaggi-wrap, .tv-modal { --tv-ink: var(--tmaps-ink); --tv-muted: var(--tmaps-muted); --tv-shadow: var(--tmaps-shadow); --tv-accent: var(--tmaps-accent); }
.tv-modal * { box-sizing: border-box; }
.tv-pin span { display: block; width: 20px; height: 20px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.55); transition: transform .12s; }
.tv-pin:hover span, .tv-pin:focus span { transform: scale(1.3); }
.tv-tt, .tv-pop .leaflet-popup-content-wrapper { border-radius: 10px; padding: 0; box-shadow: var(--tv-shadow); border: 0; }
.tv-tt::before { display: none; }
.tv-pop .leaflet-popup-content { margin: 8px; }
.tv-tcard { display: flex; gap: 10px; align-items: center; width: 230px; font-family: inherit; padding: 8px; }
.tv-tcard img { width: 60px; height: 80px; object-fit: cover; border-radius: 4px; background: #e7eef1; flex: none; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.tv-tcard div { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.tv-tcard b { font-size: 1rem; color: var(--tv-ink); display: block; white-space: nowrap; overflow: hidden; }
.tv-tcard span { font-size: .85rem; color: var(--tv-muted); }
.tv-pick { display: block; width: 100%; margin-top: 6px; padding: 9px; border: 0; border-radius: 8px; background: var(--tv-accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.tv-chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; vertical-align: 0; }
.tv-list img { width: 44px !important; height: 58px !important; }
.tv-hint { margin: 10px 0 0; font-size: 13px; color: var(--tv-muted); line-height: 1.4; }
/* booklet window */
.tv-modal { position: fixed; inset: 0; z-index: 99990; background: rgba(8, 20, 28, .62); display: flex; align-items: center; justify-content: center; padding: 18px; }
.tv-card { position: relative; width: min(760px, 100%); max-height: 100%; overflow: auto; background: #fff; color: var(--tv-ink); border-radius: 14px; box-shadow: var(--tv-shadow); padding: 22px; display: flex; gap: 22px; align-items: flex-start; }
.tv-cover { flex: none; width: 240px; }
.tv-cover img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.tv-info { flex: 1; min-width: 0; }
.tv-info h2 { margin: 6px 40px 6px 0; font-size: 1.5rem; line-height: 1.2; }
.tv-info p { margin: 0 0 18px; color: var(--tv-muted); }
.tv-open { display: inline-block; padding: 10px 22px; border-radius: 6px; background: var(--tv-accent); color: #fff !important; font-weight: 600; text-decoration: none !important; }
.tv-open:hover { background: #265b88; color: #fff; }
.tv-x { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #eef3f5; color: var(--tv-ink); font-size: 26px; line-height: 1; cursor: pointer; }
@media (max-width: 640px) { .tv-card { flex-direction: column; align-items: center; text-align: center; padding: 18px 16px 22px; } .tv-cover { width: 200px; } .tv-info h2 { margin-right: 0; } .tv-hint { display: none; } }
