.marketplace-header{background:#164f3b;position:sticky;top:0}.marketplace-header nav .active{color:#f4b840}.marketplace-main{min-height:80vh;background:#f7f3e9;padding:5rem max(5vw,1rem)}.marketplace-hero{max-width:820px;margin:0 auto 2.5rem;text-align:center}.marketplace-hero h1{font-size:clamp(2.5rem,6vw,5rem);line-height:1;margin:.5rem 0 1rem;color:#164f3b}.marketplace-hero em{color:#b56436}.marketplace-controls{display:flex;flex-wrap:wrap;gap:.75rem;align-items:end;max-width:1200px;margin:auto}.market-filter,.marketplace-controls select{border:1px solid #c9d6cc;background:white;border-radius:999px;padding:.75rem 1.1rem;font:inherit}.market-filter.active{background:#164f3b;color:white}.marketplace-controls label{display:grid;gap:.3rem;font-weight:700;margin-left:auto}.market-status{max-width:1200px;margin:1.5rem auto;color:#53665e}.market-grid{max-width:1200px;margin:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1.25rem}.listing-card{border:0;background:white;border-radius:22px;overflow:hidden;text-align:left;padding:0;box-shadow:0 10px 30px #173b2820;cursor:pointer}.listing-photo{aspect-ratio:4/3;background:#dfeadf;display:grid;place-items:center;font-size:4rem;overflow:hidden}.listing-photo img{width:100%;height:100%;object-fit:cover}.listing-copy{padding:1rem}.listing-price{font-size:1.35rem;font-weight:900;color:#164f3b}.listing-copy h2{font-size:1.1rem;margin:.4rem 0}.listing-copy p{margin:0;color:#66756d}.listing-badge{display:inline-block;margin-top:.7rem;background:#edf5ee;color:#164f3b;border-radius:99px;padding:.3rem .65rem;font-size:.75rem;font-weight:800}.listing-dialog,.email-dialog{border:0;border-radius:24px;max-width:680px;width:calc(100% - 2rem);padding:2rem}.listing-dialog::backdrop,.email-dialog::backdrop{background:#0b251bb8}.dialog-close{float:right;border:0;background:#edf2ed;border-radius:50%;width:38px;height:38px;font-size:1.5rem}.detail-photo{width:100%;max-height:390px;object-fit:cover;border-radius:18px;background:#e6eee7}.detail-facts{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem;margin:1rem 0}.detail-facts div{background:#f2f6f2;border-radius:12px;padding:.8rem}.email-dialog form,.email-dialog label{display:grid;gap:.5rem}.email-dialog form{gap:1rem}.email-dialog input,.email-dialog textarea{font:inherit;padding:.8rem;border:1px solid #b9c8bd;border-radius:10px}.market-empty{grid-column:1/-1;text-align:center;padding:4rem;background:white;border-radius:20px}@media(max-width:640px){.marketplace-main{padding-top:3rem}.marketplace-controls label{margin-left:0;width:100%}.detail-facts{grid-template-columns:1fr}}
/* Multi-photo listing gallery. The first animal photo remains the cover. */
.listing-distance{margin-top:.25rem!important;color:#164f3b!important;font-weight:800}.location-filter.active{background:#e4f2e8;color:#164f3b}.location-filter:disabled{cursor:wait;opacity:.7}
.detail-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:.65rem;margin-bottom:1rem}
.detail-gallery .detail-photo:first-child{grid-column:1/-1;aspect-ratio:16/9}
.detail-gallery .detail-photo.secondary{aspect-ratio:1}
.detail-gallery .detail-photo{height:100%}
.adoption-filter{border-color:#9a6824}.adoption-filter.active{background:#9a6824}.adoption-card{outline:2px solid #d7b56d}.demo-label{display:inline-block;margin:0 0 .65rem;background:#fff1c9;color:#704c13;border-radius:99px;padding:.28rem .65rem;font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.03em}.verified-org{color:#176642!important;font-weight:850;margin-top:.45rem!important}.adoption-placeholder{min-height:260px;border-radius:18px;background:linear-gradient(145deg,#e4efe5,#f7ead0);display:grid;place-items:center;font-size:7rem;margin-bottom:1rem}
.photo-open{display:block;border:0;padding:0;background:transparent;cursor:zoom-in;width:100%;overflow:hidden;border-radius:18px}.photo-dialog{width:100vw;max-width:none;height:100vh;max-height:none;margin:0;border:0;padding:0;background:#07110deF;color:white}.photo-dialog::backdrop{background:#07110d}.photo-dialog[open]{display:grid;grid-template-columns:auto 1fr auto;align-items:center}.photo-close{position:fixed;z-index:3;right:1rem;top:1rem;background:#ffffffdd}.photo-stage{min-width:0;height:100vh;display:grid;place-items:center;overflow:hidden;touch-action:none}.photo-stage img{grid-area:1/1;max-width:90vw;max-height:82vh;object-fit:contain;transition:transform .08s ease;transform-origin:center}.photo-stage span,.photo-stage small{position:fixed;bottom:3.2rem;background:#000a;padding:.35rem .7rem;border-radius:99px}.photo-stage small{bottom:1rem}.photo-nav{z-index:2;border:0;background:#ffffff22;color:white;font-size:4rem;width:3.5rem;height:6rem;cursor:pointer}.photo-nav:hover{background:#ffffff40}@media(max-width:640px){.photo-nav{position:fixed;bottom:45%;width:2.6rem}.photo-previous{left:.25rem}.photo-next{right:.25rem}.photo-stage small{font-size:.7rem}}

/* Marketplace first-release discovery, favorites, and sharing. */
.marketplace-controls label{margin-left:0}.marketplace-controls input{border:1px solid #c9d6cc;background:white;border-radius:999px;padding:.75rem 1.1rem;font:inherit}.search-control{flex:1 1 270px}.listing-card{position:relative;transition:transform .15s ease,box-shadow .15s ease}.listing-card:hover{transform:translateY(-2px);box-shadow:0 14px 36px #173b2830}.listing-card-open{display:block;width:100%;border:0;background:transparent;text-align:left;padding:0;color:inherit;font:inherit;cursor:pointer}.favorite-button{position:absolute;z-index:2;right:.7rem;top:.7rem;width:42px;height:42px;border:0;border-radius:50%;background:#fffffff0;color:#164f3b;font-size:1.55rem;line-height:1;box-shadow:0 3px 12px #0002;cursor:pointer}.favorite-button[aria-pressed="true"]{color:#a3422e}.badge-row{display:flex;flex-wrap:wrap;gap:.4rem}.listing-badge.pending{background:#fff1c9;color:#704c13}.record-badge{display:inline-block;margin-top:.7rem;background:#e8effa;color:#28568f;border-radius:99px;padding:.3rem .65rem;font-size:.75rem;font-weight:800}.detail-actions{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1rem}.secondary-action{border:1px solid #b9c8bd;background:white;color:#164f3b;border-radius:999px;padding:.72rem 1rem;font:inherit;font-weight:800;cursor:pointer}@media(max-width:640px){.search-control{flex-basis:100%}.marketplace-controls label{width:100%}}

.category-filters,.quick-filter-actions,.advanced-filter-grid{display:flex;flex-wrap:wrap;gap:.75rem;align-items:end}.category-filters{flex:1 1 100%}.advanced-filters{flex:1 1 100%}.advanced-filters summary{display:none}.advanced-filter-grid label{min-width:150px}.marketplace-header .menu{flex:0 0 44px}
@media(max-width:900px){.marketplace-header.open nav{top:70px}.marketplace-header.open nav a{padding:.45rem .3rem}.marketplace-header.open .menu{background:#f4b840;color:#164f3b}}
@media(max-width:640px){.marketplace-main{padding:2rem 1rem}.marketplace-hero{margin-bottom:1.35rem}.marketplace-hero h1{font-size:2.15rem;line-height:1.02}.marketplace-hero p{font-size:.95rem;line-height:1.45}.marketplace-controls{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.category-filters{grid-column:1/-1;flex-wrap:nowrap;overflow-x:auto;padding:.1rem 0 .25rem;scrollbar-width:none}.category-filters::-webkit-scrollbar{display:none}.category-filters .market-filter{flex:0 0 auto;padding:.55rem .85rem}.search-control{grid-column:1/-1}.search-control input{width:100%}.quick-filter-actions{grid-column:1}.quick-filter-actions .market-filter{width:100%}.advanced-filters{grid-column:2}.advanced-filters[open]{grid-column:1/-1}.advanced-filters summary{display:block;border:1px solid #c9d6cc;background:white;border-radius:999px;padding:.65rem 1rem;text-align:center;font-weight:800;cursor:pointer;list-style:none}.advanced-filters summary::-webkit-details-marker{display:none}.advanced-filters summary:after{content:' ▾'}.advanced-filters[open] summary:after{content:' ▴'}.advanced-filter-grid{display:grid;grid-template-columns:1fr 1fr;margin-top:.75rem;padding:1rem;background:#eef3ed;border-radius:18px}.advanced-filter-grid .location-filter{align-self:end}.advanced-filter-grid label{min-width:0;width:100%}.advanced-filter-grid select{width:100%;min-width:0}.market-status{margin:1rem auto}.market-grid{grid-template-columns:1fr 1fr;gap:.75rem}.listing-copy{padding:.8rem}.listing-copy h2{font-size:1rem}.listing-price{font-size:1.05rem}}@media(max-width:420px){.advanced-filter-grid{grid-template-columns:1fr}.market-grid{grid-template-columns:1fr}}
@media(max-width:640px){.marketplace-header{height:64px;padding:0 .85rem}.marketplace-header .brand{font-size:1rem;gap:.5rem}.marketplace-header .brand img{width:38px;height:38px;border-radius:11px}.marketplace-header .menu{width:40px;height:40px;flex-basis:40px}.marketplace-header.open nav{top:58px}.marketplace-main{padding:1.4rem 1rem 2rem}.marketplace-hero{margin-bottom:1.2rem}.marketplace-hero .kicker{font-size:.65rem}.marketplace-hero h1{font-size:1.75rem;line-height:1.05;margin:.45rem 0 .7rem}.marketplace-hero p{font-size:.88rem;line-height:1.4;margin:.5rem 0}.marketplace-controls{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}.category-filters{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:.55rem}.category-filters .market-filter{width:100%;padding:.5rem .45rem;font-size:.84rem;white-space:nowrap}.search-control{grid-column:1/-1}.search-control input{width:100%;padding:.65rem .9rem}.quick-filter-actions{grid-column:1}.quick-filter-actions .market-filter{width:100%;padding:.6rem .7rem}.advanced-filters{grid-column:2}.advanced-filters[open]{grid-column:1/-1}.advanced-filters summary{display:block;border:1px solid #c9d6cc;background:white;border-radius:999px;padding:.6rem .7rem;text-align:center;font-weight:800;cursor:pointer;list-style:none}.advanced-filters summary::-webkit-details-marker{display:none}.advanced-filters summary:after{content:' ▾'}.advanced-filters[open] summary:after{content:' ▴'}.advanced-filter-grid{display:grid;grid-template-columns:1fr 1fr;margin-top:.7rem;padding:.85rem;background:#eef3ed;border-radius:18px}.advanced-filter-grid .location-filter{align-self:end}.advanced-filter-grid label{min-width:0;width:100%}.advanced-filter-grid select{width:100%;min-width:0}.market-status{margin:.85rem auto}.market-grid{grid-template-columns:1fr 1fr;gap:.7rem}.listing-copy{padding:.75rem}.listing-copy h2{font-size:1rem}.listing-price{font-size:1.05rem}}@media(max-width:420px){.advanced-filter-grid{grid-template-columns:1fr}.market-grid{grid-template-columns:1fr}}
