:root{--g:#0b7a53;--g2:#095f42;--mint:#e9f7f1;--ink:#10231d;--muted:#64736d;--line:#dce7e2;--bg:#f5f8f7;--white:#fff;--danger:#b42318;--shadow:0 20px 55px rgba(14,52,40,.10)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.5}a{color:inherit;text-decoration:none}.container{width:min(1120px,calc(100% - 32px));margin:auto}.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid rgba(220,231,226,.9)}.header-inner{height:70px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:11px}.brand-mark{width:38px;height:38px;border-radius:12px;background:var(--g);color:#fff;font-size:28px;display:grid;place-items:center;font-weight:800;box-shadow:0 8px 22px rgba(11,122,83,.25)}.brand b{display:block;font-size:17px;letter-spacing:-.2px}.brand small{display:block;color:var(--muted);font-size:10px;margin-top:-2px}.site-header nav{display:flex;gap:24px;font-size:14px;font-weight:650}.hero{background:linear-gradient(145deg,#f2fbf7 0,#fff 58%,#edf7f4 100%);border-bottom:1px solid var(--line);padding:58px 0}.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:56px;align-items:center}.eyebrow{font-size:11px;letter-spacing:1.35px;font-weight:800;color:var(--g);text-transform:uppercase}.hero h1{font-size:clamp(38px,5vw,64px);line-height:1.03;letter-spacing:-2.2px;margin:12px 0 18px;max-width:720px}.hero-copy>p{font-size:18px;color:#4d5e58;max-width:650px;margin:0}.trust-row{display:flex;flex-wrap:wrap;gap:18px;margin-top:25px;color:#40524b;font-size:13px;font-weight:650}.search-card{background:#fff;padding:22px;border:1px solid #dfeae5;border-radius:24px;box-shadow:var(--shadow)}.geo-btn{width:100%;border:0;background:linear-gradient(135deg,var(--g),#119b6e);color:#fff;border-radius:17px;padding:18px;display:flex;align-items:center;gap:14px;text-align:left;cursor:pointer;box-shadow:0 12px 25px rgba(11,122,83,.22)}.geo-btn:hover{filter:brightness(.98)}.geo-icon{width:42px;height:42px;border-radius:13px;background:rgba(255,255,255,.16);display:grid;place-items:center;font-size:26px}.geo-btn b{display:block;font-size:16px}.geo-btn small{display:block;opacity:.84;margin-top:2px}.arrow{margin-left:auto;font-size:24px}.or{display:flex;align-items:center;gap:10px;color:#84918c;font-size:11px;text-transform:uppercase;letter-spacing:.7px;margin:18px 0}.or:before,.or:after{content:"";height:1px;background:var(--line);flex:1}form label{display:block;font-size:12px;font-weight:750;color:#4b5c56;margin-bottom:12px}select{width:100%;margin-top:6px;height:50px;border:1px solid #ccd9d3;border-radius:13px;background:#fff;padding:0 13px;font-size:15px;color:var(--ink);outline:none}select:focus{border-color:var(--g);box-shadow:0 0 0 3px rgba(11,122,83,.10)}select:disabled{background:#f1f4f3;color:#9aa5a1}.search-submit{height:52px;width:100%;border:0;border-radius:13px;background:#10231d;color:#fff;font-size:15px;font-weight:750;cursor:pointer}.api-state{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:13px;color:#7b8984;font-size:11px}.dot{width:7px;height:7px;border-radius:99px;background:#18a974;box-shadow:0 0 0 4px rgba(24,169,116,.12)}.alert{margin:28px 0 0;padding:17px 19px;border:1px solid #d8e5df;background:#fff;border-radius:14px;display:grid;gap:3px}.alert b{font-size:14px}.alert span,.alert small{color:#65746f}.alert-error{border-color:#f3c7c1;background:#fff7f6}.alert-error b{color:var(--danger)}.alert-warning{border-color:#eed89e;background:#fffaf0}.results{padding:38px 0 10px}.result-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:20px}.result-head h2{font-size:27px;letter-spacing:-.7px;margin:5px 0 0}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.pharmacy-card{background:#fff;border:1px solid var(--line);border-radius:19px;padding:20px;box-shadow:0 8px 28px rgba(14,52,40,.055)}.pharmacy-card.featured{border-color:#a8d9c6;box-shadow:0 16px 40px rgba(11,122,83,.10)}.card-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.status-badge{display:inline-flex;align-items:center;gap:7px;padding:6px 9px;border-radius:99px;background:var(--mint);color:var(--g2);font-size:11px;font-weight:800}.status-badge i{width:7px;height:7px;border-radius:50%;background:#14a36f}.badge-neutral{background:#f1f3f2;color:#52615c}.badge-neutral i{background:#87948f}.source-mini{font-size:10px;color:#8a9692}.pharmacy-card h3{font-size:22px;letter-spacing:-.5px;margin:15px 0 12px}.card-metrics{display:flex;gap:9px;margin-bottom:15px}.metric{background:#f4f8f6;border-radius:12px;padding:9px 11px;min-width:105px}.metric b{display:block;font-size:13px}.metric small{display:block;color:#80908a;font-size:10px;margin-top:2px}.address{font-size:14px;color:#445650;margin:0 0 6px}.directions,.note{font-size:12px;color:#73817c;margin:7px 0}.card-actions{display:grid;grid-template-columns:1.4fr .8fr;gap:9px;margin-top:17px}.btn{height:45px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;border:1px solid transparent;cursor:pointer}.btn-primary{background:var(--g);color:#fff}.btn-call{border-color:#bcd6ca;background:#eef8f3;color:var(--g2)}.btn-outline{background:#fff;border-color:#c9d8d2;color:#294139;padding:0 16px}.btn-muted{background:#eee;color:#999}.map-shell{height:420px;border-radius:19px;overflow:hidden;border:1px solid var(--line);margin-bottom:18px;background:#eaf1ee}.popular{padding:58px 0 34px;border-top:1px solid var(--line);margin-top:42px;display:grid;grid-template-columns:260px 1fr;gap:30px}.popular h2{margin:5px 0;font-size:25px}.chips{display:flex;gap:9px;flex-wrap:wrap;align-content:flex-start}.chips a{background:#fff;border:1px solid var(--line);padding:10px 14px;border-radius:99px;font-size:13px;font-weight:650}.chips a:hover{border-color:#9ccdb9;color:var(--g)}.seo-block{background:#10231d;color:#fff;border-radius:24px;padding:34px;margin:18px 0 60px}.seo-block h2{font-size:28px;margin:0 0 10px}.seo-block>p{color:#c6d0cc;max-width:850px}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:25px}.feature-grid article{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08);border-radius:15px;padding:16px}.feature-grid b{display:block;margin-bottom:5px}.feature-grid span{font-size:12px;color:#b8c7c1}footer{background:#fff;border-top:1px solid var(--line);padding:36px 0 20px}.footer-grid{display:grid;grid-template-columns:1fr auto;gap:40px}.footer-grid p{color:#687872;font-size:13px;max-width:560px}.footer-grid>div:last-child{display:grid;gap:6px;font-size:13px}.footnote{border-top:1px solid var(--line);padding-top:18px;margin-top:20px;font-size:11px;color:#7a8883}.prose{max-width:820px;padding:58px 0 100px}.prose h1{font-size:44px;letter-spacing:-1.4px}.prose h2{margin-top:36px}.prose p{color:#53645e;font-size:16px}.loading{opacity:.58;pointer-events:none}.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#10231d;color:#fff;padding:12px 16px;border-radius:11px;font-size:12px;z-index:100;box-shadow:0 10px 30px rgba(0,0,0,.2)}@media(max-width:780px){.container{width:min(100% - 24px,720px)}.site-header nav{display:none}.header-inner{height:62px}.brand-mark{width:34px;height:34px}.hero{padding:28px 0 30px}.hero-grid{grid-template-columns:1fr;gap:24px}.hero h1{font-size:38px;letter-spacing:-1.35px;margin-top:9px}.hero-copy>p{font-size:15px}.trust-row{gap:12px;font-size:11px;margin-top:17px}.search-card{padding:14px;border-radius:19px;order:-1}.geo-btn{padding:15px;border-radius:14px}.cards{grid-template-columns:1fr}.pharmacy-card{padding:17px;border-radius:16px}.pharmacy-card h3{font-size:20px}.result-head{align-items:center}.result-head h2{font-size:21px}.result-head .btn{font-size:11px;height:40px}.results{padding-top:27px}.popular{grid-template-columns:1fr;gap:12px;padding-top:38px}.feature-grid{grid-template-columns:1fr}.seo-block{margin-left:-2px;margin-right:-2px;padding:23px 18px;border-radius:18px}.seo-block h2{font-size:23px}.footer-grid{grid-template-columns:1fr}.map-shell{height:340px}.card-actions{grid-template-columns:1.35fr .75fr}.btn{height:48px}.prose{padding:35px 4px 70px}.prose h1{font-size:34px}}@media(max-width:390px){.hero h1{font-size:34px}.geo-btn small{font-size:10px}.card-metrics{flex-wrap:wrap}.metric{flex:1}.source-mini{display:none}}

/* V4: il-ilçe-mahalle akışı ve konum durum mesajı */
.label-note{font-weight:500;color:#6b7280;margin-left:4px;font-size:.78rem}
.geo-status{min-height:0;margin:10px 0 0;font-size:.86rem;line-height:1.4;color:#64748b}
.geo-status:empty{display:none}
.geo-status.ok,.geo-status.warn,.geo-status.error{display:block;padding:10px 12px;border-radius:12px}
.geo-status.ok{background:#ecfdf5;color:#065f46}
.geo-status.warn{background:#fffbeb;color:#92400e}
.geo-status.error{background:#fff1f2;color:#9f1239}
#areaForm{display:grid;gap:12px}
#areaForm label{min-width:0}
#areaForm select{width:100%;min-height:48px}
@media (min-width:760px){#areaForm{grid-template-columns:1fr 1fr 1fr;align-items:end}#areaForm .search-submit{grid-column:1/-1}}
@media (max-width:759px){#areaForm{grid-template-columns:1fr}.search-card{padding:18px}.geo-btn{min-height:64px}.search-submit{min-height:52px;font-size:1rem}}

/* V6 - harita, arama sekmeleri ve mobil güçlendirme */
.badge-warn{background:#fff7e6;color:#8a4b08}.badge-warn i{background:#f59e0b}
.metric-accent{background:#ecfdf5;border:1px solid #c6f1df}.metric-accent b{color:#076844}
.remaining{display:inline-flex;align-items:center;margin:-4px 0 14px;padding:7px 10px;border-radius:10px;background:#eef8f3;color:#0b6a49;font-size:12px;font-weight:800}
.updated{display:block;margin-top:5px;color:#7a8984;font-size:11px}
.hours-panel{margin:28px 0 4px;padding:20px 22px;background:#fff;border:1px solid var(--line);border-radius:18px;display:grid;grid-template-columns:1.2fr 1fr;gap:24px;align-items:center;box-shadow:0 8px 30px rgba(14,52,40,.04)}
.hours-panel h3{margin:5px 0 6px;font-size:20px;letter-spacing:-.35px}.hours-panel p{margin:0;color:#65746f;font-size:12px;max-width:620px}.hours-panel>small{grid-column:1/-1;color:#89958f;border-top:1px solid #edf2f0;padding-top:10px}
.hours-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.hours-grid span{background:#f5f9f7;border:1px solid #e3ece8;border-radius:12px;padding:10px 11px;font-size:12px;color:#53645e}.hours-grid b{display:block;color:#1d342c;font-size:10px;text-transform:uppercase;letter-spacing:.4px;margin-bottom:3px}
.hours-panel-neutral{background:#fbfcfc}.hours-panel-neutral .hours-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:780px){
  .hours-panel{grid-template-columns:1fr;gap:14px;margin-top:18px;padding:17px 15px;border-radius:16px}.hours-grid{grid-template-columns:1fr 1fr}.hours-panel>small{grid-column:auto}.hours-panel h3{font-size:18px}
  .pharmacy-card.featured{border-width:2px}.card-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.metric{min-width:0}.metric-accent{grid-column:auto}.remaining{width:100%;justify-content:center;text-align:center}
  .card-actions{position:relative;grid-template-columns:1.25fr .75fr}.card-actions .btn{font-size:14px}
  .search-card{box-shadow:0 14px 36px rgba(14,52,40,.09)}
}
@media(max-width:430px){.hours-grid{grid-template-columns:1fr}.card-metrics{grid-template-columns:1fr 1fr}.metric:nth-child(2):last-child{grid-column:1/-1}}

/* V6 arama yöntemi sekmeleri */
.search-mode-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;background:#eef3f1;border:1px solid #e1e9e5;padding:5px;border-radius:15px;margin-bottom:16px}
.search-mode-tab{height:44px;border:0;border-radius:11px;background:transparent;color:#5d6e68;font-size:13px;font-weight:800;cursor:pointer;transition:.15s ease}
.search-mode-tab:hover{color:var(--g2)}
.search-mode-tab.active{background:#fff;color:var(--g2);box-shadow:0 4px 14px rgba(14,52,40,.08)}
.search-mode-panel[hidden]{display:none!important}
.search-hint{margin:9px 3px 0;color:#83908c;font-size:10.5px;line-height:1.45;text-align:center}
.label-note{font-weight:500;color:#87958f;margin-left:4px}

/* V6 harita: eczaneler E pini, kullanıcı konumu ayrı */
.map-shell{position:relative}
.nearby-results .map-shell{height:min(58vh,560px);min-height:390px;box-shadow:0 10px 34px rgba(14,52,40,.08)}
.pharmacy-marker,.user-marker{background:transparent!important;border:0!important}
.pharmacy-pin{width:40px;height:40px;border-radius:50% 50% 50% 12px;background:var(--g);color:#fff;display:grid;place-items:center;transform:rotate(-45deg);border:3px solid #fff;box-shadow:0 5px 15px rgba(0,0,0,.25)}
.pharmacy-pin span{transform:rotate(45deg);font-size:18px;font-weight:900;line-height:1;margin-top:-1px}
.user-dot{width:24px;height:24px;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 3px 12px rgba(0,0,0,.25)}
.user-dot span{width:12px;height:12px;border-radius:50%;background:#2563eb;border:2px solid #dbeafe}
.map-popup{min-width:210px;color:#18352c}
.map-popup strong{display:block;font-size:15px;margin-bottom:3px}
.map-popup p{font-size:11px;line-height:1.4;color:#60716b;margin:7px 0 10px}
.map-popup-distance{display:inline-block;font-size:10px;font-weight:800;color:var(--g2);background:#e9f7f1;border-radius:99px;padding:4px 7px;margin-top:2px}
.map-popup-actions{display:grid;grid-template-columns:1.15fr .85fr;gap:6px}
.map-popup-actions a{display:flex;align-items:center;justify-content:center;min-height:36px;border-radius:9px;font-size:11px;font-weight:850;text-decoration:none}
.map-popup-actions a:first-child{background:var(--g);color:#fff}
.map-popup-actions a:last-child{background:#edf7f3;color:var(--g2);border:1px solid #c7e1d6}
.leaflet-popup-content{margin:13px 14px!important}
.leaflet-popup-content-wrapper{border-radius:14px!important}

@media(max-width:780px){
  .search-mode-tab{font-size:12px;height:42px}
  .nearby-results .map-shell{height:50vh;min-height:330px;margin-left:-2px;margin-right:-2px}
  .map-popup{min-width:190px}
}


/* V6.1: konuma göre harita mahalle ölçeğinde, kullanıcı konumu belirgin */
.nearby-results .map-shell{height:330px!important;min-height:0!important;max-height:330px!important;box-shadow:0 8px 26px rgba(14,52,40,.07)}
.user-position{position:relative;width:54px;height:58px;display:flex;align-items:center;justify-content:flex-start;flex-direction:column;filter:drop-shadow(0 4px 8px rgba(0,0,0,.24))}
.user-ring{position:relative;width:38px;height:38px;border-radius:50%;background:#2563eb;border:4px solid #fff;display:grid;place-items:center;box-shadow:0 0 0 5px rgba(37,99,235,.22)}
.user-ring:before{content:"";position:absolute;inset:-10px;border-radius:50%;background:rgba(37,99,235,.14);animation:userPulse 1.8s ease-out infinite;z-index:-1}
.user-ring span{width:10px;height:10px;border-radius:50%;background:#fff;box-shadow:0 0 0 2px rgba(255,255,255,.45)}
.user-position b{margin-top:5px;padding:2px 6px;border-radius:7px;background:#1d4ed8;color:#fff;font-size:9px;line-height:1.2;letter-spacing:.5px;border:2px solid #fff}
@keyframes userPulse{0%{transform:scale(.75);opacity:.75}70%{transform:scale(1.5);opacity:0}100%{transform:scale(1.5);opacity:0}}
.duty-note{margin:26px 0 14px;padding:18px 20px;background:#fff;border:1px solid var(--line);border-left:4px solid #a8d9c6;border-radius:14px;color:#53645e;font-size:13px;line-height:1.65}
.duty-note p{margin:0}.duty-note strong{color:var(--ink)}
@media(max-width:780px){.nearby-results .map-shell{height:275px!important;max-height:275px!important;margin-left:0!important;margin-right:0!important;border-radius:16px}.duty-note{padding:15px 16px;margin:20px 0 8px;font-size:12px}}

/* V6.2 - nöbet dönemi özeti ve mahalle fallback görünümü */
.result-head{align-items:flex-start}
.result-head>div{min-width:0;flex:1}
.duty-context{margin-top:12px;max-width:820px;padding:12px 14px;border:1px solid #d7e8e0;background:#eef8f4;border-radius:13px}
.duty-context:empty{display:none}
.duty-context-top{display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px;font-size:12px;color:#42564e}
.duty-context-top strong{font-size:13px;color:var(--g2)}
.duty-context-top span{padding-left:10px;border-left:1px solid #c9ddd4}
.duty-context p{margin:7px 0 0;color:#667770;font-size:11px;line-height:1.55}
.alert-neighborhood{border-color:#cfe1d9;background:#f8fbfa;border-left:4px solid #78b89e}
.alert-neighborhood b{color:#274b3d}
@media(max-width:780px){
  .result-head{align-items:flex-start;flex-wrap:wrap}
  .result-head .btn{margin-left:auto}
  .duty-context{padding:11px 12px;margin-top:10px}
  .duty-context-top{display:grid;gap:5px;font-size:11px}
  .duty-context-top span{padding-left:0;border-left:0}
  .duty-context p{font-size:10.5px}
}

/* Nearby map: keep the user and all ten results in view. */
.nearby-results .map-shell{height:clamp(360px,60vh,620px)!important;min-height:360px!important;max-height:620px!important}
.nearby-explanation{color:#53645e;font-size:13px;line-height:1.6;margin:0 0 16px}
.pharmacy-pin{animation:pharmacyPulse 2.4s ease-in-out infinite}
@keyframes pharmacyPulse{0%,100%{box-shadow:0 5px 15px rgba(0,0,0,.25),0 0 0 0 rgba(11,122,83,.4)}50%{box-shadow:0 5px 15px rgba(0,0,0,.25),0 0 0 11px rgba(11,122,83,0);filter:brightness(1.2)}}
@media(max-width:780px){.nearby-results .map-shell{height:55vh!important;min-height:320px!important;max-height:520px!important}}
@media(prefers-reduced-motion:reduce){.pharmacy-pin{animation:none}}
.nearby-results .map-shell{width:100%;height:380px!important;min-height:0!important;max-height:380px!important}
.results{scroll-margin-top:85px}
.map-location-hint{font-size:13px;color:#53645e;margin:10px 0}
.pharmacy-pin{background:#d62828}
@keyframes pharmacyPulse{0%,100%{box-shadow:0 5px 15px rgba(0,0,0,.25),0 0 0 0 rgba(214,40,40,.5)}50%{box-shadow:0 5px 15px rgba(0,0,0,.25),0 0 0 11px rgba(214,40,40,0);filter:brightness(1.2)}}
@media(max-width:780px){.nearby-results .map-shell{height:300px!important;max-height:300px!important}}
[hidden]{display:none!important}
.pharmacy-name-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:15px 0 12px}
.pharmacy-name-row h3{margin:0;flex:1;min-width:0}
.name-distance{flex-shrink:0;white-space:nowrap;padding:6px 10px;border-radius:9px;background:#fff0ef;color:#b42323;font-size:14px;font-weight:800;letter-spacing:0}
#geoDiagnostics{font-size:12px;color:#53645e;margin:10px 0}#geoDiagnostics summary{cursor:pointer}#geoDiagnostics p{line-height:1.6;margin:7px 0}
