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

:root {
    --bg: #FFFFFF;
    --bg-soft: #FAFAFA;
    --bg-hover: #F4F4F5;
    --ink: #18181B;
    --ink-soft: #3F3F46;
    --ink-mute: #71717A;
    --ink-faint: #A1A1AA;
    --orange: #FF6B00;
    --orange-hover: #E55C00;
    --orange-soft: #FFF1E6;
    --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; }

  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);
    flex-shrink: 0;
  }
  .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;
  }

  .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;
    height: fit-content;
  }
  .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: 199;
  }
  .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 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; }

    aside {
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
      width: 320px;
      max-width: 88vw;
      background: var(--bg);
      overflow-y: auto;
      padding: 0;
      z-index: 200;
      transform: translateX(-100%);
      transition: transform 0.28s ease-out;
      box-shadow: var(--shadow-drawer);
      -webkit-overflow-scrolling: touch;
    }
    aside.open { transform: translateX(0); }

    .drawer-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 18px 22px;
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      background: var(--bg);
      z-index: 5;
    }
    .drawer-header h3 { font-size: 16px; font-weight: 700; color: var(--ink); }
    .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;
      padding: 16px 22px 24px;
      position: sticky;
      bottom: 0;
      background: var(--bg);
      border-top: 1px solid var(--border);
    }

    .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 { display: none; }
    .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; }
    .mobile-cta-bar { display: flex; }
    .detail-actions { display: none; }
  }

/* ============= 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 #FFD9BD; }

/* 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; }

/* 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: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.acc-nav a {
  padding: 9px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
  color: var(--ink-soft); background: var(--bg-soft);
}
.acc-nav a.active { background: var(--orange); color: white; }

/* 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; }

/* Üres állapot a placeholder thumbhoz */
.thumb-ph {
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint); font-size: 11px; font-weight: 600;
}

/* 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 { max-width: 1280px; margin: 0 auto; padding: 40px 32px 8px; }
.hero h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.hero p { font-size: 15px; color: var(--ink-mute); max-width: 620px; line-height: 1.55; }
.cat-tiles { 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; }
