/* marketplace.eu — fő stíluslap. A v8 demóból portolva. */

:root {
    /* Egységes kép-helyettesítő (nincs feltöltött kép): soft zöldes gradient + középre
       igazított, halvány „kép"-vonalikon. Egy helyen definiálva → mindenhol ugyanúgy néz ki. */
    --img-ph:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7b5ac' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='8.8' cy='8.8' r='1.6'/%3E%3Cpath d='m21 14.5-4.5-4.5L6 20.5'/%3E%3C/svg%3E")
        center / auto clamp(20px, 32%, 58px) no-repeat,
      linear-gradient(135deg, #f2f7f3, #e4ece6);
    --bg: #FFFFFF;
    --bg-soft: #FAFAFA;
    --bg-hover: #F4F4F5;
    --ink: #18181B;
    --ink-soft: #3F3F46;
    --ink-mute: #71717A;
    --ink-faint: #A1A1AA;
    --orange: #00a63e;
    --orange-hover: #008f34;
    --orange-soft: #E6F6EC;
    --border: #E4E4E7;
    --border-strong: #D4D4D8;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    --shadow-drawer: 0 0 32px rgba(0, 0, 0, 0.12);
    --shadow-modal: 0 24px 80px rgba(0, 0, 0, 0.24);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; font-style: normal !important; }
  html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
  html, body { overflow-x: hidden; max-width: 100%; }

  body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  body.no-scroll { overflow: hidden; }

  a { color: inherit; text-decoration: none; }
  button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
  img { display: block; max-width: 100%; }

  /* ============= TOP NAV ============= */
  .topnav {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .topnav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -0.02em;
    color: var(--ink);
    min-width: 0;
    flex-shrink: 1;
  }
  .logo-mark {
    width: 28px;
    height: 28px;
    background: var(--orange);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
  }
  .logo-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .top-search {
    flex: 1;
    max-width: 520px;
    position: relative;
  }
  .top-search input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    background: var(--bg-soft);
    border: 1px solid transparent;
    border-radius: 9px;
    font: inherit;
    font-size: 14px;
    color: var(--ink);
    transition: all 0.15s;
  }
  .top-search input:focus {
    outline: none;
    border-color: var(--orange);
    background: var(--bg);
    box-shadow: 0 0 0 3px var(--orange-soft);
  }
  .top-search input::placeholder { color: var(--ink-faint); }
  .top-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--ink-faint);
    pointer-events: none;
  }

  .top-right { display: flex; align-items: center; gap: 4px; margin-left: auto; }
  .lang-group { display: flex; gap: 2px; }
  .lang-btn {
    padding: 7px 10px;
    font-size: 13px;
    color: var(--ink-mute);
    font-weight: 500;
    border-radius: 6px;
  }
  .lang-btn:hover { background: var(--bg-hover); color: var(--ink); }
  .lang-btn.active { color: var(--orange); }

  .login-btn {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    border-radius: 7px;
    margin-left: 6px;
  }
  .login-btn:hover { background: var(--bg-hover); }
  .sell-btn {
    padding: 9px 16px;
    background: var(--orange);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s;
    margin-left: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  .sell-btn:hover { background: var(--orange-hover); }

  .menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
  }
  .menu-btn:hover { background: var(--bg-hover); }
  .search-icon-btn { display: none; }

  /* ============= BREADCRUMB ============= */
  .crumbs {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .crumbs-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--ink-mute);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .crumbs-inner::-webkit-scrollbar { display: none; }
  .crumbs-inner a { color: var(--ink-mute); }
  .crumbs-inner a:hover { color: var(--orange); }
  .crumbs-inner .sep { color: var(--ink-faint); }
  .crumbs-inner .cur { color: var(--ink); font-weight: 500; }

  /* ============= SUBCATEGORY BAR ============= */
  .catbar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 63px;
    z-index: 90;
  }
  .catbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .catbar-inner::-webkit-scrollbar { display: none; }
  .cat-item {
    padding: 16px 4px;
    margin-right: 22px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-mute);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
  }
  .cat-item.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
    font-weight: 600;
  }
  .cat-item:hover { color: var(--ink); }

  /* ============= PAGE HEADER ============= */
  .page-head {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 32px 0;
  }
  .page-head h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.025em;
    margin-bottom: 6px;
  }
  .page-head p {
    font-size: 14px;
    color: var(--ink-mute);
    max-width: 640px;
    line-height: 1.55;
  }

  /* ============= MAIN ============= */
  .main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 32px 80px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    /* Megakadályozza a layout-ugrást szűrésnél */
    min-height: calc(100vh - 200px);
  }

  /* ============= SIDEBAR ============= */
  aside {
    position: sticky;
    top: 130px;
    /* Ha a szűrő magasabb a viewportnál, NE vágódjon le az alja (klasszikus sticky-bug):
       korlátozott magasság + belső görgetés. */
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    overflow-x: hidden;
  }
  .drawer-header { display: none; }

  .filter-section {
    padding: 0 0 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border);
  }
  .filter-section:last-child { border-bottom: none; margin-bottom: 0; }
  .filter-section h4 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--ink);
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 13.5px;
    color: var(--ink-soft);
    cursor: pointer;
    user-select: none;
  }
  .checkbox-row:hover { color: var(--ink); }
  .checkbox-row input {
    width: 16px;
    height: 16px;
    accent-color: var(--orange);
    cursor: pointer;
    flex-shrink: 0;
  }

  .range-inputs { display: flex; gap: 8px; align-items: center; }
  .range-inputs input {
    width: 100%;
    min-width: 0;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 7px;
    font: inherit;
    font-size: 13px;
    background: var(--bg);
    color: var(--ink);
  }
  .range-inputs input:focus { outline: none; border-color: var(--orange); }
  .range-sep { color: var(--ink-faint); font-size: 13px; }

  .show-more {
    font-size: 12.5px;
    color: var(--orange);
    font-weight: 500;
    padding: 8px 0 0;
    cursor: pointer;
  }
  .show-more:hover { text-decoration: underline; }

  .filter-actions { display: none; gap: 10px; padding: 16px 0 0; }
  .reset-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
    background: var(--bg);
  }
  .apply-btn {
    flex: 2;
    padding: 12px;
    background: var(--orange);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
  }

  /* ============= CONTENT ============= */
  .content { min-width: 0; }

  .toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
  }
  .toolbar-left { display: flex; align-items: center; gap: 12px; }
  .count-text {
    font-size: 13.5px;
    color: var(--ink-mute);
  }
  .count-text strong { color: var(--ink); font-weight: 600; }

  .mobile-filter-toggle {
    display: none;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    background: var(--bg);
  }
  .mobile-filter-toggle svg { width: 15px; height: 15px; }
  .mobile-filter-toggle .badge {
    background: var(--orange);
    color: white;
    border-radius: 10px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
  }

  .sort-select {
    padding: 9px 36px 9px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%2371717A' d='M5 7L1 3h8z'/%3E%3C/svg%3E") no-repeat right 12px center;
    font: inherit;
    font-size: 13px;
    color: var(--ink);
    appearance: none;
    cursor: pointer;
    font-weight: 500;
  }
  .sort-select:focus { outline: none; border-color: var(--orange); }

  /* ============= LISTING GRID ============= */
  .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    /* Megakadályozza, hogy a grid összeessen kevés találatnál */
    min-height: 1000px;
    align-content: start;
  }
  .empty {
    grid-column: 1 / -1;
    padding: 60px 24px;
    text-align: center;
    color: var(--ink-mute);
    font-size: 14px;
    background: var(--bg-soft);
    border-radius: 10px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .empty h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
  }
  .empty p { margin-bottom: 18px; max-width: 360px; }
  .empty button {
    padding: 10px 20px;
    background: var(--ink);
    color: white;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
  }

  .lot {
    background: var(--bg);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
  }
  .lot:hover .lot-img-wrap { transform: translateY(-4px); }
  .lot:hover .lot-title { color: var(--orange); }

  .lot-img-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-soft);
    transition: transform 0.2s;
  }
  .lot-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
  }
  .lot:hover .lot-img-wrap img { transform: scale(1.03); }

  .lot-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: white;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
  }
  .lot-tag.hot { background: var(--orange); color: white; }
  .lot-tag.new { background: white; color: var(--ink); }

  .lot-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s;
  }
  .lot-fav:hover, .lot-fav.active { background: var(--orange-soft); }
  .lot-fav svg { width: 16px; height: 16px; color: var(--ink-mute); transition: color 0.15s; }
  .lot-fav.active svg { color: var(--orange); fill: var(--orange); }

  .lot-body {
    padding: 14px 4px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .lot-cat {
    font-size: 11.5px;
    color: var(--ink-mute);
    font-weight: 500;
  }
  .lot-title {
    font-size: 14.5px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
    margin-bottom: 2px;
  }
  .lot-meta {
    font-size: 12px;
    color: var(--ink-mute);
    margin-bottom: 8px;
  }
  .lot-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
  }
  .lot-price small {
    font-weight: 500;
    font-size: 12px;
    color: var(--ink-mute);
    margin-left: 2px;
  }

  /* ============= PAGINATION ============= */
  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 40px;
  }
  .pagination button {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    transition: all 0.15s;
  }
  .pagination button:hover { background: var(--bg-hover); color: var(--ink); }
  .pagination button.active { background: var(--orange); color: white; }
  .pagination .dots { color: var(--ink-faint); padding: 0 4px; font-size: 13px; }

  /* ============= DRAWER OVERLAY ============= */
  .drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s;
    z-index: 305; /* az alsó nav-sáv (200) FÖLÖTT */
  }
  /* A szűrő-drawer nyitva: az alsó nav-sáv ne látszódjon mögötte. */
  body:has(#filter-sidebar.open) .botnav { display: none; }
  .drawer-overlay.open { opacity: 1; pointer-events: auto; }

  /* ============= MODAL ============= */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 300;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-overlay.open {
    display: flex;
    animation: fadeIn 0.2s ease-out;
  }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes slideUp { from { transform: translateY(20px); opacity: 0.5; } to { transform: translateY(0); opacity: 1; } }

  .modal {
    background: white;
    border-radius: 14px;
    width: 100%;
    max-width: 680px;
    margin: auto;
    box-shadow: var(--shadow-modal);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.25s ease-out;
  }
  .modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
  }
  .modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
  }
  .modal-subtitle {
    font-size: 12px;
    color: var(--ink-mute);
    margin-top: 2px;
  }
  .modal-close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
  }
  .modal-close:hover { background: var(--bg-hover); color: var(--ink); }

  .modal-body {
    padding: 24px;
    overflow-y: auto;
  }

  .form-section {
    padding-bottom: 26px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--border);
  }
  .form-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  .form-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
  }
  .form-section h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--orange);
  }
  .section-link {
    font-size: 12px;
    color: var(--orange);
    font-weight: 500;
    cursor: pointer;
  }
  .section-link:hover { text-decoration: underline; }

  .category-display {
    padding: 12px 14px;
    background: var(--bg-soft);
    border-radius: 8px;
    font-size: 14px;
    color: var(--ink);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .category-display .sep { color: var(--ink-faint); }
  .category-display .cur { color: var(--orange); }

  .field { margin-bottom: 16px; }
  .field:last-child { margin-bottom: 0; }
  .field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
  }
  .field label .req { color: var(--orange); }
  .field label .opt { font-weight: 400; color: var(--ink-mute); font-size: 12px; }
  .field input[type="text"],
  .field input[type="number"],
  .field input[type="email"],
  .field input[type="tel"],
  .field input[type="password"],
  .field input[type="search"],
  .field input[type="url"],
  .field select,
  .field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    background: white;
    color: var(--ink);
    transition: all 0.15s;
  }
  .field textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
  }
  .field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-soft);
  }
  .field-hint {
    font-size: 12px;
    color: var(--ink-mute);
    margin-top: 6px;
    line-height: 1.45;
  }
  .field-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
  }
  .field-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: var(--orange-soft);
    color: var(--orange);
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 600;
    margin-top: 8px;
    cursor: pointer;
    transition: background 0.15s;
  }
  .ai-btn:hover { background: var(--orange); color: white; }
  .ai-btn svg { width: 13px; height: 13px; }

  .radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
  .radio-pill {
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
  }
  .radio-pill input { display: none; }
  .radio-pill:hover { border-color: var(--ink-soft); }
  .radio-pill.selected {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
  }

  .upload-zone {
    border: 2px dashed var(--border-strong);
    border-radius: 10px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    background: var(--bg-soft);
  }
  .upload-zone:hover {
    border-color: var(--orange);
    background: var(--orange-soft);
  }
  .upload-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    border-radius: 10px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
  }
  .upload-zone h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
  }
  .upload-zone p {
    font-size: 12.5px;
    color: var(--ink-mute);
  }
  .upload-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 12px;
  }
  .upload-thumb {
    aspect-ratio: 1;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--bg-hover), var(--bg-soft));
    position: relative;
    overflow: hidden;
  }
  .upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .upload-thumb .del {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
  }

  .tos-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: var(--bg-soft);
    border-radius: 10px;
    cursor: pointer;
  }
  .tos-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--orange);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 1px;
  }
  .tos-checkbox-text {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.5;
  }
  .tos-checkbox-text strong { color: var(--ink); font-weight: 600; }
  .tos-checkbox-text a { color: var(--orange); text-decoration: underline; }

  .modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-soft);
    position: sticky;
    bottom: 0;
  }
  .modal-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .modal-cancel {
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
    border-radius: 8px;
  }
  .modal-cancel:hover { background: var(--bg-hover); color: var(--ink); }
  .modal-submit {
    padding: 12px 22px;
    background: var(--orange);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s;
  }
  .modal-submit:hover { background: var(--orange-hover); }
  .modal-footer-note {
    font-size: 11.5px;
    color: var(--ink-mute);
    text-align: right;
  }

  /* ============= FOOTER ============= */
  footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 28px;
    margin-top: 64px;
  }
  .foot-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
  .foot-cols {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 32px;
  }
  .foot-cols h5 {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 14px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
  .foot-cols ul { list-style: none; }
  .foot-cols li { margin-bottom: 9px; }
  .foot-cols a {
    font-size: 13px;
    color: var(--ink-mute);
    transition: color 0.15s;
  }
  .foot-cols a:hover { color: var(--orange); }
  .foot-brand p {
    font-size: 13px;
    color: var(--ink-mute);
    line-height: 1.55;
    margin: 14px 0 0;
    max-width: 280px;
  }
  .foot-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--ink-faint);
  }
  .foot-bottom-links { display: flex; gap: 18px; }
  .foot-bottom-links a:hover { color: var(--orange); }

  /* ============= DETAIL VIEW ============= */
  .detail-view {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 150;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .detail-view.open { display: block; animation: fadeIn 0.2s ease-out; }

  .detail-topbar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 5;
  }
  .detail-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  .back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 10px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    transition: background 0.15s;
  }
  .back-btn:hover { background: var(--bg-hover); }
  .back-btn svg { width: 18px; height: 18px; }

  .detail-actions-top {
    display: flex;
    gap: 6px;
  }
  .icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    transition: all 0.15s;
  }
  .icon-btn:hover { background: var(--bg-hover); color: var(--ink); }
  .icon-btn.active { color: var(--orange); }
  .icon-btn svg { width: 18px; height: 18px; }

  .detail-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 32px 80px;
  }

  .detail-crumbs {
    font-size: 12.5px;
    color: var(--ink-mute);
    margin-bottom: 14px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
  }
  .detail-crumbs a { color: var(--ink-mute); }
  .detail-crumbs a:hover { color: var(--orange); }
  .detail-crumbs .sep { color: var(--ink-faint); }
  .detail-crumbs .cur { color: var(--ink); font-weight: 500; }

  .detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    margin-bottom: 48px;
  }

  /* Gallery */
  .gallery-main {
    aspect-ratio: 4/3;
    background: var(--bg-soft);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
  }
  .gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 11px;
    border-radius: 14px;
    font-size: 11.5px;
    font-weight: 600;
  }
  .gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: var(--shadow);
  }
  .gallery-nav:hover { background: white; }
  .gallery-nav.prev { left: 14px; }
  .gallery-nav.next { right: 14px; }

  .gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }
  .gallery-thumb {
    aspect-ratio: 1.2;
    background: var(--bg-soft);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: border-color 0.15s;
    padding: 0;
  }
  .gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .gallery-thumb.active { border-color: var(--orange); }

  /* Info column */
  .detail-info {
    min-width: 0;
  }
  .detail-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
  }
  .detail-tag {
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
  .detail-tag.hot { background: var(--orange); color: white; }
  .detail-tag.verified {
    background: #ECFDF5;
    color: #047857;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .detail-tag.verified svg { width: 11px; height: 11px; }
  .detail-tag.outline {
    background: white;
    color: var(--ink-soft);
    border: 1px solid var(--border);
  }

  .detail-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 4px;
  }
  .detail-subtitle {
    font-size: 14px;
    color: var(--ink-mute);
    margin-bottom: 18px;
  }
  .detail-price-block {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
  }
  .detail-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.025em;
    line-height: 1;
  }
  .detail-price-note {
    font-size: 12px;
    color: var(--ink-mute);
    margin-top: 6px;
  }

  .specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
    margin-bottom: 22px;
  }
  .spec-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
  }
  .spec-row:nth-last-child(-n+2) { border-bottom: none; }
  .spec-row .label { color: var(--ink-mute); }
  .spec-row .value { color: var(--ink); font-weight: 600; }

  .detail-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
  }
  .btn-primary, .btn-secondary {
    padding: 13px 18px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s;
    cursor: pointer;
  }
  .btn-primary {
    background: var(--orange);
    color: white;
  }
  .btn-primary:hover { background: var(--orange-hover); }
  .btn-secondary {
    background: var(--bg);
    color: var(--ink);
    border: 1px solid var(--border-strong);
  }
  .btn-secondary:hover { border-color: var(--ink); }
  .btn-secondary svg { width: 16px; height: 16px; }

  .seller-card {
    padding: 18px;
    background: var(--bg-soft);
    border-radius: 12px;
  }
  .seller-card h5 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-mute);
    margin-bottom: 14px;
  }
  .seller-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
  }
  .seller-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
  }
  .seller-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
  }
  .seller-type {
    font-size: 12px;
    color: var(--ink-mute);
    margin-top: 2px;
  }
  .seller-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }
  .seller-stat {
    text-align: center;
  }
  .seller-stat-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
  }
  .seller-stat-label {
    font-size: 10.5px;
    color: var(--ink-mute);
    margin-top: 2px;
  }

  /* Below grid sections */
  .detail-section {
    padding: 28px 0;
    border-top: 1px solid var(--border);
  }
  .detail-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin-bottom: 14px;
  }
  .detail-description {
    font-size: 14.5px;
    color: var(--ink-soft);
    line-height: 1.65;
    max-width: 760px;
  }
  .detail-description p { margin-bottom: 12px; }
  .detail-description p:last-child { margin-bottom: 0; }
  .detail-description strong { color: var(--ink); font-weight: 600; }

  .location-card {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
  }
  .location-map {
    flex: 1;
    min-width: 280px;
    aspect-ratio: 16/9;
    max-height: 220px;
    background:
      linear-gradient(135deg, #E8F0E0 0%, #DFEFD8 100%),
      repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(0,0,0,0.04) 14px, rgba(0,0,0,0.04) 28px);
    border-radius: 10px;
    position: relative;
    border: 1px solid var(--border);
  }
  .location-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    color: var(--orange);
  }
  .location-pin svg { width: 36px; height: 36px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
  .location-text { flex: 1; min-width: 200px; }
  .location-text h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
  }
  .location-text p {
    font-size: 13.5px;
    color: var(--ink-mute);
    line-height: 1.55;
  }

  .similar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  /* Mobile sticky CTA */
  .mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    z-index: 10;
    gap: 8px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  }
  .mobile-cta-bar .btn-primary { flex: 1; padding: 12px; }


  @media (max-width: 960px) {
    .main { grid-template-columns: 1fr; gap: 0; padding-top: 20px; min-height: auto; }

    /* Mobil szűrő = TELJES KÉPERNYŐS, alulról feljövő modál (sticky fejléc + görgethető
       törzs + sticky "Mutasd a találatokat" gomb). z-index a bottom nav (200) FÖLÖTT. */
    aside {
      position: fixed;
      inset: 0;
      width: 100%;
      max-width: 100%;
      background: var(--bg);
      padding: 0;
      z-index: 310;
      transform: translateY(100%);
      transition: transform 0.28s ease-out;
      box-shadow: var(--shadow-drawer);
      /* Flex-oszlop: fejléc fent, a FORMA görget középen, apply-sáv alul. Az aside maga
         NEM görget → nincs scroll-chaining a háttér-oldalra. */
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    aside.open { transform: translateY(0); }
    /* CSAK a forma görög, és a görgetés NEM száll át a háttérre (overscroll-behavior). */
    #filter-sidebar > form {
      flex: 1 1 auto;   /* flex-ITEM az aside-ban: kitölti a fejléc alatti helyet */
      min-height: 0;    /* engedi a content alá zsugorodni → működik a túlcsordulás */
      overflow-y: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      /* FONTOS: a forma BELÜL block, NEM flex! Flex-oszlopként a szekciók flex-shrink:1
         miatt összenyomódnának a forma magasságára → nem lenne mit görgetni.
         Block esetén a szekciók természetes magasságot kapnak, túlcsordulnak, görget. */
      display: block;
    }

    .drawer-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      padding: 14px 16px;
      border-bottom: 1px solid var(--border);
      background: var(--bg);
      flex: none; /* a flex-oszlop fix teteje */
    }
    .drawer-header h3 { font-size: 16px; font-weight: 700; color: var(--ink); flex: 1; text-align: center; }
    /* Felső "Mutasd a találatokat" gomb a fejlécben (a forma kívülről submitálja: form="browse-form") */
    .drawer-apply {
      flex: none; padding: 9px 16px; border-radius: 9px; border: 0;
      background: var(--orange); color: #fff; font: inherit; font-size: 13.5px; font-weight: 700; white-space: nowrap;
    }
    .drawer-apply:active { background: var(--orange-hover); }
    .drawer-close {
      width: 40px;
      height: 40px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--ink-soft);
    }
    .drawer-close:hover { background: var(--bg-hover); }

    aside > .filter-section:first-of-type { padding-top: 18px; }
    aside .filter-section { padding-left: 22px; padding-right: 22px; }
    .filter-actions {
      display: flex;
      align-items: center;
      padding: 16px 22px calc(20px + env(safe-area-inset-bottom));
      position: sticky;
      bottom: 0;
      background: var(--bg);
      border-top: 1px solid var(--border);
    }
    /* "Szűrők törlése" mindig 1 sorban; a "Mutasd a találatokat" gomb kisebb. */
    .filter-actions .reset-btn { flex: 0 1 auto; white-space: nowrap; padding: 11px 15px; font-size: 13px; }
    .filter-actions .apply-btn { flex: 1 1 auto; padding: 11px 14px; font-size: 13.5px; }

    .drawer-overlay { display: block; }
    .mobile-filter-toggle { display: inline-flex; }
    .grid { grid-template-columns: repeat(3, 1fr); min-height: 600px; }
    .foot-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  }

  @media (max-width: 768px) {
    .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; min-height: 500px; }
    .lot-title { font-size: 14px; }
    .lot-price { font-size: 17px; }
    .lot-meta { font-size: 11.5px; }
    .lot-body { padding-top: 12px; }
  }

  @media (max-width: 640px) {
    .topnav-inner { padding: 12px 16px; gap: 10px; }
    .top-search { display: none; }
    .login-btn, .lang-group, .map-nav-link { display: none; }
    .logo-tld { display: none; }
    .logo { font-size: 17px; }
    .menu-btn { display: flex; }
    .search-icon-btn { display: flex; }
    .sell-btn-text { display: none; }
    .sell-btn { padding: 9px 11px; }

    .crumbs-inner { padding: 10px 16px; font-size: 12px; }
    .catbar-inner { padding: 0 16px; }
    .cat-item { padding: 14px 4px; margin-right: 18px; font-size: 13px; }
    .page-head { padding: 22px 16px 0; }
    .page-head h1 { font-size: 22px; }
    .page-head p { font-size: 13px; }
    .main { padding: 18px 16px 40px; }
    .toolbar { gap: 10px; }
    .toolbar-left { width: 100%; justify-content: space-between; }
    .count-text { font-size: 13px; }
    .sort-select { width: 100%; }

    .foot-inner { padding: 0 16px; }
    .foot-cols { grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
    .catbar { top: 57px; }

    /* Modal mobile: full screen */
    .modal-overlay { padding: 0; }
    .modal {
      max-width: 100%;
      min-height: 100vh;
      border-radius: 0;
      animation: none;
    }
    .modal-header { padding: 16px 18px; }
    .modal-body { padding: 18px; }
    .modal-footer { padding: 14px 18px; }
    .field-row, .field-row-3 { grid-template-columns: 1fr; }
  }

  @media (max-width: 420px) {
    .grid { grid-template-columns: 1fr; gap: 18px; min-height: 400px; }
    .lot-title { font-size: 15px; }
    .lot-price { font-size: 19px; }
    .lot-meta { font-size: 12.5px; }
  }

  /* Detail view responsive */
  @media (max-width: 1000px) {
    .detail-grid { grid-template-columns: 1fr; gap: 28px; }
    .similar-grid { grid-template-columns: repeat(3, 1fr); }
  }
  @media (max-width: 768px) {
    .similar-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 640px) {
    .detail-topbar-inner { padding: 12px 16px; }
    .detail-content { padding: 20px 16px 110px; }
    .detail-title { font-size: 22px; }
    .detail-price { font-size: 28px; }
    .specs-grid { grid-template-columns: 1fr; }
    .spec-row:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
    .spec-row:last-child { border-bottom: none; }
    .gallery-thumbs { grid-template-columns: repeat(5, 1fr); gap: 6px; }
    .gallery-nav { width: 36px; height: 36px; }
    /* Mobilon az üzenet/Mentve gomb INLINE látszódjon (eddig rejtve volt), a fix alsó
       CTA-sávot pedig elrejtjük (ütközött az alsó nav-sávval és a rejtett mezőre fókuszált). */
    .mobile-cta-bar { display: none; }
    .detail-actions { display: flex; }
  }

/* ============= KIEGÉSZÍTŐ KOMPONENSEK (template-ekhez) ============= */

/* Flash / alert üzenetek */
.flash { max-width: 1280px; margin: 16px auto 0; padding: 0 32px; }
.alert {
  padding: 12px 16px; border-radius: 9px; font-size: 13.5px; font-weight: 500;
  display: flex; gap: 10px; align-items: center;
}
.alert.error   { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.alert.success { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.alert.info    { background: var(--orange-soft); color: var(--orange-hover); border: 1px solid #B7E4C7; }

/* Auth / egyszerű középre zárt kártya oldalak */
.auth-wrap {
  max-width: 440px; margin: 56px auto; padding: 0 20px;
}
.auth-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 32px; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.auth-card .sub { font-size: 13.5px; color: var(--ink-mute); margin-bottom: 22px; line-height: 1.5; }
.auth-card .field { margin-bottom: 16px; }
.auth-icon {
  width: 52px; height: 52px; border-radius: 13px; background: var(--orange-soft);
  color: var(--orange); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.auth-icon svg { width: 26px; height: 26px; }
.btn-block { width: 100%; justify-content: center; }
.auth-foot { font-size: 12.5px; color: var(--ink-mute); margin-top: 18px; text-align: center; }
.auth-foot a { color: var(--orange); font-weight: 600; }

/* Kódos belépés (login_sent oldal) */
.code-box { margin: 22px 0 14px; padding: 18px; border: 1px solid var(--border);
  border-radius: 14px; background: var(--bg-soft); text-align: left; }
.code-intro { font-size: 13px; color: var(--ink-soft); margin: 0 0 12px; line-height: 1.5; }
.code-input { width: 100%; box-sizing: border-box; margin-bottom: 12px; padding: 14px;
  border: 1px solid var(--border); border-radius: 11px; background: #fff; outline: none;
  font: inherit; font-size: 26px; font-weight: 800; letter-spacing: 10px; text-align: center; color: var(--ink); }
.code-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.code-input::placeholder { letter-spacing: 8px; color: var(--ink-faint); font-weight: 400; }

/* Dashboard / account */
.acc-shell { max-width: 1280px; margin: 0 auto; padding: 32px; }
.acc-shell h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 24px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 20px;
}
.stat-card .num { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.stat-card .lbl { font-size: 12.5px; color: var(--ink-mute); margin-top: 4px; }
.acc-nav { display: flex; gap: 7px; margin-bottom: 24px; flex-wrap: nowrap;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.acc-nav::-webkit-scrollbar { display: none; }
.acc-nav a {
  padding: 9px 13px; border-radius: 8px; font-size: 13px; font-weight: 600;
  color: var(--ink-soft); background: var(--bg-soft);
  white-space: nowrap; flex-shrink: 0;
}
.acc-nav a.active { background: var(--orange); color: white; }
.acc-nav form { flex-shrink: 0; }
.acc-nav form button { white-space: nowrap; }

/* Lista-sorok (account/admin) */
.list-row {
  display: flex; gap: 16px; align-items: center; padding: 14px;
  border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; background: var(--bg);
}
.list-row .thumb {
  width: 92px; height: 70px; border-radius: 8px; object-fit: cover; background: var(--bg-soft); flex-shrink: 0;
}
.list-row .grow { flex: 1; min-width: 0; }
.list-row .t { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.list-row .m { font-size: 12.5px; color: var(--ink-mute); margin-top: 3px; }
.status-pill {
  display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.status-pill.active   { background: #ECFDF5; color: #047857; }
.status-pill.pending  { background: var(--orange-soft); color: var(--orange-hover); }
.status-pill.draft    { background: var(--bg-hover); color: var(--ink-mute); }
.status-pill.rejected { background: #FEF2F2; color: #B91C1C; }
.status-pill.sold     { background: #EFF6FF; color: #1D4ED8; }

/* ===== EGYSÉGES kép-helyettesítő — MINDEN kártyán/galérián/találaton/listán ugyanaz =====
   A belső "PiacTér" / "—" / "📦" tartalmat elrejtjük (font-size:0), és a közös
   --img-ph hátteret tesszük rá. !important, mert a home.css .ph szabályai később töltődnek. */
.img-ph,
.thumb-ph,
.hp-row .ph,
.hp-card-img .ph,
.cell-thumb:empty,
.st-thumb {
  background: var(--img-ph) !important;
  font-size: 0 !important;
  color: transparent !important;
  text-indent: -9999px;        /* extra biztosíték a szöveg/emoji elrejtésére */
}
.st-thumb img, .hp-row .ph img, .hp-card-img .ph img { text-indent: 0; }

/* Admin elrendezés */
.admin-bar {
  background: var(--ink); color: white; padding: 12px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-bar .brand { font-weight: 700; font-size: 15px; }
.admin-bar form { margin: 0; }
.admin-bar button { color: #D4D4D8; font-size: 13px; font-weight: 600; }
.admin-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin-bottom: 14px; background: var(--bg);
}
.admin-card .head { display: flex; gap: 14px; align-items: flex-start; }
.admin-card .actions { display: flex; gap: 8px; margin-top: 14px; }
.btn-approve { background: var(--orange); color: white; padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 13.5px; }
.btn-reject  { background: var(--bg); color: #B91C1C; border: 1px solid #FECACA; padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 13.5px; }

/* Hero (home) */
/* ============= HERO (modern, kereső-központú) ============= */
.hero {
  position: relative;
  max-width: 1280px;
  margin: 18px auto 0;
  padding: 52px 24px 40px;
  text-align: center;
  background:
    radial-gradient(1200px 320px at 50% -40%, var(--orange-soft), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: 20px;
}
.hero h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 12px;
}
.hero p {
  font-size: 16px;
  color: var(--ink-mute);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Hero kereső: kategória + szövegmező + gomb */
.hero-search {
  display: flex;
  align-items: stretch;
  max-width: 700px;
  margin: 28px auto 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.hero-search select {
  border: none;
  border-right: 1px solid var(--border);
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-soft);
  cursor: pointer;
  max-width: 180px;
}
.hero-search select:focus { outline: none; }
.hero-search input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 17px 18px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
}
.hero-search input:focus { outline: none; }
.hero-search button {
  border: none;
  background: var(--orange);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 0 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}
.hero-search button:hover { background: var(--orange-hover); }
.hero-search button svg { width: 17px; height: 17px; }

/* Kategória pill gyorslinkek a kereső alatt */
.cat-tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin: 22px auto 4px;
  max-width: 840px;
}
.cat-tiles .cat-tile {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: all 0.15s;
}
.cat-tiles .cat-tile:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-soft);
}

/* ============= MOBIL NAV DRAWER ============= */
.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1190;
}
.nav-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.nav-drawer {
  position: fixed;
  /* top+bottom pinnelés = garantáltan TELJES viewport-magasság (megbízhatóbb mint a
     100vh/100dvh, ami egyes Android böngészőkben rövidebbet adott). */
  top: 0;
  bottom: 0;
  left: 0;
  width: 320px;
  max-width: 86vw;
  background: var(--bg);
  /* a Leaflet vezérlők z-index 1000-en vannak — a drawernek FÖLÖTTE kell lennie a térkép-oldalon is */
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.28s ease-out;
  box-shadow: var(--shadow-drawer);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.nav-drawer-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.nav-drawer-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 18px 6px;
  padding: 11px 14px;
  background: var(--bg-soft);
  border-radius: 10px;
}
.nav-drawer-search svg { width: 16px; height: 16px; color: var(--ink-faint); flex-shrink: 0; }
.nav-drawer-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}
.nav-drawer-search input:focus { outline: none; }
.nav-drawer-links { display: flex; flex-direction: column; padding: 8px 12px; }
.nav-drawer-links a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 12px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.nav-drawer-links a:hover { background: var(--bg-hover); }
.nav-drawer-links a svg { color: var(--ink-soft); }
.nav-drawer-cta {
  background: var(--orange) !important;
  color: #fff !important;
  font-weight: 700 !important;
  justify-content: center;
  margin-bottom: 6px;
}
.nav-drawer-cta svg { color: #fff !important; }
.nav-drawer-langs {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding: 16px 20px 24px;
  border-top: 1px solid var(--border);
}
.nav-drawer-langs .lang-btn {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.nav-drawer-langs .lang-btn.active { border-color: var(--orange); color: var(--orange); }

@media (max-width: 768px) {
  .hero { margin: 12px 12px 0; padding: 40px 18px 30px; border-radius: 16px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 14.5px; }
  .hero-search { flex-wrap: wrap; border-radius: 12px; }
  .hero-search select { max-width: none; flex: 1 1 100%; border-right: none; border-bottom: 1px solid var(--border); padding: 13px 14px; }
  .hero-search input { flex: 1 1 auto; padding: 14px 16px; }
  .hero-search button { padding: 0 20px; }
}

.cat-tiles-old { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 24px 0 8px; }
.cat-tile {
  padding: 16px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft);
  font-weight: 600; font-size: 13.5px; color: var(--ink); text-align: center; transition: all .15s;
}
.cat-tile:hover { border-color: var(--orange); color: var(--orange); }

/* Autocomplete dropdown */
.ac-box {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: 6px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); z-index: 120; overflow: hidden;
}
.ac-box a { display: block; padding: 10px 14px; font-size: 13.5px; color: var(--ink-soft); }
.ac-box a:hover { background: var(--bg-hover); color: var(--ink); }

@media (max-width: 768px) {
  .stat-row { grid-template-columns: 1fr; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .acc-shell, .hero { padding-left: 16px; padding-right: 16px; }
}

/* ============= GOOGLE GOMB + AUTH DIVIDER ============= */
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 16px; border: 1px solid var(--border-strong);
  border-radius: 9px; background: var(--bg); color: var(--ink);
  font-size: 14px; font-weight: 600; transition: background 0.15s;
}
.google-btn:hover { background: var(--bg-hover); }
.auth-divider {
  display: flex; align-items: center; text-align: center;
  color: var(--ink-faint); font-size: 12px; margin: 18px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
.auth-divider span { padding: 0 12px; }

/* ============= LEAFLET TÉRKÉP ============= */
.detail-leaflet {
  width: 100%; aspect-ratio: 16/9; max-height: 320px;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
  z-index: 0;
}
.leaflet-container { font: inherit; }

/* ============= ACCOUNT UI (dashboard, üzenetek, sorok) ============= */
[x-cloak] { display: none !important; }

.acc-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:20px; flex-wrap:wrap; }
.acc-head h1 { margin:0; }
.acc-sub { color:var(--ink-mute); font-size:13.5px; margin-top:4px; }

.nav-badge { display:inline-block; background:var(--orange); color:#fff; border-radius:10px;
  padding:1px 7px; font-size:11px; font-weight:700; vertical-align:middle; }

a.stat-card { text-decoration:none; transition:border-color .15s, transform .15s; }
a.stat-card:hover { border-color:var(--orange); transform:translateY(-2px); }

.acc-tiles { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:24px; }
.acc-tile { display:flex; gap:14px; align-items:center; padding:18px; border:1px solid var(--border);
  border-radius:12px; background:var(--bg); transition:border-color .15s; }
.acc-tile:hover { border-color:var(--orange); }
.acc-tile-ic { font-size:26px; }
.acc-tile-t { font-weight:700; font-size:14.5px; color:var(--ink); }
.acc-tile-d { font-size:12.5px; color:var(--ink-mute); margin-top:2px; }

.row-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.btn-mini { padding:7px 12px; border-radius:7px; font-size:12.5px; font-weight:600;
  background:var(--bg-soft); color:var(--ink-soft); border:1px solid var(--border); cursor:pointer; }
.btn-mini:hover { background:var(--bg-hover); color:var(--ink); }
.btn-mini.danger { color:#B91C1C; border-color:#FECACA; background:#FEF2F2; }
.btn-mini.danger:hover { background:#FEE2E2; }

/* Üzenet-szálak listája */
.thread-row { text-decoration:none; }
.thread-row.unread { border-color:var(--orange); background:var(--orange-soft); }
.thread-avatar { width:44px; height:44px; border-radius:50%; background:var(--orange); color:#fff;
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:17px; flex-shrink:0; }
.thread-preview { font-size:12.5px; color:var(--ink-mute); margin-top:4px; overflow:hidden;
  text-overflow:ellipsis; white-space:nowrap; max-width:520px; }
.thread-time { font-size:11.5px; color:var(--ink-faint); white-space:nowrap; }

/* Chat nézet */
.back-link { display:inline-block; color:var(--ink-mute); font-size:13px; font-weight:600; margin-bottom:16px; }
.back-link:hover { color:var(--orange); }
.thread-head { display:flex; gap:12px; align-items:center; padding-bottom:16px; margin-bottom:16px; border-bottom:1px solid var(--border); }
.thread-head-name { font-weight:700; font-size:15px; }
.thread-head-listing { font-size:12.5px; color:var(--orange); font-weight:600; }
.chat { display:flex; flex-direction:column; gap:10px; margin-bottom:18px; }
.chat-empty { color:var(--ink-mute); font-size:13.5px; text-align:center; padding:24px; }
.bubble { max-width:78%; padding:10px 14px; border-radius:14px; font-size:14px; line-height:1.45; }
.bubble-body { white-space:pre-wrap; word-wrap:break-word; }
.bubble-time { font-size:10.5px; opacity:.7; margin-top:4px; }
.bubble.mine { align-self:flex-end; background:var(--orange); color:#fff; border-bottom-right-radius:4px; }
.bubble.theirs { align-self:flex-start; background:var(--bg-hover); color:var(--ink); border-bottom-left-radius:4px; }
.chat-form { display:flex; gap:10px; align-items:flex-end; }
.chat-form textarea { flex:1; padding:11px 14px; border:1px solid var(--border); border-radius:9px;
  font:inherit; font-size:14px; resize:vertical; min-height:46px; }
.chat-form textarea:focus { outline:none; border-color:var(--orange); }

/* Hirdetés képe az üzeneteknél (inbox sor + szál fejléce) */
.thread-listing-thumb { width:48px; height:48px; border-radius:10px; object-fit:cover;
  background:var(--bg-soft); flex-shrink:0; }
.thread-head-thumb { width:52px; height:52px; border-radius:10px; object-fit:cover;
  background:var(--bg-soft); flex-shrink:0; display:block; }
.thread-head-info { min-width:0; display:flex; flex-direction:column; gap:2px; }
.thread-head-price { font-size:13px; font-weight:800; color:var(--ink); }

@media (max-width:768px) {
  .acc-tiles { grid-template-columns:1fr; }
}

/* ============= TOAST + KEDVENC GOMB ÁLLAPOT ============= */
#toast-host {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px; z-index: 400;
  pointer-events: none; align-items: center;
}
.toast {
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-modal);
  opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-error { background: #B91C1C; }

/* A részletes oldal Mentés gombja mentett állapotban */
.fav-toggle.is-fav {
  border-color: var(--orange); color: var(--orange); background: var(--orange-soft);
}
.fav-toggle.is-fav svg { color: var(--orange); }

/* Térkép nav-link a topnavban */
.map-nav-link { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 640px) { .map-nav-text { display: none; } }

/* ============= TÉRKÉPES KERESŐ =============
   Teljesen magasság-zárolt layout: a BODY soha nem görget (csak a találati lista,
   belül). Így a térkép mérete SOHA nem függ a tartalomtól, a szűrőktől vagy a mobil
   URL-sáv mozgásától → nincs rángatózás. A footer a térkép-oldalon el van rejtve. */
body:has(.map-page) { overflow: hidden; padding-bottom: 0; }
body:has(.map-page) footer { display: none; }
/* Immerzív térkép-oldal: az alsó nav-sáv NE takarja a találati listát (mobilon ettől látszott csak 1). */
body:has(.map-page) .botnav { display: none; }
.map-page {
  display: grid;
  grid-template-columns: 380px 1fr;
  height: calc(100vh - 63px);
  height: calc(100dvh - 63px);   /* dvh: stabil mobil URL-sáv mellett is */
  overflow: hidden;
}
.map-sidebar { display: flex; flex-direction: column; border-right: 1px solid var(--border);
  min-width: 0; min-height: 0; overflow: hidden; }
.map-sidebar-head { padding: 20px 22px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.map-sidebar-head h1 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.map-sub { font-size: 13px; color: var(--ink-mute); margin: 6px 0 14px; line-height: 1.45; }
.map-search { position: relative; }
.map-search input { width: 100%; padding: 10px 14px 10px 40px; background: var(--bg-soft);
  border: 1px solid transparent; border-radius: 9px; font: inherit; font-size: 14px; }
.map-search input:focus { outline: none; border-color: var(--orange); background: var(--bg); box-shadow: 0 0 0 3px var(--orange-soft); }
.map-search .top-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--ink-faint); }
.map-count { font-size: 13px; color: var(--ink-mute); }
.map-count strong { color: var(--ink); }
.map-results { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 10px 14px 24px; }
.map-res { display: flex; gap: 12px; padding: 10px; border-radius: 10px; margin-bottom: 6px; transition: background .12s; }
.map-res:hover { background: var(--bg-hover); }
.map-res img, .map-res .thumb-ph { width: 76px; height: 58px; border-radius: 7px; object-fit: cover; background: var(--bg-soft); flex-shrink: 0; }
.map-res-b { min-width: 0; }
.map-res-t { font-size: 13.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-res-p { font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.map-res-c { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }
.map-canvas { height: 100%; min-height: 0; z-index: 0; }

/* Ár-buborék marker — a konténer maga méretezett (iconSize/iconAnchor a JS-ben),
   így a kattintási terület pontosan a látható buborékra esik (nincs translate-trükk). */
.price-marker { display: flex; align-items: center; justify-content: center; background: none; border: none; }
.price-marker span {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--orange); color: #fff; font-weight: 700;
  font-size: 12px; padding: 4px 9px; border-radius: 13px; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,.3); border: 2px solid #fff;
  line-height: 1; height: 100%;
}
.price-marker:hover span { background: var(--orange-hover); z-index: 1; }

/* Klaszter-buborék — saját, márka-narancs stílus (nincs zöld default theme) */
.marker-cluster { background: var(--orange-soft); border-radius: 50%; }
.marker-cluster div {
  width: 32px; height: 32px; margin: 4px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.25); border: 2px solid #fff;
}
.marker-cluster span { font-size: 12.5px; line-height: 1; }

/* ===== Komplex térkép-szűrő a sidebarban ===== */
.map-filters { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.mf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mf-field { display: flex; flex-direction: column; gap: 5px; }
.mf-field label { font-size: 11.5px; font-weight: 700; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .03em; }
.mf-field select, .mf-field input {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px;
  font: inherit; font-size: 13.5px; color: var(--ink); background: var(--bg);
}
.mf-field select:focus, .mf-field input:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft);
}
.mf-range { display: flex; align-items: center; gap: 8px; }
.mf-range span { color: var(--ink-faint); }
.mf-actions { display: flex; justify-content: flex-end; }
.mf-reset {
  background: none; border: none; color: var(--ink-mute); font-size: 12.5px;
  font-weight: 600; cursor: pointer; padding: 4px 2px;
}
.mf-reset:hover { color: var(--orange); }

/* Stilizált kapcsoló (toggle) */
.mf-toggle {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 12px 14px; background: var(--bg-soft); border-radius: 10px;
  border: 1px solid var(--border);
}
.mf-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.mf-switch {
  position: relative; flex-shrink: 0; width: 40px; height: 23px;
  background: var(--border-strong, #cbd5e1); border-radius: 999px; transition: background .2s;
}
.mf-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px;
  background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s;
}
.mf-toggle input:checked + .mf-switch { background: var(--orange); }
.mf-toggle input:checked + .mf-switch::after { transform: translateX(17px); }
.mf-toggle input:focus-visible + .mf-switch { box-shadow: 0 0 0 3px var(--orange-soft); }
.mf-toggle-text { font-size: 13px; font-weight: 600; color: var(--ink); }
.mf-search-here {
  width: 100%; padding: 11px; background: var(--orange); color: #fff;
  border: none; border-radius: 9px; font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer;
}
.mf-search-here:hover { background: var(--orange-hover); }

/* Fejléc-sor: találatszám + (mobilon) szűrő-kapcsoló gomb */
.map-headbar { margin-top: 12px; }
.map-filter-toggle {
  display: none; align-items: center; gap: 7px;
  padding: 8px 14px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 9px; font: inherit; font-weight: 600; font-size: 13px; color: var(--ink); cursor: pointer;
}
.map-filter-toggle:hover { border-color: var(--orange); color: var(--orange); }
.map-filter-toggle svg { width: 15px; height: 15px; }
/* Gombcsoport a fejlécben: Szűrők törlése + Szűrők */
.map-headbar-btns { display: flex; align-items: center; gap: 8px; }
.map-clear {
  background: none; border: none; color: var(--ink-mute); font: inherit; font-size: 12.5px;
  font-weight: 600; cursor: pointer; padding: 6px 4px; white-space: nowrap; text-decoration: underline;
}
.map-clear:hover { color: var(--orange); }
/* A teljes-képernyős modál fejléce + alsó "kész" gomb CSAK mobilon látszik */
.mf-modal-head { display: none; }
.mf-done { display: none; }

/* Popup tartalom — letisztult kártya */
.leaflet-popup-content-wrapper { border-radius: 14px; padding: 0; overflow: hidden;
  box-shadow: 0 10px 34px rgba(0,0,0,.2); }
.leaflet-popup-content { margin: 0 !important; width: 216px !important; }
.leaflet-popup-tip { box-shadow: 0 10px 34px rgba(0,0,0,.2); }
.map-pop { display: block; width: 216px; color: var(--ink); }
.map-pop img { width: 100%; height: 124px; object-fit: cover; display: block; }
.map-pop-b { padding: 11px 13px 13px; }
.map-pop-t { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.map-pop-p { font-size: 16px; font-weight: 800; color: var(--orange); margin-top: 6px; }
.map-pop-c { font-size: 12px; color: var(--ink-mute); margin-top: 4px;
  display: flex; align-items: center; gap: 4px; }

/* Popup zárógomb — kerek, fehér, a kép sarkában */
.leaflet-popup-close-button {
  width: 26px !important; height: 26px !important; top: 8px !important; right: 8px !important;
  background: rgba(255,255,255,.94) !important; border-radius: 50% !important;
  color: var(--ink) !important; font: 700 17px/24px inherit !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center;
}
.leaflet-popup-close-button:hover { background: #fff !important; color: var(--orange) !important; }

@media (max-width: 860px) {
  /* Mobilon NEM magasság-zárolt: a térkép fent fix magasságú, a TELJES találati lista
     alatta folyik, és az EGÉSZ OLDAL görget (nem egy pici belső doboz). Sokkal jobb UX. */
  body:has(.map-page) { overflow: auto; }
  .map-page {
    display: flex; flex-direction: column;
    grid-template-columns: 1fr;
    height: auto;
  }
  .map-canvas { height: 46vh; height: 46dvh; flex: none; order: 1; }
  .map-sidebar { flex: none; min-height: 0; border-right: none; order: 2; }
  .map-sidebar-head { position: relative; }
  /* A lista a normál oldal-folyamban van, az oldal görgeti (nincs pici belső scroll). */
  .map-results { flex: none; overflow: visible; max-height: none; padding-top: 8px; }

  .map-filter-toggle { display: flex; }
  .map-headbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }

  /* A szűrő mobilon TELJES KÉPERNYŐS modál (mint a böngésző-szűrő) — nem egy pici
     sávban tolva a térkép alá. Az egész modál görget, a mezők NEM nyomódnak össze. */
  .map-filters {
    /* z-index a Leaflet vezérlők (1000: zoom + attribúció) FÖLÖTT, különben azok átlátszanak a modálon */
    position: fixed; inset: 0; z-index: 1500;
    background: var(--bg); margin: 0;
    padding: 0 20px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  }
  /* FONTOS: a flex-oszlop gyerekei ne zsugorodjanak (flex-shrink) → természetes magasság, görget */
  .map-filters > * { flex-shrink: 0; }
  /* A modál fejléce (cím + X) ragad felül */
  .mf-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; margin: 0 -20px 12px; padding: 14px 16px;
    background: var(--bg); border-bottom: 1px solid var(--border); z-index: 2;
  }
  .mf-modal-head span { font-size: 16px; font-weight: 700; color: var(--ink); }
  .mf-modal-close { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; color: var(--ink-soft); background: none; border: 0; }
  /* Alsó "Mutasd a találatokat" gomb (bezárja a modált; a térkép amúgy is élőben szűr) */
  .mf-done {
    display: block; width: 100%; margin-top: 4px; padding: 13px;
    background: var(--orange); color: #fff; border: 0; border-radius: 10px;
    font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer;
  }
  /* Háttér-oldal zárolása, amíg a modál nyitva (nincs mögötte görgetés) */
  body:has(.map-page.mf-open) { overflow: hidden; }
}

/* Hirdetésfeladó dinamikus mező-rács */
.dyn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dyn-grid .field { margin-bottom: 0; }
@media (max-width: 560px) { .dyn-grid { grid-template-columns: 1fr; } }

/* ============= HELYSZÍN GEOKÓDOLÁS (feladó űrlap) ============= */
.geo-find-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 9px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink);
  cursor: pointer; transition: border-color .15s, color .15s;
}
.geo-find-btn:hover { border-color: var(--orange); color: var(--orange); }
.geo-find-btn:disabled { opacity: .6; cursor: default; }
.geo-find-btn svg { color: var(--orange); }

.geo-candidates { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.geo-candidates > label { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 2px; }
.geo-cand {
  text-align: left; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); font: inherit; font-size: 13px; color: var(--ink-soft);
  cursor: pointer; line-height: 1.35; transition: all .12s;
}
.geo-cand:hover { border-color: var(--orange); background: var(--bg-soft); }
.geo-cand.active { border-color: var(--orange); background: var(--orange-soft); color: var(--ink); font-weight: 600; }

.geo-status { margin-top: 10px; font-size: 13px; color: #B91C1C; }

.geo-map-wrap { margin-top: 14px; }
.geo-confirm-note {
  font-size: 13px; font-weight: 600; color: var(--orange); margin-bottom: 8px; line-height: 1.4;
}
.geo-map {
  width: 100%; height: 220px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); z-index: 0;
}
.geo-map .leaflet-container { height: 100%; width: 100%; font: inherit; }

/* ============= HIRDETÉS BEJELENTÉSE ============= */
.report-block { margin-top: 14px; }
.report-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 6px 0;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-mute); cursor: pointer;
}
.report-link:hover { color: #B91C1C; }
.report-link svg { flex-shrink: 0; }
.report-form { margin-top: 10px; padding: 14px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 10px; }
.report-intro { font-size: 12.5px; color: var(--ink-mute); line-height: 1.45; margin: 0; }
.report-form .field { margin: 0; }
.report-form label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-soft); margin-bottom: 4px; }
.report-form select, .report-form input, .report-form textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px;
  font: inherit; font-size: 13.5px; color: var(--ink); background: var(--bg);
}
.report-form select:focus, .report-form input:focus, .report-form textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft);
}
.report-err { font-size: 12.5px; color: #B91C1C; }
.report-done { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--orange); }

/* ============================================================
   MOBIL UX — alsó navigáció, header-ikon, lista/chat javítások
   ============================================================ */

/* Header account/login ikon (csak mobilon) */
.header-acc { display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; color: var(--ink-soft); flex-shrink: 0; }
.header-acc:hover { background: var(--bg-hover); color: var(--ink); }

/* Alsó navigációs sáv — alapból rejtve, csak mobilon */
.botnav { display: none; }

@media (max-width: 768px) {
  .header-acc { display: inline-flex; }
  /* hely a fix alsó sávnak, hogy ne takarjon tartalmat */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  .botnav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    background: var(--bg); border-top: 1px solid var(--border);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px -10px rgba(0,0,0,.18);
    align-items: flex-end; justify-content: space-around;
  }
  .botnav-i { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 5px 2px; color: var(--ink-faint); font-size: 10.5px; font-weight: 600; text-decoration: none; }
  .botnav-i svg { width: 23px; height: 23px; }
  .botnav-i.active { color: var(--orange); }
  .botnav-plus { flex: 0 0 auto; width: 52px; height: 52px; margin: 0 4px; border-radius: 50%;
    background: var(--orange); color: #fff; display: grid; place-items: center; text-decoration: none;
    box-shadow: 0 8px 18px -4px rgba(0,166,62,.55); transform: translateY(-10px); }
  .botnav-plus svg { width: 26px; height: 26px; }

  /* Hirdetéseim: a sor mobilon törjön, az akciók külön sorba (ne essen szét) */
  .list-row { flex-wrap: wrap; gap: 12px; }
  .list-row .grow { flex: 1 1 0; min-width: 0; }
  .list-row .row-actions { flex-basis: 100%; }

  /* Üzenet-szál: messenger-szerű, az írómező alul ragad (az alsó sáv felett) */
  .chat-form { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--border);
    margin: 0 -16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); z-index: 50;
    align-items: center; }
  .chat { padding-bottom: 8px; }
}

/* Kerek küldés gomb (messenger) */
.chat-send { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--orange); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chat-send:hover { background: var(--orange-hover); }
.chat-send svg { width: 20px; height: 20px; }

/* Kilépés-megerősítő popup */
.logout-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center;
  justify-content: center; padding: 20px; background: rgba(15,23,42,.5); }
.logout-card { background: #fff; border-radius: 18px; padding: 28px 26px; max-width: 380px; width: 100%;
  text-align: center; box-shadow: 0 30px 70px -20px rgba(0,0,0,.4); }
.logout-ic { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px; background: #FEF2F2;
  color: #dc2626; display: grid; place-items: center; }
.logout-ic svg { width: 26px; height: 26px; }
.logout-card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--ink); }
.logout-card p { margin: 0 0 20px; font-size: 14px; color: var(--ink-mute); line-height: 1.5; }
.logout-actions { display: flex; gap: 10px; }
.logout-actions > * { flex: 1; }
.logout-actions .btn-secondary { padding: 11px; border-radius: 11px; justify-content: center; }
.logout-confirm-btn { width: 100%; padding: 11px; border: 0; border-radius: 11px; background: #dc2626;
  color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.logout-confirm-btn:hover { background: #b91c1c; }

/* Drawer: fiók-szekció (bejelentkezve) */
.nav-drawer-sep { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint);
  font-weight: 700; padding: 14px 12px 6px; }
.nav-drawer-logout { display: flex; align-items: center; gap: 11px; width: 100%; padding: 13px 12px;
  border: 0; background: transparent; border-radius: 9px; font: inherit; font-size: 15px; font-weight: 500;
  color: #dc2626; cursor: pointer; text-align: left; }
.nav-drawer-logout:hover { background: #FEF2F2; }
.nav-drawer-logout svg { color: #dc2626; }
.nav-drawer-links .nav-badge { margin-left: 6px; }
