/* ==========================================================================
   Naj miesta v okolí — mobile-first dizajn
   ========================================================================== */

:root {
    --ink: #131a24;
    --ink-soft: #5b6472;
    --accent: #ff4d2e;
    --accent-2: #ff8a5c;
    --amber: #ffb02e;
    --green: #16a34a;
    --red: #dc2626;
    --card: rgba(255, 255, 255, .92);
    --border: rgba(19, 26, 36, .08);
    --shadow: 0 10px 34px -10px rgba(19, 26, 36, .35);
    --shadow-sm: 0 4px 14px -4px rgba(19, 26, 36, .25);
    --grad: linear-gradient(135deg, var(--accent-2), var(--accent));
    --radius: 18px;
    --panel-w: 420px;
}

* { -webkit-tap-highlight-color: transparent; }

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    color: var(--ink);
}

#map {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: #e8ecef;
}

/* ==========================================================================
   Horná lišta
   ========================================================================== */
.top-bar {
    position: fixed;
    top: max(10px, env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    z-index: 1150;   /* nad úvodnou obrazovkou (.home = 1100) → lišta ako navbar aj na homescreene */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    pointer-events: none;
}

.top-bar > * { pointer-events: auto; }

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 16px 7px 9px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--ink);
    transition: transform .16s ease;
}
.brand:active { transform: scale(.96); }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.brand-text span { font-size: 10.5px; color: var(--ink-soft); font-weight: 600; }

.radius-pick {
    display: flex;
    gap: 3px;
    background: var(--card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
    box-shadow: var(--shadow-sm);
}

.radius-pick button {
    border: none;
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-soft);
    padding: 6px 11px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .18s ease;
    white-space: nowrap;
}

.radius-pick button.active {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 3px 10px -3px rgba(19, 26, 36, .5);
}

/* ==========================================================================
   FAB tlačidlá
   ========================================================================== */
.fab {
    position: fixed;
    z-index: 1010;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .18s ease, box-shadow .2s ease;
}

.fab:active { transform: scale(.93); }

.fab-list {
    right: 14px;
    bottom: max(18px, env(safe-area-inset-bottom));
    width: 58px;
    height: 58px;
    font-size: 24px;
    background: var(--grad);
    color: #fff;
    box-shadow: 0 10px 26px -6px rgba(255, 77, 46, .6);
}

.fab-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid #fff;
}

.fab-locate {
    right: 14px;
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + 70px);
    width: 44px;
    height: 44px;
    font-size: 18px;
    background: var(--card);
    backdrop-filter: blur(14px);
    color: var(--ink);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* Prepínač vľavo dole medzi mapou miest a mapou jedál */
.fab-switch {
    position: fixed;
    z-index: 1010;
    left: 14px;
    bottom: max(18px, env(safe-area-inset-bottom));
    height: 46px;
    padding: 0 16px 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font: inherit;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    background: var(--card);
    backdrop-filter: blur(14px);
    color: var(--ink);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform .16s ease;
}
.fab-switch:active { transform: scale(.95); }
.fab-switch i { font-size: 18px; color: var(--accent); }

/* „Hľadať v tejto oblasti" */
.search-here {
    position: fixed;
    z-index: 1010;
    top: calc(max(10px, env(safe-area-inset-top)) + 62px);
    left: 50%;
    transform: translateX(-50%);
    border: none;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    cursor: pointer;
    animation: pop .25s ease;
}

@keyframes pop {
    from { transform: translateX(-50%) scale(.85); opacity: 0; }
    to   { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* ==========================================================================
   Panel so zoznamom (mobil: drawer sprava, desktop: statický sidebar)
   ========================================================================== */
.panel {
    position: fixed;
    z-index: 1170;   /* NAD hornou lištou (1150) — inak lišta prekrýva hlavičku panelu */
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 400px);
    background: rgba(250, 250, 251, .97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid var(--border);
    box-shadow: -18px 0 50px -20px rgba(19, 26, 36, .45);
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform .32s cubic-bezier(.32, .72, .28, 1);
}

.panel.open { transform: translateX(0); }

.panel-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1160;   /* nad lištou (1150), pod panelom (1170) */
    background: rgba(19, 26, 36, .35);
}

.panel-head {
    padding: max(14px, env(safe-area-inset-top)) 16px 10px;
    border-bottom: 1px solid var(--border);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.panel-title h1 {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0;
}

.panel-count {
    background: var(--grad);
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    border-radius: 999px;
    padding: 3px 9px;
}

.panel-close {
    margin-left: auto;
    border: none;
    background: rgba(19, 26, 36, .06);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    font-size: 15px;
    cursor: pointer;
    color: var(--ink);
}

/* Vyhľadávanie v paneli */
.search-row {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 9px 13px;
    margin-bottom: 9px;
}

.search-row i { color: var(--ink-soft); font-size: 14px; }

.search-row input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    background: transparent;
}

.search-row input::placeholder { color: #a8afba; font-weight: 500; }
.search-row input::-webkit-search-cancel-button { display: none; }

.q-clear {
    border: none;
    background: rgba(19, 26, 36, .07);
    width: 24px;
    height: 24px;
    border-radius: 999px;
    font-size: 11px;
    color: var(--ink);
    cursor: pointer;
    flex: 0 0 auto;
}

.q-google {
    width: 100%;
    border: 1px dashed rgba(255, 77, 46, .5);
    background: rgba(255, 77, 46, .06);
    color: var(--accent);
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    padding: 9px 12px;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 9px;
    transition: background .18s ease;
}

.q-google:hover { background: rgba(255, 77, 46, .12); }

.mode-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--ink);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 999px;
    padding: 6px 8px 6px 13px;
    margin-bottom: 9px;
}

.mode-chip button {
    border: none;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    width: 21px;
    height: 21px;
    border-radius: 999px;
    font-size: 10px;
    cursor: pointer;
}

.chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.chips button {
    flex: 0 0 auto;
    border: 1px solid var(--border);
    background: #fff;
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-soft);
    padding: 7px 13px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .18s ease;
}

.chips button i { font-size: 12px; margin-right: 2px; }

.chips button.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.filter-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.filter-select {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--border);
    background: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    padding: 7px 8px;
    border-radius: 12px;
    appearance: auto;
}

.filter-toggle {
    flex: 0 0 auto;
    border: 1px solid var(--border);
    background: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-soft);
    padding: 7px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all .18s ease;
}

.filter-toggle.active {
    background: #ecfdf3;
    border-color: #86efac;
    color: var(--green);
}

.panel-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px calc(20px + env(safe-area-inset-bottom));
    overscroll-behavior: contain;
}

/* Karta miesta */
.place-card {
    display: flex;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
    position: relative;
}

.place-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.place-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255, 77, 46, .25); }

.pc-imgwrap {
    position: relative;
    width: 88px;
    height: 88px;
    flex: 0 0 auto;
}

.pc-img {
    width: 88px;
    height: 88px;
    border-radius: 13px;
    object-fit: cover;
    background: linear-gradient(135deg, #eef0f3, #dfe3e8);
    display: block;
}

.pc-img-fallback {
    width: 88px;
    height: 88px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6, #e2e5ea);
    color: #aab1bb;
    font-size: 26px;
}

/* EXPERIMENTAL: dishes — odznaky foto-jedál / menu na obrázku karty */
.pc-badges {
    position: absolute;
    left: 4px;
    bottom: 4px;
    display: flex;
    gap: 4px;
}
.pc-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 19px;
    padding: 0 5px;
    border-radius: 6px;
    background: rgba(19, 26, 36, .78);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}
.pc-badge i { font-size: 11px; }
.pc-badge-menu { background: linear-gradient(135deg, var(--accent-2), var(--accent)); }

.pc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.pc-top { display: flex; align-items: baseline; gap: 7px; }

.pc-rank {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--ink);
    border-radius: 7px;
    padding: 1px 7px;
    flex: 0 0 auto;
}

.pc-rank.r1 { background: linear-gradient(135deg, #f5b301, #e08a00); }
.pc-rank.r2 { background: linear-gradient(135deg, #9aa5b1, #6b7684); }
.pc-rank.r3 { background: linear-gradient(135deg, #d29465, #a86a3d); }

.pc-name {
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-reviews {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 3px;
    font-size: 13px;
}

.pc-reviews .stars {
    color: var(--amber);
    font-weight: 800;
    background: rgba(255, 176, 46, .12);
    border-radius: 7px;
    padding: 1.5px 7px;
}

.pc-reviews .sep {
    width: 1px;
    height: 15px;
    background: rgba(19, 26, 36, .14);
    flex: 0 0 auto;
}

.pc-reviews .cnt { font-weight: 800; color: var(--accent); }
.pc-reviews .cnt i { font-size: 11px; margin-right: 1px; }
.pc-reviews .cnt-label { color: var(--ink-soft); font-size: 11.5px; font-weight: 600; }

.pc-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-soft);
}

.pc-meta .m {
    background: rgba(19, 26, 36, .05);
    border-radius: 7px;
    padding: 2.5px 7px;
}

.pc-meta .open { background: #ecfdf3; color: var(--green); }
.pc-meta .closed { background: #fef2f2; color: var(--red); }

.list-empty {
    text-align: center;
    color: var(--ink-soft);
    padding: 44px 20px;
    font-size: 14px;
    font-weight: 600;
}

.list-empty i { font-size: 34px; display: block; margin-bottom: 10px; color: #c3c9d1; }

/* ==========================================================================
   Markery
   ========================================================================== */
.mk { background: none !important; border: none !important; }

.mk-dot {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #fff;
    border: 2.5px solid var(--ink);
    box-shadow: 0 2px 8px rgba(19, 26, 36, .35);
    transition: transform .15s ease;
}

.mk-rank {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    border: 2.5px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 4px 14px -2px rgba(255, 77, 46, .65);
    transition: transform .15s ease;
}

.mk-sel .mk-rank, .mk-sel .mk-dot {
    transform: scale(1.35);
    z-index: 10;
}

.mk-user {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #2563eb;
    border: 3px solid #fff;
    box-shadow: 0 0 0 6px rgba(37, 99, 235, .25);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .35); }
    70% { box-shadow: 0 0 0 14px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* ==========================================================================
   Overlaye — intro + loader
   ========================================================================== */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(19, 26, 36, .45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.intro-card, .loader-card {
    background: #fff;
    border-radius: 24px;
    padding: 30px 26px;
    max-width: 350px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow);
    animation: rise .35s cubic-bezier(.32, .72, .28, 1);
}

@keyframes rise {
    from { transform: translateY(26px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Homescreen (úvodná obrazovka) — vyhľadať mesto / moja poloha
   ========================================================================== */
.home {
    position: fixed;
    inset: 0;
    z-index: 1100;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background:
        radial-gradient(900px 500px at 110% -10%, rgba(255, 138, 92, .30), transparent 60%),
        radial-gradient(800px 500px at -10% 110%, rgba(217, 70, 239, .18), transparent 60%),
        linear-gradient(160deg, #fff 0%, #fff6f2 55%, #ffeee7 100%);
}

.home-scroll {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px 0 calc(24px + env(safe-area-inset-bottom));
}

.home-inner {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
    animation: rise .4s cubic-bezier(.32, .72, .28, 1);
}

/* Slider rebríčkov */
.home-articles {
    width: 100%;
    max-width: 960px;
    margin: 34px auto 0;
    animation: rise .5s cubic-bezier(.32, .72, .28, 1);
}

.home-articles-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0 24px;
    margin-bottom: 13px;
}

.home-articles-head h2 {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0;
    color: var(--ink);
}

.home-articles-all {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.home-slider {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 24px 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.home-slider::-webkit-scrollbar { display: none; }

.home-slide {
    flex: 0 0 auto;
    width: 230px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: transform .16s ease, box-shadow .2s ease;
}
.home-slide:active { transform: scale(.98); }

.home-slide-img {
    position: relative;
    height: 124px;
    background: linear-gradient(135deg, #fff2ec, #ffe0d3);
}
.home-slide-img img { width: 100%; height: 100%; object-fit: cover; }
.home-slide-img-ph { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--accent); font-size: 32px; }
.home-slide-badge {
    position: absolute; left: 8px; top: 8px;
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(19, 26, 36, .82); color: #fff;
    font-size: 10.5px; font-weight: 800; padding: 4px 8px; border-radius: 999px;
    backdrop-filter: blur(4px);
}
.home-slide-body { padding: 11px 13px 14px; }
.home-slide-city { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: var(--accent); }
.home-slide-title { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.3; margin-top: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.home-logo {
    display: inline-flex;
    filter: drop-shadow(0 12px 24px rgba(255, 77, 46, .35));
    margin-bottom: 16px;
}

.home-title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -.03em;
    margin: 0 0 6px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-sub {
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 26px;
}

.home-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: var(--shadow);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.home-search:focus-within {
    border-color: var(--accent-2);
    box-shadow: 0 10px 30px -8px rgba(255, 77, 46, .35);
}

.home-search > i { color: var(--accent); font-size: 18px; }

.home-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font: inherit;
    font-size: 16px;      /* 16px = bez auto-zoomu na iOS */
    font-weight: 600;
    color: var(--ink);
    background: transparent;
}

.home-search input::placeholder { color: #b0a7bd; font-weight: 500; }

.home-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 5;
    text-align: left;
    max-height: 320px;
    overflow-y: auto;
}

.home-drop-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: none;
    background: none;
    font: inherit;
    text-align: left;
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f3edfc;
}

.home-drop-item:last-child { border-bottom: none; }
.home-drop-item:hover { background: #fff6f2; }
.home-drop-item > i { color: var(--accent); font-size: 16px; flex: 0 0 auto; }
.home-drop-item span { display: flex; flex-direction: column; min-width: 0; }
.home-drop-item strong { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.home-drop-item small { font-size: 12px; color: var(--ink-soft); }

.home-drop-msg { padding: 14px 15px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }

.home-or {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 18px 0;
}

.home-or::before, .home-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.home-locate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    padding: 15px 18px;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, border-color .18s ease, background .18s ease;
}

.home-locate:hover { background: #fff6f2; border-color: var(--accent-2); }
.home-locate:active { transform: scale(.97); }
.home-locate > i { color: var(--accent); font-size: 18px; }

.radar {
    width: 74px;
    height: 74px;
    margin: 0 auto 16px;
    border-radius: 999px;
    border: 2px solid rgba(255, 77, 46, .25);
    position: relative;
    overflow: hidden;
}

.radar::before {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 999px;
    border: 2px solid rgba(255, 77, 46, .3);
}

.radar span {
    position: absolute;
    inset: 0;
    background: conic-gradient(from 0deg, rgba(255, 77, 46, .55), transparent 110deg);
    animation: sweep 1.4s linear infinite;
}

@keyframes sweep { to { transform: rotate(360deg); } }

.loader-text { font-size: 15.5px; font-weight: 800; }
.loader-sub { font-size: 12px; color: var(--ink-soft); margin-top: 5px; font-weight: 600; }

/* ==========================================================================
   Modál s detailami
   ========================================================================== */
.place-modal {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.place-hero {
    position: relative;
    height: 240px;
    background: linear-gradient(135deg, #2a3442, #131a24);
}

.place-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.place-hero-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .3);
    font-size: 44px;
}

.place-hero-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 14, 20, .85) 0%, rgba(10, 14, 20, .12) 55%, transparent 100%);
}

.place-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(19, 26, 36, .55);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.place-hero-text {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 14px;
    color: #fff;
}

.place-hero-text h3 {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 7px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}

.place-badges { display: flex; flex-wrap: wrap; gap: 6px; }

.pb {
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 4px 11px;
    font-size: 12px;
    font-weight: 700;
}

.pb-hot { background: var(--grad); }
.pb .bi-star-fill { color: var(--amber); }

.place-body { padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); }

.place-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 14px;
    scrollbar-width: none;
}

.place-thumbs:empty { display: none; }
.place-thumbs::-webkit-scrollbar { display: none; }

.place-thumbs img {
    width: 74px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex: 0 0 auto;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .2s ease;
}

.place-thumbs img.active { border-color: var(--accent); }

.place-info { display: flex; flex-direction: column; gap: 9px; }

.pi-row {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
}

.pi-row i {
    color: var(--accent);
    font-size: 15px;
    width: 20px;
    text-align: center;
    flex: 0 0 auto;
    margin-top: 1px;
}

.pi-row a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(19,26,36,.2); }

.place-hours { margin-top: 12px; }

.ph-toggle {
    border: none;
    background: rgba(19, 26, 36, .05);
    width: 100%;
    text-align: left;
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 13px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ph-toggle .st-open { color: var(--green); }
.ph-toggle .st-closed { color: var(--red); }
.ph-toggle .bi-chevron-down { margin-left: auto; transition: transform .2s ease; }
.ph-toggle.open .bi-chevron-down { transform: rotate(180deg); }

.ph-days {
    display: none;
    padding: 10px 13px 4px;
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 600;
}

.ph-days.show { display: block; }
.ph-days div { padding: 3px 0; }
.ph-days div.today { color: var(--ink); font-weight: 800; }

.place-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 16px;
}

.pa-btn {
    border: none;
    border-radius: 14px;
    font: inherit;
    font-size: 13.5px;
    font-weight: 800;
    padding: 13px 10px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: transform .15s ease;
}

.pa-btn:active { transform: scale(.96); }
.pa-btn.primary { background: var(--grad); color: #fff; grid-column: 1 / -1; box-shadow: 0 8px 20px -6px rgba(255, 77, 46, .5); }
.pa-btn.ghost { background: rgba(19, 26, 36, .06); color: var(--ink); }

/* Recenzie návštevníkov v detaile miesta (štýl ako v blog článkoch) */
.place-reviews { margin-top: 18px; }
.place-reviews h3 {
    font-size: 15px; font-weight: 800; margin: 0 0 12px;
    display: flex; align-items: center; gap: 8px;
}
.place-reviews h3 .bi { color: var(--accent); }
.reviews-list { max-height: 340px; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-right: 4px; }
.review {
    margin: 0 0 10px; background: rgba(19, 26, 36, .035);
    border: 1px solid var(--border); border-radius: 14px; padding: 13px 15px;
}
.review:last-child { margin-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 11px; margin-bottom: 8px; }
.review-avatar { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; flex: 0 0 auto; }
.review-avatar-ph {
    display: flex; align-items: center; justify-content: center;
    background: var(--grad); color: #fff; font-weight: 800; font-size: 17px;
}
.review-author { font-weight: 800; font-size: 14px; }
.review-sub { display: flex; align-items: center; gap: 9px; font-size: 12px; margin-top: 1px; }
.review-stars { color: var(--amber); font-size: 11px; letter-spacing: 1px; white-space: nowrap; }
.review-time { color: var(--ink-soft); font-weight: 600; }
.review blockquote { margin: 0; font-size: 14px; line-height: 1.5; color: #3c4551; }

/* Pravá skupina v hornej lište: okruh (dropdown) + prepínač jazyka */
.top-actions { display: flex; align-items: center; gap: 8px; }

/* Okruh hľadania ako kompaktný dropdown (uvoľní miesto v lište) */
.radius-select {
    -webkit-appearance: none; appearance: none;
    font: inherit; font-weight: 800; font-size: 13px; color: var(--ink);
    background: var(--card); backdrop-filter: blur(14px);
    border: 1px solid var(--border); border-radius: 999px;
    padding: 9px 30px 9px 14px; cursor: pointer; box-shadow: var(--shadow-sm);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23131a24'%3E%3Cpath d='M4.5 6l3.5 3.5L11.5 6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
}

/* Prepínač jazyka (v hornej lište) */
.lang-switch { position: relative; }
.lang-switch summary {
    list-style: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--card); backdrop-filter: blur(14px);
    border: 1px solid var(--border); border-radius: 999px;
    padding: 8px 13px; font-weight: 800; font-size: 13px; color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary i { color: var(--accent); font-size: 15px; }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 1200;
    background: var(--card); backdrop-filter: blur(16px);
    border: 1px solid var(--border); border-radius: 14px;
    box-shadow: 0 14px 34px -10px rgba(19,26,36,.28);
    padding: 6px; min-width: 150px; display: flex; flex-direction: column;
}
.lang-menu a {
    text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px;
    padding: 9px 12px; border-radius: 9px;
}
.lang-menu a:hover { background: rgba(19,26,36,.05); }
.lang-menu a.active { background: var(--grad); color: #fff; }

/* Preložená recenzia — odznak + prepínač originálu */
.review-tx { color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.review-toggle {
    background: none; border: none; padding: 6px 0 0; font: inherit; font-size: 12.5px;
    font-weight: 700; color: var(--accent); cursor: pointer;
}
.review-toggle:hover { text-decoration: underline; }

/* Leaflet drobnosti */
.leaflet-control-attribution { font-size: 9px !important; opacity: .75; }
.leaflet-control-zoom { display: none; }

/* ==========================================================================
   Desktop (≥ 992 px): panel je statický sidebar vpravo
   ========================================================================== */
@media (min-width: 992px) {
    #map { right: var(--panel-w); }

    .panel {
        width: var(--panel-w);
        transform: none;
        box-shadow: none;
    }

    .panel-close, .fab-list, .panel-backdrop { display: none !important; }

    .top-bar { right: calc(var(--panel-w) + 12px); }
    .fab-locate { right: calc(var(--panel-w) + 14px); bottom: 18px; width: 52px; height: 52px; font-size: 20px; }
    .search-here { left: calc((100% - var(--panel-w)) / 2); }

    .leaflet-control-zoom { display: block; }
}

/* Mobilný modál ako bottom sheet */
@media (max-width: 575.98px) {
    #placeModal .modal-dialog {
        margin: 0;
        max-width: 100%;
        align-items: flex-end;
        min-height: 100%;
    }

    .place-modal {
        border-radius: 24px 24px 0 0;
        max-height: 92dvh;
        overflow-y: auto;
    }

    .place-hero { height: 210px; }
}

/* ===== EXPERIMENTAL: dishes (parser jedál) — celý blok zmazateľný ===== */
.dishes { margin: 4px 0 16px; }
.dishes-head {
    font-size: 13px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.dishes-head i { color: var(--accent); }
.dishes-row {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.dishes-row::-webkit-scrollbar { display: none; }
.dish {
    flex: 0 0 auto;
    width: 116px;
}
.dish-img {
    width: 116px;
    height: 88px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #f3f4f6, #e2e5ea);
    display: block;
}
.dish-img-fallback {
    width: 116px;
    height: 88px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff2ec, #ffe0d3);
    color: var(--accent);
    font-size: 22px;
}
.dish-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    margin-top: 6px;
    line-height: 1.25;
}
.dish-price { color: var(--accent); font-weight: 800; white-space: nowrap; }

/* Bootstrap modály (detail miesta, menu) musia byť NAD hornou lištou (1150) a
   prepínačom jazyka (1200), inak ich prekrýva a nedá sa zavrieť. */
.modal { z-index: 1300; }
.modal-backdrop { z-index: 1290; }
.dishes-loading {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink-soft);
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 0;
}
/* ===== /EXPERIMENTAL: dishes ===== */

/* EXPERIMENTAL: dishes — zvýraznenie zhodného jedla na karte */
.pc-dish {
    margin-top: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--accent);
    background: #fff2ec;
    border-radius: 8px;
    padding: 4px 9px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
}
.pc-dish i { font-size: 11px; }

/* EXPERIMENTAL: dishes — tlačidlo menu, modál ponuky, lightbox */
.menu-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    padding: 13px 15px;
    border-radius: 14px;
    cursor: pointer;
    margin-bottom: 14px;
    transition: background .18s ease, border-color .18s ease;
}
.menu-btn:hover { background: #fff7f4; border-color: var(--accent-2); }
.menu-btn > .bi-card-list { color: var(--accent); font-size: 17px; }
.menu-btn #mMenuCount { color: var(--ink-soft); font-weight: 700; }

.menu-modal {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 85dvh;               /* obmedz výšku, nech telo môže scrollovať */
}
.menu-modal-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border);
    flex: 0 0 auto;
}
.menu-modal-head h3 { font-size: 19px; font-weight: 800; margin: 0; }
.menu-modal-head .place-close { position: static; margin-left: auto; background: rgba(19,26,36,.06); color: var(--ink); }
.menu-modal-body {
    padding: 8px 20px 20px;
    flex: 1 1 auto;
    overflow-y: auto;                /* scrollovateľné telo ponuky */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.menu-section {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent);
    margin: 18px 0 8px;
    padding-bottom: 5px;
    border-bottom: 2px solid #ffe0d3;
}
.menu-section:first-child { margin-top: 6px; }

.menu-item {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border);
}
.menu-item.has-photo { align-items: center; }
.menu-item-photo {
    width: 66px;
    height: 66px;
    object-fit: cover;
    border-radius: 11px;
    flex: 0 0 auto;
    cursor: zoom-in;
    background: rgba(19, 26, 36, .06);
}
.menu-item-main { flex: 1; min-width: 0; }
.menu-item-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.menu-item-desc { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; line-height: 1.35; }
.menu-item-price {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 800;
    color: var(--accent);
    white-space: nowrap;
}

.dish-img { cursor: pointer; }

.dish-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 14, 20, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
}
.dish-lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.dish-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
}

/* Kompas (leaflet-rotate) — návrat na sever, skrytý pri orientácii na sever */
.leaflet-control.compass-btn {
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    font-size: 20px;
    cursor: pointer;
    /* pod hornou lištou, aby s ňou nekolidoval */
    margin-top: calc(max(10px, env(safe-area-inset-top)) + 60px);
    margin-right: 2px;
}
.compass-btn .bi-compass { transition: transform .1s linear; color: var(--accent); }
.compass-btn .compass-n {
    position: absolute;
    top: 3px;
    font-size: 8px;
    font-weight: 800;
    color: var(--ink);
}

/* Odkaz na blog z homescreenu */
.home-blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--ink-soft);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
}
.home-blog-link:hover { color: var(--accent); }
.home-blog-link i { color: var(--accent); }

/* EXPERIMENTAL: fotky jedálneho lístka */
.menu-photos { margin-bottom: 14px; }
.menu-photos-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.menu-photos-row::-webkit-scrollbar { display: none; }
.menu-photo {
    flex: 0 0 auto;
    width: 96px;
    height: 128px;
    object-fit: cover;
    border-radius: 12px;
    cursor: zoom-in;
    border: 1px solid var(--border);
    background: #f3f4f6;
}
