/* Owner 2026-11-27: the header and the home banner as on the design copy (localhost).
   Header (computer): the search and the "Pievienot sludinājumu / Bezmaksas vai maksas ar AI palīdzību" button are one group in
   the middle of the header. Home banner (computer): the photo is the background behind the header and fades out under the
   rounded banner card with "Pērc. Pārdod. Atdod." (values copied from the design copy's computed styles / tg-2026.css). */

/* ---------- header: centred search + button group ---------- */
.tg-head-mid{display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 auto;justify-content:center}
@media (max-width:767.98px){.tg-head-mid{display:contents}}
@media (min-width:768px){
  html body .site-header .header-row{position:relative}
  html body:is(#marketplace-home,.future) .site-header .tg-head-mid{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max-content;max-width:calc(100% - 470px);z-index:2;display:flex!important}
  /* the search pill (white, round, brand search button) */
  html body:is(#marketplace-home,.future) .site-header .tg-head-mid form.header-search{display:flex!important;align-items:center;flex:0 1 460px!important;width:460px!important;max-width:460px!important;min-width:0!important;height:44px;margin:0!important;padding:3px 3px 3px 12px!important;border:1px solid #ecdfe4!important;border-radius:999px!important;background:#fff!important;box-shadow:0 2px 6px rgba(40,15,25,.06),0 8px 22px rgba(40,15,25,.07)!important;box-sizing:border-box;position:static!important;transform:none!important}
  html body:is(#marketplace-home,.future) .site-header .tg-head-mid form.header-search input{flex:1 1 auto;min-width:0;height:36px;border:0!important;background:transparent!important;box-shadow:none!important;font-size:14px!important;color:#2a1c23;padding:0 8px!important;outline:none}
  html body:is(#marketplace-home,.future) .site-header .tg-head-mid form.header-search select{flex:none;max-width:120px;height:36px;border:0!important;border-left:1px solid #ecdfe4!important;background-color:transparent!important;font-size:13.5px!important;color:#2a1c23;padding:0 8px!important}
  html body:is(#marketplace-home,.future) .site-header .tg-head-mid form.header-search button{flex:none;display:grid;place-items:center;width:38px!important;min-width:38px;height:36px!important;padding:0!important;border:0!important;border-radius:999px!important;background:#920036!important;color:#fff!important;box-shadow:none!important}
  html body:is(#marketplace-home,.future) .site-header .tg-head-mid form.header-search button .ic{width:18px;height:18px;color:#fff;stroke:#fff}
  html body:is(#marketplace-home,.future) .site-header .tg-head-mid form.header-search>.ic{width:18px;height:18px;flex:none;color:#7a6871}
  html body:is(#marketplace-home,.future) .site-header .tg-head-mid form.header-search label,html body:is(#marketplace-home,.future) .site-header .tg-head-mid form.header-search .location-field{display:contents}
  /* the big search under the banner on the home page: the header search replaces it on computers */
  html body:is(#marketplace-home,.future) .future-home-main>.mobile-home-search{display:none!important}
  /* the old design-copy button: brand outline, "+" in a brand square, two lines */
  html body:is(#marketplace-home,.future) .site-header .tg-head-mid .tg-header-ai{position:static!important;transform:none!important;order:2;flex:none;display:inline-flex!important;align-items:center!important;gap:9px!important;min-height:46px!important;height:46px;max-width:none!important;margin:0!important;padding:5px 14px 5px 7px!important;border:2px solid #920036!important;border-radius:14px!important;background:rgba(146,0,54,.05)!important;background-image:none!important;color:#6d0029!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 3px 12px rgba(146,0,54,.12)!important;text-decoration:none!important;text-shadow:none!important;white-space:nowrap;box-sizing:border-box}
  html body:is(#marketplace-home,.future) .site-header .tg-head-mid .tg-header-ai:hover{background:rgba(146,0,54,.1)!important}
  html body:is(#marketplace-home,.future) .site-header .tg-head-mid .tg-header-ai .ic{box-sizing:border-box!important;flex:0 0 30px!important;width:30px!important;height:30px!important;padding:6px!important;margin:0!important;border:0!important;border-radius:9px!important;background:#920036!important;color:#fff!important;stroke:#fff!important;stroke-width:2.4!important}
  html body:is(#marketplace-home,.future) .site-header .tg-head-mid .tg-header-add-copy{display:flex!important;flex-direction:column;align-items:flex-start;gap:3px}
  html body:is(#marketplace-home,.future) .site-header .tg-head-mid .tg-header-add-label{display:block!important;font-size:14.5px!important;font-weight:800!important;line-height:1.12!important;letter-spacing:0!important;text-transform:none!important;color:#6d0029!important}
  html body:is(#marketplace-home,.future) .site-header .tg-head-mid .tg-header-add-sub{display:block!important;margin:0;font-size:8.5px!important;font-weight:700!important;line-height:1.2!important;letter-spacing:.1em!important;text-transform:uppercase;color:#8a6a78!important}
  html body:is(#marketplace-home,.future) .site-header .tg-head-mid .hero-action-copy,html body:is(#marketplace-home,.future) .site-header .tg-head-mid .hero-action-chevron{display:none!important}
  html body:is(#marketplace-home,.future) .site-header .tg-head-mid .tg-header-ai:focus-visible{outline:3px solid rgba(146,0,54,.35);outline-offset:2px}
}
/* narrower computers: the button drops its second line, then shows only the "+" square */
@media (min-width:1180px) and (max-width:1299.98px){html body:is(#marketplace-home,.future) .site-header .tg-head-mid .tg-header-add-sub{display:none!important}}
@media (min-width:768px) and (max-width:1179.98px){
  html body:is(#marketplace-home,.future) .site-header .tg-head-mid .tg-header-add-copy{display:none!important}
  html body:is(#marketplace-home,.future) .site-header .tg-head-mid .tg-header-ai{padding:5px!important}
  html body:is(#marketplace-home,.future) .site-header .tg-head-mid form.header-search{flex-basis:300px!important;width:300px!important}
}
@media (max-width:767.98px){html body:is(#marketplace-home,.future) .site-header .tg-head-mid .tg-header-ai{display:none!important}}

/* ---------- home banner (computer): the design copy's photo banner ---------- */
@media (min-width:768px){
  html body:is(.future,#marketplace-home) .future-hero{display:block!important}
  html body:not(#tg-none):is(.future,#marketplace-home) .future-hero.future-hero{position:relative;height:clamp(210px,17vw,270px)!important;min-height:0!important;aspect-ratio:auto!important;overflow:hidden;border-radius:18px;margin-bottom:16px!important}
  html body:not(#tg-none):is(.future,#marketplace-home) .future-hero.future-hero>.future-hero-copy{position:relative;z-index:2;height:100%!important;min-height:0!important;display:flex;flex-direction:column;justify-content:center;gap:12px;padding:0 0 0 clamp(28px,3.4vw,52px)!important;box-sizing:border-box}
  html body:not(#tg-none):is(.future,#marketplace-home) .future-hero .future-hero-art{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover;object-position:center 40%}
  html body:not(#tg-none):is(.future,#marketplace-home) .future-hero h1{max-width:none!important;margin:0!important;font-size:clamp(34px,3.4vw,50px)!important;line-height:1!important;letter-spacing:-.02em}
  html body:not(#tg-none):is(.future,#marketplace-home) .future-hero h1>span,html body:not(#tg-none):is(.future,#marketplace-home) .future-hero h1>em{display:block!important}
  html body:not(#tg-none):is(.future,#marketplace-home) .future-hero-copy>p{max-width:300px!important;margin:0!important;font-size:15px!important;line-height:1.3!important}
  /* the photo behind the header, fading out under the banner card */
  html body:not(#tg-none).future.page-home::before{display:block!important;content:''!important;position:absolute;left:0!important;right:0!important;width:auto!important;max-width:none!important;top:0;z-index:-1;height:calc(110px + clamp(210px,17vw,270px))!important;clip-path:none!important;background:linear-gradient(180deg,rgba(255,249,241,.82) 0%,rgba(255,249,241,.45) 22%,rgba(255,249,241,.15) 45%,transparent 70%),var(--tirgote-hero-image) center 42%/cover no-repeat!important;-webkit-mask-image:linear-gradient(#000 55%,transparent);mask-image:linear-gradient(#000 55%,transparent)!important;filter:saturate(1.05)}
  html body:not(#tg-none):not(#tg-none2).future.page-home .site-header.site-header{background:transparent!important;border-bottom-color:transparent!important;box-shadow:none!important;backdrop-filter:none!important}
}
/* the search button shows only its icon (the word stays for screen readers) */
@media (min-width:768px){html body:is(#marketplace-home,.future) .site-header .tg-head-mid form.header-search button>span:not(.sr-only){position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}}
