/* EvAtlas Beta 2.8 — visual-only, cross-page design tokens and category SVGs.
   No app / Supabase / map JavaScript changes. */
:root{--ev28-navy:#193e66;--ev28-ink:#1b2c42;--ev28-muted:#65768a;--ev28-line:#e2e9f0;--ev28-surface:#f7f9fc;--ev28-radius:16px}
/* Polished outline icons instead of operating-system-dependent text glyphs. */
#evLanding .ev26Categories .ev28CatIcon{width:21px;height:21px;flex:none;display:block;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;color:#344d6d;transition:color .18s ease}
#evLanding .ev26Categories button.selected .ev28CatIcon{color:#255fa6}
#evLanding .ev26Categories button{gap:8px}
/* Shared typography, colors and surfaces across existing screens: no content/layout rewrite. */
.evStandalonePage,.evAgentsPage,.evDialog,.overlay,.filterPanel{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;color:var(--ev28-ink)}
.evStandalonePage,.evAgentsPage{background:linear-gradient(135deg,#f9fbfd,#eef3f8 68%,#f9fbfd)}
.evStandalonePage .evPageTop,.evAgentsPage .evAgentNav{background:#f7f9fcee;border-bottom:1px solid var(--ev28-line)}
.evPageBrand,.evPageBrand span,.evAgentBrand,.evAgentBrand span{color:var(--ev28-ink)}
.evPageTitle h1,.agentsIntro h1,.evPageTitle>span,.agentEyebrow,.evAccountEyebrow,.evMgrEyebrow{color:var(--ev28-ink)}
.evPageTitle p,.agentsIntro>p{color:var(--ev28-muted)}
.evPageBack,.evAgentExit{background:#fff;border:1px solid #d5e0e9;color:var(--ev28-navy)}
.evStandalonePage :is(.evPageNav,.evPageBody,.evMortgageCalc,.evMortgageResults,.evMgrStat),
.evAgentsPage :is(.agentCard,.agentProfile,.agentDetails){border-color:var(--ev28-line)}
.evStandalonePage :is(input,select,textarea),.evAgentsPage :is(input,select,textarea){accent-color:var(--ev28-navy)}
.evStandalonePage :is(input,select,textarea):focus-visible,.evAgentsPage :is(input,select,textarea):focus-visible{outline-color:#779db9}
/* Restrict overrides to the application's existing primary controls. */
.evStandalonePage :is(.evMgrNew,.evNewListing,.evMortButton,.evMortgageCalc button[type=submit]),
.evAgentsPage :is(.agentPrimary,.agentsIntro form button){background:var(--ev28-navy);border-color:var(--ev28-navy);color:white}
.evStandalonePage :is(.evPageBack,.evProfileLink,.evMgrFilter),.evAgentsPage .evAgentExit{color:var(--ev28-navy);border-color:#d5e0e9}
.evStandalonePage .evAccountWelcome,.evStandalonePage .evProfileHero,.evMortgageIntro{background:linear-gradient(120deg,#edf3f8,#fafcfe);border-color:#dde6ee}
.evAccountAvatar{background:linear-gradient(145deg,#3e6383,#193e66)}
.evStandalonePage .evPageNav button.active,.evStandalonePage .evPageNav button[aria-current=page]{background:#e9f0f7;color:var(--ev28-navy)}
.evAgentsPage .agentCard,.evAgentsPage .agentProfile,.evStandalonePage .evPageNav{box-shadow:0 7px 24px #203b560d}
/* Mobile hero: reveal more of the existing photograph without compromising text contrast. */
@media(max-width:620px){
 #evLanding .ev26HeroScene{background-position:65% center;filter:saturate(1.04) contrast(1.02)}
 #evLanding .ev26HeroShade{background:linear-gradient(180deg,rgba(251,253,255,.93) 0%,rgba(251,253,255,.84) 26%,rgba(251,253,255,.61) 54%,rgba(251,253,255,.46) 100%)}
 #evLanding[data-time-theme=evening] .ev26HeroShade{background:linear-gradient(180deg,rgba(255,250,252,.9),rgba(255,245,241,.75) 36%,rgba(255,240,229,.46) 100%)}
 #evLanding .ev26HeroInner{padding-top:34px}
 #evLanding .ev26SearchBlock{filter:drop-shadow(0 7px 17px #243f5410)}
 #evLanding .ev26Categories .ev28CatIcon{width:19px;height:19px}
 #evLanding .ev26Categories button{gap:5px}
}
@media(prefers-reduced-motion:reduce){#evLanding .ev26Categories .ev28CatIcon{transition:none}}


/* Beta 3.0 — MOBILE BACKGROUND ONLY. No changes to layout, buttons, icons, or text.
   Bridge viewed straight on, not the former rooftop terrace photograph. */
@media(max-width:620px){
 #evLanding .ev26HeroScene,
 #evLanding[data-time-theme="evening"] .ev26HeroScene{
  background-image:url('/ev30-mobile-bosphorus.webp');
  background-size:cover;
  background-position:center center;
 }
 #evLanding .ev26HeroShade{
  background:linear-gradient(180deg,rgba(251,253,255,.93) 0%,rgba(251,253,255,.86) 24%,rgba(251,253,255,.53) 44%,rgba(251,253,255,.27) 70%,rgba(251,253,255,.48) 100%);
 }
 #evLanding[data-time-theme="evening"] .ev26HeroScene{filter:sepia(.14) saturate(.92) hue-rotate(-9deg)}
 #evLanding[data-time-theme="evening"] .ev26HeroShade{
  background:linear-gradient(180deg,rgba(255,249,251,.92) 0%,rgba(255,247,249,.82) 24%,rgba(255,244,239,.48) 44%,rgba(255,241,236,.26) 70%,rgba(255,243,240,.47) 100%);
 }
}

/* Beta 3.2: approved mobile-only scenic alignment. No layout or UI controls change.
   Use full-width image so both Bosphorus bridge towers remain visible on phones. */
@media(max-width:620px){
 #evLanding .ev26HeroScene,
 #evLanding[data-time-theme="evening"] .ev26HeroScene{
   background-image:url('/ev32-mobile-bosphorus.webp');
   background-size:100% 100%;
   background-position:center center;
   filter:none;
 }
 #evLanding .ev26HeroShade{
   background:linear-gradient(180deg,rgba(250,253,255,.94) 0%,rgba(250,253,255,.85) 25%,rgba(250,253,255,.58) 45%,rgba(250,253,255,.20) 64%,rgba(241,247,253,.63) 100%);
 }
 #evLanding[data-time-theme="evening"] .ev26HeroShade{
   background:linear-gradient(180deg,rgba(255,250,252,.94) 0%,rgba(255,250,251,.84) 25%,rgba(255,246,242,.58) 45%,rgba(255,246,242,.22) 64%,rgba(249,244,245,.62) 100%);
 }
}

/* Beta 3.3 — native HTML/CSS mobile bridge framing; no screenshot composites, blur, or image edits.
   Keep search form structure/controls/sizing and all desktop rules unchanged. */
@media(max-width:620px){
  #evLanding .ev26SearchBlock{margin-top:80px;}
  #evLanding .ev26HeroScene,
  #evLanding[data-time-theme="evening"] .ev26HeroScene{
    background-image:url('/ev32-mobile-bosphorus.webp');
    background-size:100% calc(100% - 80px);
    background-position:center 80px;
    -webkit-mask-image:linear-gradient(to bottom,transparent 0%,transparent 12%,#000 32%,#000 100%);
    mask-image:linear-gradient(to bottom,transparent 0%,transparent 12%,#000 32%,#000 100%);
    filter:none;
  }
  #evLanding .ev26HeroShade{
    background:linear-gradient(180deg,
      rgba(246,250,255,.77) 0%,
      rgba(246,250,255,.61) 34%,
      rgba(246,250,255,.08) 49%,
      rgba(235,245,253,.12) 58%,
      rgba(236,245,253,.86) 90%,
      rgba(236,245,253,.95) 100%);
    backdrop-filter:none;
  }
  #evLanding[data-time-theme="evening"] .ev26HeroShade{
    background:linear-gradient(180deg,
      rgba(255,249,250,.77) 0%,
      rgba(255,249,250,.61) 34%,
      rgba(255,247,242,.08) 49%,
      rgba(245,241,241,.12) 58%,
      rgba(244,241,242,.86) 90%,
      rgba(244,241,242,.95) 100%);
    backdrop-filter:none;
  }
}

/* Beta 3.4: mobile-specific vertical spacing only. Show the bridge in its original sharp
   photograph in the space above the search panel. No filtering or blur. */
@media (max-width:620px) {
  #evLanding .ev26SearchBlock { margin-top: 132px; }
  #evLanding .ev26HeroScene,
  #evLanding[data-time-theme="evening"] .ev26HeroScene {
    background-image: url('/ev32-mobile-bosphorus.webp');
    background-size: 100% calc(100% - 80px);
    background-position: center 80px;
    -webkit-mask-image: none;
    mask-image: none;
    filter: none;
  }
  #evLanding .ev26HeroShade {
    background: linear-gradient(180deg,
      rgba(246,250,255,.94) 0%,
      rgba(246,250,255,.88) 26%,
      rgba(246,250,255,.10) 44%,
      rgba(246,250,255,.08) 58%,
      rgba(236,245,253,.78) 86%,
      rgba(236,245,253,.94) 100%);
    backdrop-filter: none;
  }
}

/* Beta 3.5: DAYLIGHT ONLY, MOBILE ONLY. The evening image, visual settings,
   search form, icons, typography, page structure and app logic remain unchanged.
   Natural image aspect ratio prevents stretching and blur. */
@media (max-width:620px) {
  #evLanding:not([data-time-theme="evening"]) .ev26Hero { background-color:#e9f5fd; }
  #evLanding:not([data-time-theme="evening"]) .ev26HeroScene {
    background-image:url('/ev35-mobile-day.webp');
    background-size:100% auto;
    background-position:center -18px;
    background-repeat:no-repeat;
    filter:none;
    -webkit-mask-image:none;
    mask-image:none;
  }
  #evLanding:not([data-time-theme="evening"]) .ev26HeroShade {
    background:linear-gradient(180deg,
      rgba(245,250,255,.67) 0%,
      rgba(245,250,255,.47) 24%,
      rgba(245,250,255,.13) 42%,
      rgba(245,250,255,.04) 61%,
      rgba(236,245,253,.52) 85%,
      rgba(236,245,253,.93) 100%);
    backdrop-filter:none;
  }
}

/* Beta 3.6 — MOBILE EVENING SCENE ONLY. Daytime Beta 3.5 image and all app components stay untouched.
   This is a stand-alone photographic background behind the real HTML inputs/buttons, never a screenshot. */
@media(max-width:620px){
  #evLanding[data-time-theme="evening"] .ev26Nav,
  #evLanding[data-time-theme="evening"] .landingNav.ev26Nav { background:#172f53!important; box-shadow:none!important; }
  #evLanding[data-time-theme="evening"] .ev26Brand,
  #evLanding[data-time-theme="evening"] .ev26Links button,
  #evLanding[data-time-theme="evening"] .ev26NavRight .navAccount { color:#fff!important; }
  #evLanding[data-time-theme="evening"] .ev26Join { background:#16598c;color:white;border-color:#16598c; }
  #evLanding[data-time-theme="evening"] .ev26Hero { background:#172e51; }
  #evLanding[data-time-theme="evening"] .ev26HeroScene {
    background-image:url('/ev36-mobile-evening.webp');
    background-size:100% auto;
    background-position:center -22px;
    background-repeat:no-repeat;
    filter:none;
    -webkit-mask-image:none;mask-image:none;
  }
  #evLanding[data-time-theme="evening"] .ev26HeroShade {
    background:linear-gradient(180deg,
      rgba(16,35,68,.19) 0%,
      rgba(16,35,68,.12) 34%,
      rgba(16,35,68,.01) 50%,
      rgba(235,242,250,.12) 69%,
      rgba(236,243,252,.94) 100%);
    backdrop-filter:none;
  }
  #evLanding[data-time-theme="evening"] .ev26Eyebrow,
  #evLanding[data-time-theme="evening"] .ev26Hero h1,
  #evLanding[data-time-theme="evening"] .ev26Sub {color:#fff;}
  #evLanding[data-time-theme="evening"] .ev26TrustLinks button {color:#203850;}
}

/* Beta 3.7: approved seamless, crisp day/night mobile hero.
   Existing real HTML controls and their responsive positions are untouched.
   Scenic files are independent photos; no screenshot collage/blur/filter. */
@media (max-width:620px) {
  #evLanding:not([data-time-theme="evening"]) .landingNav.ev26Nav {
    background:linear-gradient(180deg,#90c9f5,#b3daf8)!important;
    box-shadow:none!important;
  }
  #evLanding:not([data-time-theme="evening"]) .ev26Hero {background-color:#add8f6!important;}
  #evLanding:not([data-time-theme="evening"]) .ev26HeroScene {
    background-image:url('/ev35-mobile-day.webp')!important;
    background-size:100% auto!important;
    background-position:center -36px!important;
    background-repeat:no-repeat!important;
    filter:none!important;
  }
  #evLanding:not([data-time-theme="evening"]) .ev26HeroShade {
    background:linear-gradient(180deg,rgba(172,219,249,.15) 0%,rgba(201,232,252,.10) 38%,rgba(235,244,253,.05) 59%,rgba(240,247,255,.68) 92%,rgba(240,247,255,.96) 100%)!important;
    backdrop-filter:none!important;
  }
  #evLanding[data-time-theme="evening"] .landingNav.ev26Nav {
    background:linear-gradient(180deg,#101f42,#152b50)!important;
    box-shadow:none!important;
  }
  #evLanding[data-time-theme="evening"] .ev26Hero {background-color:#13264a!important;}
  #evLanding[data-time-theme="evening"] .ev26HeroScene {
    background-image:url('/ev36-mobile-evening.webp')!important;
    background-size:100% auto!important;
    background-position:center -35px!important;
    background-repeat:no-repeat!important;
    filter:none!important;
  }
  #evLanding[data-time-theme="evening"] .ev26HeroShade {
    background:linear-gradient(180deg,rgba(12,26,58,.10) 0%,rgba(19,36,74,.06) 48%,rgba(229,239,252,.16) 75%,rgba(237,244,254,.96) 100%)!important;
    backdrop-filter:none!important;
  }
}

/* Beta 3.8 — soften ONLY the mobile navbar-to-hero sky join.
   All photos, their positions, icons, buttons and functional HTML unchanged.
   This overlays a transparent color gradient, never blurs/scales the image. */
@media (max-width:620px) {
  #evLanding:not([data-time-theme="evening"]) .landingNav.ev26Nav {
    background:linear-gradient(180deg,#90c9f5 0%,#acd7f7 56%,#b5ddfa 100%)!important;
    box-shadow:none!important;
  }
  #evLanding:not([data-time-theme="evening"]) .ev26HeroShade {
    background:
      linear-gradient(180deg,
        rgba(181,221,250,1) 0%,
        rgba(181,221,250,.92) 6%,
        rgba(181,221,250,.63) 16%,
        rgba(181,221,250,.22) 29%,
        rgba(181,221,250,0) 43%),
      linear-gradient(180deg,
        rgba(172,219,249,.10) 0%,rgba(201,232,252,.06) 38%,
        rgba(235,244,253,.05) 59%,rgba(240,247,255,.68) 92%,
        rgba(240,247,255,.96) 100%)!important;
  }
  #evLanding[data-time-theme="evening"] .landingNav.ev26Nav {
    background:linear-gradient(180deg,#101f42 0%,#14274b 58%,#182c50 100%)!important;
    box-shadow:none!important;
  }
  #evLanding[data-time-theme="evening"] .ev26HeroShade {
    background:
      linear-gradient(180deg,
        rgba(24,44,80,1) 0%,
        rgba(24,44,80,.90) 7%,
        rgba(24,44,80,.61) 19%,
        rgba(24,44,80,.20) 34%,
        rgba(24,44,80,0) 47%),
      linear-gradient(180deg,
        rgba(12,26,58,.08) 0%,rgba(19,36,74,.05) 48%,
        rgba(229,239,252,.16) 75%,rgba(237,244,254,.96) 100%)!important;
  }
}
