/* EvAtlas Beta 2.2.6 — approved mobile composition.
 * Photo files contain photography only. Typography, search, buttons, charts,
 * price balloon, carousel and navigation are real responsive DOM/SVG elements.
 * This file intentionally loads LAST and does not affect desktop widths. */
@media screen and (max-width:800px) {
  html,body {max-width:100%;overflow-x:hidden;}
  body:has(#evLanding:not(.isHidden)) > .top,
  body:has(#evLanding:not(.isHidden)) > .controls,
  body:has(#evLanding:not(.isHidden)) > .appWorkspace,
  body:has(#evLanding:not(.isHidden)) > .mobileMapToggle {display:none!important;}
  #evLanding.evLanding {
    display:block;position:fixed;inset:0;width:100%;height:100dvh;
    overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;
    background:#e9f3ff;isolation:isolate;z-index:3100;
    padding:0 0 calc(92px + env(safe-area-inset-bottom));
    scrollbar-width:none;
  }
  #evLanding.evLanding.isHidden {display:none!important;}
  #evLanding.evLanding::-webkit-scrollbar {display:none;}
  /* The same sky photograph spans BOTH wordmark and headline, no color seam. */
  #evLanding.evLanding::before {
    content:"";position:absolute;left:0;top:0;right:0;
    z-index:-1;pointer-events:none;height:clamp(325px,93vw,425px);
    background-image:linear-gradient(90deg,rgba(230,242,255,.09),transparent 74%),url('/evatlas-bogaz-hero-extended.webp');
    background-position:center,center top;
    background-size:100% 100%,100% 100%;background-repeat:no-repeat;
  }
  #evLanding .landingNav {
    position:relative;z-index:3;display:flex;align-items:center;
    justify-content:space-between;min-height:69px;height:69px;
    margin:0;padding:11px 16px 4px;border:0;background:transparent!important;
  }
  #evLanding .landingNav .landingLogo {
    margin:0;font-size:clamp(27px,7.35vw,34px);line-height:1;
    font-weight:900;color:#0b1d3e;letter-spacing:-1.6px;
  }
  #evLanding .landingNav .landingLogo span {color:#135be6;}
  #evLanding .landingNav .landingLinks,#evLanding .landingNav .navAccount {display:none!important;}
  #evLanding .mobileLandingActions {display:flex;align-items:center;}
  #evLanding .mobileLandingActions button {
    width:43px;height:43px;display:grid;place-items:center;
    background:#fffffff0;border:1px solid #eff5ff;border-radius:50%;
    color:#071f48;font-size:0;line-height:1;
    box-shadow:0 4px 14px rgba(26,74,133,.10);
  }
  #evLanding .mobileLandingActions button::before {
    content:"";display:block;width:20px;height:17px;
    background:linear-gradient(#112851,#112851) center 0/20px 2.5px no-repeat,
               linear-gradient(#112851,#112851) center 7px/20px 2.5px no-repeat,
               linear-gradient(#112851,#112851) center 14px/20px 2.5px no-repeat;
  }
  #evLanding .landingContent {
    position:relative;z-index:1;display:flex;flex-direction:column;
    width:100%;margin:0;padding:0 0 0;
    overflow:visible;min-height:0;background:transparent;text-align:left;
  }
  #evLanding .evMobileHero {
    display:flex;flex-direction:column;position:relative;
    height:clamp(238px,62.5vw,275px);flex:none;
    padding:10px 16px 0;margin:0;overflow:visible;background:transparent!important;
  }
  #evLanding .evMobileHero .mobileVillaArt {display:none!important;}
  #evLanding .evMobileHero .heroLabel {
    position:relative;z-index:2;margin:0 0 12px;
    font-size:clamp(9px,2.6vw,12px);font-weight:900;
    letter-spacing:clamp(1.2px,.49vw,2.2px);line-height:1.35;
    color:#184db2;white-space:nowrap;
  }
  #evLanding .evMobileHero h1 {
    position:relative;z-index:2;max-width:100%;
    font-size:clamp(28px,8vw,39px);line-height:1.04;
    letter-spacing:-1.45px;font-weight:900;color:#0a1e43;
    margin:0 0 13px;text-shadow:none;overflow:visible;text-wrap:initial;
  }
  #evLanding .evMobileHero h1 em {display:block;font-style:normal;color:#145deb;}
  #evLanding .evMobileHero p {
    position:relative;z-index:2;max-width:60%;margin:0;
    font-size:clamp(11.5px,3.22vw,14px);line-height:1.49;
    font-weight:500;color:#10264b;text-shadow:0 1px 9px #e6f0ff99;
    overflow-wrap:normal;word-break:normal;
  }
  /* The search floats across the BOTTOM EDGE, not over the house facade. */
  #evLanding .landingSearch {
    order:1;position:relative;z-index:5;display:flex;align-items:center;
    flex:0 0 auto;gap:7px;align-self:stretch;
    min-height:58px;margin:-28px 14px 16px;padding:6px 7px 6px 13px;
    border:1px solid white;border-radius:999px;background:#fff;
    box-shadow:0 9px 22px #1f65b524;
  }
  #evLanding .landingSearch>span {font-size:24px;line-height:1;color:#17325b;flex:0 0 auto;}
  #evLanding .landingSearch input {
    width:0;min-width:0;flex:1 1 auto;outline:none;border:0;
    background:transparent;padding:8px 0;
    font-size:clamp(10.5px,2.89vw,13px);font-weight:450;color:#10294a;
  }
  #evLanding .landingSearch input::placeholder {color:#667286;opacity:1;}
  #evLanding .landingSearch button {
    flex:0 0 auto;border:0;border-radius:999px;white-space:nowrap;
    min-height:43px;padding:9px 12px;background:linear-gradient(135deg,#1476ff,#0542d6);
    box-shadow:0 4px 12px #1352d52e;color:#fff;
    font-size:clamp(10.5px,2.9vw,13.5px);font-weight:800;
  }
  #evLanding .landingChoices {
    order:2;position:relative;z-index:2;
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;margin:0 14px 17px;
  }
  #evLanding .landingChoices button {
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:5px;min-width:0;min-height:80px;padding:10px 3px;
    border-radius:20px;border:1px solid #d8e6f8;
    background:linear-gradient(145deg,#fff,#eaf3ff);color:#10234b;
    font-size:clamp(12px,3.3vw,15px);font-weight:800;
    box-shadow:0 6px 13px #1356a819;
  }
  #evLanding .landingChoices button.chosen {
    color:#fff;background:linear-gradient(145deg,#1577ff,#0644d9);border-color:#1269ef;
  }
  #evLanding .landingChoices .choiceIcon {display:flex;align-items:center;justify-content:center;}
  #evLanding .landingChoices .choiceIcon svg {width:29px;height:29px;stroke-width:1.85;}
  #evLanding .landingContent>.nearby,#evLanding .landingFooter {display:none!important;}
  #evLanding .evFeatureCarousel {
    order:3;display:block;min-width:0;width:100%;padding:0 14px;overflow:hidden;
  }
  #evLanding .evFeatureTrack {
    display:flex;overflow-x:auto;overflow-y:hidden;gap:12px;
    touch-action:pan-x pan-y;scroll-snap-type:x mandatory;
    scroll-behavior:smooth;overscroll-behavior-inline:contain;
    border-radius:22px;-webkit-overflow-scrolling:touch;scrollbar-width:none;
  }
  #evLanding .evFeatureTrack::-webkit-scrollbar {display:none;}
  #evLanding .evFeatureSlide {
    position:relative;isolation:isolate;flex:0 0 100%;overflow:hidden;
    height:164px;border-radius:23px;border:2px solid white;
    background:linear-gradient(115deg,#f9fcff 0%,#edf6ff 40%,#cde4ff 100%);
    scroll-snap-align:start;box-shadow:0 8px 22px #1553a51c;
  }
  #evLanding .evFeatureText {
    position:relative;z-index:4;display:flex;align-items:flex-start;flex-direction:column;
    width:54%;height:100%;padding:13px 0 12px 13px;gap:0;
    color:#12274e;pointer-events:auto;
  }
  #evLanding .evFeatureText h2 {
    margin:0 0 4px;line-height:1.06;letter-spacing:-1px;
    font-size:clamp(24px,6.65vw,31px);font-weight:900;color:#0c2147;
  }
  #evLanding .evFeatureText h2 sup {font-size:11px;letter-spacing:0;vertical-align:super;}
  #evLanding .evFeatureSubtitle {margin:0!important;max-width:100%;font-size:clamp(11px,3.1vw,14px);line-height:1.24;color:#243953;}
  #evLanding .evFeatureDisclaimer {margin:12px 0 0!important;max-width:100%;font-size:clamp(10.2px,2.9vw,12px);line-height:1.38;color:#596781;}
  #evLanding .evFeatureText button {
    margin-top:auto!important;max-width:100%;display:flex;align-items:center;justify-content:center;
    gap:5px;border:0;border-radius:22px;
    padding:8px 9px;background:#dceaff;color:#1157d0;
    white-space:nowrap;font-size:clamp(10px,2.75vw,12px);font-weight:850;
  }
  #evLanding .evFeatureText button>span {font-size:16px;line-height:1;}
  #evLanding .evFeatureArt {position:absolute;inset:0;pointer-events:none;background:transparent;}
  /* Clean apartment photo, not a composite screenshot */
  #evLanding .evEderArt::before {
    content:"";position:absolute;right:-2px;bottom:-2px;
    width:47%;height:78%;z-index:0;
    background:url('/evatlas-eder-building.webp') right bottom/cover no-repeat;
    -webkit-mask-image:linear-gradient(to right,transparent 0%,#000 29%);
    mask-image:linear-gradient(to right,transparent 0%,#000 29%);
  }
  #evLanding .evEderArt > svg {
    position:absolute;z-index:1;inset:0;width:100%;height:100%;
    filter:drop-shadow(0 1px 1px #1c72e755);
  }
  #evLanding .evChartPrice {
    position:absolute;z-index:3;right:8px;top:8px;
    display:flex;align-items:center;gap:5px;
    padding:7px 10px;max-width:59%;white-space:nowrap;
    border-radius:999px;background:#fff;color:#12254c;
    font-size:clamp(10px,2.9vw,12.5px);font-weight:850;
    box-shadow:0 5px 15px #1b60b326;
  }
  #evLanding .evChartPrice::after {content:"";position:absolute;bottom:-7px;left:34%;border-left:7px solid transparent;border-right:7px solid transparent;border-top:8px solid white;}
  #evLanding .evChartPrice svg {position:static!important;inset:auto!important;width:18px!important;height:18px!important;flex:0 0 18px;filter:none!important;stroke:#1264ed;}
  #evLanding .evRentArt,#evLanding .evDistrictArt {
    inset:0 0 0 47%;background-repeat:no-repeat;background-size:cover;background-position:center;
  }
  #evLanding .evRentArt {background-image:linear-gradient(90deg,#f0f7ff,transparent 44%),url('/evatlas-rent.webp');}
  #evLanding .evDistrictArt {background-image:linear-gradient(90deg,#edf6ff,transparent 44%),url('/evatlas-neighborhood.webp');}
  #evLanding .evInfoPill {position:absolute;top:9px;right:9px;border-radius:999px;padding:7px 9px;background:#fff;color:#1359d5;font-size:11px;font-weight:800;}
  #evLanding .evFeatureDots {display:flex;align-items:center;justify-content:center;gap:13px;margin:13px 0 8px;}
  #evLanding .evFeatureDots button {width:10px;height:10px;padding:0;background:#bcd0ee;border:0;border-radius:50%;transition:background .2s;}
  #evLanding .evFeatureDots button.isActive {background:#1260f3;}
  /* Floating dock appears only on the home screen, other page views work as before. */
  #evLanding .evMobileBottomNav {
    display:flex;position:fixed;z-index:3101;left:8px;right:8px;
    bottom:calc(8px + env(safe-area-inset-bottom));width:auto;
    min-height:75px;padding:7px 4px;border-radius:26px;
    border:1px solid #fff;background:#fff;align-items:center;justify-content:space-around;
    box-shadow:0 8px 25px #1d549723;
  }
  #evLanding .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:transparent;
    color:#4b5977;font-weight:700;font-size:clamp(10px,2.7vw,12px);line-height:1.1;
  }
  #evLanding .evMobileBottomNav .evBottomIcon {
    display:flex;align-items:center;justify-content:center;
    width:50px;height:37px;border-radius:999px;background:transparent;color:#4b5977;
  }
  #evLanding .evMobileBottomNav .evBottomIcon svg {width:27px;height:27px;display:block;}
  #evLanding .evMobileBottomNav button.evBottomActive {color:#125bea;}
  #evLanding .evMobileBottomNav button.evBottomActive .evBottomIcon {background:#d9eaff;color:#125bea;}
  #evLanding .evMobileBottomNav button.evMobileAdd {color:#1453d6;}
  #evLanding .evMobileBottomNav button.evMobileAdd .evBottomIcon {
    width:55px;height:37px;color:white;background:linear-gradient(135deg,#0e73ff,#0644db);
  }
  #evLanding .evMobileBottomNav button>span:last-child {
    display:block;width:auto;margin:0;padding:0;
    font-size:clamp(10px,2.7vw,12px)!important;line-height:1.1!important;
    font-weight:700;white-space:nowrap;background:transparent;color:inherit;border:0;
  }
  #evLanding .evMobileMenu:not([hidden]) {display:flex;}
}
@media screen and (max-width:360px) {
  #evLanding .landingNav {padding-left:12px;padding-right:12px;height:64px;min-height:64px;}
  #evLanding .evMobileHero {height:241px;padding-left:12px;padding-right:12px;}
  #evLanding .evMobileHero h1 {font-size:clamp(26px,7.8vw,30px);}
  #evLanding .evMobileHero p {max-width:61%;font-size:11.2px;line-height:1.42;}
  #evLanding .evMobileHero .heroLabel {font-size:9px;letter-spacing:1.4px;}
  #evLanding .landingSearch {margin-left:10px;margin-right:10px;}
  #evLanding .landingSearch button {padding:9px 9px;font-size:10px;}
  #evLanding .landingChoices {margin-left:10px;margin-right:10px;gap:6px;}
  #evLanding .evFeatureCarousel {padding:0 10px;}
  #evLanding .evFeatureText {padding-left:10px;}
  #evLanding .evFeatureText button {font-size:10px;padding:7px;}
}
@media (prefers-reduced-motion:reduce) {#evLanding .evFeatureTrack {scroll-behavior:auto;}}
/* Copy remains isolated from photos in the two secondary feature slides. */
@media screen and (max-width:800px) {
  #evLanding .evFeatureSlide:not(:first-child) .evFeatureText {width:51%;}
  #evLanding .evRentArt,#evLanding .evDistrictArt {left:54%;}
}
@media screen and (max-width:360px) {
  /* Small iPhones: make the carousel dots visible above the fixed dock. */
  #evLanding .evMobileHero {height:220px;}
  #evLanding .landingSearch {margin-bottom:13px;}
  #evLanding .landingChoices {margin-bottom:14px;}
  #evLanding .landingChoices button {min-height:75px;}
  #evLanding .evFeatureSlide {height:154px;}
}

/* Beta 2.2.7: Secondary carousel slides must contain ALL copy and CTA.
 * Previous 164px fixed height cropped the 'Mahalleleri keşfet' CTA.
 * Keep the approved first Eder card appearance unchanged. */
@media screen and (max-width:800px) {
  #evLanding .evFeatureTrack { align-items:flex-start; }
  #evLanding .evFeatureSlide:not(:first-child) {
    height:clamp(194px, 53vw, 214px);
  }
  #evLanding .evFeatureSlide:not(:first-child) .evFeatureText {
    padding-top:12px;
    padding-bottom:12px;
  }
  #evLanding .evFeatureSlide:not(:first-child) .evFeatureDisclaimer {
    margin-top:8px!important;
  }
  #evLanding .evFeatureSlide:not(:first-child) .evFeatureText button {
    flex:0 0 auto;
    padding:8px 7px;
    font-size:clamp(9px,2.55vw,11px);
    line-height:1.2;
  }
}
@media screen and (max-width:360px) {
  #evLanding .evFeatureSlide:not(:first-child) {height:199px;}
  #evLanding .evFeatureSlide:not(:first-child) .evFeatureText h2 {font-size:24px;}
  #evLanding .evFeatureSlide:not(:first-child) .evFeatureDisclaimer {font-size:10px;line-height:1.25;}
}

/* Beta 2.2.7: No hamburger in mobile home header. Account icon only.
   Preserve every other approved screen element and the five-item bottom nav. */
@media screen and (max-width:800px) {
  #evLanding .mobileLandingActions .evMobileAccountButton::before {
    display:none!important;
    content:none!important;
    background:none!important;
  }
  #evLanding .mobileLandingActions .evMobileAccountButton svg {
    display:block;
    width:23px;
    height:23px;
    color:#0e2854;
  }
}


/* Beta 2.2.8 — Mobile-only spacing refinement.
   Leave page functions, desktop, icons, Eder charts, photos untouched.
   Hero photo is slightly shorter; search center sits at its bottom edge,
   revealing the bridge above the search instead of covering it.
   The three action tiles are deliberately compact. */
@media screen and (max-width:800px) {
  #evLanding.evLanding { --ev-hero-photo-height: clamp(315px, 85vw, 375px); }
  #evLanding.evLanding::before {
    height:var(--ev-hero-photo-height);
  }
  #evLanding .evMobileHero {
    height:calc(var(--ev-hero-photo-height) - 69px);
  }
  #evLanding .landingSearch {
    /* -29px places the center of the 58px search field at the photo edge */
    margin-top:-29px;
    margin-bottom:14px;
  }
  #evLanding .landingChoices {
    margin-bottom:15px;
  }
  #evLanding .landingChoices button {
    min-height:65px;
    padding:7px 3px;
    gap:3px;
    font-size:clamp(11px,3.2vw,14px);
    border-radius:17px;
  }
  #evLanding .landingChoices .choiceIcon svg {
    width:25px;height:25px;
  }
}
@media screen and (max-width:360px) {
  /* 64px mobile nav; previous small-screen overrides must not shift search */
  #evLanding .evMobileHero {
    height:calc(var(--ev-hero-photo-height) - 64px);
  }
  #evLanding .landingChoices button {
    min-height:63px;
    padding:6px 2px;
  }
  #evLanding .landingChoices .choiceIcon svg {
    width:23px;height:23px;
  }
}
