:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  --ink: #f4f0ec;
  --muted: #a5a6ad;
  --dim: #858993;
  --line: #2c3038;
  --surface: #171b20;
  --base: #12161b;
  --accent: #ffad7e;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--base); color: var(--ink); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button:disabled { opacity: .38; cursor: default; }
[hidden] { display: none !important; }
a { color: inherit; }
h1,h2,h3,p { margin: 0; }
[data-icon] { display: inline-flex; flex: none; align-items: center; justify-content: center; }
.icon { width: 1.15em; height: 1.15em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.top { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; background: #12161a; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(145deg,#ffd096,#ff9a76); color: #1d181b; box-shadow: 0 3px 18px #e4805030; }
.brand-mark .icon { width: 26px; height: 26px; }
.brand strong { display: block; font-family: "Barlow Condensed", Impact, sans-serif; font-size: 26px; letter-spacing: .055em; line-height: .94; font-weight: 800; }
.brand strong span { color: var(--accent); }
.brand small { color: var(--dim); letter-spacing: .17em; font-weight: 700; font-size: 10px; display: block; margin-top: 6px; }
.header-actions { display: flex; gap: 11px; align-items: center; }
.header-button { min-height: 39px; display: inline-flex; gap: 8px; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line); background: #1c2127; padding: 0 12px; font-size: .8125rem; font-weight: 650; }
.header-button:hover, .header-button[aria-pressed=true] { border-color: #a37055; color: var(--accent); }
.sources-button { color: #bdc0c6; background: transparent; }
#saved-count { font-size: .6875rem; padding: 2px 5px; min-width: 17px; border-radius: 5px; background: #35302d; color: var(--accent); text-align: center; }
.workspace { display: grid; grid-template-columns: 318px minmax(0,1fr) 312px; height: calc(100dvh - 72px); min-height: 660px; }
.workspace.details-closed { grid-template-columns: 318px minmax(0,1fr); }
.explorer { min-height: 0; min-width: 0; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); }
.search-area { padding: 25px 20px 21px; border-bottom: 1px solid var(--line); }
.kicker { color: var(--accent); font-size: .66rem; letter-spacing: .15em; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.kicker span { width: 13px; height: 2px; background: var(--accent); }
h1 { font-family: "Barlow Condensed", Impact, sans-serif; font-size: 2.75rem; letter-spacing: .005em; font-weight: 700; line-height: 1; margin-top: 8px; }
.search-area p { color: var(--muted); font-size: .85rem; margin: 9px 0 20px; line-height: 1.45; }
#search-form { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 0 10px; border: 1px solid #383e47; border-radius: 8px; background: #11151a; min-height: 46px; color: #a8abb6; }
#search-form:focus-within { border-color: var(--accent); }
#query { flex: 1; width: 0; min-height: 44px; border: 0; background: none; padding: 0; font-size: 1rem; outline: 0; }
#query::placeholder { color: #9da1aa; font-size: .75rem; opacity: 1; }
#query::-webkit-search-cancel-button { display: none; }
kbd { border: 1px solid #3b4149; border-radius: 4px; min-width: 20px; padding: 2px 4px; text-align: center; font-size: .75rem; }
#clear-search { border: 0; background: none; padding: 4px; }
.categories { padding: 18px 20px 19px; border-bottom: 1px solid var(--line); }
.categories h2, .results h2, .details-head h2 { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 800; color: #bfc1c9; }
.category-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
.category { display: flex; align-items: center; gap: 8px; min-height: 35px; padding: 0 8px; border-radius: 7px; border: 1px solid #30353d; background: #1d2228; font-size: .75rem; font-weight: 650; text-align: left; overflow-wrap: anywhere; }
.category[data-category=all] { grid-column: 1 / -1; }
.category [data-icon] { color: var(--tone); }
.category:hover, .category[aria-pressed=true] { background: color-mix(in srgb,var(--tone) 10%,#1a1e24); border-color: color-mix(in srgb,var(--tone) 53%,#34343a); }
.category[aria-pressed=true] { color: var(--tone); }
.tag-filter { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 9px; align-items: center; margin-top: 10px; }
.tag-filter label { color: #bfc1c9; font-size: .75rem; font-weight: 700; }
.tag-filter select { width: 100%; min-height: 36px; padding: 3px 7px; font: inherit; font-size: .875rem; color: var(--ink); background: #1d2228; border: 1px solid #4a4e57; border-radius: 7px; }
.tag-filter select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.results { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 17px 12px 12px; }
.results-head { display: flex; justify-content: space-between; gap: 6px; align-items: center; padding: 0 8px 10px; }
#result-count { color: var(--muted); font-size: .72rem; text-align: right; white-space: nowrap; }
.result-list { min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: #48454a transparent; }
.result { display: grid; grid-template-columns: 35px minmax(0,1fr) auto; gap: 9px; width: 100%; min-height: 58px; align-items: center; background: transparent; border: 1px solid transparent; border-radius: 8px; text-align: left; padding: 6px 7px; }
.result:hover, .result[aria-current=true] { background: #22262c; border-color: #353a41; }
.result[aria-current=true] { border-color: #8a5c46; background: #2a2425; }
.result-icon { display: grid; place-items: center; width: 35px; height: 35px; color: var(--tone); border-radius: 7px; background: color-mix(in srgb,var(--tone) 13%,#1d2228); }
.photo-result { grid-template-columns: 56px minmax(0,1fr) auto; }
.photo-result .result-icon { position: relative; overflow: hidden; width: 56px; height: 40px; }
.result-thumbnail { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; visibility: hidden; }
.result-thumbnail.thumbnail-loaded { visibility: visible; }
.catalog-thumbnail { object-fit: contain; background: #242830; }
.result strong { display: block; font-size: .83rem; line-height: 1.24; overflow-wrap: anywhere; }
.result-tags, .detail-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.result-tags { margin-top: 4px; }
.result small { color: var(--muted); font-size: .715rem; line-height: 1.35; overflow-wrap: anywhere; }
.item-tag { display: inline-flex; gap: 3px; align-items: center; padding: 1px 4px; border-radius: 3px; background: #272d35; color: #c6cbd2; font-size: .665rem; line-height: 1.3; overflow-wrap: anywhere; }
.result .result-indicator { color: var(--dim); font-size: .8rem; }
.empty { padding: 13px 8px; color: var(--muted); line-height: 1.55; font-size: .85rem; }
.more { margin: 9px 8px; }
.map { min-width: 0; min-height: 0; position: relative; overflow: hidden; isolation: isolate; --water: #101f2b; --grid: #7399ad18; --label: #ced6d7; background: var(--water); }
.map.day { --water: #8bb5af; --grid: #163a4528; --label: #182b30; }
.map-surface { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none; outline-offset: -3px; }
.map-surface.dragging { cursor: grabbing; }
.map-grid { position: absolute; inset: 0; background-image: radial-gradient(ellipse at 60% 52%,transparent 22%,#05091137 100%), repeating-linear-gradient(to right,var(--grid) 0 1px,transparent 1px 72px), repeating-linear-gradient(to bottom,var(--grid) 0 1px,transparent 1px 72px); pointer-events: none; }
.map-image { position: absolute; left: 0; top: 0; width: 478px; height: 616px; pointer-events: none; transform-origin: 0 0; user-select: none; }
.map-label { position: absolute; transform: translate(-50%,-50%); white-space: nowrap; pointer-events: none; color: var(--label); font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: .9rem; letter-spacing: .11em; text-transform: uppercase; text-shadow: 0 1px 4px var(--water), 0 0 6px var(--water), 0 0 9px var(--water); }
.map-label.water { font-family: Inter,sans-serif; font-size: .6rem; color: #91a6b0; letter-spacing: .24em; font-style: italic; }
.day .map-label.water { color: #244c52; }
.pin { position: absolute; display: grid; place-items: center; transform: translate(-50%,-50%); width: 27px; height: 27px; border: 1px solid color-mix(in srgb,var(--tone) 78%,white); border-radius: 50%; color: #171a20; background: var(--tone); box-shadow: 0 2px 5px #04080ae0; padding: 0; }
.pin .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.pin:hover, .pin.selected { z-index: 3; border-color: white; width: 35px; height: 35px; box-shadow: 0 0 0 5px color-mix(in srgb,var(--tone) 30%,transparent),0 2px 8px #040608; }
.pin.selected .icon { width: 18px; height: 18px; }
.pin.cluster { color: var(--ink); background: #253740; width: 29px; height: 29px; font-weight: 800; font-size: .62rem; }
.map-badge, .compass, .map-controls button, .details-reopen { background: #141a20ef; border: 1px solid #3b444e; color: var(--ink); box-shadow: 0 3px 12px #06090d50; }
.map-badge { position: absolute; top: 19px; left: 19px; height: 34px; padding: 0 10px; display: flex; gap: 8px; align-items: center; border-radius: 6px; font-size: .66rem; font-weight: 800; letter-spacing: .12em; pointer-events: none; }
.map-badge [data-icon] { color: var(--accent); font-size: .9rem; }
.badge-divider { width: 1px; height: 14px; background: #444953; }
#map-view { color: #aeb8c0; }
.compass { position: absolute; top: 19px; right: 19px; display: grid; gap: 3px; place-items: center; align-content: center; width: 39px; height: 51px; border-radius: 7px; font-size: .67rem; font-weight: 800; pointer-events: none; }
.compass [data-icon] { color: var(--accent); font-size: 1rem; }
.map-controls { position: absolute; bottom: 45px; right: 19px; display: grid; gap: 8px; }
.map-controls button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 7px; }
.map-controls button:hover { color: var(--accent); }
.zoom-controls { display: grid; }
.zoom-controls button:first-child { border-radius: 7px 7px 0 0; }
.zoom-controls button:last-child { border-top: 0; border-radius: 0 0 7px 7px; }
.map-footer { position: absolute; inset: auto 12px 9px; display: flex; align-items: end; justify-content: space-between; gap: 4px; pointer-events: none; }
.map-footer a { pointer-events: auto; background: #141a20e8; border-radius: 4px; color: #c4c9ce; padding: 4px 6px; font-size: .625rem; text-decoration: none; }
.map-footer a:hover { text-decoration: underline; }
.map-scale { display: flex; color: var(--label); align-items: center; gap: 6px; font-family: ui-monospace,monospace; white-space: nowrap; }
.map-scale span { width: 54px; height: 6px; border: 1px solid currentColor; border-top: 0; }
.map-scale small { font-size: .625rem; }
.details-reopen { position: absolute; top: 82px; right: 19px; }
.details { min-width: 0; overflow: auto; background: var(--surface); border-left: 1px solid var(--line); scrollbar-width: thin; }
.details-head { height: 56px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 17px; }
.details-head button { display: grid; place-items: center; border: 0; background: transparent; width: 32px; height: 32px; border-radius: 6px; color: #acafb8; }
.details-head button:hover { background: #292d35; color: var(--ink); }
.detail-image { height: 170px; position: relative; overflow: hidden; background: #262b32; }
.detail-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#15171974,transparent 46%); pointer-events: none; }
.equipment-gallery { margin: 0; background: #1e232a; border-bottom: 1px solid var(--line); }
.equipment-photo { position: relative; aspect-ratio: 16 / 9; }
.equipment-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.equipment-photo[data-kind=location] img { object-fit: cover; }
.equipment-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 8px; padding: 7px 10px; font-size: .7rem; color: #bec4ce; }
.equipment-photo-controls { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.photo-option { min-height: 32px; padding: 0 6px; border: 1px solid transparent; border-radius: 5px; background: transparent; font-weight: 650; font-size: inherit; }
.photo-option[aria-pressed=true] { border-color: #9a705a; color: var(--accent); background: #342a28; }
.equipment-photo-credit a { text-underline-offset: 2px; }
.detail-copy { padding: 20px 17px 23px; }
.detail-badge { display: inline-flex; gap: 6px; align-items: center; padding: 5px 8px; border-radius: 5px; background: color-mix(in srgb,var(--tone) 12%,#1a2025); color: var(--tone); font-weight: 750; font-size: .68rem; text-transform: uppercase; letter-spacing: .075em; }
.gold-tag { background: #423320; color: #ffd078; }
.detail-variant { margin-top: 6px; color: #ffd078; font-size: .85rem; }
.detail-copy h3 { font-family: "Barlow Condensed", Impact, sans-serif; font-size: 2.5rem; font-weight: 700; margin-top: 8px; line-height: 1; overflow-wrap: anywhere; }
.detail-area { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .78rem; color: var(--muted); }
.detail-description { color: #d0d0d5; line-height: 1.58; font-size: .9rem; margin-top: 17px; overflow-wrap: anywhere; }
.tip { margin-top: 17px; padding: 12px; border: 1px solid #594439; border-radius: 8px; background: #272322; }
.tip strong { display: flex; align-items: center; gap: 7px; color: var(--accent); font-size: .77rem; }
.tip p { margin-top: 6px; color: #d1c4bb; line-height: 1.5; font-size: .79rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
.detail-actions button { min-height: 39px; }
.detail-actions .primary { background: var(--accent); border-color: var(--accent); color: #1d1918; }
.detail-actions .primary:hover { background: #ffc19c; }
.detail-links { display: flex; flex-wrap: wrap; gap: 8px 13px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.detail-links a { color: #c2c1c9; font-size: .77rem; text-underline-offset: 3px; }
.detail-links a:hover { color: var(--accent); }
dialog { max-width: min(520px,calc(100vw - 24px)); max-height: calc(100dvh - 24px); color: var(--ink); background: var(--surface); padding: 0; border: 1px solid #4a4b52; border-radius: 12px; }
dialog::backdrop { background: #090d13b5; }
.dialog-copy { padding: 15px 20px 20px; color: #d1d1d7; font-size: .9rem; line-height: 1.6; }
.dialog-copy ul { padding-left: 20px; margin: 12px 0 0; }
.dialog-copy li + li { margin-top: 8px; }
.dialog-copy a { color: var(--accent); }
@media (min-width: 1550px) {
  .workspace { grid-template-columns: 336px minmax(0,1fr) 340px; }
  .workspace.details-closed { grid-template-columns: 336px minmax(0,1fr); }
  .detail-image { height: 190px; }
}
@media (max-width: 1100px) {
  .workspace { grid-template-columns: 278px minmax(0,1fr) 264px; }
  .workspace.details-closed { grid-template-columns: 278px minmax(0,1fr); }
  .search-area, .categories { padding-inline: 15px; }
}
@media (max-width: 880px) {
  .workspace, .workspace.details-closed { grid-template-columns: 255px minmax(0,1fr); position: relative; }
  .details { position: absolute; z-index: 4; inset: auto 12px 14px auto; width: min(320px,calc(100% - 280px)); max-height: 62%; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 34px #05070db5; }
  .workspace:not(.details-closed) .map-controls { bottom: auto; top: 84px; }
}
@media (max-width: 650px) {
  .top { height: 63px; padding: 0 12px; }
  .header-actions { gap: 6px; }
  .header-button { min-height: 44px; gap: 5px; padding-inline: 8px; }
  .brand { gap: 7px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand strong { font-size: 21px; }
  .brand small { font-size: 8px; letter-spacing: .11em; }
  .workspace, .workspace.details-closed { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .explorer { border-right: 0; }
  .search-area { padding: 18px 13px 12px; }
  h1 { font-size: 2.3rem; }
  .search-area p { margin: 5px 0 12px; }
  .categories { padding: 10px 13px; }
  .category-list { display: flex; overflow-x: auto; padding-bottom: 4px; margin-top: 6px; }
  .category { min-height: 44px; white-space: nowrap; }
  .tag-filter { margin-top: 5px; }
  .tag-filter select { min-height: 44px; font-size: 1rem; }
  .results { padding: 11px 9px 7px; }
  .result-list { max-height: 151px; }
  .result { min-height: 49px; }
  .map { height: 62svh; min-height: 350px; }
  .map-badge { left: 10px; top: 10px; }
  .compass { right: 10px; top: 10px; }
  .map-controls { right: 10px; }
  .map-controls button { width: 44px; height: 44px; }
  .workspace:not(.details-closed) .map-controls { bottom: 45px; top: auto; }
  .details { position: static; width: 100%; max-height: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
  .details-head { height: 44px; }
  .detail-image { height: 150px; }
  .photo-option { min-height: 44px; }
}
.nearby { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.nearby h4 { margin: 0 0 6px; color: var(--muted); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.nearby-link { width: 100%; display: flex; align-items: center; gap: 8px; padding: 7px 5px; min-height: 36px; border-radius: 5px; border: 0; background: none; font-size: .79rem; text-align: left; }
.nearby-link [data-icon] { color: var(--tone); }
.nearby-link:hover { background: #252a31; }
