/* Map-first public home. Shared map, consent and detail styles stay in dogclubs-map.css. */





.home-layout .app,.home-layout .app.sidebar-open{position:relative;display:grid;grid-template-columns:clamp(330px,31vw,430px) minmax(0,1fr);height:100%;overflow:hidden}
.discovery{min-width:0;min-height:0;background:#f4f8fc;border-right:1px solid #dbe5ee;display:flex;flex-direction:column;overflow:hidden}
.discovery-search{padding:28px 26px 17px;flex:none}
.home-eyebrow{font-size:10px;letter-spacing:1.3px;text-transform:uppercase;font-weight:750;color:#5b7891}
.discovery h1{font-size:32px;line-height:1.16;letter-spacing:-1.2px;margin:12px 0 10px;color:#133d60;font-weight:780}
.home-intro{font-size:13px;line-height:1.65;color:#58748b;margin:0 0 18px}
.home-layout .searchbar{display:flex;flex-direction:column;gap:8px;width:100%;max-width:none}
.home-layout .searchbar input{flex:auto;width:100%;height:44px;min-height:44px;border:1px solid #cedde9;background:white;font-size:13px;border-radius:8px;padding:11px 12px}
.home-layout .searchbar .btn.primary{width:100%;min-height:44px;border-radius:8px;font-size:13px;background:#ffcf59;color:#173f5f}
.locate-button{display:inline-flex;align-items:center;gap:7px;border:0;background:none;color:#20639b;font-size:12px;font-weight:600;padding:11px 0;min-height:44px;cursor:pointer}
.locate-button span{font-size:21px;line-height:1}.locate-button:disabled{opacity:.55;cursor:wait}
.discipline-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 8px}.discipline-heading{font-weight:700;font-size:12px;color:#173f5f}
.training-chips{display:flex;flex-wrap:wrap;gap:6px}
.training-chip,.more-filters{border:1px solid #cddce8;border-radius:24px;background:white;color:#214c6e;padding:8px 11px;min-height:36px;font-size:11px;cursor:pointer}
.training-chip[aria-pressed=true]{background:#ffcf59;border-color:#ffcf59;color:#173f5f;font-weight:700}
.more-filters{display:inline-flex;align-items:center;gap:5px;margin:0;min-height:32px;padding:6px 9px;background:transparent;font-size:10px}
.more-filters.has-filters{background:#e1edfa;border-color:#20639b}.more-filters .filter-icon{font-size:14px}
.discovery-results{overflow:auto;min-height:100px;flex:1;padding:3px 26px 18px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bdcddc transparent}
.results-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 6px}.results-heading h2{font-size:14px;letter-spacing:-.25px;margin:0;color:#173f5f}
#resultCount{font-size:11px;font-weight:700;padding:3px 7px;border-radius:6px;background:#e2edf6;color:#376082}
.results-hint{font-size:10px;color:#71869a;line-height:1.5;margin:0 0 13px}
.club-results{display:grid;gap:9px}.club-card{display:block;width:100%;text-align:left;border:1px solid #d8e3ec;background:white;border-radius:10px;padding:14px;color:#173f5f;cursor:pointer;transition:border-color .15s,background .15s}
.club-card:hover{border-color:#6f9bbc;background:#fafcff}.club-card[aria-pressed=true]{border-color:#20639b;background:#eaf4ff;box-shadow:0 0 0 1px #20639b}
.club-card-name{display:block;font-size:13px;line-height:1.45;font-weight:750;overflow-wrap:anywhere}.club-card-location{display:flex;align-items:center;gap:5px;font-size:11px;color:#607c92;margin-top:6px}
.club-card-location svg{width:14px;height:14px;stroke:#2e6490;fill:none;stroke-width:1.5;flex:none}
.club-card-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin-top:11px}.club-card .training-tags{gap:4px}.club-card .tag{font-size:9px;background:#e3effb;color:#285d85;padding:4px 7px;line-height:1.35}
.club-card-link{font-size:10px;font-weight:700;color:#20639b;white-space:nowrap;margin-left:auto}.empty-results{font-size:12px;color:#687d8e;line-height:1.7;padding:16px;border:1px dashed #c8d8e5;border-radius:9px;margin:0}
.discovery-footer{margin-top:auto;border-top:1px solid #dce6ef;margin:0 26px;padding:13px 0 16px;flex:none}.discovery-footer strong{display:block;font-size:11px;color:#173f5f}
.home-layout .discovery-footer .request-cta{display:block;border:0;padding:5px 0 0;margin:0;background:none;color:#20639b;font-size:11px;font-weight:650;border-radius:0}.discovery-footer .request-cta:hover{text-decoration:underline}
.home-layout .map-wrap{grid-column:2;grid-row:1}.home-layout .leaflet-tile-pane{filter:saturate(.65)}
.home-layout .club-pin{width:22px;height:22px;border:3px solid white;box-shadow:0 2px 6px #173f5f66}
.home-layout .leaflet-control-zoom{margin:16px!important;border:1px solid #d1dfeb;border-radius:8px;overflow:hidden;box-shadow:0 3px 10px #173f5f18}
.home-layout .detail{top:16px;right:16px;border:1px solid #d4e0eb;max-height:calc(100% - 32px);display:flex;flex-direction:column;overflow:hidden}.home-layout .detail-head{background:#173f5f;flex:none}.home-layout .detail-body{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.home-layout .app .sidebar{position:absolute;z-index:1200;top:0;right:0;bottom:0;left:auto;width:340px;max-width:calc(100% - 24px);height:100%;max-height:none;border-radius:0;padding:18px 20px;background:#fff;visibility:hidden;opacity:0;pointer-events:none;transform:translateX(100%);transition:transform .2s,opacity .2s,visibility .2s}
.home-layout .app.sidebar-open .sidebar.open{transform:none;visibility:visible;opacity:1;pointer-events:auto}
.home-layout .sidebar-backdrop{display:block;position:absolute;inset:0;z-index:1150;background:#173f5f40;opacity:0;visibility:hidden;pointer-events:none}.home-layout .sidebar-backdrop.show{opacity:1;visibility:visible;pointer-events:auto}
.home-layout .sidebar-mobile-head{position:static;display:flex;justify-content:space-between;align-items:center;padding:0 0 12px;margin-bottom:20px;background:white;border-bottom:1px solid #dae4ec}.home-layout .sidebar-mobile-head:before{display:none}
.view-switch{display:none}
@media(max-height:760px) and (min-width:901px){.discovery-search{padding:20px 22px 13px}.discovery h1{font-size:28px;margin-top:8px}.home-intro{font-size:12px;margin-bottom:13px}.home-eyebrow{font-size:9px}.discipline-toolbar{margin-bottom:7px}.discovery-results{padding-left:22px;padding-right:22px}.discovery-footer{margin:0 22px;padding:10px 0}.discovery-footer strong,.discovery-footer a{font-size:10px!important}}
@media(max-width:900px){

  .home-layout .app,.home-layout .app.sidebar-open{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
  .discovery{grid-column:1;grid-row:1;border-right:0;border-bottom:1px solid #d7e3ed;overflow:visible}.discovery-search{padding:16px 20px 12px}.home-eyebrow{display:none}.discovery h1{font-size:25px;margin:0 0 5px;letter-spacing:-.7px}.discovery h1 br{display:none}.discovery h1 br:after{content:' '}.home-intro{font-size:12px;margin-bottom:12px}.home-layout .searchbar{flex-direction:row}.home-layout .searchbar input{width:0;flex:1;font-size:16px}.home-layout .searchbar .btn.primary{width:auto;flex:none}.locate-button{min-height:38px;padding:7px 0;font-size:11px}.discipline-toolbar{margin-bottom:6px}.discipline-heading{font-size:11px}.training-chips{display:flex}.training-chip{font-size:10px;min-height:34px;padding:7px 10px}.more-filters{margin:0;font-size:10px;min-height:32px}
  .view-switch{display:flex;justify-content:center;gap:3px;background:#e5edf5;border-radius:8px;padding:3px;margin-top:12px}.view-switch button{flex:1;min-height:36px;border:0;border-radius:6px;background:transparent;color:#45647c;font-size:12px;font-weight:650;cursor:pointer}.view-switch button[aria-pressed=true]{background:white;color:#173f5f;box-shadow:0 1px 4px #173f5f14}
  .home-layout .map-wrap{grid-column:1;grid-row:2;min-height:0}.discovery-results,.discovery-footer{display:none}.home-layout .app.mobile-list{grid-template-rows:minmax(0,1fr)}.mobile-list .discovery{overflow:hidden;height:100%}.mobile-list .discovery-results{display:block;flex:1;padding:10px 20px 20px}.mobile-list .map-wrap{display:none}.mobile-list .discovery-search{flex:none}
  .home-layout .app .sidebar{position:fixed;z-index:1200;top:auto;left:0;right:0;bottom:0;width:100%;max-width:none;height:auto;max-height:85dvh;border-radius:18px 18px 0 0;padding:20px;transform:translateY(100%)}.home-layout .app.sidebar-open .sidebar.open{transform:none}.home-layout .sidebar-backdrop{position:fixed}
  .home-layout .detail{top:auto;right:0;max-height:78dvh;border-radius:18px 18px 0 0;overflow:hidden}.home-layout .detail-body{min-height:0}.home-layout .map-status{bottom:12px;max-width:calc(100% - 150px)}
}
@media(max-width:560px){.language-menu summary{font-size:11px;min-width:40px}.discovery-search{padding:13px 14px 10px}.discovery h1{font-size:22px}.home-intro{font-size:11px}.training-chips{max-width:none;display:flex;gap:5px}.training-chip{min-height:34px;font-size:10px;padding:7px 9px}.more-filters{font-size:10px;padding:6px 9px}.home-layout .searchbar{display:flex}.locate-button{margin-bottom:2px}.view-switch{margin-top:8px}.mobile-list .discovery-results{padding-left:14px;padding-right:14px}.results-heading h2{font-size:14px}}

/* Compact search panel; nearby results only appear after a successful search. */
.home-layout .discovery h1{font-size:22px;line-height:1.3;letter-spacing:-.6px;margin:0 0 16px}
.home-layout .discovery-search{padding-top:23px;padding-bottom:17px}
.home-layout .discovery-results[hidden]{display:none!important}
.home-layout .discovery-footer{margin-top:auto}
.discipline-filter{margin-top:4px}
.discipline-filter label{display:block;font-size:12px;font-weight:700;color:#173f5f;margin-bottom:8px}
.discipline-filter select{display:block;appearance:none;-webkit-appearance:none;width:100%;min-height:44px;padding:10px 42px 10px 12px;border:1px solid #cddce8;border-radius:8px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m5.5 7.5 4.5 4.5 4.5-4.5' stroke='%23214c6e' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center/18px 18px;color:#214c6e;font:inherit;font-size:13px;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.discipline-filter select:hover{border-color:#8caecb}
.discipline-filter select:focus{border-color:#20639b;box-shadow:0 0 0 3px rgba(32,99,155,.12)}
.discipline-filter select:focus-visible{outline:2px solid #20639b;outline-offset:0}
.home-layout .searchbar input:focus{border-color:#20639b;box-shadow:0 0 0 3px rgba(32,99,155,.12)}
.home-layout .searchbar input:focus-visible{outline:2px solid #20639b;outline-offset:0;box-shadow:0 0 0 3px rgba(32,99,155,.12)}
@media(forced-colors:active){.discipline-filter select{appearance:auto;-webkit-appearance:auto;background-image:none}.discipline-filter select:focus-visible,.home-layout .searchbar input:focus-visible{outline-color:Highlight}}
.discipline-label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.discipline-label label{margin:0}
.search-reset{display:grid;place-items:center;width:44px;height:44px;padding:8px;border:1px solid #d5e1ec;border-radius:8px;background:white;color:#20639b;cursor:pointer}
.search-reset svg{width:18px;height:18px}
.locate-button .locate-label{font-size:inherit}
.search-reset:hover:enabled{background:#eaf2fa;border-color:#8caecb}
.search-reset:disabled{opacity:.4;cursor:default}
.search-reset:focus-visible{outline:3px solid #ffca54;outline-offset:2px}
.home-layout .view-switch{display:none}
@media(max-width:900px){.home-layout .app.has-search-results .view-switch{display:flex}.home-layout .discovery h1{font-size:20px;margin-bottom:11px}.home-layout .discovery-search{padding-top:14px;padding-bottom:12px}}

.search-label-mobile{display:none}
.search-actions{display:flex;align-items:center;gap:8px;width:100%}
.home-layout .searchbar .search-actions .btn.primary{flex:1;width:auto}
.search-reset{flex:0 0 44px}
.home-layout .map-summary{position:absolute;z-index:700;left:12px;bottom:calc(12px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:8px;max-width:calc(100% - 24px)}
.home-layout .map-summary .map-status{position:static;max-width:none;min-height:36px;box-sizing:border-box;display:flex;align-items:center;margin:0;padding:8px 11px}
.home-layout .map-summary .btn{flex-shrink:0;min-height:36px;padding:8px 11px;background:#fff;color:#496474;border:1px solid #d6e0e5;border-radius:9px;box-shadow:none;font-size:11px;font-weight:600}
@media(max-width:900px){.search-actions{width:auto;flex:none}}

/* Keep the map/results central on phones; legal links stay below the content. */
@media(max-width:900px){
  .home-layout .app,.home-layout .app.mobile-list{grid-template-rows:auto minmax(0,1fr) auto}
  .home-layout .discovery,.home-layout .mobile-list .discovery{display:contents}
  .home-layout .discovery-search{grid-column:1;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:10px 8px;padding:14px;background:#f4f8fc}
  .home-layout .discovery h1{grid-column:1/-1;margin:0;font-size:20px;line-height:1.25}
  .home-layout .searchbar{grid-column:1/-1;min-width:0;gap:8px}
  .home-layout .searchbar input{min-width:0;height:44px;min-height:44px;font-size:16px}
  .home-layout .searchbar .search-actions .btn.primary{font-size:13px;padding:10px 12px}
  .home-layout .discipline-filter{grid-column:1;grid-row:3;display:flex;align-items:center;gap:8px;min-width:0;margin:0}
  .home-layout .discipline-label{flex:none;margin:0}
  .home-layout .discipline-filter select{min-width:0;flex:1;min-height:44px;font-size:16px;padding-left:10px}
  .home-layout .locate-button{grid-column:2;grid-row:3;justify-content:center;min-height:44px;margin:0;padding:0;border:1px solid #cddce8;border-radius:8px;background:#fff}
  .home-layout .locate-button .locate-label{display:none}
  .home-layout .locate-button:focus-visible{outline:2px solid #20639b;outline-offset:2px}
  .home-layout .view-switch{grid-column:1/-1;margin:0}
  .home-layout .view-switch button{min-height:40px}
  .home-layout .map-wrap{grid-row:2}
  .home-layout .mobile-list .discovery-results{grid-column:1;grid-row:2;min-height:0;padding:12px 14px;overflow:auto;background:#f4f8fc}
  .home-layout .app .public-footer{grid-column:1;grid-row:3;display:flex;align-items:center;justify-content:space-between;gap:2px 8px;padding:5px 14px max(5px,env(safe-area-inset-bottom));border-top:1px solid #dbe5ee;font-size:10px;line-height:1.4}
  .home-layout .app .public-footer .legal-links{gap:8px;font-size:10px}
  .home-layout .app .public-footer a{display:inline-flex;align-items:center;min-height:28px}
  .home-layout .consent-manage{right:12px;bottom:calc(80px + env(safe-area-inset-bottom))}
}
@media(max-width:360px){
  .home-layout .discipline-label label{font-size:11px}
  .home-layout .discovery-search{padding:12px;gap:8px}
  .home-layout .searchbar .search-actions .btn.primary{padding:10px;font-size:12px}
}
@media(max-width:600px){
  .home-layout .search-reset,.home-layout .search-label-desktop{display:none}
  .home-layout .search-label-mobile{display:inline}
  .home-layout .searchbar .search-actions .btn.primary{padding:10px 14px}
  .home-layout .discipline-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
