/* Brand geometry: regular hexagons for compact elements, elongated hexagons for content. */
:root {
  --ink: #203d5b;
  --muted: #536b83;
  --line: #c5d5e5;
  --paper: #f2f6fb;
  --field: #e8eff7;
  --primary: #3e6d9b;
  --primary-dark: #294e75;
  --accent: #a7c8e8;
  --hex: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);
  --point-hex: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
  --long-hex: polygon(18px 0,calc(100% - 18px) 0,100% 50%,calc(100% - 18px) 100%,18px 100%,0 50%);
  --shadow: 0 12px 32px rgb(35 65 100 / 8%);
}
body { background-color: var(--paper); }
.app-header { grid-template-columns: 1fr auto; background: #fff; padding-block: 10px; }
.brand { gap: 12px; font-size: 1.35rem; letter-spacing: -.04em; }
.brand-mark { width: 54px; height: 62px; position: relative; overflow: hidden; border-radius: 0; background: white; clip-path: var(--point-hex); }
.brand-mark img { position: absolute; width: 84px; height: 84px; max-width: none; left: -15px; top: -10px; }
.main-nav { border: 0; border-radius: 0; background: transparent; }
.main-nav a { border-radius: 0; clip-path: var(--long-hex); padding: 13px 24px; }
.main-nav a:hover { background: var(--field); }
.hero { align-items: center; padding-top: 40px; gap: clamp(24px,4vw,60px); }
.hero-copy { position: relative; }
.hero-copy::before { content: ''; display: block; width: 64px; height: 72px; margin-bottom: 20px; background: linear-gradient(150deg,#b7d1eb,#5487b8 65%,#294e75); clip-path: var(--point-hex); }
h1 { font-size: clamp(2.35rem,4.5vw,4.5rem); line-height: 1.04; letter-spacing: -.045em; }
h2 { line-height: 1.2; }
.eyebrow { font-size: .875rem; letter-spacing: .08em; }
label, .segmented legend { font-size: .875rem; }
/* Draw shaped surfaces behind content so text and focus rings are never clipped. */
.search-panel, .filters, .activity-card, .empty-state, .insights article,
.community-header, .modal-card, .listing-modal-card {
  position: relative; isolation: isolate; border: 0; border-radius: 0;
  background: transparent; box-shadow: none;
}
.search-panel::before, .filters::before, .activity-card::before, .empty-state::before,
.insights article::before, .community-header::before, .modal-card::before, .listing-modal-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--panel); clip-path: var(--long-hex);
}
.search-panel, .filters { padding: 28px 30px; }
.search-panel::before { background: #e1eaf5; }
.filters::before { background: #e1eaf5; }
.filters { top: 100px; }
input, select, textarea { border-radius: 0; background: #fff; }
.segmented { gap: 5px; }
.segmented label { position: relative; isolation: isolate; min-height: 58px; border: 0; border-radius: 0; background: transparent; color: var(--ink); }
.segmented label::before { content: ''; position: absolute; inset: 0; z-index: -1; clip-path: var(--hex); background: white; }
.segmented label:has(input:checked) { background: transparent; color: white; }
.segmented label:has(input:checked)::before { background: var(--primary-dark); }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.primary-button, .secondary-button, .ghost-button, .icon-button, .map-info a {
  border-radius: 0; clip-path: var(--long-hex); padding-inline: 24px; border: 0;
}
.primary-button { background: linear-gradient(120deg,#4d7cab,#294e75); }
.primary-button:hover { background: #223f61; }
.secondary-button { background: #d1e0f0; }
.secondary-button:hover { background: #bfd3e9; }
.icon-button { clip-path: var(--hex); min-width: 44px; width: 44px; height: 44px; padding: 0; background: #d1e0f0; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: -5px; }
.insights { grid-template-columns: repeat(2,minmax(0,220px)); padding-top: 8px; }
.insights article { padding: 22px 30px; }
.insights article::before { background: #dce7f3; }
.insights strong { color: var(--primary-dark); }
.insights span { font-size: .875rem; }
.workspace { grid-template-columns: 280px minmax(0,1fr); }
.activity-card, .empty-state { padding: 26px 32px; }
.activity-card::before { background: #fff; }
.activity-card:hover::before, .activity-card.is-selected::before { background: #e6eef8; }
.activity-card:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.activity-meta { margin-bottom: 12px; }
.activity-meta span, .activity-footer span, .activity-footer a, .detail-notes span {
  border-radius: 0; clip-path: polygon(9px 0,calc(100% - 9px) 0,100% 50%,calc(100% - 9px) 100%,9px 100%,0 50%);
  padding: 8px 16px; font-size: .875rem;
}
.price-lockup { padding: 16px 22px; background: #e1eaf5; clip-path: var(--long-hex); min-width: 130px; }
.price-lockup span { font-size: .875rem; margin-top: 5px; }
.map-card { border-radius: 0; border-color: var(--line); box-shadow: none; border-top: 4px solid var(--primary); }
.map-toolbar { background: #e1eaf5; padding-inline: 20px; }
.osm-map-marker { clip-path: var(--hex); border: 0; border-radius: 0; }
.osm-map-marker.is-selected { background: #b7d1eb; color: #254566; }
.map-canvas .leaflet-control-zoom { border-radius: 0; }
.status-message { border-radius: 0; border-width: 0 0 0 4px; border-color: var(--primary); }
.community-header { padding: 30px 34px; }
.community-header::before { background: #254566; }
.community-header .primary-button { background: #b7d1eb; color: #254566; }
.community-header .eyebrow { color: #b7d1eb; }
.detail-grid div { border-radius: 0; }
.detail-grid span, .detail-notes span { font-size: .875rem; }
.modal-card, .listing-modal-card { padding: 30px; }
.listing-modal, .submission-modal { border-radius: 0; }
@media(max-width: 1100px) { .workspace { grid-template-columns: 260px minmax(0,1fr); } }
@media(max-width: 820px) {
  .app-header { gap: 10px; }
  .hero { padding-top: 28px; }
  .hero-copy::before { width: 42px; height: 48px; margin-bottom: 16px; }
  .workspace { grid-template-columns: minmax(0,1fr); }
  .filters { top: 0; }
  .main-nav { display: flex; gap: 0; padding: 0; }
  .main-nav a { font-size: .875rem; padding: 10px 14px; }
  .main-nav a:last-child { display: none; }
}
@media(max-width: 540px) {
  .brand { font-size: 1.15rem; gap: 8px; }
  .brand-mark { width: 43px; height: 50px; }
  .brand-mark img { width: 67px; height: 67px; left: -12px; top: -8px; }
  .insights { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .insights article { padding: 20px 22px; }
  .search-panel,.filters { padding: 24px; }
  .segmented { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .segmented.compact { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .activity-card,.empty-state { padding: 24px; }
  .price-lockup { justify-self: start; }
  .community-header { padding: 28px; }
  .modal-card,.listing-modal-card { padding: 24px; }
}
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .osm-map-marker { transition: none; } }

/* Blue brand refresh and straight-edged search/refine panels. */
:root { --panel: #f9fbfe; --sky: #aac6e2; --rose: #a96370; }
.app-header { background: #f5f8fc; border-color: var(--line); }
.brand-mark { width: 66px; height: 66px; overflow: visible; clip-path: none; background: transparent; }
.brand-mark img { position: static; display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
.search-panel, .filters { background: #e1eaf5; border: 1px solid var(--line); border-radius: 0; box-shadow: 0 8px 28px rgb(35 65 100 / 5%); }
.search-panel::before, .filters::before { content: none; }
input, select, textarea { background: #f9fbfe; accent-color: var(--primary); }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px rgb(62 109 155 / 14%); }
.segmented label::before, .activity-card::before { background: var(--panel); }
.status-message, .map-canvas, .listing-photo { background: #e5edf6; }
.activity-footer a, .activity-meta .verified { background: #dce8f5; }
.activity-meta .community { background: #d4e2f2; color: #294e75; }
.activity-card.is-selected { border-color: #769cc2; box-shadow: 0 12px 34px rgb(35 65 100 / 12%); }
.activity-card.has-map-position:focus-visible { outline-color: #769cc2; }
.osm-map-marker.is-selected { outline-color: #a7c8e8; box-shadow: 0 12px 30px rgb(35 65 100 / 24%); }
.submission-modal::backdrop, .listing-modal::backdrop { background: rgb(28 48 73 / 58%); }
.listing-photo figcaption { background: rgb(28 48 73 / 80%); }
@media(max-width: 540px) { .brand-mark { width: 54px; height: 54px; } .brand-mark img { width: 100%; height: 100%; } }
