.home-carousel{max-width:1400px;margin:20px auto 0;border:1px solid #d8e4e7;background:linear-gradient(130deg,#f3f9f7,#edf4fa);border-radius:22px;overflow:hidden;box-shadow:0 12px 32px #193f4b0c}.home-slides{min-width:0;touch-action:pan-y}.home-slide{display:grid;grid-template-columns:1fr;min-width:0;animation:home-slide-in .35s ease}.home-slide.has-copy{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}.home-slide[hidden]{display:none!important}.home-slide-image{display:flex;align-items:center;justify-content:center;min-width:0;background:#f5f8fa;min-height:260px}.home-slide-image img{display:block;width:100%;height:clamp(260px,29vw,430px);object-fit:contain}.home-slide-copy{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:clamp(20px,4vw,52px);min-width:0;gap:16px}.home-slide-copy h2{font-size:clamp(24px,3vw,40px);line-height:1.5;margin:0;color:#123f49;overflow-wrap:anywhere}.home-slide-copy p{font-size:clamp(14px,1.5vw,18px);line-height:1.85;margin:0;overflow-wrap:anywhere}.home-slide-button,.home-advertise{display:inline-flex;justify-content:center;align-items:center;min-height:40px;padding:9px 18px;border:1px solid #c1d7d9;border-radius:10px;color:#125d58;background:white;text-decoration:none;font-weight:700;line-height:1.5}.home-slide-button{background:#145f59;color:white;border-color:#145f59}.home-carousel-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 20px;border-top:1px solid #dce5e8;background:#fff}.home-carousel-controls{display:flex;align-items:center;gap:12px;min-width:0}.home-carousel-controls>button{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;padding:6px;border:1px solid #cedee2;border-radius:50%;background:#fff;color:#145e57;font-size:17px;cursor:pointer}.home-carousel-controls svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}html[dir=rtl] .home-carousel-controls svg{transform:scaleX(-1)}.home-carousel-dots{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap}.home-carousel-dots button{height:10px;width:10px;border:0;border-radius:10px;background:#b5cacc;padding:0;cursor:pointer}.home-carousel-dots button[aria-selected=true]{width:25px;background:#18776b}.home-country-bar{display:flex;justify-content:center;padding:24px 16px 6px}.home-country-picker{position:relative;display:flex;align-items:center;gap:10px;width:min(100%,420px);border:1px solid #cadbdd;border-radius:14px;background:#fff;padding:5px 12px;box-shadow:0 5px 18px #173f4808;z-index:10}.country-pin{width:23px;height:23px;stroke-width:1.8;color:#167064;flex-shrink:0}.home-country-picker input{width:100%;min-width:0;border:0;background:transparent;padding:12px 0;font:inherit;color:#193f49;outline:0;font-weight:700}.home-country-picker:focus-within{outline:2px solid #3e9b8d;outline-offset:2px}.country-toggle{border:0;background:transparent;padding:8px;display:grid;place-items:center;cursor:pointer;color:#28535c}.country-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2}.home-country-picker ul{position:absolute;inset-inline:0;top:calc(100% + 7px);list-style:none;margin:0;padding:7px;background:white;border:1px solid #d3e0e4;box-shadow:0 12px 28px #1b3e4920;border-radius:13px;max-height:290px;overflow:auto}.home-country-picker [hidden]{display:none!important}.home-country-picker li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px;border-radius:8px;cursor:pointer}.home-country-picker li small{font-size:12px;color:#61767d}.home-country-picker li:hover,.home-country-picker li.is-highlighted{background:#eff7f6}.home-country-picker li[aria-selected=true]{font-weight:700;color:#156858;background:#e5f4ee}.country-empty{position:absolute;top:100%;inset-inline:0;background:#fff;border:1px solid #d3e0e4;padding:15px;border-radius:12px}.country-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.home-market-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.home-market-heading h1{font-size:clamp(23px,3vw,30px);margin:0}.home-ad-category{margin-block:24px}.home-ad-category h2{font-size:20px;margin-bottom:18px}.home-empty{padding:34px 20px;background:#fff;border:1px dashed #bfd0d5;border-radius:16px;text-align:center;color:#526d74}.home-carousel :focus-visible,.home-country-picker button:focus-visible,.home-advertise:focus-visible{outline:3px solid #3b9f8f;outline-offset:3px}.home-slide-copy a{max-width:100%;overflow-wrap:anywhere}@keyframes home-slide-in{from{opacity:.5}to{opacity:1}}@media(max-width:1440px){.home-carousel{margin-inline:24px}}@media(max-width:700px){.home-carousel{margin:12px 12px 0;border-radius:16px}.home-slide.has-copy{grid-template-columns:1fr}.home-slide-image{min-height:190px}.home-slide-image img{height:230px}.home-slide-copy{padding:20px;gap:12px}.home-slide-copy h2{font-size:23px}.home-carousel-footer{padding:12px;flex-wrap:wrap;justify-content:center}.home-carousel-controls{gap:9px}.home-advertise{font-size:13px;padding:7px 13px}.home-carousel-dots{max-width:150px}.home-country-bar{padding-top:20px}.home-market-heading{align-items:flex-start}.home-market-heading h1{font-size:23px}}@media(prefers-reduced-motion:reduce){.home-slide{animation:none}}

/* Shared rail: carousel and country selector use exactly the same edges. */
.marketplace-home .home-carousel,.marketplace-home .home-country-bar{width:min(1400px,calc(100% - 48px));max-width:1400px;margin-inline:auto;box-sizing:border-box}
.marketplace-home .home-country-bar{padding:12px 0 4px;justify-content:flex-start}
.marketplace-home .home-country-picker{width:100%;min-height:36px;padding:0 10px;border-radius:9px;box-sizing:border-box;gap:8px}
.marketplace-home .home-country-picker input{height:36px;min-height:0;padding:4px 0;line-height:26px;text-align:start;font-size:14px;margin:0;border-radius:0;box-shadow:none}
.marketplace-home .country-pin{width:18px;height:18px}.marketplace-home .country-toggle{padding:4px}.marketplace-home .home-country-picker li{padding:8px 10px}
.home-featured-ads{margin-block:12px 24px}.home-ad-results:empty{display:none}
@media(max-width:700px){.marketplace-home .home-carousel,.marketplace-home .home-country-bar{width:calc(100% - 24px)}}

.marketplace-home .ad-market-card{padding:10px;overflow:hidden;box-shadow:0 4px 16px #193f4908;border-radius:14px;text-align:start}.marketplace-home .ad-market-card>a{display:block;text-decoration:none}.marketplace-home .ad-market-card .ad-public-image{display:block;height:190px;background:#f8fafb;border-radius:9px}.marketplace-home .ad-market-card h3{font-size:16px;line-height:1.6;margin:10px 0}.marketplace-home .ad-market-card p{display:flex;align-items:center;gap:8px;margin:8px 0;font-size:13px}.marketplace-home .ad-public-logo{width:30px;height:30px;border-radius:5px}.marketplace-home .ad-market-card p:last-child{font-weight:700;color:#14635c}.home-slide-detail .ad-gallery{display:block}.home-slide-detail .ad-gallery img{display:block;width:100%;height:auto;max-height:560px;object-fit:contain}.home-slide-detail .ad-description{font-size:16px;line-height:1.9}@media(max-width:700px){.marketplace-home .ad-market-card .ad-public-image{height:150px}.marketplace-home .ad-market-card h3{font-size:14px}.marketplace-home .ad-market-card p{font-size:12px}}

/* Compact featured seal sits over the image, without taking card space. */
.ad-market-product-link{position:relative;display:block}.ad-market-card .ad-featured-badge{position:absolute;z-index:1;inset-block-start:6px;inset-inline-start:6px;width:76px;height:76px;object-fit:contain;border-radius:8px;background:#fff;box-shadow:0 2px 7px #193f4920;pointer-events:none}.marketplace-home .ad-market-card .ad-featured-badge{width:76px;height:76px}@media(max-width:700px){.ad-market-card .ad-featured-badge,.marketplace-home .ad-market-card .ad-featured-badge{width:58px;height:58px;inset-block-start:4px;inset-inline-start:4px}}

/* The image link covers the card, while the named action retains its own focus. */
.home-slide{position:relative}
.home-slide-image::after{content:"";position:absolute;inset:0}
.home-slide-button{position:relative;z-index:1}

@media(max-width:780px){ .marketplace-home .home-carousel,.marketplace-home .home-country-bar{width:calc(100% - 24px)}
 .home-slide.has-copy{grid-template-columns:minmax(0,1fr)}
 .home-slide-image{min-height:0;background:transparent}
 .home-slide-image img{width:100%;height:auto;max-height:none;object-fit:contain}
 .home-slide-copy{padding:10px 14px;gap:6px}
 .home-slide-copy h2{font-size:clamp(16px,4vw,21px);line-height:1.35}
 .home-slide-copy p{font-size:13px;line-height:1.5}
 .home-slide-copy .home-slide-button{font-size:13px;min-height:36px;padding:5px 10px}
 .home-carousel-footer{padding:8px 10px;justify-content:space-between;gap:6px}
 .home-carousel-controls{gap:5px}
 .home-carousel-controls>button{width:34px;height:34px}
 .home-carousel-dots{gap:4px;max-width:72px}
}

.home-country-picker ul,.home-country-picker .country-empty{
 position:fixed;inset:auto;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;
}
.home-country-picker li{min-height:44px;box-sizing:border-box}
.marketplace-catalog{scroll-margin-top:76px}
.home-search-bar{display:flex;align-items:center;gap:7px;position:relative;margin-bottom:16px}
.home-search-bar>input[type=search]{flex:1;min-width:0;height:44px;padding:0 10px;border:1px solid #c9dbd9;border-radius:10px;font:inherit;background:#fff}
.home-search-bar>button,.home-filter-menu summary{flex:none;white-space:nowrap;font-size:clamp(12px,2.5vw,14px);margin:0;min-height:44px;box-sizing:border-box}
.home-search-bar>button,.home-filter-menu summary{display:inline-flex;align-items:center;justify-content:center}
.home-filter-menu summary{cursor:pointer;list-style:none;border:1px solid #c9dbd9;border-radius:10px;background:#f0f5ee;padding:10px 9px;font-weight:700}
.home-filter-menu summary::-webkit-details-marker{display:none}
.home-filter-menu summary::after{content:" ▾"}
.home-filter-panel{position:absolute;z-index:25;inset-inline-end:0;inset-block-start:calc(100% + 7px);width:min(310px,100%);box-sizing:border-box;background:white;border:1px solid #d8e5df;border-radius:14px;box-shadow:0 12px 28px #183e4933;padding:14px;display:grid;gap:12px}
.home-filter-panel label{display:grid;gap:4px}
.home-filter-panel select{width:100%;min-height:42px;background:#fff;border:1px solid #cadbda;border-radius:8px;padding:5px;font:inherit}
.home-filter-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.home-slide{text-decoration:none;color:inherit;cursor:pointer}.home-slide:focus-visible{outline:3px solid #197d75;outline-offset:-3px}

/* Keep all slideshow controls together and centered at every viewport size. */
.home-carousel-footer{justify-content:center;gap:8px}
.home-carousel-controls{justify-content:center;flex-wrap:wrap;gap:8px;max-width:100%}
.home-carousel-controls>button[data-ad-play]{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;min-height:36px;height:auto;padding:7px 12px;border-radius:9px;font-size:13px;font-weight:700;line-height:1.4;white-space:nowrap;background:#edf6f4}
.home-carousel-controls>button[data-ad-play]:hover{background:#dceee9}
.home-carousel-controls [data-ad-play-icon]{font-size:16px;line-height:1}
