/* Map workspace: one compact filter row, then an edge-to-edge map. */
#app:has(.collection-map-view) #magicAdd,#app:has(.collection-map-view) #add,#app:has(.collection-map-view) #listTools,#app:has(.collection-map-view) #count{display:none!important}
#app .collection-map-view{position:relative;margin:0!important;min-width:0}
#app .collection-map-filters{display:flex!important;align-items:center;gap:22px;padding:14px 18px!important;border-radius:18px 18px 0 0!important;margin:0!important;box-shadow:none!important}
.collection-map-category{display:flex;flex-direction:column;gap:8px;flex:0 0 200px;min-width:0;margin:0;font-size:12px}
.collection-map-category>span{font-weight:600;color:var(--ui-muted,#45617d)}
#app #collectionMapCategory{width:100%;min-width:0;min-height:44px;margin:0;padding:10px 34px 10px 12px;border:0;border-radius:12px;background:var(--ui-control,#edf3fa);color:var(--ui-text,#173553);font-size:13px}
.collection-map-date-control{display:flex;align-items:center;gap:9px;flex:1;min-width:0}
.collection-map-date-strip{display:flex;gap:20px;overflow-x:auto;min-width:0;flex:1;padding:2px 3px 5px;scrollbar-width:none;overscroll-behavior-x:contain}
.collection-map-date-strip::-webkit-scrollbar{display:none}
.collection-map-date-special{display:flex;align-items:flex-end;gap:7px;padding-bottom:0;flex:none}
#app .collection-map-date-strip .collection-date-option{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;flex:none;min-width:60px;min-height:64px;padding:9px 10px;border:1px solid transparent;border-radius:15px;background:var(--ui-raised,#fff);color:var(--ui-text,#172838);box-shadow:0 3px 9px #173e6810;white-space:nowrap;font-size:12px}
#app .collection-map-date-strip .collection-map-date-special button{min-width:70px;white-space:normal;max-width:76px;box-shadow:none;background:var(--ui-control,#edf3fa)}
#app .collection-map-date-strip .collection-date-option small{font-size:11px;font-weight:600;line-height:1.2;color:var(--ui-muted,#526477)}
#app .collection-map-date-strip .collection-date-option strong{font-size:25px;font-weight:500;line-height:1.1;color:inherit;font-variant-numeric:tabular-nums}
#app .collection-map-date-strip .collection-date-option.weekend small{color:#e14555!important}
#app .collection-map-date-strip .collection-date-option[aria-pressed=true]{background:var(--ui-control,#e8f1fc);border-color:var(--user-accent,#6b9ed7);color:var(--ui-text,#173553)}
#app .collection-map-date-strip .collection-date-count{position:absolute;top:3px;right:3px;min-width:16px;height:16px;padding:0 4px;display:grid;place-items:center;border-radius:50%;background:#e73d54;color:white;font-size:10px;line-height:1}
#app .collection-map-date-strip .planner-month-group{gap:6px}
#app .collection-map-date-strip .planner-month-label{font-size:11px;color:var(--ui-muted,#45617d);line-height:14px}
#app .collection-map-date-strip .planner-month-days{gap:8px}
#app .collection-date-scroll{display:grid;place-items:center;flex:none;width:30px;min-width:30px;height:38px;padding:6px;border-radius:10px;background:transparent;color:var(--ui-muted,#526477)}
.collection-date-scroll svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#app .collection-map-view #collectionMapMount{padding:0!important;margin:0!important;border:0!important;border-radius:0 0 18px 18px!important;background:transparent!important;box-shadow:none!important;overflow:hidden}
#app .collection-map-view #collectionGoogleMap{display:block;width:100%!important;height:calc(100dvh - 240px);min-height:420px;max-height:none;margin:0!important;border-radius:0!important}
#app .collection-map-view #collectionMapStatus{position:absolute;z-index:3;bottom:14px;left:14px;right:14px;width:fit-content;max-width:calc(100% - 28px);min-height:0!important;margin:0!important;padding:10px 14px!important;background:var(--ui-surface,#fff);color:var(--ui-text,#173553);border-radius:10px;box-shadow:0 3px 12px #10203020;font-size:12px}
#app .collection-map-view #collectionMapStatus:empty{display:none}
@media(max-width:760px){#app .collection-map-filters{padding:12px!important;gap:12px;flex-direction:column;align-items:stretch;border-radius:16px 16px 0 0!important}.collection-map-category{flex:auto;display:block}.collection-map-category>span{display:none}#app #collectionMapCategory{font-size:16px;min-height:44px}.collection-map-date-control{width:100%}#app .collection-date-scroll{display:none}.collection-map-date-strip{gap:16px}#app .collection-map-date-strip .collection-date-option{min-width:52px;min-height:60px;padding:8px}#app .collection-map-date-strip .collection-date-option strong{font-size:23px}#app .collection-map-view #collectionGoogleMap{height:calc(100dvh - 300px);min-height:380px}#app .collection-map-view #collectionMapMount{border-radius:0 0 16px 16px!important}}
/* Category picker aligns with the calendar's month label and day tiles. */
#app .collection-map-category{flex-basis:240px;align-self:stretch;justify-content:flex-start;gap:6px;padding-top:2px;position:relative}
#app .collection-map-category>span{font-size:11px;line-height:14px;font-weight:650;margin:0}
.collection-category-picker{position:relative;min-width:0}
#app #collectionMapCategory{display:flex;align-items:center;justify-content:space-between;gap:10px;height:64px;min-height:64px;padding:12px 15px;text-align:left}
.collection-category-selected{display:flex;align-items:center;gap:9px;min-width:0;font-size:13px;font-weight:600}
.collection-category-selected i,#collectionCategoryOptions i{display:inline-block;width:9px;height:9px;border-radius:50%;flex:none}
#collectionMapCategory>svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#collectionCategoryOptions{position:absolute;top:calc(100% + 7px);left:0;min-width:100%;width:max-content;max-width:min(340px,80vw);max-height:340px;overflow:auto;padding:6px;background:var(--ui-surface,#fff);color:var(--ui-text,#173553);border:1px solid var(--ui-border,#dce5ee);border-radius:14px;box-shadow:0 10px 30px #142b462b;z-index:80;box-sizing:border-box}
#collectionCategoryOptions[hidden]{display:none!important}
#app #collectionCategoryOptions button{display:flex;align-items:center;gap:10px;min-height:42px;width:100%;padding:11px 12px;border:0;border-radius:9px;background:transparent;color:var(--ui-text,#173553);font-size:13px;text-align:left;white-space:normal}
#app #collectionCategoryOptions button:hover,#app #collectionCategoryOptions button:focus-visible,#app #collectionCategoryOptions button[aria-selected=true]{background:var(--ui-control,#e8f1fc)}
#app .collection-map-filters{overflow:visible!important;position:relative;z-index:4}
/* Google popup controls belong to the photograph, with no blank header. */
.collection-map-view .gm-style-iw-chr{display:none!important}
.collection-map-view .gm-style-iw-c{padding:12px!important}
.collection-map-view .gm-style-iw-d{overflow:auto!important}
.collection-map-preview-shell{width:230px;max-width:100%;background:var(--ui-surface,#fff);border-radius:12px;color:var(--ui-text,#173553);overflow:hidden}
.collection-map-preview-photo{position:relative;width:100%;height:150px;border-radius:11px;overflow:hidden;background:var(--ui-control,#e8f1fc)}
.collection-map-preview-photo>img{display:block;width:100%;height:100%;object-fit:cover;cursor:pointer}
.collection-map-preview-photo>button{position:absolute;top:8px;display:grid;place-items:center;width:32px;height:32px;min-width:32px;padding:7px;border:0;border-radius:10px;background:#ffffffed!important;color:#173553!important;box-shadow:0 2px 7px #10203025;z-index:2;cursor:pointer}
.collection-preview-visited{left:8px}.collection-preview-close{right:8px}
.collection-map-preview-photo>button svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.collection-map-preview-photo>button.action-icon:before{display:none!important}
.collection-map-preview-photo>button.action-icon svg{display:block!important}
.collection-map-preview-shell .collection-map-preview{width:100%;padding:12px 5px 9px!important;border-radius:0;background:var(--ui-surface,#fff)!important;color:var(--ui-text,#173553)!important}
.collection-map-preview-shell .collection-map-preview strong{color:var(--ui-text,#173553)!important}
.collection-map-preview-shell .collection-map-preview>span{color:var(--ui-muted,#45617d)!important}
@media(max-width:760px){#app .collection-map-category{flex-basis:auto;width:100%;padding-top:0}#app #collectionMapCategory{height:52px;min-height:52px}.collection-map-preview-shell{width:210px}.collection-map-preview-photo{height:140px}}

.collection-category-name{flex:1;min-width:0}.collection-category-check{display:grid;place-items:center;flex:none;width:18px;height:18px;margin-left:12px;border:1px solid var(--ui-border,#b7c9dc);border-radius:5px;background:var(--ui-surface,#fff);box-sizing:border-box}.collection-category-check svg{display:none;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}#collectionCategoryOptions [aria-selected=true] .collection-category-check{background:var(--user-accent,#0855b5);border-color:var(--user-accent,#0855b5);color:var(--user-accent-ink,#fff)}#collectionCategoryOptions [aria-selected=true] .collection-category-check svg{display:block}.collection-category-selected>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Fixed date shortcuts; arrows align with day tiles, below month labels. */
#app .collection-map-date-control{align-items:flex-end;gap:9px}
#app .collection-map-date-control>.collection-map-date-special{display:flex;flex:none;gap:7px;padding-bottom:5px}
#app .collection-map-date-special .collection-date-option{display:flex;align-items:center;justify-content:center;flex:none;min-width:70px;max-width:76px;height:64px;min-height:64px;padding:9px 10px;border:1px solid transparent;border-radius:15px;background:var(--ui-control,#edf3fa);color:var(--ui-text,#173553);font-size:12px;font-weight:600;line-height:1.35;white-space:normal;box-sizing:border-box}
#app .collection-map-date-special .collection-date-option[aria-pressed=true]{border-color:var(--user-accent,#6b9ed7);background:var(--ui-control,#e8f1fc)}
#app .collection-map-date-control>.collection-date-scroll{height:64px;min-height:64px;margin-bottom:5px;align-self:flex-end}
@media(max-width:760px){#app .collection-map-date-control{gap:10px}#app .collection-map-date-special .collection-date-option{height:60px;min-height:60px;min-width:57px;max-width:60px;padding:7px;font-size:11px}#app .collection-map-date-control>.collection-date-scroll{display:none}}

#app .collection-map-date-strip .collection-map-calendar-day{transition:filter .16s ease,opacity .16s ease}
#app .collection-map-date-strip .date-partially-visible{filter:blur(2.5px);opacity:.38}
