.marketplace-search-page{background:#f8fcff}.marketplace-search-hero{background:linear-gradient(105deg,#e9f7ffdd 0%,#eff9ffba 42%,#eff9ff35 100%),url("/assets/connect-bro-whangarei-hero-v2.jpg") center/cover;min-height:310px;padding:46px 24px;color:#072965}.marketplace-search-hero-inner{max-width:1200px;margin:auto}.marketplace-search-eyebrow{font-size:.78rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#08778f;margin:0 0 8px}.marketplace-search-hero h1{max-width:690px;margin:0;color:#092d72;font-family:Inter,ui-sans-serif,system-ui,sans-serif!important;font-size:clamp(2.25rem,4.6vw,4.2rem)!important;font-style:normal!important;font-weight:850!important;line-height:1.02}.marketplace-search-hero p:not(.marketplace-search-eyebrow){max-width:620px;font-size:1.08rem;font-weight:600}.marketplace-search-form{display:grid;grid-template-columns:1fr 280px 150px;gap:10px;max-width:1080px;margin:28px 0 16px;padding:9px;background:#fff;border:1px solid #cbe5f5;border-radius:18px;box-shadow:0 12px 28px #063d6a1a}.marketplace-search-form input,.marketplace-search-form select,.marketplace-filters select{min-width:0;border:1px solid #bedced;border-radius:12px;padding:14px 15px;font:inherit;color:#082b52;background:#fff}.marketplace-search-form button{border:0;border-radius:12px;background:#ffd247;color:#072965;font:800 1rem/1 Inter,system-ui,sans-serif;cursor:pointer}.marketplace-category-row{display:flex;gap:8px;flex-wrap:wrap}.marketplace-category-row button,.marketplace-view-switch button{border:1px solid #b8dcef;border-radius:999px;padding:9px 14px;background:#fff;color:#092d72;font:700 .84rem/1 Inter,system-ui,sans-serif;cursor:pointer}.marketplace-category-row button[aria-pressed=true],.marketplace-view-switch button[aria-pressed=true]{background:#086bff;color:#fff;border-color:#086bff}.marketplace-search-shell{max-width:1320px;margin:0 auto;padding:30px 24px 64px;display:grid;grid-template-columns:245px minmax(0,1fr) 300px;gap:22px;align-items:start}.marketplace-filters,.marketplace-map-card,.marketplace-action-card,.marketplace-safety-card{background:#fff;border:1px solid #d8ecf8;border-radius:18px;padding:20px;box-shadow:0 8px 26px #082b5210}.marketplace-filters h2,.marketplace-map-card h2,.marketplace-action-card h2,.marketplace-safety-card h2{font-family:Inter,ui-sans-serif,system-ui,sans-serif!important;font-style:normal!important;font-size:1.1rem!important;margin:0 0 16px;color:#082b52}.marketplace-filters form{display:grid;gap:10px}.marketplace-filters fieldset{border:0;padding:0;margin:0;display:grid;gap:8px}.marketplace-filters legend,.marketplace-filters label{font-size:.87rem;font-weight:750;color:#173d6a}.marketplace-filters label{display:flex;gap:8px;align-items:center}.marketplace-filters select{width:100%;padding:11px}.marketplace-filters .route-button,.marketplace-filters .route-button-outline{width:100%;text-align:center}.marketplace-filter-note{margin-top:20px;padding-top:18px;border-top:1px solid #dcecf5;font-size:.84rem;line-height:1.45}.marketplace-filter-note p{margin-bottom:0}.marketplace-results-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:0 0 16px}.marketplace-results-head h2{font-family:Inter,ui-sans-serif,system-ui,sans-serif!important;font-style:normal!important;font-size:1.65rem!important;margin:0;color:#082b52}.marketplace-results-head p:last-child{margin:5px 0 0;color:#58708a;font-size:.9rem}.marketplace-view-switch{display:flex;gap:6px}.marketplace-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.marketplace-result-card{overflow:hidden;background:#fff;border:1px solid #d8ecf8;border-radius:16px;box-shadow:0 8px 20px #082b520d}.marketplace-card-image{height:130px;background:center/cover}.marketplace-result-card-body{padding:15px}.marketplace-context-badge{display:inline-flex;gap:6px;align-items:center;margin-top:-31px;position:relative;padding:7px 10px;border-radius:999px;background:#ecf9f0;color:#177344;font-size:.78rem;font-weight:800}.marketplace-context-badge.context-neutral{background:#edf6ff;color:#195c9d}.marketplace-result-card h3{margin:12px 0 5px;font-family:Inter,ui-sans-serif,system-ui,sans-serif!important;font-style:normal!important;font-size:1.05rem!important;color:#082b52}.marketplace-result-card h3 a{color:inherit;text-decoration:none}.marketplace-card-meta,.marketplace-card-copy{margin:0 0 9px;font-size:.88rem;color:#48657f;line-height:1.45}.marketplace-card-tags{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.marketplace-card-tags span{background:#edf5fb;border-radius:999px;padding:5px 9px;font-size:.75rem;color:#214a75}.marketplace-card-actions{display:flex;gap:8px;margin-top:13px}.marketplace-card-actions a{flex:1;text-align:center;padding:9px 10px;border-radius:10px;text-decoration:none;font-weight:800;font-size:.83rem}.marketplace-card-actions a:first-child{background:#086bff;color:#fff}.marketplace-card-actions a:last-child{border:1px solid #9ecaf4;color:#0752b4}.marketplace-map{position:relative;min-height:255px;overflow:hidden;border-radius:13px;background:#eef5ff;border:1px solid #cae7f5}.marketplace-map:before{content:"Whangārei";position:absolute;right:16px;top:102px;color:#264f74;font-weight:800;font-size:.95rem}.map-pin{position:absolute;padding:6px 8px;border-radius:999px;background:#086bff;color:#fff;font-size:.7rem;font-weight:800;box-shadow:0 2px 8px #0057b580}.pin-one{top:34px;right:32px}.pin-two{top:76px;left:32px}.pin-three{bottom:44px;left:72px}.pin-four{bottom:85px;right:40px}.marketplace-map-card p,.marketplace-action-card p,.marketplace-safety-card p{font-size:.87rem;line-height:1.45;color:#48657f}.marketplace-action-card,.marketplace-safety-card{margin-top:18px}.marketplace-action-card a{display:block;margin-top:10px;text-align:center}.marketplace-safety-card{background:#fff9df}.marketplace-safety-card a{font-size:.87rem;font-weight:800;color:#0752b4}.marketplace-empty{grid-column:1/-1;padding:35px 22px;border:1px dashed #b8dcef;border-radius:16px;background:#fff;text-align:center}.marketplace-empty h3{font-family:Inter,ui-sans-serif,system-ui,sans-serif!important;font-style:normal!important}.marketplace-map-mode .marketplace-card-grid{grid-template-columns:1fr}.marketplace-map-mode .marketplace-result-card{display:grid;grid-template-columns:200px 1fr}.marketplace-map-mode .marketplace-card-image{height:100%}@media(max-width:1080px){.marketplace-search-shell{grid-template-columns:minmax(0,1fr) 280px}.marketplace-filters{grid-column:1/-1}.marketplace-results-panel{grid-column:1}.marketplace-map-rail{grid-column:2}.marketplace-map-card{display:block}.marketplace-action-card,.marketplace-safety-card{display:block;width:auto;margin-right:0}}@media(max-width:780px){.marketplace-search-hero{padding:34px 18px}.marketplace-search-form{grid-template-columns:1fr;margin-top:20px}.marketplace-search-form button{min-height:48px}.marketplace-search-shell{grid-template-columns:1fr;padding:22px 16px 48px}.marketplace-filters{order:2}.marketplace-results-panel{order:1}.marketplace-map-rail{grid-column:auto;order:3}.marketplace-card-grid{grid-template-columns:1fr}.marketplace-action-card,.marketplace-safety-card{display:block;width:auto;margin-right:0}.marketplace-results-head{align-items:start;flex-direction:column}.marketplace-map-mode .marketplace-result-card{display:block}.marketplace-map-mode .marketplace-card-image{height:130px}}
/* Visually hide accessible labels without removing them from keyboard and screen-reader access. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}


/* Keep trust, author and budget metadata readable on marketplace cards. */
.marketplace-card-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-top:12px;min-height:2.6em}
.marketplace-card-author{min-width:0;color:#173d6a;font-size:.84rem;font-weight:800;line-height:1.3;overflow-wrap:anywhere}
.marketplace-card-price{flex:0 0 auto;color:#082b52;font-size:.92rem;line-height:1.3;text-align:right;white-space:nowrap}
.marketplace-card-actions{align-items:stretch}
.marketplace-card-actions a{display:flex;align-items:center;justify-content:center;min-height:42px}
@media(max-width:780px){.marketplace-card-footer{gap:8px}.marketplace-card-author{font-size:.82rem}.marketplace-card-price{font-size:.88rem}}

.marketplace-card-author{overflow-wrap:break-word;word-break:normal}
/* Keep complete requester words intact on narrow cards. */
.marketplace-card-author{flex:1 1 0;min-width:0;overflow-wrap:normal;word-break:normal}

/* Real Google map preview and full-screen browse view */
.marketplace-map{position:relative;min-height:280px;overflow:hidden;border-radius:13px;background:#eef5ff;border:1px solid #cae7f5}
.marketplace-map:before{content:none}
.marketplace-map-expand{display:block;width:100%;margin-top:10px;padding:12px 16px;border:1px solid #086bff;border-radius:12px;background:#fff;color:#086bff;font:inherit;font-weight:700;cursor:pointer}
.marketplace-map-expand:hover,.marketplace-map-expand:focus-visible{background:#086bff;color:#fff}
.marketplace-map-card{display:block}
.marketplace-live-map-dialog{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:14px;border:0;border-radius:0;background:#f7fbff;color:#082b52;box-sizing:border-box}
.marketplace-live-map-dialog[open]{display:flex;flex-direction:column;gap:10px}
.marketplace-live-map-header{display:flex;align-items:center;justify-content:space-between;gap:16px}
.marketplace-live-map-header h2{margin:0;font-size:1.25rem}
.marketplace-live-map-close{border:1px solid #086bff;border-radius:999px;background:#086bff;color:#fff;padding:10px 18px;font-weight:700;cursor:pointer}
.marketplace-live-map-count,.marketplace-live-map-note{margin:0;color:#48657f}
.marketplace-live-map-surface{flex:1;min-height:0;width:100%;border:1px solid #cae7f5;border-radius:16px;overflow:hidden;background:#eef5ff}
.marketplace-live-map-popup{display:grid;gap:5px;color:#082b52}
.marketplace-live-map-popup p{margin:0;color:#48657f}
.marketplace-live-map-link{color:#086bff;font-weight:700}
.marketplace-live-map-error{padding:20px}
@media(max-width:1080px){.marketplace-map-card{display:block}}
@media(max-width:780px){.marketplace-map-card{display:block}.marketplace-map{min-height:230px}.marketplace-live-map-dialog{padding:10px}.marketplace-live-map-header h2{font-size:1.05rem}}

/* High-contrast actions and honest map loading surface. */
.marketplace-card-actions a{transition:background-color .15s ease,color .15s ease,border-color .15s ease}
.marketplace-card-actions a:first-child:hover{background:#064bb3;color:#fff}
.marketplace-card-actions a:last-child:hover{background:#086bff;border-color:#086bff;color:#fff}
.marketplace-card-actions a:focus-visible,.marketplace-map-expand:focus-visible,.marketplace-view-switch button:focus-visible{outline:3px solid #ffd543;outline-offset:2px}
.marketplace-map{background:#eaf2fa}
.marketplace-map:before,.map-pin{display:none}

.marketplace-category-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}
.marketplace-category-row button{min-height:104px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:10px 6px;border:1px solid #d8e8f8;border-radius:18px;background:#eaf4ff;color:#07194b;font-size:.82rem;font-weight:750;text-align:center}
.marketplace-category-row button:nth-child(7n+1){background:#edf4fc}
.marketplace-category-row button:nth-child(7n+2){background:#e9f6ee}
.marketplace-category-row button:nth-child(7n+3){background:#eaf4ff}
.marketplace-category-row button:nth-child(7n+4){background:#fff6e8}
.marketplace-category-row button:nth-child(7n+5){background:#fff0f2}
.marketplace-category-row button:nth-child(7n+6){background:#f4edff}
.marketplace-category-row button:nth-child(7n+7){background:#eaf4ff}
.marketplace-category-row button img{width:44px;height:44px;object-fit:contain}
.marketplace-category-row button[aria-pressed=true]{background:#dcebff;color:#07194b;border:2px solid #086bff}
@media(max-width:760px){.marketplace-category-row{grid-template-columns:repeat(4,minmax(0,1fr))}.marketplace-category-row button{min-height:92px}}
@media(max-width:480px){.marketplace-category-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.marketplace-category-row button{min-height:84px;font-size:.74rem}.marketplace-category-row button img{width:38px;height:38px}}


/* Clear save controls on top of card photography; saved hearts stay solid. */
.marketplace-favourite {
  width: 42px;
  height: 42px;
  border: 1px solid #d7e8ff;
  border-radius: 50%;
  background: #fff;
  color: #006bff;
  box-shadow: 0 2px 8px rgba(7, 35, 91, .22);
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.marketplace-favourite[data-saved="true"] {
  border-color: #005cdb;
  background: #005cdb;
  color: #fff;
}
.marketplace-favourite:hover {
  transform: translateY(-1px);
  border-color: #005cdb;
  background: #005cdb;
  color: #fff;
  box-shadow: 0 4px 12px rgba(7, 35, 91, .3);
}
.marketplace-favourite[data-saved="true"]:hover {
  border-color: #07235b;
  background: #07235b;
}
.marketplace-favourite:focus-visible {
  outline: 3px solid #ffd543;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .marketplace-favourite { transition: none; }
}


/* Match the live marketplace search layout to the approved Demo toolbar. */
.marketplace-search-shell{
  grid-template-columns:minmax(0,1fr) 360px;
  gap:24px;
}
.marketplace-filters{
  grid-column:1/-1;
  padding:20px 22px;
}
.marketplace-filters form{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  gap:10px;
}
.marketplace-filters fieldset.marketplace-mode-tabs{
  flex:0 1 auto;
  display:flex;
  gap:7px;
}
.marketplace-mode-tabs label{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 18px;
  border:1px solid #b8dcef;
  border-radius:999px;
  background:#fff;
  color:#092d72;
  font-size:.88rem;
  font-weight:800;
  white-space:nowrap;
  cursor:pointer;
}
.marketplace-mode-tabs input{
  position:absolute;
  inline-size:1px;
  block-size:1px;
  opacity:0;
  pointer-events:none;
}
.marketplace-mode-tabs label:has(input:checked){
  border-color:#086bff;
  background:#086bff;
  color:#fff;
}
.marketplace-mode-tabs label:has(input:focus-visible){
  outline:3px solid #ffd543;
  outline-offset:2px;
}
.marketplace-filters form>label{
  flex:1 1 150px;
  min-width:145px;
  display:grid;
  align-items:stretch;
  gap:6px;
}
.marketplace-filters form>label select{
  min-height:46px;
}
.marketplace-clear-filters{
  min-height:46px;
  padding:0 8px;
  border:0;
  background:transparent;
  color:#086bff;
  font:800 .88rem/1 Inter,system-ui,sans-serif;
  cursor:pointer;
}
.marketplace-view-switch{
  flex:0 0 auto;
  align-self:flex-end;
}
.marketplace-view-switch button{
  min-height:46px;
  padding:0 18px;
  font-size:.88rem;
}
.marketplace-results-panel{grid-column:1}
.marketplace-map-rail{grid-column:2}
.marketplace-map-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:0 0 14px;
}
.marketplace-map-actions a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:9px 12px;
  border-radius:12px;
  text-align:center;
  text-decoration:none;
  font-weight:800;
}
.marketplace-map-actions .route-button-outline{background:#fff}
.marketplace-map-card{margin-top:0}
.marketplace-safety-card{margin-top:18px}

@media(max-width:1080px){
  .marketplace-search-shell{grid-template-columns:minmax(0,1fr) 320px}
  .marketplace-filters{grid-column:1/-1}
  .marketplace-results-panel{grid-column:1}
  .marketplace-map-rail{grid-column:2}
  .marketplace-filters form>label{flex-basis:170px}
}
@media(max-width:780px){
  .marketplace-search-shell{grid-template-columns:1fr}
  .marketplace-filters{grid-column:auto;order:1}
  .marketplace-results-panel{grid-column:auto;order:2}
  .marketplace-map-rail{grid-column:auto;order:3}
  .marketplace-filters fieldset.marketplace-mode-tabs{flex:1 0 100%}
  .marketplace-mode-tabs label{flex:1}
  .marketplace-filters form>label{flex:1 1 calc(50% - 6px);min-width:150px}
  .marketplace-view-switch{margin-left:auto}
}
@media(max-width:520px){
  .marketplace-filters form>label{flex-basis:100%}
  .marketplace-clear-filters{margin-right:auto}
  .marketplace-map-actions{grid-template-columns:1fr}
}
