/* NorgesSjekk MOBILE CLEAN FIX4 - isolated mobile layer only */
#nsMobileTools,#nsMobileDrawer,#nsMobileDock{display:none}
@media (max-width:760px){
  html{overflow-x:hidden;-webkit-text-size-adjust:100%}
  body.ns-mobile-clean{overflow-x:hidden;padding-bottom:calc(72px + env(safe-area-inset-bottom));}
  body.ns-mobile-clean *{max-width:100%}

  body.ns-mobile-clean .topbar{position:sticky!important;top:0;z-index:1000;background:#fff!important;border-bottom:1px solid #dce6e1!important;box-shadow:0 3px 14px rgba(20,55,48,.06)}
  body.ns-mobile-clean .topbar .wrap.nav{width:calc(100% - 24px)!important;min-height:60px!important;height:auto!important;margin:0 auto!important;padding:8px 0!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;column-gap:8px!important;row-gap:0!important;flex-wrap:initial!important}
  body.ns-mobile-clean .topbar .brand{grid-column:1!important;display:flex!important;min-width:0!important;margin:0!important;align-items:center!important;gap:8px!important;text-decoration:none!important}
  body.ns-mobile-clean .topbar .brand .ns-v47fix2-word{font-size:17px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.ns-mobile-clean .topbar .product{display:none!important}
  body.ns-mobile-clean .topbar .wrap.nav>nav,
  body.ns-mobile-clean .topbar .wrap.nav>a.back{display:none!important}

  body.ns-mobile-clean #nsMobileTools{grid-column:2;display:flex!important;align-items:center;justify-content:flex-end;gap:6px;margin:0!important;min-width:0}
  body.ns-mobile-clean #nsMobileTools button{appearance:none;min-height:42px!important;height:42px;padding:0 11px!important;border:1px solid #cfdcd6!important;border-radius:10px!important;background:#f5f8f6!important;color:#173c36!important;font:700 13px/1 system-ui,-apple-system,"Segoe UI",sans-serif!important;box-shadow:none!important;white-space:nowrap;cursor:pointer}
  body.ns-mobile-clean #nsMobileTools #nsMobileInstallProxy{background:#eaf5ef!important;border-color:#c7dfd2!important;color:#116c5c!important}
  body.ns-mobile-clean #nsMobileTools button[hidden]{display:none!important}

  body.ns-mobile-clean #nsMobileDrawer{grid-column:1/-1;display:block!important;width:100%;margin-top:8px;padding:10px;background:#fff;border:1px solid #dce6e1;border-radius:13px;box-shadow:0 12px 28px rgba(20,55,48,.12);box-sizing:border-box}
  body.ns-mobile-clean #nsMobileDrawer[hidden]{display:none!important}
  body.ns-mobile-clean #nsMobileDrawer nav{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;margin:0!important;padding:0!important;width:100%!important}
  body.ns-mobile-clean #nsMobileDrawer a{display:flex!important;align-items:center!important;justify-content:flex-start!important;min-height:46px!important;margin:0!important;padding:10px 12px!important;border:1px solid #e1e8e4!important;border-radius:9px!important;background:#f8faf9!important;color:#173c36!important;text-decoration:none!important;font:700 14px/1.25 system-ui,-apple-system,"Segoe UI",sans-serif!important;box-sizing:border-box!important;white-space:normal!important}
  body.ns-mobile-clean #nsMobileDrawer a[aria-current="page"]{background:#edf6f1!important;border-color:#bcd8c9!important;color:#0d6555!important}
  body.ns-mobile-clean #nsMobileDrawer a.ns-mobile-create{grid-column:1/-1;background:#116c5c!important;border-color:#116c5c!important;color:#fff!important;justify-content:center!important}

  body.ns-mobile-clean #nsMobileDock{position:fixed;left:0;right:0;bottom:0;z-index:999;display:grid!important;grid-template-columns:repeat(3,1fr);gap:0;padding:6px 8px max(6px,env(safe-area-inset-bottom));background:rgba(255,255,255,.98);border-top:1px solid #dce6e1;box-shadow:0 -6px 20px rgba(20,55,48,.08);backdrop-filter:blur(10px)}
  body.ns-mobile-clean #nsMobileDock a{display:flex;align-items:center;justify-content:center;min-height:50px;padding:5px 6px;border-radius:10px;color:#526a63;text-decoration:none;font:700 12px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;text-align:center}
  body.ns-mobile-clean #nsMobileDock a[aria-current="page"]{background:#edf6f1;color:#0d6555}
  body.ns-mobile-clean #nsMobileDock a.ns-mobile-dock-create{background:#116c5c;color:#fff;margin-left:4px}

  body.ns-mobile-clean main.wrap,
  body.ns-mobile-clean main .wrap,
  body.ns-mobile-clean .wrap{width:calc(100% - 24px)!important;max-width:100%!important;box-sizing:border-box}
  body.ns-mobile-clean main{overflow:visible!important}
  body.ns-mobile-clean .page,
  body.ns-mobile-clean .mine-page{padding-top:20px!important;padding-bottom:26px!important}
  body.ns-mobile-clean .intro,
  body.ns-mobile-clean .mine-intro,
  body.ns-mobile-clean .hero-grid{display:grid!important;grid-template-columns:1fr!important;gap:12px!important;align-items:start!important;margin-bottom:18px!important}
  body.ns-mobile-clean .intro h1,
  body.ns-mobile-clean .mine-intro h1,
  body.ns-mobile-clean .market-hero h1{font-size:30px!important;line-height:1.08!important;letter-spacing:-.035em!important;margin:5px 0 8px!important}
  body.ns-mobile-clean .intro p,
  body.ns-mobile-clean .mine-intro p,
  body.ns-mobile-clean .market-hero p{font-size:15px!important;line-height:1.55!important}
  body.ns-mobile-clean .status-pill{display:inline-flex!important;width:auto!important;white-space:normal!important;font-size:13px!important;padding:8px 11px!important}

  body.ns-mobile-clean .layout,
  body.ns-mobile-clean .fields.two,
  body.ns-mobile-clean .form-grid,
  body.ns-mobile-clean .field-grid,
  body.ns-mobile-clean .filters-grid,
  body.ns-mobile-clean .market-grid{grid-template-columns:1fr!important}
  body.ns-mobile-clean .panel{padding:17px!important;margin-bottom:12px!important;border-radius:12px!important;box-shadow:none!important}
  body.ns-mobile-clean .section-head{gap:10px!important;margin-bottom:16px!important}
  body.ns-mobile-clean .section-head>span{width:30px!important;height:30px!important;font-size:13px!important}
  body.ns-mobile-clean .section-head h2{font-size:20px!important;line-height:1.2!important}
  body.ns-mobile-clean .section-head p{font-size:14px!important;line-height:1.45!important}
  body.ns-mobile-clean .type-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.ns-mobile-clean .type-card{min-height:78px!important;padding:12px 38px 12px 12px!important;border-radius:10px!important}
  body.ns-mobile-clean .type-card b{font-size:16px!important}
  body.ns-mobile-clean .type-card small{font-size:12px!important}

  body.ns-mobile-clean main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  body.ns-mobile-clean main select,
  body.ns-mobile-clean main textarea{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;font-size:16px!important;line-height:1.35!important;border-radius:9px!important}
  body.ns-mobile-clean main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  body.ns-mobile-clean main select{min-height:48px!important}
  body.ns-mobile-clean main textarea{min-height:132px!important}
  body.ns-mobile-clean main button,
  body.ns-mobile-clean main .primary,
  body.ns-mobile-clean main .secondary,
  body.ns-mobile-clean main .ghost,
  body.ns-mobile-clean main summary{min-height:46px!important;touch-action:manipulation}
  body.ns-mobile-clean .lookup-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;align-items:stretch!important}
  body.ns-mobile-clean .lookup-row small{grid-column:1/-1!important}
  body.ns-mobile-clean .vehicle-specs{padding:12px!important}
  body.ns-mobile-clean .drop{padding:18px 12px!important}
  body.ns-mobile-clean .image-manager,
  body.ns-mobile-clean .thumbs{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}

  body.ns-mobile-clean[data-wizard-step] .flow-nav{display:flex!important;grid-template-columns:none!important;gap:7px!important;overflow-x:auto!important;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:2px 0 8px!important;margin:12px 0 15px!important;scrollbar-width:none}
  body.ns-mobile-clean[data-wizard-step] .flow-nav::-webkit-scrollbar{display:none}
  body.ns-mobile-clean[data-wizard-step] .flow-nav a{flex:0 0 auto!important;min-width:96px!important;min-height:44px!important;padding:8px 10px!important;display:flex!important;flex-direction:row!important;justify-content:flex-start!important;gap:7px!important;scroll-snap-align:start;border-radius:9px!important}
  body.ns-mobile-clean[data-wizard-step] .flow-nav a span{width:24px!important;height:24px!important;flex:0 0 24px!important}
  body.ns-mobile-clean[data-wizard-step] .flow-nav a b{font-size:12px!important;white-space:nowrap!important;text-align:left!important;overflow:visible!important;text-overflow:clip!important}
  body.ns-mobile-clean[data-wizard-step] .layout{display:block!important}
  body.ns-mobile-clean[data-wizard-step] .preview-wrap{position:static!important;margin-top:14px!important}
  body.ns-mobile-clean[data-wizard-step]:not(.ns-preview-open) .preview-wrap{display:none!important}
  body.ns-mobile-clean .ns-step-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;padding:12px 0 4px!important}
  body.ns-mobile-clean .ns-step-actions #wizardProgress{grid-column:1/-1!important;grid-row:1!important;margin:0!important;text-align:center!important;font-size:13px!important}
  body.ns-mobile-clean .ns-step-actions #wizardBack,
  body.ns-mobile-clean .ns-step-actions #wizardNext{width:100%!important;min-width:0!important;grid-row:2!important}
  body.ns-mobile-clean .actions{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;padding:14px!important}
  body.ns-mobile-clean .actions>.right{display:grid!important;grid-template-columns:1fr!important;width:100%!important;gap:8px!important}
  body.ns-mobile-clean .actions button,
  body.ns-mobile-clean .actions .primary,
  body.ns-mobile-clean .actions .secondary,
  body.ns-mobile-clean .actions .ghost{width:100%!important}
  body.ns-mobile-clean .actions .save-state,
  body.ns-mobile-clean .publish-note{text-align:left!important;max-width:none!important;margin:0!important}
  body.ns-mobile-clean .preview-card{max-width:100%!important;border-radius:12px!important}
  body.ns-mobile-clean .preview-image{min-height:0!important;aspect-ratio:4/3!important}
  body.ns-mobile-clean .preview-body{padding:15px!important}

  body.ns-mobile-clean .mine-intro{padding-top:0!important}
  body.ns-mobile-clean .mine-note{width:100%!important;padding:13px!important;border-radius:11px!important;font-size:13px!important}
  body.ns-mobile-clean #accountPanel,
  body.ns-mobile-clean .account-panel,
  body.ns-mobile-clean .account-box{width:100%!important;max-width:100%!important;box-sizing:border-box!important}
  body.ns-mobile-clean .account-box{padding:16px!important;border-radius:12px!important}
  body.ns-mobile-clean .account-row,
  body.ns-mobile-clean .forgot-line{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  body.ns-mobile-clean .account-row button,
  body.ns-mobile-clean .forgot-line button{width:100%!important}

  body.ns-mobile-clean .market-hero{padding-top:24px!important;padding-bottom:20px!important}
  body.ns-mobile-clean .market-hero .hero-grid{gap:14px!important}
  body.ns-mobile-clean .ns-listing-filters{display:flex!important;flex-wrap:wrap!important;gap:7px!important}
  body.ns-mobile-clean .ns-listing-filters>*{min-height:42px!important}

  body.ns-mobile-clean footer .foot{padding:18px 0 20px!important;min-height:0!important;gap:7px!important;align-items:flex-start!important;flex-direction:column!important;font-size:13px!important}

  body.ns-mobile-clean #nsAppV02Card{display:none!important}
  body.ns-mobile-clean #nsAppV02Sheet{padding:10px!important;padding-bottom:max(10px,env(safe-area-inset-bottom))!important;z-index:2147483647!important}
  body.ns-mobile-clean #nsAppV02Sheet .nsAppV02Panel{width:100%!important;max-width:100%!important;max-height:calc(100dvh - 20px)!important;overflow:auto!important;box-sizing:border-box!important}

  body.ns-mobile-clean button:focus-visible,
  body.ns-mobile-clean a:focus-visible,
  body.ns-mobile-clean summary:focus-visible{outline:3px solid #2f7f70!important;outline-offset:2px!important}
}
@media (max-width:370px){
  body.ns-mobile-clean #nsMobileDrawer nav{grid-template-columns:1fr!important}
  body.ns-mobile-clean #nsMobileDrawer a.ns-mobile-create{grid-column:auto!important}
  body.ns-mobile-clean #nsMobileTools button{padding:0 9px!important;font-size:12px!important}
  body.ns-mobile-clean .type-grid{grid-template-columns:1fr!important}
}
@media (min-width:761px){#nsMobileTools,#nsMobileDrawer,#nsMobileDock{display:none!important}}
@media print{#nsMobileTools,#nsMobileDrawer,#nsMobileDock{display:none!important}}

/* NorgesSjekk mobil Marked FIX5. Only the mobile market landing page. */
#nsMobileCategories,#nsMobileBusiness,#nsMobileShare{display:none}
@media screen and (max-width:760px){
 body.ns-mobile-market-pro main>.wrap{width:calc(100% - 24px)!important;padding-left:0!important;padding-right:0!important}
 body.ns-mobile-market-pro .market-hero{padding:18px 0 4px!important}
 body.ns-mobile-market-pro .hero-grid{padding:0!important}
 body.ns-mobile-market-pro .hero-note{display:none!important}
 body.ns-mobile-market-pro .market-hero h1{font-size:27px!important;line-height:1.16!important}
 body.ns-mobile-market-pro .market-hero .lead{font-size:15px!important}
 body.ns-mobile-market-pro .market-search-card{padding:14px!important;margin-bottom:10px!important}
 body.ns-mobile-market-pro #nsMobileCategories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0 0 14px}
 body.ns-mobile-market-pro #nsMobileCategories a{display:flex;align-items:center;justify-content:center;min-height:46px;border:1px solid #cadcd4;border-radius:10px;background:#fff;color:#173c36;font-size:14px;font-weight:750;text-decoration:none}
 body.ns-mobile-market-pro .section-title{gap:8px;flex-wrap:wrap}
 body.ns-mobile-market-pro #spotTrack .carousel-page,
 body.ns-mobile-market-pro #premiumTrack .carousel-page,
 body.ns-mobile-market-pro #grid{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 body.ns-mobile-market-pro #results .card{display:grid!important;grid-template-columns:minmax(0,40%) minmax(0,1fr)!important;align-items:stretch!important;border-radius:13px!important;box-shadow:none!important;min-width:0!important}
 body.ns-mobile-market-pro #results .card .photo{width:100%!important;min-width:0!important;min-height:140px!important;height:100%!important;aspect-ratio:auto!important;border-radius:0!important;background:#edf1f0!important;overflow:hidden!important}
 body.ns-mobile-market-pro #results .card .card-photo-link{width:100%!important;height:100%!important;min-height:140px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:5px!important}
 body.ns-mobile-market-pro #results .card .photo img{width:100%!important;height:100%!important;max-height:200px!important;object-fit:contain!important;object-position:center!important;transform:none!important}
 body.ns-mobile-market-pro #results .card .card-body{padding:12px!important;min-width:0!important}
 body.ns-mobile-market-pro #results .card h3{font-size:15px!important;line-height:1.3!important;margin:2px 0 7px!important;overflow-wrap:anywhere!important}
 body.ns-mobile-market-pro #results .card .price{font-size:20px!important;line-height:1.2!important;margin:0 0 7px!important}
 body.ns-mobile-market-pro #results .card .meta{font-size:12px!important;line-height:1.45!important;gap:2px 8px!important;margin:0 0 5px!important}
 body.ns-mobile-market-pro #results .card .kind{font-size:10px!important;letter-spacing:1px!important}
 body.ns-mobile-market-pro #results .card .verified{font-size:11px!important;line-height:1.4!important;margin:5px 0 0!important}
 body.ns-mobile-market-pro #results .card .freshness-badge{display:none!important}
 body.ns-mobile-market-pro #results .card .image-count{right:5px!important;bottom:6px!important;font-size:10px!important;padding:3px 5px!important}
 body.ns-mobile-market-pro #results .card .card-actions{flex-wrap:wrap!important;gap:5px!important}
 body.ns-mobile-market-pro .carousel-foot{gap:10px;flex-wrap:wrap}
 body.ns-mobile-market-pro .premium-section{padding:12px!important}
 body.ns-mobile-market-pro [data-ns-qr-marked],
 body.ns-mobile-market-pro .market-seller-card,
 body.ns-mobile-market-pro .v19-dealer-strip{display:none!important}
 body.ns-mobile-market-pro #nsMobileBusiness{display:grid;grid-template-columns:1fr;gap:8px;margin:20px auto 0;padding:16px!important;background:#eaf3ef;border:1px solid #d4e4db;border-radius:13px}
 body.ns-mobile-market-pro #nsMobileBusiness h2{font-size:17px;margin:0 0 4px}
 body.ns-mobile-market-pro #nsMobileBusiness a{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:10px 12px;border:1px solid #d3e0d9;border-radius:9px;background:white;text-decoration:none;font-size:14px;font-weight:700;color:#173c36}
 body.ns-mobile-market-pro #nsMobileShare{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px auto}
 body.ns-mobile-market-pro #nsMobileShare button{min-height:44px;padding:10px 14px;border:1px solid #ccdad3;border-radius:9px;background:white;color:#173c36;font:700 14px system-ui;cursor:pointer}
 body.ns-mobile-market-pro #nsMobileShare p{margin:0;font-size:13px;color:#536860;overflow-wrap:anywhere}
 body.ns-mobile-market-pro footer .foot{width:calc(100% - 24px)!important;padding:16px 0 24px!important;font-size:12px!important;line-height:1.8!important}
 body.ns-mobile-market-pro footer .foot span{overflow-wrap:anywhere}
 body.ns-mobile-market-pro #nsMobileDock a{font-size:13px;min-height:48px}
 body.ns-mobile-market-pro{padding-bottom:calc(82px + env(safe-area-inset-bottom))!important}
 body.ns-mobile-market-pro #results .card .photo button{min-width:32px!important;min-height:44px!important}
 body.ns-mobile-market-pro #nsMobileDrawer{max-height:calc(100dvh - 155px);overflow-y:auto}
}
@media screen and (max-width:350px){
 body.ns-mobile-market-pro #results .card{grid-template-columns:minmax(0,38%) minmax(0,1fr)!important}
 body.ns-mobile-market-pro #results .card .card-body{padding:9px!important}
 body.ns-mobile-market-pro #results .card h3{font-size:14px!important}
 body.ns-mobile-market-pro #results .card .price{font-size:18px!important}
 body.ns-mobile-market-pro #nsMobileDock a{font-size:12px}
}

/* NorgesSjekk FIX6: only arrows over mobile market card images. */
@media screen and (max-width:760px){
 body.ns-mobile-market-pro #results .card .photo .image-count,
 body.ns-mobile-market-pro #results .card .photo .card-photo-position,
 body.ns-mobile-market-pro #results .card .photo .ns-market-image-text,
 body.ns-mobile-market-pro #results .card .photo .freshness-badge{display:none!important}
 body.ns-mobile-market-pro #results .card .photo .card-photo-nav,
 body.ns-mobile-market-pro #results .card .photo .card-photo-nav:hover,
 body.ns-mobile-market-pro #results .card .photo .card-photo-nav:focus-visible{
  background:transparent!important;border:0!important;box-shadow:none!important;
  color:#fff!important;text-shadow:0 1px 3px #172a32,0 -1px 2px #172a32,1px 0 2px #172a32,-1px 0 2px #172a32!important;
  font-size:32px!important;font-weight:600!important;line-height:1!important;
  opacity:1!important;width:34px!important;height:44px!important;padding:0!important;
 }
 body.ns-mobile-market-pro #results .card .photo .card-photo-prev{left:2px!important}
 body.ns-mobile-market-pro #results .card .photo .card-photo-next{right:2px!important}
}