/* Shared map and discovery-card rules for every activity and destination. */
.map-region-marker{background:none;border:0;text-align:center;color:#163f43;font:700 12px/1.15 DM,system-ui,sans-serif}
.map-region-token{display:flex;position:relative;align-items:center;flex-direction:column;width:100%;height:100%;transform-origin:center;transition:transform .14s ease}
.map-region-token>img{display:block;width:42px;height:42px;max-width:none;border-radius:50%;box-shadow:0 1px 5px #123b4955;background:white;border:2px solid #fffefa;box-sizing:border-box}
.map-region-count{position:absolute;top:28px;left:50%;transform:translateX(8px);min-width:23px;padding:3px 5px;border-radius:12px;background:#075459;color:white;border:2px solid #fffefa;font:750 12px/1 DM,system-ui,sans-serif;box-shadow:0 1px 3px #123b4933}
.map-region-name{display:block;box-sizing:border-box;margin-top:5px;max-width:100%;padding:3px 5px;border-radius:5px;background:#fffef5f2;box-shadow:0 1px 3px #123b4933;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.map-region-marker:hover .map-region-token,.map-region-marker:focus-visible .map-region-token{transform:scale(1.04)}
.map-region-marker:focus-visible{outline:2px solid #965b00;outline-offset:4px;border-radius:8px}
.map-badge-leader{position:absolute;left:0;top:0;height:1px;background:#436c697a;transform-origin:0 50%;pointer-events:none}
.map-zone-marker .map-region-token>img{width:36px;height:36px}
.map-zone-marker .map-region-count{top:22px}
.map-zone-marker .map-region-name{white-space:normal;font-size:11px;line-height:12px;max-height:28px;margin-top:4px;padding:2px 4px;overflow:hidden}
.map-empty-zone .map-region-count{background:#496b6b}
.review-fun-map .leaflet-marker-icon .map-region-token>img{width:var(--badge-size,42px);height:var(--badge-size,42px);flex:none}
.map-zone-marker{--badge-size:36px}
.map-flag-token>img{object-fit:cover;background:#fffefa}
.map-flag-token:is([data-flag^="au"],[data-flag="nz"]):not([data-flag="au-nt"],[data-flag="au-act"])>img{object-fit:contain;background:#012169}
.map-flag-token:is([data-flag="us"],[data-flag="us-hi"])>img{object-position:25% center}
.map-country-token{--badge-size:32px}
.map-country-token .map-region-name{margin-top:1px;font-size:10px;line-height:12px;padding:2px 4px}
.map-country-token .map-region-count{top:16px;min-width:15px;padding:2px 4px;font-size:10px;transform:translateX(5px);box-sizing:border-box}
.map-compact-token{--badge-size:25px}
.map-compact-token .map-region-name{margin-top:0;font-size:8px;line-height:9px;letter-spacing:.04em;padding:1px 3px}
.map-compact-token .map-region-count{top:16px;left:auto;right:0;transform:none;font-size:9px;border-width:1px;padding:2px 3px}
@media(max-width:780px){.review-fun-map.us-zone-view .fun-canvas{height:460px;min-height:460px}}
.map-group-members{font:14px/1.45 DM,system-ui,sans-serif;max-height:280px;overflow:auto}
.map-group-members>a,.map-group-members>small{display:block;margin-top:8px}
@media(prefers-reduced-motion:reduce){.map-region-token{transition:none}}
.review-fun-map{margin:20px 0 24px}
.map-title-tiles{position:absolute;z-index:600;top:12px;left:56px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:max-content;max-width:calc(100% - 62px);pointer-events:none}
.map-title-tiles .fun-map-title,.map-title-tiles .map-mode-toggle{position:static;display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:40px;margin:0;padding:6px 10px;border:1px solid #b9cec4;border-radius:8px;background:#fffef5f2;color:#193e42;box-shadow:0 1px 7px #183b3d15}
.map-title-tiles .map-mode-toggle{gap:6px;font:650 14px/1.2 DM,system-ui,sans-serif;pointer-events:auto;cursor:pointer}
.map-mode-toggle input{flex:none;width:16px;height:16px;margin:0;accent-color:#075459;cursor:pointer}
.map-mode-toggle:focus-within{outline:2px solid #965b00;outline-offset:2px}
.showing-all-activities .map-mode-toggle{background:#e7f3ed;border-color:#075459}
@media(max-width:480px){
  .map-title-tiles{left:50px;max-width:calc(100% - 56px);gap:5px}
  .map-title-tiles .fun-map-title,.map-title-tiles .map-mode-toggle{min-height:38px;padding:5px 7px}
  .map-title-tiles .map-mode-toggle{gap:4px;font-size:13px}
}
[data-symbols-only].showing-all-activities .symbol-marker-token{border-width:1px;box-shadow:none}
.showing-all-activities .symbol-name-link{display:flex;gap:8px;align-items:center;min-height:34px}
.showing-all-activities .symbol-name-link img{width:26px;height:26px;object-fit:contain;flex:none}
.showing-all-activities .symbol-name-link small{display:block;font-weight:400;color:#496361}
.map-token-choices{max-height:170px;overflow:auto;overscroll-behavior:contain;padding-right:6px}
.map-token-choices>strong{display:block;margin:0 16px 5px 0}
.map-token-choices .symbol-name-link{display:flex;align-items:center;min-height:42px;border-top:1px solid #d7dfd6}
.map-explore-bar{display:flex;justify-content:flex-end;margin:0 0 12px}
.map-explore-bar[hidden]{display:none}
.review-fun-map .map-explore{display:inline-flex;align-items:center;justify-content:center;min-height:38px;max-width:100%;box-sizing:border-box;padding:9px 13px;border:1px solid #075459;border-radius:8px;background:#075459;color:#fffefa;font:600 13px/1.35 DM,system-ui,sans-serif;text-decoration:none;text-align:center}
.review-fun-map .map-explore:hover{background:#064348}
.review-fun-map .map-explore:focus-visible{outline:3px solid #bd7d1a;outline-offset:3px}
.map-actions{display:grid;grid-template-columns:1fr;gap:12px;max-width:100%;align-self:end}
.map-actions.has-explore{grid-template-columns:repeat(2,minmax(0,1fr));width:340px}
.map-actions .map-explore-bar{display:contents}
.map-actions .map-explore-bar[hidden]{display:none}
.review-fun-map .map-actions .map-explore,.review-fun-map .map-actions .review-reset{width:100%;height:100%;min-width:0;box-sizing:border-box}
@media(max-width:780px){.map-explore-bar{justify-content:stretch}.review-fun-map .map-explore{width:100%;min-height:40px}.map-actions.has-explore{flex:1 0 100%;width:100%;min-width:0}}
.review-fun-map .fun-layout{grid-template-columns:minmax(0,1.8fr) minmax(290px,1fr);align-items:stretch}
.review-fun-map .fun-canvas{height:540px;min-height:540px}
.review-fun-map .fun-side{max-height:540px;background:#fffefa;padding:15px}
.review-fun-map .fun-status{position:sticky;top:-15px;background:#fffefa;padding:7px 0 10px;z-index:2;border-bottom:1px solid #d5e1da}
.map-side-heading{display:contents}
@media(min-width:781px){
  .map-side-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-15px;z-index:2;background:#fffefa;padding:7px 0 10px;border-bottom:1px solid #d5e1da}
  .map-side-heading .fun-status{position:static;min-width:0;margin:0;padding:0;border:0}
  .map-side-heading .map-explore-bar{flex:0 0 auto;max-width:55%;margin:0}
  .map-side-heading .map-explore{overflow-wrap:anywhere}
}
.review-map-help{margin:22px 0 10px;max-width:75ch;color:#365c5b}
.review-fun-map .review-reset{border:1px solid #8daaa2;border-radius:8px;background:#fffefa;color:#17565b;padding:9px 13px;font:600 13px/1.35 DM,system-ui,sans-serif;cursor:pointer;min-height:38px}
.review-fun-map .fun-filters label{min-width:170px;max-width:260px;flex:1}
.review-fun-map .fun-filters select{width:100%}
.review-fun-map .review-marker{background:none;border:0}
.review-marker-token{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;border:2px solid #075459;background:#fffdf3;box-shadow:0 2px 6px #143e4040;transform-origin:center;transition:transform .14s ease,box-shadow .14s ease}
.review-marker-token img{width:29px;height:29px;display:block;object-fit:contain}
.review-brand-token{padding:0;overflow:hidden;background:#fff}
.review-brand-token img{width:36px;height:36px;object-fit:contain;min-width:0}
.review-marker-group{background:#0d5b60;color:#fff;font:700 16px/1 system-ui;border:3px solid #fffdf3}
.review-marker.is-emphasized .review-marker-token,.review-marker:focus-visible .review-marker-token{transform:scale(1.2);box-shadow:0 0 0 4px #e2bb667a,0 3px 9px #173c3b50}
.review-marker:focus-visible{outline:3px solid #bd7d1a;outline-offset:5px;border-radius:50%}
.review-fun-map .review-map-row{display:grid;grid-template-columns:73px minmax(0,1fr);column-gap:10px;row-gap:3px;padding:13px 0;border-top:0;border-bottom:1px solid #d5e1da;transition:background .14s}
.review-map-row>img{width:73px;height:68px;object-fit:cover;border-radius:8px;grid-row:1 / 3}
.review-map-row-copy{min-width:0;display:grid;gap:3px}
.review-map-row-copy>a{font-size:14px;line-height:1.3;text-decoration:none}
.review-map-row-copy>small{font-size:12px}
.review-map-price{display:block;font-size:13px;color:#124e51}
.review-map-row .map-locate{grid-column:2;justify-self:start;padding:5px 0;min-height:28px;font-size:12px}
.review-map-row.is-emphasized{background:#edf5ee}
.review-map-row a:focus-visible,.review-map-row button:focus-visible{outline:2px solid #965b00;outline-offset:3px}
.review-map-legend{margin-top:10px;font-size:13px;color:#254b4d}
.review-map-legend summary{cursor:pointer;font-weight:650;padding:5px 0}
.review-legend-items{display:flex;flex-wrap:wrap;gap:10px 19px;padding-top:8px}
.review-legend-items>span{display:flex;align-items:center;gap:6px}
.review-legend-items img{width:24px;height:24px}
.review-tour-popup .leaflet-popup-content{margin:14px;font:14px/1.4 DM,system-ui,sans-serif;max-width:270px;max-height:300px;overflow:auto}
.review-map-card>img{display:block;width:100%;height:110px;object-fit:cover;border-radius:7px;margin:0 0 7px}
.review-map-card>small{display:block;color:#426465;font-size:12px;margin:3px 0}
.review-tour-popup a.review-map-card{display:block;color:#243b3b;text-decoration:none}
.review-map-card>.map-card-title{display:block;color:#075459;text-decoration:underline;font-weight:750;line-height:1.25;font-size:16px}
.review-map-card p{margin:7px 0;font-size:13px}
.review-map-card>strong{display:block;margin-top:6px}
.review-popup-group{max-height:300px;overflow:auto;padding-right:4px}
.review-popup-group .review-map-card{margin-top:14px;border-top:1px solid #d5e1da;padding-top:12px}
.review-map-empty p{font-size:14px}
.single-tour-map .fun-canvas{height:420px;min-height:420px}
.single-tour-map .fun-side{max-height:none}
.single-tour-map:not(.showing-all-activities) .review-map-row{display:block;padding:15px 0}
.single-tour-map.showing-all-activities .fun-side{max-height:420px}
@media(max-width:780px){.single-tour-map.showing-all-activities .fun-side{max-height:350px}}
.single-tour-map .review-map-row>strong,.single-tour-map .review-map-row>small{display:block;margin-bottom:6px}
.single-tour-map .review-map-row p{font-size:14px;margin:5px 0}
.single-tour-map .review-map-row>a{display:block;font-size:13px;margin-top:6px}
.tour-page .tour-summary{max-width:none}
.tour-page .tour-facts li>span{font-size:15px}
.tour-page .review-before{margin-top:0;margin-bottom:18px}
.review-discovery{margin:20px 0 26px;border-top:1px solid #d5e1da;padding-top:18px}
.review-discovery h2{font-size:25px;margin:0 0 14px}
.review-discovery-grid,.review-explore-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.review-discovery-card{position:relative;min-width:0;border:1px solid #c9dad0;border-radius:12px;overflow:hidden;background:#fffef9}
.review-discovery-card>a{display:flex;position:relative;padding-left:42%;text-decoration:none;min-height:165px;height:100%}
.review-discovery-card>a>img{position:absolute;inset:0 auto 0 0;width:42%;height:100%;object-fit:cover}
.review-card-copy{display:flex;flex-direction:column;gap:7px;padding:15px 16px 15px 13px;min-width:0}
.review-card-copy small{font-size:12px;color:#456460}
.review-card-copy strong{font-size:17px;line-height:1.3}
.review-card-copy>span{font-size:14px;margin-top:auto}
.review-discovery-card .card-bucket{position:absolute;top:8px;left:8px;display:grid;place-items:center;width:38px;height:38px;border:1px solid #a6bdb2;border-radius:50%;background:#fff;cursor:pointer}
.review-discovery-card .card-bucket svg{width:25px;height:25px}
.review-discovery-card .card-bucket[aria-pressed="true"]{background:#ffeaf0;border:2px solid #df3151}
.review-explore-grid{margin-top:14px}
.review-explore-card{display:flex;align-items:center;gap:11px;border:1px solid #c9dad0;border-radius:10px;padding:9px;text-decoration:none;background:#f6f8ee;min-width:0}
.review-explore-card img{width:74px;height:66px;object-fit:cover;border-radius:6px}
.review-explore-card>span:nth-child(2){display:grid;gap:4px;flex:1}
.review-explore-card strong{font-size:16px}
.review-explore-card small{font-size:12px;color:#476762}
@media(max-width:780px){.review-fun-map .fun-layout{grid-template-columns:minmax(0,1fr)}.review-fun-map .fun-canvas{height:365px;min-height:365px}.review-fun-map .fun-side{max-height:360px}.review-fun-map .fun-filters label{min-width:125px}.review-fun-map .review-reset{min-height:40px}.review-fun-map .fun-map-title{font-size:18px}.review-map-row .map-locate{min-height:38px}.review-discovery-grid,.review-explore-grid{grid-template-columns:minmax(0,1fr)}.single-tour-map .fun-canvas{height:350px;min-height:350px}.single-tour-map .fun-side{max-height:none}.review-discovery-card>a{min-height:135px}.review-discovery-card>a>img{min-height:135px}.review-tour-popup .leaflet-popup-content{max-width:235px}.review-fun-map .fun-status{font-size:13px}.review-marker-token{width:40px;height:40px}}
@media(prefers-reduced-motion:reduce){.review-marker-token,.review-map-row{transition:none}}

/* Individual activity symbols and their previews. */
[data-symbols-only] .symbol-marker-token{box-sizing:border-box;display:grid;place-items:center;border:1.5px solid #075459;border-radius:50%;background:#fffdf3;box-shadow:0 1px 4px #143e4033;transform-origin:center;transition:transform .14s ease,box-shadow .14s ease}
[data-symbols-only] .symbol-marker-token img{display:block;width:75%;height:75%;min-width:0;max-width:25px;max-height:25px;object-fit:contain}
[data-symbols-only] .symbol-marker-token:has(> img[src*="/map-symbol-fish-"]){background:#fff}
[data-symbols-only] .symbol-marker-token > img[src*="/map-symbol-fish-"]{width:100%;height:100%;max-width:none;max-height:none}
[data-symbols-only] .symbol-marker.is-emphasized .symbol-marker-token,[data-symbols-only] .symbol-marker:focus-visible .symbol-marker-token{transform:scale(1.15);box-shadow:0 0 0 2px #d6a443aa,0 2px 6px #173c3b40}
[data-symbols-only] .symbol-marker:focus-visible{outline:2px solid #965b00;outline-offset:3px;border-radius:50%}
[data-symbols-only] .symbol-name-popup .leaflet-popup-content{margin:8px 12px;font:600 14px/1.35 DM,system-ui,sans-serif;max-width:250px}
[data-symbols-only] .symbol-name-link{border:0;background:none;padding:2px;color:#075459;text-decoration:underline;font:inherit;text-align:left;cursor:pointer}
[data-symbols-only] .symbol-name-link:focus-visible,[data-symbols-only] .symbol-book-link:focus-visible{outline:2px solid #965b00;outline-offset:3px}
[data-symbols-only] .review-map-card .symbol-book-link{display:block;border-radius:7px;background:#075459;color:#fff;text-align:center;padding:10px 12px;margin-top:10px;text-decoration:none;font-size:14px}
[data-symbols-only] .symbol-detail-popup .review-map-card:focus-visible{outline:2px solid #965b00;outline-offset:-2px}
[data-symbols-only] .symbol-detail-popup .leaflet-popup-content{max-height:420px}
.single-tour-map[data-symbols-only] .symbol-detail-popup .leaflet-popup-content{max-height:345px}
@media(max-width:780px){[data-symbols-only] .symbol-detail-popup .leaflet-popup-content{max-height:275px}[data-symbols-only] .symbol-name-popup .leaflet-popup-content{max-width:230px}}
@media(prefers-reduced-motion:reduce){[data-symbols-only] .symbol-marker-token{transition:none}}

/* The token gap reserves room for the hover enlargement and focus outline. */
[data-shared-map] .brand-marker-token{overflow:hidden;padding:0;background:#fff}
[data-shared-map] .brand-marker-token img{width:100%;height:100%;max-width:none;max-height:none}
[data-shared-map] .fun-filters[hidden]{display:none}
[data-shared-map] .map-arrival-note{font-size:14px;line-height:1.5;margin:12px 0 0}
.tour-page .tour-details{margin:18px 0;padding:18px 0}
.tour-page .tour-top+.tour-details{margin-top:0}
.tour-page .tour-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
.tour-page .tour-summary{max-width:none}
.review-discovery-grid{grid-template-columns:repeat(auto-fit,minmax(min(290px,100%),1fr))}
.review-discovery-card>a{min-height:155px}
#world-map .fun-section{padding:0;margin:10px 0 0;max-width:none}
#world-map .map-heading{margin-bottom:14px}
#world-map .fun-layout{border:1px solid #c9dad0;border-radius:12px;overflow:hidden}
#world-map .review-map-row-copy a,#world-map .review-card-copy{color:#075459}
.fun-map-surface:has(.leaflet-popup) .map-title-tiles,.fun-map-surface:has(.leaflet-popup) .leaflet-control-zoom{visibility:hidden}
.map-arrival-note>a,.map-arrival-note>small{display:block;margin-top:8px}
@media(max-width:780px){.tour-page .tour-facts{grid-template-columns:minmax(0,1fr)}.review-discovery-grid{grid-template-columns:minmax(0,1fr)}}

/* Keep long geographic names readable beside their badges on phones. */

/* A desktop area selection fits the filter rows and the complete map in one view. */
@media(min-width:781px){
  .review-fun-map.map-fit-viewport{--map-view-height:min(540px,max(120px,calc(100vh - var(--map-controls-height,80px) - 32px)))}
  .review-fun-map.map-fit-viewport .fun-canvas{height:var(--map-view-height);min-height:0}
  .review-fun-map.map-fit-viewport .fun-side{box-sizing:border-box;height:var(--map-view-height);max-height:var(--map-view-height)}
}

/* Desktop tour previews occupy the sidebar; the resting activity list is unchanged. */
.map-sidebar-preview[hidden]{display:none}
@media(min-width:781px){
  .review-fun-map .fun-side.has-activity-preview{max-height:var(--map-preview-max-height,540px)}
  .map-sidebar-preview{margin:0 0 14px;padding:0 0 14px;border-bottom:1px solid #b9cec4}
  .map-sidebar-preview-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;color:#496361;font:600 12px/1.4 DM,system-ui,sans-serif}
  .map-sidebar-preview .map-sidebar-preview-close{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;padding:0;border:1px solid #b9cec4;border-radius:50%;background:#fffefa;color:#183b3b;font:24px/1 system-ui;cursor:pointer}
  .map-sidebar-preview-close:hover{background:#e7f3ed}
  .map-sidebar-preview a.review-map-card{display:block;color:#243b3b;text-decoration:none;overflow-wrap:anywhere}
  .map-sidebar-preview .review-map-card>img{height:125px;object-fit:cover;margin-bottom:8px}
  .map-sidebar-preview .review-map-card>.map-card-title{font-size:17px;line-height:1.3}
  .map-sidebar-preview .review-map-card p{font-size:13px;line-height:1.45;margin:7px 0}
  .map-sidebar-preview .review-map-card>small{font-size:12px;line-height:1.4}
  .map-sidebar-preview .review-map-card .symbol-book-link{padding:9px 10px;margin-top:10px}
  .map-sidebar-preview :is(a,button):focus-visible{outline:2px solid #965b00;outline-offset:2px}
}

/* Phone activity previews use the compact photo-and-price layout. */
@media(max-width:780px){
  .review-fun-map .mobile-activity-popup .leaflet-popup-content-wrapper{border-radius:10px}
  .review-fun-map .mobile-activity-popup .leaflet-popup-content{margin:12px 10px 10px;max-height:var(--mobile-popup-max-height,290px);overflow:auto;font:14px/1.35 DM,system-ui,sans-serif;overscroll-behavior:contain}
  .review-fun-map .mobile-activity-popup a.mobile-map-card{display:grid;grid-template-columns:68px minmax(0,1fr);gap:9px;align-items:start;min-width:0;padding:0;color:#243b3b;text-decoration:none}
  .mobile-map-card>img{display:block;width:68px;height:68px;object-fit:cover;border-radius:7px}
  .mobile-map-card-copy{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}
  .mobile-map-card-title{padding-right:14px;color:#075459;font-size:14px;line-height:1.3}
  .mobile-map-card .review-map-price{font-size:13px;line-height:1.3}
  .mobile-map-card-copy>small{font-size:11px;line-height:1.3;color:#426465}
  .mobile-map-card-link{padding:4px 0;color:#075459;font-size:12px;line-height:1.3;text-decoration:underline}
  .mobile-map-card:focus-visible{outline:2px solid #965b00;outline-offset:-2px;border-radius:6px}
  .review-fun-map .mobile-activity-popup .map-token-choices{max-height:none;overflow:visible;padding:0}
  .mobile-activity-popup .map-token-choices>strong{margin:0 20px 8px 0;font-size:13px}
  .mobile-activity-popup .map-token-choices .mobile-map-card+.mobile-map-card{margin-top:10px;padding-top:10px;border-top:1px solid #d5e1da}
  .review-fun-map .mobile-activity-popup .leaflet-popup-close-button{width:30px;height:30px;line-height:30px;color:#365c5b}
}
