/* Single-sheet layout. Reserve both action rows before deferred scripts run. */
.simple-home{padding-bottom:100px}
.simple-home header{height:80px;min-height:80px;max-width:1100px;padding:16px 24px;gap:12px;display:flex;justify-content:space-between}
.simple-home header>#theme-toggle,.simple-home header>.header-tools{display:none}
.home-city-label{min-width:0;flex:1;max-width:260px}
#home-city,#preferences-open{height:48px;min-height:48px;border:1px solid var(--line);border-radius:14px;background:var(--bg);color:var(--ink);font:600 16px/1.3 system-ui;padding:10px 14px;margin:0}
#home-city{width:100%;min-width:0}#preferences-open{flex:none}
.simple-home main{max-width:1100px;margin-inline:auto;padding:4px 24px 0}
#preferences-summary{height:24px;line-height:24px;margin:0 0 18px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:13px;color:var(--muted)}
#home-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:26px;min-width:0}
#home-actions .intro,#home-actions #day-planner{display:contents}
#home-actions .intro>div:first-child{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#home-actions .intro>#location-button,#home-actions #catalogue-info{display:none!important}
#home-actions #hero-pick,#home-actions #day-build,#home-actions:not(.home-actions-ready)::after{margin:0;min-height:64px;height:64px;width:100%;padding:14px;border-radius:16px;font:700 18px/1.4 system-ui;grid-row:1;grid-column:1}
#home-actions #day-build,#home-actions:not(.home-actions-ready)::after{grid-column:2}
#home-actions:not(.home-actions-ready)::after{content:'Günü planla';display:grid;place-items:center;box-sizing:border-box;background:var(--ink);color:var(--bg)}
html[lang=en] #home-actions:not(.home-actions-ready)::after{content:'Plan my day'}
#home-actions #day-planner>*{grid-column:1 / -1;min-width:0}
#home-actions #day-planner:not(.home-plan-open)>:not(#day-build){display:none!important}
#home-actions #day-build{grid-column:2}
.simple-home main>.discovery-bar,.simple-home main>#city-strip,.simple-home main>#intent-strip,.simple-home main>#intent-help,.simple-home .workspace>.planner,.simple-home .workspace .results>#cafe-tools{display:none!important}
.simple-home #day-title{margin-top:20px}
.simple-home .home-navigation{position:fixed;bottom:0;left:0;right:0;z-index:20;height:auto;min-height:64px;display:flex;justify-content:center;gap:8px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line)}
.home-navigation .nav{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:48px;padding:8px 20px;color:var(--ink)}
.home-navigation .nav.active{border-radius:12px;background:var(--soft)}
.home-navigation .nav.active:after{display:none}
.simple-home footer{max-width:1100px;margin:32px auto 0;padding:24px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px 24px;text-align:center}
.simple-home footer>.brand{display:inline-flex;justify-content:center;flex-basis:100%;margin:0}
.simple-home footer>.demo-badge{margin:0}
.simple-home footer>nav{height:auto;width:100%;display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
.simple-home footer>#release-label{flex-basis:100%}
.simple-home footer>.secondary{min-height:44px}
.simple-home footer>.footer-brand{display:none}
body.preferences-open{position:fixed;width:100%;overflow:hidden;overscroll-behavior:none}
#preferences-panel{box-sizing:border-box;width:min(600px,calc(100% - 40px));max-width:100%;max-height:88dvh;margin:auto;padding:0;border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:22px;overscroll-behavior:contain}
#preferences-panel[open]{display:flex;flex-direction:column}
#preferences-panel::backdrop{background:#081b13a6}
.preferences-heading{display:flex;align-items:center;justify-content:space-between;flex:none;padding:16px 20px;border-bottom:1px solid var(--line)}
#preferences-title{font-size:22px;margin:0}
#preferences-close{height:44px;width:44px;flex:none;border:1px solid var(--line);border-radius:50%;background:var(--bg);color:var(--ink);font-size:26px}
#preferences-close:focus:not(:focus-visible){outline:none;box-shadow:none}
.preferences-scroll{overflow:auto;overscroll-behavior:contain;padding:0 20px 20px;min-height:0}
#preferences-appearance{padding:18px 0;border-bottom:1px solid var(--line);margin-bottom:20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#preferences-appearance-label{font-weight:600}
#preferences-panel .header-tools{margin-left:auto;display:flex}
#preferences-panel .header-tools[hidden]{display:none!important}
.appearance-choice{min-width:0;display:grid;gap:8px}
.appearance-choice>span{font-size:14px;font-weight:600}
.preference-segments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;border:1px solid var(--line);border-radius:14px;background:var(--soft)}
#preferences-panel .preference-segments button{min-width:44px;min-height:44px;padding:8px 6px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--ink);font:600 14px/1.3 system-ui;display:flex;align-items:center;justify-content:center;gap:6px}
#preferences-panel .preference-segments button[aria-pressed=true]{background:var(--bg);border-color:var(--line);box-shadow:0 1px 4px #0001}
#preferences-panel :is(button,select,input:not([type=checkbox])){min-height:44px}
#preferences-panel .theme-toggle{width:44px;height:44px}
#preferences-panel :is(input,select){max-width:100%;min-width:0;font-size:16px}
#preferences-panel button{white-space:normal}
#preferences-purpose{font-size:18px;margin:0 0 12px}
#preferences-panel #intent-strip{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:0;border:0;overflow:visible}
#preferences-panel .preference-choice,#preferences-panel #intent-strip button{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:6px;min-width:0;min-height:110px;padding:12px;margin:0;text-align:left;font:600 14px/1.4 system-ui;color:var(--ink);border:1px solid var(--line);border-radius:14px;background:var(--bg)}
#preferences-panel .preference-choice[aria-pressed=true],#preferences-panel #intent-strip button[aria-pressed=true]{background:var(--soft);border-color:var(--ink)}
#preferences-panel .preference-choice:after{content:none}
#preferences-panel .preference-choice small{margin:0;font:400 12px/1.4 system-ui;color:var(--muted)}
#preferences-panel .preference-choice strong{font:inherit}
#preferences-panel .preference-choice>span:first-child{display:flex;align-items:center;width:24px;height:24px;margin:0;font-size:24px;line-height:1}
#preferences-panel .preference-choice .choice-check{position:absolute;right:10px;top:10px;width:18px;height:18px;display:none}
#preferences-panel .preference-choice[aria-pressed=true] .choice-check{display:block}
.simple-home .line-icon{display:inline-block;width:1em;height:1em;flex-shrink:0;vertical-align:-.125em}
#preferences-panel .choice-icon .line-icon,#preferences-panel .mode>span:first-child .line-icon{width:24px;height:24px}
#preferences-close .line-icon{width:22px;height:22px;vertical-align:middle}
.home-navigation .line-icon{width:22px;height:22px}
#preferences-panel .planner{padding:18px 0;margin:0;background:transparent;border:0;box-shadow:none}
#preferences-panel .section-label{flex-wrap:wrap}
#preferences-panel .section-label h2{font-size:18px}
#preferences-panel #modes{grid-template-columns:repeat(2,minmax(0,1fr))}
#preferences-panel #transport{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
#preferences-panel #transport button{padding:8px 4px;font-size:13px;min-width:0}
#preferences-panel .discovery-bar{display:flex;flex-direction:column;align-items:stretch;padding:16px 0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;gap:12px}
#preferences-panel .discovery-bar label{display:flex;flex-direction:column;gap:8px}
#preferences-panel .discovery-bar [hidden]{display:none!important}
#preferences-panel #cafe-planner:not([hidden]){display:block!important;position:static;transform:none;width:auto;max-height:none;box-shadow:none}
#preferences-panel #cafe-planner>.section-label:first-of-type,#preferences-panel #cafe-planner>.city-options,#preferences-panel #cafe-district,#preferences-panel #filter-close{display:none!important}
#preferences-panel #cafe-planner>.select-label:has(#cafe-district){display:none}
#preferences-panel #cafe-tools:not([hidden]){display:flex;flex-direction:column;gap:10px}
#preferences-panel .sort-field{width:100%}
#preferences-panel .check{display:flex;align-items:center;min-height:44px;gap:10px}
#preferences-panel .check input{width:22px;height:22px}
#preferences-panel #activity-filters{flex-wrap:wrap}
.preferences-footer{flex:none;padding:12px 20px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line)}
#preferences-done{width:100%;margin:0;min-height:48px}
.simple-home :is(button,select,input,a):focus-visible{outline:3px solid var(--orange);outline-offset:3px}
@media(max-width:650px){
 .simple-home header{padding:12px 16px;height:72px;min-height:72px}
 .simple-home main{padding:4px 16px 0}
 #home-city,#preferences-open{font-size:14px;padding:10px}
 #home-actions{grid-template-columns:minmax(0,1fr)}
 #home-actions #day-build,#home-actions:not(.home-actions-ready)::after{grid-column:1;grid-row:2}
 .simple-home .home-navigation{gap:0;padding-left:8px;padding-right:8px}
 .home-navigation .nav{flex:1;flex-direction:column;font-size:11px;padding:4px 2px;gap:4px;line-height:1.3}
 .home-navigation .nav span{position:absolute;right:2px;top:0;font-size:10px}
 #preferences-panel{width:100%;max-height:90dvh;margin:auto 0 0;border-radius:22px 22px 0 0}
 .preferences-heading{padding:12px 16px}
 .preferences-scroll{padding:0 16px 16px}
 #preferences-appearance{grid-template-columns:minmax(0,1fr);gap:12px}
 .appearance-choice{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:8px}
 .simple-home footer{padding:20px 16px}
 #preferences-appearance-label{font-size:14px}
}
/* Glass is limited to the navigation shell and preferences dialog. The high
   opacity bounds contrast even when dark/light content scrolls behind it. */
.simple-home{
 --glass-surface:rgba(255,255,255,.94);
 --glass-solid:#fff;
 --glass-ink:#173e35;
 --glass-muted:#45564d;
 --glass-edge:rgba(23,62,53,.2);
 --glass-active:#fff;
 --navigation-height:66px;
 padding-bottom:calc(var(--navigation-height) + 28px + env(safe-area-inset-bottom,0px));
}
html[data-theme=dark] .simple-home{
 --glass-surface:rgba(20,27,24,.94);
 --glass-solid:#141b18;
 --glass-ink:#f5f1e9;
 --glass-muted:#c3d0c8;
 --glass-edge:rgba(245,241,233,.24);
 --glass-active:#35463c;
}
.simple-home .home-navigation{
 bottom:calc(12px + env(safe-area-inset-bottom,0px));
 left:50%;right:auto;transform:translateX(-50%);
 width:min(620px,calc(100% - 24px));height:var(--navigation-height);
 min-height:var(--navigation-height);gap:4px;padding:8px;
 border:1px solid var(--glass-edge);border-radius:999px;
 background:var(--glass-surface);color:var(--glass-ink);
 -webkit-backdrop-filter:blur(14px) saturate(140%);
 backdrop-filter:blur(14px) saturate(140%);
 box-shadow:0 6px 24px #0002;
}
.simple-home .home-navigation .nav{
 flex:1;color:var(--glass-ink);border-radius:999px;padding-inline:8px;
}
.simple-home .home-navigation .nav.active{
 background:var(--glass-active);border-radius:999px;
 box-shadow:0 1px 5px #0002;color:var(--glass-ink);
}
#preferences-panel{
 --ink:var(--glass-ink);--muted:var(--glass-muted);
 background:var(--glass-surface);color:var(--glass-ink);
 border-color:var(--glass-edge);
 -webkit-backdrop-filter:blur(14px) saturate(140%);
 backdrop-filter:blur(14px) saturate(140%);
}
html[data-theme=dark] #preferences-panel .decide{background:#9e3f20;color:#fff}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 .simple-home .home-navigation,#preferences-panel{background:var(--glass-surface)}
}
@media(prefers-reduced-transparency:reduce){
 .simple-home .home-navigation,#preferences-panel{
  background:var(--glass-solid);-webkit-backdrop-filter:none;backdrop-filter:none;
 }
 #preferences-panel::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}
}

/* Keep the brand visible from the first render, with reserved header space. */
.simple-home header>.home-brand{display:flex;align-items:center;gap:8px;margin-right:auto;font-size:28px;line-height:36px;letter-spacing:-1px;flex:none}
.home-brand img{display:block;width:36px;height:36px;border-radius:10px}
.home-brand .brand-dot{margin-left:-8px}
@media(max-width:540px){.simple-home header{height:132px;min-height:132px;padding:12px 16px;flex-wrap:wrap;gap:12px;align-content:start}.simple-home header>.home-brand{flex-basis:100%;height:36px;font-size:28px}.simple-home header>.home-city-label{flex:1;max-width:none}}

/* Phase M: reserve two header rows and the compact headline before scripts load. */
.simple-home header{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:44px 48px;gap:12px;height:132px;min-height:132px;padding:14px 24px;align-content:start}
.simple-home header>.home-brand{grid-column:1;grid-row:1;display:flex;align-items:center;gap:8px;flex-basis:auto;height:44px;font-size:26px;font-weight:800;letter-spacing:-1px;margin:0;line-height:32px}
.simple-home header>.home-brand img{width:32px;height:32px;border-radius:9px}
.simple-home header>.home-brand .brand-dot{color:#D9683B;margin-left:-8px}
.simple-home header>#preferences-open{grid-column:2;grid-row:1;height:44px;min-height:44px;font-size:14px;padding:8px 12px}
.simple-home header>.home-city-label{grid-row:2;grid-column:1 / -1;width:100%;max-width:none}
.simple-home .home-headline{font-size:24px;line-height:1.25;letter-spacing:-.5px;margin:12px 0 14px;font-weight:750;min-height:30px;color:var(--ink)}
@media(max-width:540px){.simple-home header{padding:14px 16px}.simple-home .home-headline{font-size:21px;line-height:26px;min-height:52px;margin:10px 0 12px}}
.simple-home footer>nav a,.simple-home footer>a:not(.brand){display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 10px}
.skip{position:absolute;left:12px;top:-90px;z-index:100;padding:12px 16px;border-radius:10px;background:#fff;color:#173e35;font-weight:700}.skip:focus{top:12px}
