*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
 
    :root {
      --wine:        #7B1F2E;
      --wine-dark:   #4E0F1A;
      --wine-light:  #A83245;
      --gold:        #C9A84C;
      --gold-light:  #E8C96A;
      --cream:       #FAF6EE;
      --cream-dark:  #F0EAE0;
      --text:        #1A0A0E;
      --text-muted:  #6B4E56;
      --border:      rgba(123,31,46,0.15);
      --shadow:      0 8px 40px rgba(78,15,26,0.12);
      --radius:      14px;
    }
 
    html { scroll-behavior: smooth; }
    body {
      font-family: 'Noto Sans Georgian', sans-serif;
      background: var(--cream);
      color: var(--text);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }
 
    /* ══════════════ HEADER ══════════════ */
    header {
      background: var(--wine-dark);
      position: sticky; top: 0; z-index: 200;
      box-shadow: 0 2px 24px rgba(0,0,0,0.35);
    }
    .header-inner {
      max-width: 1100px; margin: 0 auto;
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 2rem; height: 68px;
    }
    .logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; cursor: pointer; }
    .logo-icon { font-size: 1.9rem; line-height: 1; }
    .logo-text {
      font-family: 'Noto Serif Georgian', serif;
      font-weight: 900; font-size: 1.2rem;
      color: var(--gold-light); letter-spacing: 0.02em;
    }
    .logo-sub {
      display: block; font-size: 0.6rem;
      color: rgba(232,201,106,0.55);
      letter-spacing: 0.1em; text-transform: uppercase;
    }
 
    /* main nav tabs */
    .main-nav {
      display: flex; gap: 0.5rem;
    }
    .nav-tab {
      display: flex; align-items: center; gap: 0.45rem;
      padding: 0.55rem 1.2rem;
      border-radius: 8px;
      border: 2px solid transparent;
      cursor: pointer;
      font-family: 'Noto Sans Georgian', sans-serif;
      font-size: 0.85rem; font-weight: 700;
      transition: all 0.22s;
      color: rgba(250,246,238,0.65);
      background: transparent;
      letter-spacing: 0.02em;
    }
    .nav-tab:hover { color: var(--gold-light); background: rgba(255,255,255,0.06); }
    .nav-tab.active {
      background: var(--wine);
      border-color: var(--wine-light);
      color: white;
      box-shadow: 0 2px 12px rgba(123,31,46,0.4);
    }
    .nav-tab .tab-icon { font-size: 1rem; }
 
    /* ══════════════ HERO ══════════════ */
    .hero {
      background: linear-gradient(135deg, var(--wine-dark) 0%, var(--wine) 55%, var(--wine-light) 100%);
      color: white; text-align: center;
      padding: 4rem 2rem 3.5rem;
      position: relative; overflow: hidden;
    }
    .hero::before {
      content: '';
      position: absolute; inset: 0;
      background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/Svg%3E") repeat;
    }
    .hero-badge {
      display: inline-block;
      background: var(--gold); color: var(--wine-dark);
      font-size: 0.72rem; font-weight: 700;
      letter-spacing: 0.1em; text-transform: uppercase;
      padding: 0.28rem 1rem; border-radius: 20px;
      margin-bottom: 1.2rem; position: relative;
    }
    .hero h1 {
      font-family: 'Noto Serif Georgian', serif;
      font-size: clamp(1.8rem, 4vw, 3rem);
      font-weight: 900; margin-bottom: 0.75rem;
      position: relative;
    }
    .hero p {
      font-size: 1rem; opacity: 0.78;
      max-width: 460px; margin: 0 auto;
      line-height: 1.7; position: relative;
    }
 
    /* ══════════════ MAIN ══════════════ */
    main { flex: 1; }
    .page { display: none; }
    .page.active { display: block; animation: fadeIn 0.35s ease; }
    @keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
 
    .container {
      max-width: 900px;
      width: 100%;
      margin: 0 auto;
      padding: 2.5rem 1.5rem;
      box-sizing: border-box;
    }
 
    /* ══════════════ CARD ══════════════ */
    .card {
      background: white; border-radius: var(--radius);
      padding: 1.75rem; box-shadow: var(--shadow);
      border: 1px solid var(--border); margin-bottom: 1.25rem;
    }
    .card-title {
      font-family: 'Noto Serif Georgian', serif;
      font-size: 1.1rem; font-weight: 700;
      color: var(--wine-dark); margin-bottom: 1.2rem;
      display: flex; align-items: center; gap: 0.5rem;
    }
 
    /* ══════════════ SEARCH PAGE ══════════════ */
    .search-toggle {
      display: flex; gap: 0.75rem;
      background: var(--cream-dark);
      border-radius: 12px; padding: 0.4rem;
      margin-bottom: 1.75rem;
    }
    .toggle-btn {
      flex: 1; padding: 0.7rem 1rem;
      border-radius: 9px; border: none;
      font-family: 'Noto Sans Georgian', sans-serif;
      font-size: 0.88rem; font-weight: 700;
      cursor: pointer; transition: all 0.2s;
      color: var(--text-muted); background: transparent;
    }
    .toggle-btn.active {
      background: white; color: var(--wine);
      box-shadow: 0 2px 12px rgba(123,31,46,0.12);
    }
 
    /* search input */
    .search-wrap { position: relative; margin-bottom: 1.25rem; }
    .search-input {
      width: 100%; padding: 0.9rem 1rem 0.9rem 3rem;
      border: 2px solid var(--border); border-radius: 10px;
      font-family: 'Noto Sans Georgian', sans-serif;
      font-size: 0.95rem; background: var(--cream);
      color: var(--text); outline: none; transition: border-color 0.2s;
    }
    .search-input:focus { border-color: var(--wine-light); background: white; }
    .search-icon {
      position: absolute; left: 1rem; top: 50%;
      transform: translateY(-50%); font-size: 1.1rem; pointer-events: none;
    }
 
    /* category chips */
    .chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
    .chip {
      padding: 0.4rem 0.9rem;
      border: 2px solid var(--border);
      border-radius: 20px; cursor: pointer;
      font-family: 'Noto Sans Georgian', sans-serif;
      font-size: 0.8rem; font-weight: 600;
      color: var(--text-muted); background: white;
      transition: all 0.18s;
    }
    .chip:hover { border-color: var(--wine-light); color: var(--wine); }
    .chip.active { background: var(--wine); border-color: var(--wine); color: white; }
 
    /* sort bar */
    .sort-bar {
      display: flex; align-items: center; gap: 0.75rem;
      margin-bottom: 1.25rem; flex-wrap: wrap;
    }
    .sort-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
    .sort-btn {
      padding: 0.35rem 0.8rem;
      border: 2px solid var(--border); border-radius: 20px;
      cursor: pointer; font-size: 0.78rem; font-weight: 700;
      font-family: 'Noto Sans Georgian', sans-serif;
      color: var(--text-muted); background: white; transition: all 0.18s;
    }
    .sort-btn.active { background: var(--wine-dark); border-color: var(--wine-dark); color: white; }
 
    /* result cards */
    .result-list { display: flex; flex-direction: column; gap: 0.9rem; }
    .result-card {
      background: white; border-radius: var(--radius);
      border: 2px solid var(--border);
      padding: 1.2rem 1.5rem;
      display: flex; align-items: center; gap: 1.2rem;
      box-shadow: 0 2px 12px rgba(78,15,26,0.06);
      transition: all 0.2s; cursor: pointer;
    }
    .result-card:hover {
      border-color: var(--wine-light);
      box-shadow: 0 6px 24px rgba(123,31,46,0.13);
      transform: translateY(-2px);
    }
    .result-rank {
      font-family: 'Noto Serif Georgian', serif;
      font-size: 1.4rem; font-weight: 900;
      color: var(--gold); min-width: 36px; text-align: center;
    }
    .result-icon {
      width: 48px; height: 48px; border-radius: 10px;
      background: var(--wine-dark);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.4rem; flex-shrink: 0;
    }
    .result-info { flex: 1; }
    .result-name {
      font-family: 'Noto Serif Georgian', serif;
      font-weight: 700; font-size: 1rem; color: var(--text);
      margin-bottom: 0.2rem;
    }
    .result-meta { font-size: 0.78rem; color: var(--text-muted); }
    .result-stars { color: var(--gold); font-size: 0.95rem; letter-spacing: 1px; }
    .result-score {
      font-family: 'Noto Serif Georgian', serif;
      font-size: 1.5rem; font-weight: 900;
      color: var(--wine); min-width: 48px; text-align: right;
    }
    .score-label { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; display: block; }
 
    /* price badge */
    .badge {
      display: inline-block;
      padding: 0.15rem 0.55rem;
      border-radius: 6px; font-size: 0.72rem; font-weight: 700;
      margin-left: 0.4rem;
    }
    .badge-cheap { background: #e8f5e9; color: #2e7d32; }
    .badge-mid   { background: #fff8e1; color: #f57f17; }
    .badge-exp   { background: #fce4ec; color: #c62828; }
 
    /* ══════════════ REVIEW PAGE ══════════════ */
    .steps-row {
      display: flex; align-items: center; gap: 0; margin-bottom: 2rem;
    }
    .step-item {
      display: flex; align-items: center; gap: 0.5rem;
      font-size: 0.8rem; font-weight: 700;
      color: var(--text-muted); letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .step-item.active { color: var(--wine); }
    .step-item.done { color: var(--gold); }
    .step-num {
      width: 28px; height: 28px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.78rem; font-weight: 800;
      border: 2px solid currentColor; flex-shrink: 0;
      transition: all 0.3s;
    }
    .step-item.active .step-num { background: var(--wine); border-color: var(--wine); color: white; }
    .step-item.done .step-num  { background: var(--gold); border-color: var(--gold); color: white; }
    .step-line { flex: 1; height: 2px; background: var(--border); margin: 0 0.5rem; }
 
    /* restaurant grid */
    .rest-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 0.75rem;
    }
    .rest-card {
      padding: 1rem; border: 2px solid var(--border);
      border-radius: 12px; cursor: pointer;
      background: var(--cream); transition: all 0.2s;
      display: flex; align-items: center; gap: 0.75rem;
      font-family: 'Noto Sans Georgian', sans-serif;
    }
    .rest-card:hover { border-color: var(--wine-light); background: white; transform: translateY(-2px); }
    .rest-card.selected { border-color: var(--wine); background: white; box-shadow: 0 0 0 3px rgba(123,31,46,0.1); }
    .rest-card-icon {
      width: 38px; height: 38px; border-radius: 8px;
      background: var(--wine-dark); display: flex;
      align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
    }
    .rest-card.selected .rest-card-icon { background: var(--wine); }
    .rest-card-name { font-weight: 700; font-size: 0.88rem; color: var(--text); }
    .rest-card-sub  { font-size: 0.72rem; color: var(--text-muted); }
 
    /* dish search */
    .dish-added-list { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
    .dish-row {
      display: flex; align-items: center; gap: 0.75rem;
      padding: 0.75rem 1rem; background: var(--cream);
      border: 2px solid var(--border); border-radius: 10px;
    }
    .dish-emoji { font-size: 1.3rem; }
    .dish-name  { flex: 1; font-weight: 700; font-size: 0.9rem; }
    .dish-stars-inline { display: flex; gap: 0.2rem; }
    .s {
      font-size: 1.4rem; cursor: pointer; color: #ddd;
      transition: all 0.15s; user-select: none; line-height: 1;
    }
    .s:hover, .s.on { color: var(--gold); transform: scale(1.15); }
    .dish-remove {
      background: none; border: none; cursor: pointer;
      color: var(--text-muted); font-size: 1.1rem; padding: 0 0.2rem;
      transition: color 0.2s;
    }
    .dish-remove:hover { color: var(--wine); }
 
    .add-dish-row { display: flex; gap: 0.6rem; margin-top: 0.75rem; }
    .add-dish-input {
      flex: 1; padding: 0.75rem 1rem;
      border: 2px solid var(--border); border-radius: 10px;
      font-family: 'Noto Sans Georgian', sans-serif;
      font-size: 0.9rem; background: var(--cream);
      color: var(--text); outline: none; transition: border-color 0.2s;
    }
    .add-dish-input:focus { border-color: var(--wine-light); background: white; }
    .btn-add {
      padding: 0.75rem 1.2rem;
      background: var(--wine); color: white;
      border: none; border-radius: 10px;
      font-family: 'Noto Sans Georgian', sans-serif;
      font-weight: 700; font-size: 0.88rem;
      cursor: pointer; transition: all 0.2s; white-space: nowrap;
    }
    .btn-add:hover { background: var(--wine-dark); }
 
    /* dish suggestions */
    .suggestions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.75rem; }
    .sug-btn {
      padding: 0.3rem 0.75rem;
      border: 2px solid var(--border); border-radius: 20px;
      background: white; cursor: pointer; font-size: 0.78rem;
      font-family: 'Noto Sans Georgian', sans-serif;
      color: var(--text-muted); font-weight: 600; transition: all 0.18s;
    }
    .sug-btn:hover { border-color: var(--wine); color: var(--wine); }
 
    /* restaurant criteria */
    .criteria-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    .criteria-item { display: flex; flex-direction: column; gap: 0.5rem; }
    .criteria-label {
      font-size: 0.82rem; font-weight: 700; color: var(--text-muted);
      letter-spacing: 0.04em; text-transform: uppercase;
      display: flex; align-items: center; gap: 0.35rem;
    }
    .criteria-label .req { color: var(--wine); font-size: 0.7rem; }
 
    /* star row */
    .star-row { display: flex; gap: 0.3rem; }
    .star-r {
      font-size: 1.6rem; cursor: pointer; color: #ddd;
      transition: all 0.15s; user-select: none; line-height: 1;
    }
    .star-r:hover, .star-r.on { color: var(--gold); transform: scale(1.12); }
 
    /* select pills */
    .pill-group { display: flex; gap: 0.4rem; flex-wrap: wrap; }
    .pill {
      padding: 0.35rem 0.85rem;
      border: 2px solid var(--border); border-radius: 20px;
      cursor: pointer; font-size: 0.8rem; font-weight: 600;
      font-family: 'Noto Sans Georgian', sans-serif;
      color: var(--text-muted); background: white; transition: all 0.18s;
    }
    .pill:hover  { border-color: var(--wine-light); color: var(--wine); }
    .pill.active { background: var(--wine); border-color: var(--wine); color: white; }
 
    /* comment mini */
    .mini-comment {
      width: 100%; padding: 0.6rem 0.8rem;
      border: 2px solid var(--border); border-radius: 8px;
      font-family: 'Noto Sans Georgian', sans-serif;
      font-size: 0.82rem; color: var(--text); background: var(--cream);
      resize: none; outline: none; transition: border-color 0.2s;
      min-height: 60px;
    }
    .mini-comment:focus { border-color: var(--wine-light); background: white; }
 
    /* nav buttons */
    .btn-row { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
    .btn-primary {
      flex: 1; padding: 1rem;
      background: var(--wine); color: white;
      border: none; border-radius: 12px;
      font-family: 'Noto Serif Georgian', serif;
      font-size: 1rem; font-weight: 700; cursor: pointer;
      transition: all 0.2s; box-shadow: 0 4px 18px rgba(123,31,46,0.28);
    }
    .btn-primary:hover:not(:disabled) { background: var(--wine-dark); transform: translateY(-2px); }
    .btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
    .btn-secondary {
      padding: 1rem 1.5rem;
      background: transparent; color: var(--wine);
      border: 2px solid var(--wine); border-radius: 12px;
      font-family: 'Noto Sans Georgian', sans-serif;
      font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: all 0.2s;
    }
    .btn-secondary:hover { background: var(--wine); color: white; }
 
    /* success */
    .success-box {
      text-align: center; padding: 3.5rem 2rem;
      background: white; border-radius: var(--radius);
      box-shadow: var(--shadow); border: 1px solid var(--border);
      animation: fadeIn 0.5s ease;
    }
    .success-icon { font-size: 4rem; margin-bottom: 1rem; }
    .success-box h2 {
      font-family: 'Noto Serif Georgian', serif;
      font-size: 1.6rem; color: var(--wine-dark); margin-bottom: 0.75rem;
    }
    .success-box p { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.6; }
    .success-summary {
      background: var(--cream); border-radius: 10px;
      padding: 1rem 1.5rem; text-align: left;
      margin-bottom: 1.5rem; border: 1px solid var(--border);
      font-size: 0.88rem; line-height: 2;
    }
 
    /* ══════════════ FOOTER ══════════════ */
    footer {
      background: var(--wine-dark);
      color: rgba(250,246,238,0.55);
      text-align: center; padding: 2.5rem 1.5rem;
      font-size: 0.8rem; line-height: 2;
    }
    footer strong { color: var(--gold-light); font-family: 'Noto Serif Georgian', serif; }
    .footer-links { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 0.75rem; flex-wrap: wrap; }
    .footer-links a { color: rgba(250,246,238,0.45); text-decoration: none; transition: color 0.2s; }
    .footer-links a:hover { color: var(--gold-light); }
 
    /* ══ Auth ══ */
    .auth-btn {
      padding: 0.45rem 1rem;
      background: var(--gold); color: var(--wine-dark);
      border: none; border-radius: 8px;
      font-family: 'Noto Sans Georgian', sans-serif;
      font-size: 0.8rem; font-weight: 700;
      cursor: pointer; transition: all 0.2s;
      white-space: nowrap;
    }
    .auth-btn:hover { background: var(--gold-light); }
    #auth-btn-wrap { display: flex; align-items: center; }
 
    /* ══ Login overlay ══ */
    .login-overlay {
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.6);
      display: flex; align-items: center; justify-content: center;
      z-index: 999;
    }
    .login-box {
      background: white; border-radius: 16px;
      padding: 2.5rem; text-align: center;
      max-width: 360px; width: 90%;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }
    .login-box h2 {
      font-family: 'Noto Serif Georgian', serif;
      font-size: 1.3rem; color: var(--wine-dark);
      margin-bottom: 0.5rem;
    }
    .login-box p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.5rem; line-height: 1.6; }
    .google-btn {
      display: flex; align-items: center; justify-content: center; gap: 0.75rem;
      width: 100%; padding: 0.85rem;
      background: white; border: 2px solid #ddd;
      border-radius: 10px; cursor: pointer;
      font-family: 'Noto Sans Georgian', sans-serif;
      font-size: 0.9rem; font-weight: 700; color: #333;
      transition: all 0.2s; margin-bottom: 0.75rem;
    }
    .google-btn:hover { border-color: #4285f4; box-shadow: 0 2px 12px rgba(66,133,244,0.2); }
    .login-close {
      background: none; border: none; cursor: pointer;
      color: var(--text-muted); font-size: 0.85rem;
      font-family: 'Noto Sans Georgian', sans-serif;
    }
    .login-close:hover { color: var(--wine); }
 
    /* ══ ფავორიტების ღილაკი ══ */
    .fav-btn {
      background:none; border:none; cursor:pointer;
      font-size:1.3rem; padding:0 0.3rem;
      color:#ddd; transition:all 0.2s; flex-shrink:0;
    }
    .fav-btn:hover { color:#e91e63; transform:scale(1.2); }
    .fav-btn.active { color:#e91e63; }
    .fav-card {
      background:var(--cream); border-radius:12px;
      border:2px solid var(--border); padding:1rem 1.25rem;
      margin-bottom:0.75rem; display:flex; align-items:center; gap:1rem;
    }
    .fav-card-icon {
      width:42px; height:42px; border-radius:10px;
      background:var(--wine-dark); display:flex;
      align-items:center; justify-content:center;
      font-size:1.2rem; flex-shrink:0;
    }
    .fav-card-info { flex:1; }
    .fav-card-name {
      font-family:'Noto Serif Georgian',serif;
      font-weight:700; font-size:0.95rem; color:var(--text); margin-bottom:0.2rem;
    }
    .fav-card-sub { font-size:0.78rem; color:var(--text-muted); }
    .fav-remove {
      background:none; border:none; cursor:pointer;
      color:#ddd; font-size:1.2rem; transition:color 0.2s;
    }
    .fav-remove:hover { color:#e91e63; }
    .comments-wrap {
      margin-top:0.75rem; padding-top:0.75rem;
      border-top:1px solid var(--border); display:none;
    }
    .comments-wrap.open { display:block; }
    .comment-row {
      padding:0.6rem 0; border-bottom:1px solid var(--border);
      font-size:0.82rem; color:var(--text);
    }
    .comment-row:last-child { border-bottom:none; }
    .comment-meta {
      font-size:0.72rem; color:var(--text-muted);
      margin-bottom:0.2rem; display:flex; gap:0.75rem; align-items:center;
    }
    .comment-stars { color:var(--gold); font-size:0.8rem; }
    .show-comments-btn {
      background:none; border:none; cursor:pointer;
      font-size:0.78rem; color:var(--wine);
      font-family:'Noto Sans Georgian',sans-serif;
      font-weight:700; padding:0.3rem 0; transition:opacity 0.2s;
    }
    .show-comments-btn:hover { opacity:0.7; }
 
    /* helpers */
    .hidden { display: none !important; }

    .cuisine-filter {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
      margin-bottom: 1rem;
    }
    .cuisine-btn, .cuisine-btn-food {
      padding: 0.45rem 1rem;
      border: 2px solid var(--border);
      border-radius: 20px;
      cursor: pointer;
      font-size: 0.85rem;
      font-weight: 700;
      font-family: 'Noto Sans Georgian', sans-serif;
      color: var(--text-muted);
      background: white;
      transition: all 0.18s;
    }
    .cuisine-btn:hover, .cuisine-btn-food:hover   { border-color: var(--wine-light); color: var(--wine); }
    .cuisine-btn.active, .cuisine-btn-food.active { background: var(--wine); border-color: var(--wine); color: white; }

    .dish-pill-request {
      border-color: var(--gold) !important;
      color: var(--gold) !important;
      font-weight: 700;
    }
    .dish-pill-request:hover {
      background: var(--gold) !important;
      color: white !important;
    }

    @keyframes slideIn {
      from { opacity: 0; transform: translateX(50px); }
      to   { opacity: 1; transform: translateX(0); }
    }

    /* ══ საძიებო კატეგორიები ══ */
    .food-cat-grid {
      display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem;
    }
    .food-cat-btn {
      display: flex; align-items: center; gap: 0.4rem;
      padding: 0.45rem 0.9rem;
      border: 2px solid var(--border); border-radius: 20px;
      cursor: pointer; font-size: 0.82rem; font-weight: 700;
      font-family: 'Noto Sans Georgian', sans-serif;
      color: var(--text-muted); background: white; transition: all 0.18s;
    }
    .food-cat-btn:hover  { border-color: var(--wine-light); color: var(--wine); }
    .food-cat-btn.active { background: var(--wine); border-color: var(--wine); color: white; }
    .food-dish-wrap { margin-bottom: 0.75rem; }
    .food-dish-grid { display: flex; flex-wrap: wrap; gap: 0.4rem; }
    .food-dish-btn {
      padding: 0.35rem 0.8rem;
      border: 2px solid var(--border); border-radius: 20px;
      cursor: pointer; font-size: 0.78rem; font-weight: 600;
      font-family: 'Noto Sans Georgian', sans-serif;
      color: var(--text-muted); background: white; transition: all 0.18s;
    }
    .food-dish-btn:hover  { border-color: var(--wine); color: var(--wine); }
    .food-dish-btn.active { background: var(--wine-dark); border-color: var(--wine-dark); color: white; }
 
    /* ══ კატეგორიები ══ */
    .cat-grid {
      display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.25rem;
    }
    .cat-btn {
      display: flex; align-items: center; gap: 0.4rem;
      padding: 0.45rem 0.9rem;
      border: 2px solid var(--border); border-radius: 20px;
      cursor: pointer; font-size: 0.82rem; font-weight: 700;
      font-family: 'Noto Sans Georgian', sans-serif;
      color: var(--text-muted); background: white; transition: all 0.18s;
    }
    .cat-btn:hover  { border-color: var(--wine-light); color: var(--wine); }
    .cat-btn.active { background: var(--wine); border-color: var(--wine); color: white; }
 
    /* ══ კერძის ღილაკები ══ */
    .dish-pill-wrap { display: flex; flex-wrap: wrap; gap: 0.4rem; }
    .dish-pill-btn {
      padding: 0.35rem 0.8rem;
      border: 2px solid var(--border); border-radius: 20px;
      cursor: pointer; font-size: 0.78rem; font-weight: 600;
      font-family: 'Noto Sans Georgian', sans-serif;
      color: var(--text-muted); background: white; transition: all 0.18s;
    }
    .dish-pill-btn:hover { border-color: var(--wine); color: var(--wine); }
    .dish-pill-btn.added {
      background: var(--cream-dark); color: var(--text-muted);
      cursor: default; opacity: 0.5;
    }

    .cuisine-btn-food, .cuisine-btn {
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .cuisine-btn-food:hover, .cuisine-btn:hover {
      transform: scale(1.05);
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    @keyframes bounce {
      0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
      40% { transform: translateY(-8px); }
      60% { transform: translateY(-4px); }
    }
    .logo-icon {
      display: inline-block;
      animation: bounce 2s infinite;
    }

    @keyframes fadeSlideUp {
      0%   { opacity: 0; transform: translateY(20px); }
      100% { opacity: 1; transform: translateY(0); }
    }
    .hero h1, .hero p {
      opacity: 0;
      animation: fadeSlideUp 1s forwards;
    }
    .hero h1 { animation-delay: 0.2s; }
    .hero p  { animation-delay: 0.5s; }

/* ══════════════ LAYOUT WITH ADS ══════════════ */
.page-with-ads {
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  gap: 0;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}
.page-with-ads .container { min-width: 0; }

/* ══ SIDEBAR ADS ══ */
.ad-sidebar {
  width: 160px;
  padding: 1.5rem 0.75rem;
  position: sticky;
  top: 80px;
  align-self: start;
}
.ad-sidebar-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(78,15,26,0.08);
  margin-bottom: 1rem;
}
.ad-sidebar-label {
  background: var(--cream-dark);
  color: var(--text-muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.3rem;
  border-bottom: 1px solid var(--border);
}
.ad-sidebar-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0.75rem;
  gap: 0.6rem;
  min-height: 200px;
  background: linear-gradient(160deg, var(--cream) 0%, white 100%);
  cursor: pointer;
  transition: background 0.2s;
}
.ad-sidebar-body:hover {
  background: linear-gradient(160deg, #f5ede0 0%, var(--cream) 100%);
}
.ad-sidebar-icon { font-size: 2rem; line-height: 1; }
.ad-sidebar-title {
  font-family: 'Noto Serif Georgian', serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--wine-dark);
  text-align: center;
  line-height: 1.4;
}
.ad-sidebar-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}
.ad-sidebar-cta {
  display: inline-block;
  background: var(--wine);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-family: 'Noto Sans Georgian', sans-serif;
  margin-top: 0.25rem;
  text-decoration: none;
}

/* ══ IN-CONTENT AD BANNER ══ */
.ad-banner-wrap { margin: 0 0 1.5rem 0; }
.ad-banner {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(78,15,26,0.09);
  position: relative;
}
.ad-banner-label {
  position: absolute;
  top: 0.6rem; left: 0.2rem;
  background: var(--cream-dark);
  color: var(--text-muted);
  font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.ad-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(110deg, var(--cream) 0%, white 60%, #fff8f0 100%);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 110px;
}
.ad-banner-inner:hover {
  background: linear-gradient(110deg, #f5ede0 0%, var(--cream) 60%, #fff5ec 100%);
}
.ad-banner-emoji {
  font-size: 3rem; line-height: 1; flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(123,31,46,0.15));
}
.ad-banner-text { flex: 1; }
.ad-banner-title {
  font-family: 'Noto Serif Georgian', serif;
  font-size: 1rem; font-weight: 700;
  color: var(--wine-dark); margin-bottom: 0.3rem;
}
.ad-banner-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.ad-banner-btn {
  display: inline-block;
  background: var(--wine); color: white;
  font-family: 'Noto Sans Georgian', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  padding: 0.55rem 1.2rem;
  border-radius: 30px;
  white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(123,31,46,0.25);
  transition: all 0.2s;
  text-decoration: none;
}
.ad-banner-inner:hover .ad-banner-btn {
  background: var(--wine-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(123,31,46,0.3);
}
.ad-close {
  position: absolute;
  top: 0.5rem; right: 0.6rem;
  background: none; border: none; cursor: pointer;
  font-size: 0.9rem; color: var(--text-muted);
  opacity: 0.5; transition: opacity 0.2s;
  line-height: 1; padding: 0.2rem;
}
.ad-close:hover { opacity: 1; }

/* ══ მობილური ბანერები — default დამალული ══ */
.mobile-ads { display: none; }
.mobile-ad-card {
  flex-shrink: 0;
  height: 250px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(78,15,26,0.08);
  text-decoration: none;
  width: 160px;
}
.mobile-ad-top {
  background: linear-gradient(135deg, var(--wine-dark), var(--wine));
  padding: 0.5rem; text-align: center;
  font-size: 0.55rem; font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.mobile-ad-body {
  padding: 0.75rem 0.6rem;
  display: flex; flex-direction: column;
  align-items: center; gap: 0.4rem; text-align: center;
}
.mobile-ad-icon { font-size: 1.6rem; }
.mobile-ad-title {
  font-family: 'Noto Serif Georgian', serif;
  font-size: 0.72rem; font-weight: 700;
  color: var(--wine-dark); line-height: 1.3;
}
.mobile-ad-sub { font-size: 0.62rem; color: var(--text-muted); line-height: 1.3; }
.mobile-ad-cta {
  display: inline-block;
  background: var(--wine); color: white;
  font-size: 0.6rem; font-weight: 700;
  padding: 0.25rem 0.6rem; border-radius: 20px;
  margin-top: 0.15rem;
  font-family: 'Noto Sans Georgian', sans-serif;
}

/* ══════════════════════════════════════
   მობილური მედია — სრული ვერსია
══════════════════════════════════════ */

/* ── 1050px ── */
@media (max-width: 1050px) {
  .ad-sidebar       { display: none !important; }
  .page-with-ads    { grid-template-columns: 1fr !important; }

  .mobile-ads {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
  }
  .mobile-ads-title  { display: none; }
  .mobile-ads-scroll {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: visible;
    padding-bottom: 0;
  }
  .mobile-ads-scroll::-webkit-scrollbar { display: none; }
}

/* ── 768px ── */
@media (max-width: 768px) {

.ad-banner-inner {
  padding: 0.5rem 0.75rem !important;
  min-height: unset !important;
  gap: 0.5rem !important;
  flex-direction: row !important;
  align-items: center !important;
}
.ad-banner-emoji { display: none !important; }
.ad-banner-title { font-size: 0.75rem !important; margin-bottom: 0 !important; }
.ad-banner-desc  { display: none !important; }
.ad-banner-btn   { padding: 0.3rem 0.65rem !important; font-size: 0.68rem !important; white-space: nowrap !important; }
  /* Header */
  .ad-banner-label {
  position: static !important;
  display: block !important;
  margin: 0.4rem auto 0 0.5rem !important;
  width: fit-content !important;
}
  .header-inner {
    padding: 0.5rem 1rem !important;
    height: auto !important;
    min-height: 60px;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .logo-text { font-size: 1rem; }
  .main-nav  { flex-wrap: wrap; gap: 0.3rem; width: 100%; justify-content: flex-end; }
  .nav-tab   { padding: 0.4rem 0.7rem; font-size: 0.75rem; }
  .nav-tab span.tab-text { display: none !important; }
  .auth-btn  { padding: 0.35rem 0.7rem; font-size: 0.75rem; }

  /* Hero */
  .hero   { padding: 2rem 1rem 1.5rem; }
  .hero h1 { font-size: 1.4rem; }
  .hero p  { font-size: 0.85rem; }

  /* Container & Card */
  .container { padding: 1.25rem 0.75rem; box-sizing: border-box; }
  .card      { padding: 1.25rem 1rem; overflow: hidden; box-sizing: border-box; }

  /* Search toggle */
  .search-toggle { margin-bottom: 1rem; }
  .toggle-btn    { font-size: 0.78rem; padding: 0.6rem 0.5rem; }

  /* Cuisine */
  .cuisine-filter { gap: 0.4rem; }
  .cuisine-btn, .cuisine-btn-food { padding: 0.35rem 0.7rem; font-size: 0.78rem; }

  /* Sort */
  .sort-bar { gap: 0.4rem; }
  .sort-btn  { padding: 0.3rem 0.6rem; font-size: 0.72rem; }

  /* Result cards */
  .result-card {
    padding: 0.85rem 0.75rem !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    position: relative !important;
  }
  .result-rank  { font-size: 1rem; min-width: 24px; flex-shrink: 0; }
  .result-icon  { width: 36px; height: 36px; font-size: 1rem; flex-shrink: 0; }
  .result-info  { flex: 1; min-width: 0; width: calc(100% - 130px); }
  .result-score {
    font-size: 0.95rem !important;
    min-width: unset !important;
    flex-shrink: 0;
  }
  .result-name  {
    font-size: 0.82rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 0.15rem;
    padding-right: 1.8rem; /* გულის ღილაკისთვის ადგილი */
  }
  .result-meta  {
    font-size: 0.68rem !important;
    flex-wrap: wrap;
    gap: 0.2rem 0.4rem;
    line-height: 1.7;
    display: flex;
  }
  /* გულის ღილაკი — ქვედა მარჯვენა კუთხე */
  .fav-btn {
    position: absolute !important;
    bottom: 0.6rem !important;
    right: 0.6rem !important;
    font-size: 1.1rem !important;
    padding: 0 !important;
  }
  /* comments სრული სიგანე */
  .comments-wrap { width: 100%; font-size: 0.78rem; }
  .comment-meta  { gap: 0.4rem; font-size: 0.68rem; flex-wrap: wrap; }

  /* ══ რესტორნების გრიდი ══ */
  .rest-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .rest-card {
    padding: 0.6rem !important;
    gap: 0.4rem !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    display: flex;
    align-items: center;
  }
  .rest-card-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 1rem !important;
    flex-shrink: 0 !important;
    min-width: 32px !important;
  }
  .rest-card-name {
    font-size: 0.75rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .rest-card-sub {
    font-size: 0.62rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Steps */
  .steps-row { gap: 0; margin-bottom: 1.25rem; overflow-x: auto; }
  .step-item { font-size: 0.65rem; white-space: nowrap; }
  .step-num  { width: 22px; height: 22px; font-size: 0.65rem; }

  /* Criteria */
  .criteria-grid { grid-template-columns: 1fr; }

  /* Pills */
  .pill { padding: 0.3rem 0.65rem; font-size: 0.75rem; }

  /* Dish row */
  .dish-row  { padding: 0.6rem 0.75rem; gap: 0.5rem; }
  .dish-name { font-size: 0.82rem; }
  .s         { font-size: 1.2rem; }

  /* Buttons */
  .btn-primary, .btn-secondary { padding: 0.85rem; font-size: 0.88rem; }

  /* Pill/Cat buttons */
  .food-cat-btn  { padding: 0.35rem 0.7rem; font-size: 0.75rem; }
  .cat-btn       { padding: 0.35rem 0.7rem; font-size: 0.75rem; }
  .dish-pill-btn { padding: 0.3rem 0.65rem; font-size: 0.72rem; }

  /* Success */
  .success-box { padding: 2rem 1rem; }
  .success-icon { font-size: 3rem; }
  .success-box h2 { font-size: 1.3rem; }

  /* Login */
  .login-box { padding: 1.75rem 1.25rem; }

  /* Favs */
  .fav-card { padding: 0.75rem 1rem; gap: 0.75rem; }

  /* Footer */
  footer        { padding: 1.5rem 1rem; font-size: 0.75rem; }
  .footer-links { gap: 1rem; font-size: 0.8rem; }
}

/* ── 480px ── */
@media (max-width: 480px) {

.ad-banner-inner {
  padding: 0.5rem 0.75rem !important;
  min-height: unset !important;
  gap: 0.5rem !important;
  flex-direction: row !important;
  align-items: center !important;
}
.ad-banner-emoji { display: none !important; }
.ad-banner-title { font-size: 0.75rem !important; margin-bottom: 0 !important; }
.ad-banner-desc  { display: none !important; }
.ad-banner-btn   { padding: 0.3rem 0.65rem !important; font-size: 0.68rem !important; white-space: nowrap !important; }
  /* Header */
  .ad-banner-label {
  position: static !important;
  display: block !important;
  margin: 0.4rem auto 0 0.5rem !important;
  width: fit-content !important;
}
  .header-inner { padding: 0.5rem 0.75rem !important; }
  .tab-text { display: none !important; }
  .nav-tab  { padding: 0.5rem 0.6rem !important; }

  /* Container & Card */
  .container { padding: 1rem 0.6rem; }
  .card      { padding: 1rem 0.75rem; overflow: hidden; box-sizing: border-box; }

  /* ══ რესტორნების გრიდი ══ */
  .rest-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.4rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .rest-card {
    padding: 0.5rem !important;
    gap: 0.35rem !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .rest-card-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.9rem !important;
    flex-shrink: 0 !important;
    min-width: 28px !important;
  }
  .rest-card-name {
    font-size: 0.7rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .rest-card-sub {
    font-size: 0.58rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Result cards */
  .result-card  { padding: 0.75rem 0.6rem !important; gap: 0.4rem !important; }
  .result-rank  { font-size: 0.95rem; min-width: 22px; }
  .result-icon  { width: 32px !important; height: 32px !important; font-size: 0.9rem !important; }
  .result-name  { font-size: 0.78rem; padding-right: 1.6rem; }
  .result-score { font-size: 0.88rem !important; }
  .result-meta  { font-size: 0.64rem !important; }

  /* Pill/Cat buttons */
  .dish-pill-btn { padding: 0.28rem 0.55rem; font-size: 0.68rem; }
  .cat-btn       { padding: 0.3rem 0.6rem; font-size: 0.7rem; }
  .food-cat-btn  { padding: 0.3rem 0.6rem; font-size: 0.7rem; }

  /* Stars */
  .star-r { font-size: 1.4rem; }
  .s      { font-size: 1.1rem; }

  /* Steps */
  .step-item { font-size: 0.6rem; }
  .step-num  { width: 20px; height: 20px; font-size: 0.6rem; }
}
@keyframes slideOutLeft {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(-100%); opacity: 0; }
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.mobile-ads-slider {
  overflow: hidden;
  position: relative;
}
