/* Marketplace shared shell. */
/* Keep the accepted four search controls together; sorting has its own row. */
#searchForm .filters .market-sort-field{grid-column:1/-1}
#market{max-width:none;padding-inline:28px}
#marketHome,#detail{width:100%;max-width:1280px;margin-inline:auto}
.categories button svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.market-header.market-header{position:sticky;top:0;z-index:1000;height:114px;margin:0 -28px;padding:38px 30px 0;gap:50px;display:flex;align-items:center;justify-content:flex-start;border-bottom:1px solid #dfe6ef;background:#fff;color:#17233b}
.market-header .market-logo{width:200.03125px;min-width:200.03125px;display:flex;gap:7px;align-items:center;color:inherit;text-decoration:none;flex-shrink:0;transform:translateY(3px)}
.market-header .market-logo img{width:44px;height:44px;object-fit:contain;flex-shrink:0}
.market-header .market-logo strong{display:block;font-size:20px;line-height:1.2}
.market-header .market-logo small{display:block;margin-top:3px;color:#66738a;font-size:12px;font-weight:400;white-space:nowrap}
.market-header .zoneks-brand{position:absolute;top:0;left:30px;display:block;width:206.25px;pointer-events:none}
.market-header .zoneks-brand img{display:block;width:100%;height:auto;object-fit:contain}
.market-header .desktop-nav{display:flex;height:42px;margin-left:0;gap:4px;padding:4px;align-items:center;align-self:center;background:#f0f3f6;border-radius:10px}
.market-header .desktop-nav button{height:100%;min-height:0;padding:0 18px;border:0;border-radius:8px;background:transparent;color:#17233b;font-size:14px;font-weight:600}
.market-header .desktop-nav button[aria-current=page]{border:0;background:#1677ff;color:#fff;font-weight:600}
.market-header .ownerPublicAuth{margin-left:auto}
.market-header .ownerPublicAuth>a:first-child{white-space:nowrap}
.market-header .ownerPublicAuth>a.ownerLogin{display:inline-flex}
@media(min-width:769px){
 .market-header.market-header{padding-left:max(28px,calc((100vw - 1280px)/2));padding-right:max(28px,calc((100vw - 1280px)/2));gap:50px}
}
@media(min-width:1600px){
 .market-header.market-header{padding-left:max(28px,calc((100vw - 1280px)/2));padding-right:max(28px,calc((100vw - 1280px)/2))}
}
@media(max-width:760px){
 #market{padding-inline:14px}
 .categories button svg{width:16px;height:16px;flex-basis:16px}
 .market-header.market-header{position:relative;top:auto;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:34px 46px 46px;align-items:center;column-gap:8px;row-gap:4px;height:146px;min-height:146px;margin:0 -14px;padding:6px 16px;flex-wrap:nowrap}
 .market-header .zoneks-brand{position:static;grid-column:1/-1;grid-row:1;justify-self:start;align-self:center;width:181.25px;transform:translateY(3px)}
 .market-header.market-header .market-logo{grid-column:1/-1;grid-row:2;justify-self:start;width:auto;min-width:0;gap:7px}
 .market-header .market-logo img{width:36px;height:36px}
 .market-header .market-logo strong{font-size:18px}
 .market-header .market-logo small{display:block;margin-top:3px;font-size:11px}
 .market-header .desktop-nav{display:none}
 .market-header .ownerPublicAuth{grid-column:2;grid-row:2;justify-self:end;margin:0;min-width:166px}
 .market-header .ownerPublicAuth:has(.ownerMobileActions){grid-row:3}
 .market-bottom{height:auto;z-index:1500;padding:7px 8px max(7px,env(safe-area-inset-bottom));border-color:var(--line);background:#04131ff5}
 .market-bottom button{min-height:46px;padding:2px;gap:4px;color:#c4ced7;font:11px Arial,"Segoe UI",sans-serif;line-height:normal}
 .market-bottom svg{width:23px;height:23px}
 .market-bottom [aria-current=page]{color:#318bff}
 .market-bottom #homeNav[aria-current=page] svg{fill:#1677ff}
 .market-bottom [aria-current=page]:focus{outline:none}
}
@media(max-width:374px){
 .market-header.market-header{grid-template-rows:34px 46px 46px;height:146px;min-height:146px;padding:6px 10px;column-gap:6px;row-gap:4px}
 .market-header .market-logo img{width:34px;height:34px}
 .market-header .market-logo strong{font-size:17px}
}

/* Marketplace cards and details use the Real Estate interaction and surface language. */
.market-card{border:1px solid #16303e;border-radius:7px;background:#061c29;cursor:pointer;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.market-card:hover{transform:translateY(-2px);border-color:#366079;box-shadow:0 6px 16px #0003}
.market-card:focus-visible{outline:3px solid #78b6ff;outline-offset:3px}
.market-card .photo-wrap{border-radius:6px 6px 0 0;overflow:hidden}
.market-card .photos{aspect-ratio:1.8;background:#102b3c}
.market-card .card-info{padding:10px 11px 12px;background:#061c29}
.market-card .card-top{min-height:26px}
.market-card .price{font-size:17px;line-height:1.3}
.market-card .category-badge{border-radius:3px;background:#1d3b51;color:#d2dfe8;font-size:11px}
.market-card .card-description{margin-top:6px;padding:8px 9px 9px;border-radius:6px;background:#153247}
.market-card .card-info h3{margin:0 0 5px;font-size:15px;line-height:1.35}
.market-card .card-info p{margin:4px 0;font-size:12px;line-height:1.35}
.market-card .heart{width:34px;height:34px;min-height:34px;padding:7px;background:#f7fafc}
.market-card .source.telegram{top:9px;left:9px;background:#1677ff;border-color:#1677ff;border-radius:5px;padding:4px 6px}

.detail-back{margin:12px 0 14px;min-height:42px;padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:#102a3b;color:var(--ink);font-weight:700}
.detail-grid{align-items:start;gap:18px}
.detail-media,.detail-copy{min-width:0}
.detail-media>.photo-wrap{overflow:hidden;border:1px solid #16303e;border-radius:18px;background:#071b28}
.detail-media .photos{aspect-ratio:1.55}
.detail-gallery-tools{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px;margin-top:8px}
.detail-share{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--ink);font-size:14px}
.detail-share svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.share-status{color:var(--muted);font-size:12px}
.share-status:empty{display:none}
.share-link{width:100%;padding:8px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--ink)}
.detail-copy{padding:20px;border:1px solid var(--line);border-radius:18px;background:#071c28}
.detail-copy .eyebrow{display:inline-block;margin-bottom:8px;color:#8bb8d4;font-size:10px;letter-spacing:1.5px}
.detail-copy h1{margin:0 0 12px;font-size:28px;line-height:1.18;letter-spacing:-.4px}
.detail-copy>.detail-heading>.price{display:block;margin-bottom:8px;font-size:24px}
.detail-heading p{margin:0;color:#c3cfd9}
.detail-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:18px 0 0;padding-top:16px;border-top:1px solid var(--line)}
.detail-meta>div{padding:11px;border:1px solid var(--line);border-radius:10px;background:#102b3a}
.detail-meta dt{margin-bottom:4px;color:var(--muted);font-size:12px}
.detail-meta dd{margin:0;color:var(--ink);font-weight:700}
.detail-description{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.detail-description h2{margin:0 0 10px;font-size:17px}
.detail-description>div{padding:14px;border:1px solid var(--line);border-radius:12px;background:#102b3a;color:#dbe5ec;line-height:1.6;white-space:pre-wrap}
@media(min-width:1100px){.detail-grid{grid-template-columns:minmax(0,1.4fr) minmax(330px,1fr)}}
@media(max-width:700px){
 .market-card .photos{aspect-ratio:1.85}
 .detail-back{margin-top:8px}
 .detail-grid{grid-template-columns:1fr;gap:14px}
 .detail-media .photos{aspect-ratio:1.3}
 .detail-copy{padding:18px;border-radius:14px}
 .detail-copy h1{font-size:25px}
 .detail-meta{grid-template-columns:1fr}
}

.hero .sectionToggle{position:absolute;z-index:3;top:16px;left:clamp(18px,3.44%,44px);display:flex;gap:0;width:min(354px,calc(100% - 36px));height:44px;padding:3px;border:1px solid #d8d0ef;border-radius:999px;background:var(--section-switch-accent-soft);box-shadow:0 2px 8px #0005;touch-action:pan-y}
.hero .sectionToggle:before,.hero .sectionToggleIndicator{content:"";position:absolute;z-index:0;top:3px;bottom:3px;left:3px;width:calc((100% - 6px)/3);border-radius:999px;background:var(--section-switch-accent);box-shadow:0 1px 3px #2e1d6855;transform:translate3d(0,0,0);transition:none;pointer-events:none}
.hero .sectionToggle.sectionToggleEnhanced:before{content:none}.hero .sectionToggleIndicator{will-change:transform}
.hero .sectionToggle.sectionToggleReady:before,.hero .sectionToggle.sectionToggleReady .sectionToggleIndicator{transition:transform var(--section-switch-snap-duration,200ms) ease}.hero .sectionToggle.sectionToggleDragging:before,.hero .sectionToggle.sectionToggleDragging .sectionToggleIndicator{transition:none}.hero .sectionToggle[data-current=market]:before,.hero .sectionToggle[data-current=market] .sectionToggleIndicator{transform:translate3d(100%,0,0)}.hero .sectionToggle[data-current=jobs]:before,.hero .sectionToggle[data-current=jobs] .sectionToggleIndicator{transform:translate3d(200%,0,0)}.hero .sectionToggle.sectionToggleDragging a{transition:none}
.hero .sectionToggle a{position:relative;z-index:1;display:flex;flex:1 1 33.333%;align-items:center;justify-content:center;min-width:0;min-height:36px;padding:7px 4px;border-radius:999px;color:#23334a;text-decoration:none;font-size:12px;font-weight:700;white-space:nowrap;transition:color 200ms ease,transform 120ms ease}
.hero .sectionToggle a:hover{color:var(--section-switch-accent-hover)}.hero .sectionToggle a:focus-visible{outline:2px solid var(--section-switch-accent);outline-offset:2px}.hero .sectionToggle a:active{transform:scale(.98)}
.hero .sectionToggle a[aria-current=page]{color:#fff;cursor:default}
.hero .hero-copy{padding-top:86px}
@media(max-width:760px){.hero .sectionToggle{top:12px}.hero .sectionToggle a{min-height:36px;padding-inline:10px;font-size:12px}.hero .hero-copy{padding-top:80px}}
@media(prefers-reduced-motion:reduce){.hero .sectionToggle.sectionToggleReady:before,.hero .sectionToggle.sectionToggleReady .sectionToggleIndicator,.hero .sectionToggle a{transition:none}}
.market-card .photos{background-color:#edf1ed;background-position:center;background-repeat:no-repeat;background-size:cover}.market-card .photos.cardImageReady{background-image:none!important}.market-card .photos img{transition:opacity .16s ease}.market-card .photos:not(.cardImageReady) img[data-card-original]{opacity:0}.market-card .photos.cardImageReady img{opacity:1}

/* Keep the accepted desktop gallery width; place all copy in its next row. */
@media(min-width:701px){
 .detail-grid{grid-template-columns:minmax(0,calc((100% - 18px)*7/12));justify-content:center}
}
@media(min-width:1100px){
 .detail-grid{grid-template-columns:minmax(0,min(calc((100% - 18px)*7/12),calc(100% - 348px)))}
}
.detail-thumbnails{position:relative;display:flex;gap:8px;margin-top:10px;overflow-x:auto;padding:2px;scrollbar-width:thin}
.detail-thumbnail{flex:0 0 auto;width:90px;height:66px;min-height:0;padding:0;background:transparent;border:2px solid transparent;border-radius:9px;overflow:hidden}
.detail-thumbnail img{display:block;width:86px;height:62px;object-fit:cover}
.detail-thumbnail[aria-pressed=true]{border-color:var(--blue)}
.detail-gallery-arrow{position:absolute;z-index:2;top:50%;transform:translateY(-50%);width:40px;height:44px;padding:0;border:1px solid #ffffff30;border-radius:9px;background:#04131fcc;color:#fff;font-size:28px}
.detail-gallery-arrow.previous{left:10px}.detail-gallery-arrow.next{right:10px}
