/* EvAtlas Beta 2.2.5 — approved mobile design, isolated from desktop.
   All UI/label/chart/nav components are live HTML/CSS/SVG.
   Only the housing photograph and photo-only apartment asset are raster. */
@media (max-width:800px) {
  .evLanding {
    position:relative;
    isolation:isolate;
    display:block;
    background:linear-gradient(180deg,#e7f2ff 0%,#eaf3ff 45%,#eaf3ff 100%);
    padding-bottom:calc(98px + env(safe-area-inset-bottom));
    overflow-x:hidden;
    overflow-y:auto;
  }
  /* One continuous, unbroken hero image behind wordmark, title and body. */
  .evLanding::before {
    content:"";
    position:absolute;
    z-index:0;
    top:0;left:0;right:0;
    height:358px;
    pointer-events:none;
    background-image:linear-gradient(90deg,rgba(237,246,255,.16) 0%,rgba(237,246,255,.04) 48%,transparent 78%),url('/evatlas-bogaz-hero-extended.webp');
    background-size:100% 100%, cover;
    background-repeat:no-repeat;
    background-position:center,center bottom;
  }
  .landingNav {
    position:relative;
    z-index:3;
    display:flex;
    align-items:center;
    justify-content:space-between;
    height:68px;
    min-height:68px;
    margin:0;
    padding:12px 16px 7px;
    background:transparent !important;
    border:0;
  }
  .landingNav .landingLogo {
    font-size:clamp(26px,7.3vw,34px);
    line-height:1;
    letter-spacing:-1.5px;
    color:#0b1e3d;
    font-weight:900;
  }
  .landingNav .landingLogo span {color:#1659e4}
  .landingNav .landingLinks,.landingNav .navAccount{display:none !important}
  .mobileLandingActions {display:flex;gap:0;align-items:center}
  .mobileLandingActions button {
    display:grid;place-items:center;
    width:43px;height:43px;
    border:1px solid rgba(202,219,247,.82);
    border-radius:50%;
    font-size:24px;
    line-height:1;
    background:rgba(255,255,255,.93);
    color:#11254d;
    box-shadow:0 3px 12px rgba(38,85,159,.08);
  }
  .landingContent {
    position:relative;
    z-index:1;
    display:flex;
    flex-direction:column;
    width:100%;
    min-height:0;
    margin:0;
    padding:0 0 20px;
    overflow:visible;
    isolation:auto;
    text-align:left;
    background:transparent;
  }
  .evMobileHero {
    display:flex;
    flex-direction:column;
    position:relative;
    isolation:auto;
    flex:0 0 auto;
    height:260px;
    margin:0;
    padding:8px 16px 0;
    overflow:visible;
    background:transparent !important;
  }
  .evMobileHero .mobileVillaArt {display:none !important}
  .evMobileHero .heroLabel {
    position:relative;
    z-index:2;
    font-size:clamp(9.5px,2.65vw,11px);
    font-weight:850;
    line-height:1.35;
    letter-spacing:2.1px;
    color:#1448ae;
    margin:0 0 13px;
    padding:0;
  }
  .evMobileHero h1 {
    position:relative;
    z-index:2;
    max-width:100%;
    font-size:clamp(28px,7.85vw,35px);
    line-height:1.08;
    letter-spacing:-1.35px;
    color:#0e2043;
    font-weight:900;
    text-shadow:none;
    margin:0 0 13px;
    text-wrap:normal;
  }
  .evMobileHero h1 em{display:block;font-style:normal;color:#125beb}
  .evMobileHero p {
    position:relative;
    z-index:2;
    max-width:min(60%,245px);
    font-size:clamp(12px,3.35vw,14px);
    font-weight:500;
    line-height:1.48;
    margin:0;
    color:#152747;
    text-shadow:0 1px 9px rgba(243,247,255,.7);
    overflow-wrap:break-word;
  }
  .landingSearch {
    order:1;
    position:relative;
    z-index:5;
    display:flex;
    align-items:center;
    gap:8px;
    flex:none;
    align-self:stretch;
    margin:-31px 14px 17px;
    padding:6px 7px 6px 13px;
    border:1px solid #f6fbff;
    border-radius:32px;
    min-height:58px;
    background:#fff;
    box-shadow:0 7px 23px rgba(37,87,177,.16);
  }
  .landingSearch>span {flex:0 0 auto;font-size:25px;line-height:1;color:#152953}
  .landingSearch input {
    flex:1 1 0;
    width:0;
    min-width:0;
    border:0;
    outline:0;
    background:transparent;
    padding:8px 0;
    font-size:clamp(10px,2.95vw,13px);
    font-weight:450;
    color:#1d2c4c;
  }
  .landingSearch input::placeholder {color:#677183;opacity:1}
  .landingSearch button {
    flex:0 0 auto;
    min-height:43px;
    padding:9px 12px;
    border:0;
    border-radius:27px;
    color:white;
    background:linear-gradient(145deg,#1172ff,#1142da);
    font-weight:800;
    font-size:clamp(10.5px,2.9vw,13.5px);
    letter-spacing:-.2px;
    box-shadow:0 4px 10px rgba(33,92,197,.17);
    white-space:nowrap;
  }
  .landingChoices {
    order:2;
    position:relative;
    z-index:2;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    margin:0 14px 17px;
  }
  .landingChoices button {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    min-height:78px;
    min-width:0;
    padding:8px 2px;
    font-size:clamp(12px,3.45vw,15px);
    font-weight:800;
    color:#0e2247;
    border-radius:20px;
    border:1px solid #dae7f9;
    background:linear-gradient(135deg,#fff,#e6f1ff);
    box-shadow:0 5px 14px rgba(43,96,172,.12);
  }
  .landingChoices button.chosen {
    border-color:#1c68ed;
    background:linear-gradient(145deg,#187bff,#0643d8);
    color:white;
  }
  .landingChoices .choiceIcon,
  .landingChoices .choiceIcon svg {display:block}
  .landingChoices .choiceIcon svg {width:27px;height:27px;stroke-width:1.9}
  .landingContent>.nearby {display:none !important}
  /* One feature card at a time. Other slides are revealed with actual horizontal swipe. */
  .evFeatureCarousel {
    order:3;
    display:block;
    width:100%;
    min-width:0;
    padding:0 14px;
    overflow:hidden;
  }
  .evFeatureTrack {
    display:flex;
    overflow-x:auto;
    overflow-y:hidden;
    gap:14px;
    border-radius:23px;
    scroll-snap-type:x mandatory;
    scroll-behavior:smooth;
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    touch-action:pan-x pan-y;
  }
  .evFeatureTrack::-webkit-scrollbar {display:none}
  .evFeatureSlide {
    flex:0 0 100%;
    position:relative;
    isolation:isolate;
    overflow:hidden;
    height:170px;
    border:2px solid #fff;
    border-radius:24px;
    scroll-snap-align:start;
    background:linear-gradient(118deg,#fff 0%,#f1f7ff 43%,#cbe3ff 100%);
    box-shadow:0 9px 22px rgba(21,70,153,.10);
  }
  .evFeatureText {
    position:relative;
    z-index:4;
    width:56%;
    height:100%;
    display:flex;
    align-items:flex-start;
    flex-direction:column;
    padding:14px 0 13px 13px;
    gap:0;
    color:#10224b;
    pointer-events:auto;
  }
  .evFeatureText h2 {
    font-size:clamp(23px,6.9vw,31px);
    line-height:1.06;
    letter-spacing:-.9px;
    margin:0 0 3px;
    font-weight:900;
    color:#0b1c3a;
  }
  .evFeatureText h2 sup {font-size:11px;letter-spacing:0;vertical-align:super}
  .evFeatureSubtitle {
    margin:0;
    font-size:clamp(11px,3.1vw,14px);
    color:#233450;
    line-height:1.28;
  }
  .evFeatureDisclaimer {
    margin:14px 0 0;
    font-size:clamp(10px,2.95vw,12px);
    line-height:1.4;
    color:#56637d;
  }
  .evFeatureText button {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    max-width:100%;
    margin-top:auto;
    padding:8px 10px;
    border:0;
    border-radius:22px;
    background:linear-gradient(110deg,#d8e9ff,#cde0ff);
    color:#0955d7;
    white-space:nowrap;
    font-size:clamp(10px,2.9vw,12px);
    font-weight:850;
  }
  .evFeatureText button>span {font-size:18px;line-height:.9}
  .evFeatureArt {position:absolute;inset:0;pointer-events:none;background:none}
  /* Independent photo, SVG price curve, and HTML price bubble. No screenshot/card as an image. */
  .evEderArt::before {
    content:"";
    position:absolute;
    z-index:0;
    right:-3px;
    bottom:-1px;
    width:45%;
    height:80%;
    background-image:url('/evatlas-eder-building.webp');
    background-position:75% bottom;
    background-size:cover;
    background-repeat:no-repeat;
    -webkit-mask-image:linear-gradient(to right,transparent 0%,#000 30%),linear-gradient(to bottom,transparent 0%,#000 18%);
    -webkit-mask-composite:source-in;
    mask-image:linear-gradient(to right,transparent 0%,#000 30%);
  }
  .evEderArt > svg {
    position:absolute;
    z-index:1;
    inset:0;
    width:100%;
    height:100%;
    filter:drop-shadow(0 1px 2px #4292f347);
  }
  .evChartPrice {
    position:absolute;
    z-index:3;
    right:8px;
    top:8px;
    display:flex;
    align-items:center;
    gap:5px;
    max-width:58%;
    padding:7px 9px;
    background:#fff;
    border-radius:999px;
    color:#10244f;
    font-size:clamp(10px,2.9vw,12.5px);
    font-weight:850;
    white-space:nowrap;
    box-shadow:0 4px 16px rgba(18,58,125,.12);
  }
  .evChartPrice::after {
    content:"";
    position:absolute;
    bottom:-7px;
    left:35%;
    width:0;height:0;
    border-left:7px solid transparent;
    border-right:7px solid transparent;
    border-top:8px solid #fff;
  }
  .evChartPrice svg {flex:0 0 auto;width:18px;height:18px;stroke:#1162e8}
  /* Keep property photos on the right, never under the descriptive copy. */
  .evRentArt,.evDistrictArt {inset:0 0 0 47%;background-position:center,right center;background-size:100% 100%,cover;background-repeat:no-repeat}
  .evRentArt {background-image:linear-gradient(90deg,#f3f8ff 0%,rgba(243,248,255,.48) 32%,transparent 100%),url('/evatlas-rent.webp')}
  .evDistrictArt {background-image:linear-gradient(90deg,#f3f8ff 0%,rgba(243,248,255,.48) 32%,transparent 100%),url('/evatlas-neighborhood.webp')}
  .evInfoPill {position:absolute;top:9px;right:8px;background:#fff;padding:7px 9px;border-radius:999px;font-size:11px;color:#1555c4;font-weight:800}
  /* Stronger selectors defeat legacy generic .landingContent p rules. */
  .landingContent .evFeatureSubtitle {margin:0 !important;max-width:100%;}
  .landingContent .evFeatureDisclaimer {margin:9px 0 0 !important;max-width:100%;}
  .landingContent .evFeatureText button {margin-top:auto !important;}
  .evEderArt .evChartPrice svg {
    position:static !important;
    inset:auto !important;
    width:18px !important;
    height:18px !important;
    display:block;
    filter:none !important;
    flex:0 0 18px;
  }
  .evFeatureDots {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    margin:13px 0 8px;
  }
  .evFeatureDots button,.evFeatureDots button.isActive {
    width:9px;height:9px;
    padding:0;border:0;
    border-radius:50%;
    background:#bad0ef;
    transition:background-color .16s;
  }
  .evFeatureDots button.isActive {background:#125bea}
  .landingFooter {display:none}
  .evMobileBottomNav {
    position:fixed;
    z-index:3101;
    display:flex;
    align-items:center;
    justify-content:space-between;
    left:8px;right:8px;
    bottom:calc(7px + env(safe-area-inset-bottom));
    width:auto;
    min-height:72px;
    padding:7px 4px;
    border:1px solid #fff;
    border-radius:25px;
    background:#fff;
    box-shadow:0 7px 25px rgba(31,69,137,.14);
  }
  .evMobileBottomNav button {
    flex:1 1 20%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    min-width:0;
    padding:0 1px;
    border:0;
    background:none;
    color:#465470;
    font-weight:700;
    font-size:clamp(10px,2.7vw,12px);
    line-height:1.2;
  }
  .evMobileBottomNav .evBottomIcon {
    width:49px;height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#485674;
    background:transparent;
  }
  .evMobileBottomNav .evBottomIcon svg {width:26px;height:26px;display:block}
  .evMobileBottomNav button.evBottomActive {color:#125bea}
  .evMobileBottomNav button.evBottomActive .evBottomIcon {background:#dcebff;border-radius:999px;color:#125bea}
  .evMobileBottomNav button.evMobileAdd {color:#0e4dd3}
  .evMobileBottomNav button>span:last-child,
  .evMobileBottomNav button.evMobileAdd>span:last-child {
    display:block;
    width:100%;
    margin:0;
    padding:0;
    background:transparent;
    color:inherit;
    border:0;
    font-size:clamp(10px,2.7vw,12px) !important;
    font-weight:700;
    line-height:1.2 !important;
    white-space:nowrap;
    text-align:center;
  }
  .evMobileBottomNav button.evMobileAdd .evBottomIcon {
    background:linear-gradient(135deg,#1978ff,#0644de);
    color:white;
    border-radius:999px;
    width:53px;height:36px;
  }
  .evMobileMenu:not([hidden]) {display:flex}
  .evMobileMenu>div {background:#fff}
}
@media (max-width:360px) {
 .landingNav {height:62px;min-height:62px;padding-left:12px;padding-right:12px}
 .evMobileHero {padding-left:12px;padding-right:12px;height:254px}
 .evMobileHero .heroLabel {letter-spacing:1.3px;margin-bottom:11px}
 .evMobileHero h1 {font-size:clamp(26px,7.6vw,29px)}
 .evMobileHero p {max-width:62%;font-size:11.6px;line-height:1.36}
 .evLanding::before {height:346px}
 .landingSearch {margin-left:10px;margin-right:10px}
 .landingSearch button {padding:9px 8px;font-size:10px}
 .landingChoices {margin-left:10px;margin-right:10px;gap:6px}
 .evFeatureCarousel {padding:0 10px}
 .evFeatureText {padding-left:10px}
 .evFeatureText button {padding:7px;font-size:10px}
}
@media (prefers-reduced-motion:reduce) {
 .evFeatureTrack {scroll-behavior:auto}
}
