/* ── FONTY ─────────────────────────────────────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@600;700&display=swap");

html { font-size: 13px; }

/* ── HERO HEADER ─────────────────────────────────────────────────────────── */
.dishy-header { background: #ba1614; border-bottom: 1px solid rgba(0,0,0,0.08); }

.dishy-header-logo-row { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0 0; }

.feedback-header-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.85);
  text-decoration: none; padding: 0.35rem 0.85rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.3); white-space: nowrap;
  transition: background .15s, color .15s;
}
.feedback-header-link:hover { background: rgba(255,255,255,0.15); color: #fff; }

.dishy-logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; user-select: none; }
.dishy-logo-icon { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 0.6rem; background: rgba(255,255,255,0.2); font-size: 0.9rem; }
.dishy-logo-img { width: 1.8rem; height: 1.8rem; border-radius: 0.5rem; display: block; }
.dishy-logo-text { font-family: 'League Spartan', sans-serif; font-size: 1.2rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; line-height: 1; padding-top: 0.15em; }

.dishy-hero-row { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.25rem 0 1.5rem; }
@media (min-width: 768px) {
  .dishy-hero-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
}

.dishy-hero-text { max-width: 38rem; }

.dishy-hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 9999px; border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.15); padding: 0.375rem 0.875rem; font-size: 0.75rem; font-weight: 600; color: #fff; }
.dishy-hero-dot-wrap { position: relative; display: flex; width: 0.5rem; height: 0.5rem; flex-shrink: 0; }
.dishy-hero-dot-ping { position: absolute; inset: 0; border-radius: 9999px; background: #4ade80; opacity: 0.75; animation: dishyPing 1.5s cubic-bezier(0,0,0.2,1) infinite; }
.dishy-hero-dot { position: relative; width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: #4ade80; }
@keyframes dishyPing { 75%,100% { transform: scale(2); opacity: 0; } }

.dishy-hero-h1 { margin-top: 0.75rem; font-family: 'Inter', sans-serif; font-size: clamp(1.4rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; color: #fff; }
.dishy-hero-h1-sub { opacity: 0.88; }

.dishy-hero-search-wrap { position: relative; width: 100%; max-width: 26rem; flex-shrink: 0; }
.dishy-hero-search-icon { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); width: 1.1rem; height: 1.1rem; color: rgba(0,0,0,0.4); pointer-events: none; }
.dishy-hero-search-input { width: 100%; border-radius: 9999px; border: none; background: rgba(255,255,255,0.95); padding: 0.65rem 1rem 0.65rem 2.4rem; font-size: 0.9rem; color: #1a1a1a; outline: none; box-shadow: 0 4px 16px rgba(0,0,0,0.12); transition: box-shadow 0.2s; }
.dishy-hero-search-input::placeholder { color: #999; }
.dishy-hero-search-input:focus { box-shadow: 0 4px 20px rgba(0,0,0,0.18), 0 0 0 3px rgba(255,255,255,0.4); }

/* ── LAYOUT ──────────────────────────────────────────────────────────────── */
:root { --header-h: 60px; }

/* Gradient pozadí pod headerem */
.dishy-layout-wrap { background: linear-gradient(to bottom, rgba(186,22,20,0.04), transparent 360px); }

/* Sidebar sticky na desktopu — scroll se děje uvnitř main (overflow-auto),
   takže sticky funguje správně v rámci flex kontejneru */
@media (min-width: 768px) {
  .dishy-sidebar {
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto !important;
    background: rgba(186,22,20,0.04) !important;
    border-right: 1px solid rgba(186,22,20,0.18) !important;
  }
}


/* ── SIDEBAR DESIGN ──────────────────────────────────────────────────────── */
.filter-section-title {
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
}

/* Cuisine pills — rounded-full jako v Lovable */
#cuisine-pills .filter-side-pill {
  border-radius: 9999px !important;
  font-weight: 600;
}
#cuisine-pills .filter-side-pill.bg-primary {
  background: #ba1614 !important;
  color: #fff !important;
}

/* ── MAIN HEADING ────────────────────────────────────────────────────────── */
.dishy-main-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin: 0;
}
.dishy-main-subtitle {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ── PLATFORM DOTS PILL (vlevo nahoře) ────────────────────────────────────── */
.platform-dots-pill { position: absolute; top: 0.5rem; left: 0.5rem; display: flex; gap: 0.25rem; border-radius: 9999px; background: rgba(255,255,255,0.92); padding: 0.3rem 0.55rem; backdrop-filter: blur(6px); box-shadow: 0 1px 4px rgba(0,0,0,0.12); }

/* ── CARD IMAGE HOVER SCALE ────────────────────────────────────────────────── */
.card-photo-img { transition: transform 0.5s ease; }
.card:hover .card-photo-img { transform: scale(1.05); }

.filter-chip { user-select: none; cursor: pointer; margin-bottom: 0.4rem; transition: all .2s ease; }
.filter-chip-platform { width: 100%; }
.platform-badge { min-width: 4.5rem; justify-content: center; }
.filter-chip.is-active { background: var(--chip-color); color: #fff; border-color: var(--chip-color); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.filter-chip.is-active .filter-count { background: rgba(255,255,255,0.2); color: #fff; }
.filter-side-pill { margin: 0 0.35rem 0.35rem 0; border: 0; }
.platform-dots { position: absolute; top: .7rem; right: .7rem; display: flex; gap: .35rem; }
.platform-dot { width: .65rem; height: .65rem; border-radius: 999px; box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 1px 4px rgba(0,0,0,.2); }
.delivery-info { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.card-photo-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, hsl(var(--primary)/0.05), hsl(var(--primary)/0.1)); }
.card-photo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: none; align-items: center; justify-content: center; z-index: 20; }
.menu-overlay.visible { display: flex; }
.menu-panel { width: min(920px, 96vw); max-height: 90vh; background: #fff; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.4); display: flex; flex-direction: column; overflow: hidden; }
.menu-panel-header { padding: 0.9rem 1.2rem; border-bottom: 1px solid #eee; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.menu-panel-title { margin: 0; font-size: 1.05rem; font-weight: 600; }
.menu-panel-subtitle { margin: 0.1rem 0 0; font-size: 0.85rem; color: #666; }
.menu-panel-close { border: none; background: transparent; font-size: 1.2rem; cursor: pointer; padding: 0.2rem 0.4rem; line-height: 1; color: #666; }
.menu-panel-close:hover { color: #000; }
.menu-panel-body { padding: 0.75rem 1.2rem 1.1rem; overflow: auto; }
.menu-table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.menu-table th, .menu-table td { border: 1px solid #ddd; padding: 0.35rem 0.55rem; text-align: left; }
.menu-table th { background: #333; color: #fff; position: sticky; top: 0; z-index: 1; }
.menu-table tr:nth-child(even) { background: #f9f9f9; }
.menu-table td:first-child { font-weight: 500; min-width: 9rem; }
.menu-cell-inner { display: flex; align-items: center; gap: 0.4rem; }
.menu-thumb { width: 32px; height: 32px; border-radius: 4px; object-fit: cover; background: #eee; flex-shrink: 0; }
.menu-price-text { white-space: nowrap; }
.menu-price-empty { color: #bbb; font-style: italic; }
.address-overlay { background: rgba(0,0,0,.25); backdrop-filter: blur(4px); }
.address-overlay .menu-panel { width: min(480px, 96vw); border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.18), 0 4px 16px rgba(0,0,0,.08); overflow: hidden; }
.address-overlay .menu-panel-header { padding: 1rem 1.2rem 0.85rem; border-bottom: none; background: #fff; }
.address-overlay .menu-panel-title { font-size: 0.95rem; }
.address-overlay .menu-panel-subtitle { font-size: 0.78rem; color: #999; }
.address-overlay .menu-panel-close { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #f3f4f6; color: #555; font-size: 1rem; padding: 0; }
.address-overlay .menu-panel-close:hover { background: #e5e7eb; color: #111; }
.address-overlay .menu-panel-body { padding: 0; }
#address-map { height: 320px; background: #f3f4f6; }
.address-map-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 1rem; background: #fff; border-top: 1px solid #f0f0f0; }
.address-map-coords { font-size: 0.72rem; font-family: monospace; color: #aaa; }
.address-suggest-item { padding: .55rem .75rem; font-size: .85rem; cursor: pointer; }
.address-suggest-item:hover { background: hsl(var(--muted)); }
.address-suggest-item-title { font-weight: 600; }
.address-suggest-item-sub { color: hsl(var(--muted-foreground)); font-size: .78rem; margin-top: .1rem; }
.loading-state { display: flex; align-items: center; justify-content: center; padding: 4rem; color: hsl(var(--muted-foreground)); font-size: 0.9rem; grid-column: 1 / -1; }
.rating-badge { display: inline-flex; align-items: center; gap: 0.15rem; font-size: 0.68rem; font-weight: 600; color: #b45309; white-space: nowrap; }
.rating-badge.no-rating { color: #9ca3af; font-weight: 400; }
.unified-rating { display: inline-flex; align-items: center; gap: 0.15rem; font-size: 0.8rem; font-weight: 700; color: #b45309; white-space: nowrap; flex-shrink: 0; }
.unified-rating.no-rating { color: #9ca3af; font-weight: 400; }
.rating-count { font-weight: 400; color: #9ca3af; }
.open-badge { display: inline-block; font-size: 0.68rem; font-weight: 700; padding: 0.1rem 0.4rem; border-radius: 4px; margin-left: auto; white-space: nowrap; flex-shrink: 0; }
.open-badge.open     { background: #dcfce7; color: #16a34a; }
.open-badge.preorder { background: #fef3c7; color: #d97706; }
.open-badge.closed   { background: #fee2e2; color: #dc2626; }
@media (max-width: 768px) { .search-wrap { max-width: none; margin: 0 1rem; } }
.platform-row.no-delivery { opacity: 0.5; }
.platform-row.no-delivery a { pointer-events: none; }
.no-delivery-text { font-size: 0.63rem; color: #9ca3af; white-space: nowrap; }
