/* Zasebni katalog — podoba arhiva / muzejske zbirke.
   Barve, pisave in razmiki so zbrani v spremenljivkah spodaj. */
:root {
  --paper: #ece6d9;
  --surface: #f7f3ea;
  --ink: #1c1e19;
  --ink-2: #23261f;
  --muted: #6b695c;
  --line: #d6cebd;
  --line-dark: rgba(247, 243, 234, .14);
  --olive: #4b5330;
  --olive-dark: #343a21;
  --brass: #a8843f;
  --brass-light: #c9a463;
  --brass-soft: #ebe0c6;
  --danger: #8e2f25;
  --success: #3d5e3a;
  --reserved: #9a5f17;

  --display: 'Oswald', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 2px;
  --shadow: 0 1px 2px rgba(28, 30, 25, .06), 0 10px 30px rgba(28, 30, 25, .08);
  --shadow-lift: 0 2px 4px rgba(28, 30, 25, .08), 0 18px 40px rgba(28, 30, 25, .14);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background-color: var(--paper);
  /* nežna tekstura papirja */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font: 15px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--olive); text-decoration: none; }
a:hover { color: var(--brass); }
::selection { background: var(--brass-soft); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: 1.55rem; margin-top: 1.8em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }
.narrow { max-width: 680px; }
.page-pad { padding-top: 48px; padding-bottom: 80px; }
.center { text-align: center; }
.right { text-align: right; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 60ch; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
.hint { font-family: var(--sans); font-weight: 400; color: var(--muted); font-size: .78rem; margin-left: .3em; text-transform: none; letter-spacing: 0; }
.eyebrow {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .2em;
  font-size: .78rem; color: var(--brass); margin-bottom: .8em;
}
.empty { color: var(--muted); padding: 28px 0; font-style: italic; font-family: var(--serif); font-size: 1.05rem; }

/* ---------- Glava ---------- */
.site-header {
  background: var(--ink-2); color: var(--surface);
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  border-bottom: 3px solid var(--olive);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .3);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 500; font-size: 1.15rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--surface);
}
.brand:hover { color: var(--brass-light); }
.brand-mark {
  width: 30px; height: 30px; flex: none; border: 1.5px solid var(--brass); border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c9a463' d='M12 3.5l2.47 5.6 6.03.56-4.57 3.98 1.36 5.9L12 16.4l-5.29 3.14 1.36-5.9L3.5 9.66l6.03-.56z'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a, .main-nav .link-button {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: .82rem;
  color: rgba(247, 243, 234, .78); padding: 6px 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav .link-button:hover { color: var(--surface); text-decoration: none; }
.main-nav a.active { color: var(--surface); border-bottom-color: var(--brass); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--surface); margin: 5px 0; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--ink-2); border-bottom: 3px solid var(--olive); padding: 8px 24px 18px;
  }
  .main-nav a, .main-nav form { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line-dark); }
  .main-nav a.active { border-bottom-color: var(--line-dark); color: var(--brass-light); }
  .nav-toggle[aria-expanded="true"] + .main-nav { display: flex; }
}

.site-footer {
  background: var(--ink-2); color: rgba(247, 243, 234, .55);
  font-family: var(--display); text-transform: uppercase; letter-spacing: .2em; font-size: .7rem;
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px)); text-align: center;
  border-top: 3px solid var(--olive);
}

/* ---------- Izbira jezika ---------- */
.lang-switch { display: flex; gap: 2px; align-items: center; }
.lang-switch a {
  font-family: var(--display); font-size: .72rem; letter-spacing: .12em;
  color: var(--muted); padding: 4px 7px; border-radius: var(--radius); text-decoration: none; border: 0;
}
.lang-switch a:hover { color: var(--ink); background: var(--brass-soft); }
.lang-switch a.active { color: var(--ink); background: var(--brass-soft); }
.main-nav .lang-switch { margin-left: 4px; padding-left: 22px; border-left: 1px solid var(--line-dark); }
.main-nav .lang-switch a { color: rgba(247, 243, 234, .55); padding: 4px 7px; border: 0; }
.main-nav .lang-switch a:hover, .main-nav .lang-switch a.active { color: var(--ink-2); background: var(--brass-light); }
.lang-corner { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 16px; z-index: 5; }
.lang-corner .lang-switch { background: rgba(28, 30, 25, .55); padding: 4px; border-radius: 3px; backdrop-filter: blur(6px); }
.lang-corner .lang-switch a { color: rgba(247, 243, 234, .75); }
.lang-corner .lang-switch a:hover, .lang-corner .lang-switch a.active { color: var(--ink-2); background: var(--brass-light); }
@media (max-width: 820px) {
  .main-nav .lang-switch { margin: 10px 0 0; padding: 4px 0 0; border-left: 0; width: 100%; }
  .main-nav .lang-switch a { padding: 8px 12px; width: auto; border-bottom: 0; }
}

/* ---------- Gumbi in obrazci ---------- */
.btn {
  display: inline-block; border: 1px solid var(--olive-dark); background: var(--olive-dark); color: var(--surface);
  font: 500 .82rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase;
  padding: 15px 26px; border-radius: var(--radius); cursor: pointer; text-align: center;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn:disabled:hover { background: var(--olive-dark); border-color: var(--olive-dark); color: var(--surface); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-small { padding: 10px 14px; font-size: .72rem; }
.btn-large { padding: 19px 36px; font-size: .9rem; }
.btn-block { display: block; width: 100%; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--olive); cursor: pointer; }
.link-button:hover { color: var(--brass); }
.link-button.danger { color: var(--danger); }
.link-button:disabled { color: var(--muted); cursor: default; }

.form { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.field-row .field { flex: 1 1 140px; }
.field-row .field.grow { flex: 2 1 200px; }
label { font-family: var(--display); font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
input, select, textarea {
  width: 100%; font: 15px/1.4 var(--sans); color: var(--ink); background: #fffdf8;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 13px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(75, 83, 48, .15); }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--olive); flex: none; }
input[type="file"] { padding: 9px; background: var(--surface); }
textarea { resize: vertical; }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0; display: flex; flex-direction: column; gap: 16px; background: rgba(255, 253, 248, .5); }
.fieldset legend { font-family: var(--display); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); padding: 0 8px; }
.check { display: flex; gap: 10px; align-items: center; margin: 6px 0; font-family: var(--sans); font-size: .92rem; font-weight: 400; letter-spacing: 0; text-transform: none; }

.flash-stack { padding-top: 24px; }
.flash { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 12px; border: 1px solid; border-left-width: 4px; background: var(--surface); }
.flash ul { margin: 0; padding-left: 1.2em; }
.flash-success { border-color: #c3d2bf; border-left-color: var(--success); color: var(--success); }
.flash-error { border-color: #e2c3bd; border-left-color: var(--danger); color: var(--danger); }

/* ---------- Geslo / prijava / registracija ---------- */
.auth-page {
  background-color: var(--ink-2);
  background-image: linear-gradient(180deg, rgba(20, 22, 18, .72), rgba(20, 22, 18, .9)), var(--auth-bg, none);
  background-size: cover; background-position: center; background-attachment: fixed;
}
.auth-page main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 72px 16px 48px; }
.auth-page .flash-stack { max-width: 460px; padding-top: 0; }
.auth-page .site-footer { background: transparent; border-top: 0; }
.auth-box {
  position: relative; width: 100%; max-width: 440px;
  background: var(--surface); padding: 44px 40px 36px;
  border-top: 4px solid var(--brass); box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.auth-box-wide { max-width: 640px; }
.auth-box h1 { font-size: 2rem; margin-bottom: .35em; }
.auth-box .brand { display: flex; justify-content: center; color: var(--olive-dark); font-size: .85rem; margin-bottom: 18px; }
.auth-box .brand::before {
  content: ''; width: 34px; height: 34px; border: 1.5px solid var(--brass); border-radius: 50%; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23a8843f' d='M12 3.5l2.47 5.6 6.03.56-4.57 3.98 1.36 5.9L12 16.4l-5.29 3.14 1.36-5.9L3.5 9.66l6.03-.56z'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.auth-box > .center.muted { margin-bottom: 1.6em; }
.auth-box hr { margin: 1.4rem 0 1.2rem; }
@media (max-width: 480px) { .auth-box { padding: 32px 22px 28px; } }

/* ---------- Uvodna stran ---------- */
.hero {
  position: relative; background: var(--ink-2); color: var(--surface);
  background-size: cover; background-position: center 30%;
  min-height: min(86vh, 860px); display: flex; align-items: flex-end;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 22, 18, .92) 0%, rgba(20, 22, 18, .78) 45%, rgba(20, 22, 18, .35) 100%),
    linear-gradient(0deg, rgba(20, 22, 18, .85) 0%, rgba(20, 22, 18, 0) 40%);
}
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--olive); }
.hero-inner { position: relative; padding-top: clamp(72px, 10vw, 120px); padding-bottom: clamp(56px, 8vw, 96px); }
.hero h1 { max-width: 18ch; font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 600; text-wrap: balance; }
.hero .eyebrow { color: var(--brass-light); display: flex; align-items: center; gap: 14px; }
.hero .eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--brass-light); }
.hero-text { max-width: 64ch; color: rgba(247, 243, 234, .82); font-size: 1.02rem; margin: 26px 0 36px; }
.hero-text p { white-space: pre-line; }
.hero .btn { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.hero .btn:hover { background: var(--surface); border-color: var(--surface); }

.section-title {
  margin-top: 72px; margin-bottom: 28px; display: flex; align-items: center; gap: 18px;
  font-family: var(--display); font-weight: 500; font-size: 1rem; letter-spacing: .22em; text-transform: uppercase;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.page-pad > .section-title:first-child { margin-top: 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.steps li { background: var(--surface); border: 1px solid var(--line); padding: 26px 24px 22px; position: relative; }
.step-no { font-family: var(--display); font-size: 2.6rem; color: var(--brass); line-height: 1; font-weight: 500; }
.steps h3 { margin-top: 14px; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- Katalog ---------- */
.page-header { margin-bottom: 36px; }
.page-header h1 { margin-bottom: .2em; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.breadcrumb { font-family: var(--display); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brass); }
.breadcrumb span { margin: 0 8px; color: var(--line); }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.category-card {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; color: var(--surface);
  background: var(--olive-dark); box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s;
}
.category-card:hover { color: var(--surface); box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.category-image { position: absolute; inset: 0; }
.category-image img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.25) saturate(.8); transition: transform .6s, filter .4s; }
.category-card:hover .category-image img { transform: scale(1.05); filter: none; }
.category-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 22, 18, .92) 0%, rgba(20, 22, 18, .2) 55%, rgba(20, 22, 18, 0) 100%); }
.category-initial {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 9rem; font-weight: 700; color: rgba(201, 164, 99, .18);
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 12px, transparent 12px 24px), var(--olive-dark);
}
.category-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 22px 20px; z-index: 1; }
.category-name { display: block; font-family: var(--display); font-weight: 500; font-size: 1.25rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; padding-right: 24px; }
.category-count { display: block; margin-top: 6px; font-size: .8rem; color: var(--brass-light); letter-spacing: .04em; }
.category-card::after { content: '→'; position: absolute; right: 20px; bottom: 20px; z-index: 1; color: var(--brass-light); font-size: 1.1rem; transition: transform .25s; }
.category-card:hover::after { transform: translateX(4px); }
.category-card.is-empty .category-count { color: rgba(247, 243, 234, .5); }

.category-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.category-pills a {
  border: 1px solid var(--line); padding: 7px 14px; color: var(--ink); background: var(--surface);
  font-family: var(--display); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; border-radius: var(--radius);
}
.category-pills a:hover { border-color: var(--ink); color: var(--ink); }
.category-pills a.active { background: var(--olive-dark); color: var(--surface); border-color: var(--olive-dark); }

.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 22px; }
.card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.card-image { position: relative; aspect-ratio: 1 / 1; background: #e3dccb; overflow: hidden; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-image img { transform: scale(1.04); }
.no-image { font-family: var(--display); color: var(--muted); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
/* žig »Rezervirano« / »Prodano« */
.ribbon {
  position: absolute; top: 18px; left: 14px; transform: rotate(-6deg);
  font-family: var(--display); font-weight: 600; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--reserved); background: rgba(247, 243, 234, .92); border: 2px solid currentColor; padding: 5px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.ribbon-sold { color: var(--danger); }
.status-sold .card-image img, .status-reserved .card-image img { filter: grayscale(.55) brightness(.92); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.lot { font-family: var(--display); font-size: .72rem; letter-spacing: .18em; color: var(--brass); }
.card-title { font-size: 1.22rem; margin: 0; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--olive); }
.card-text { color: var(--muted); font-size: .9rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px dashed var(--line); }
.price { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; white-space: nowrap; color: var(--ink); }
.price-large { font-size: 2.2rem; margin-bottom: 22px; }
.tag { font-family: var(--display); font-size: .72rem; letter-spacing: .16em; }
.tag-reserved { color: var(--reserved); }
.tag-sold { color: var(--danger); }

.item-detail { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .item-detail { grid-template-columns: 1fr; gap: 28px; } }
.gallery-main { display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); aspect-ratio: 1 / 1; overflow: hidden; padding: 10px; box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.gallery-main.no-image { font-family: var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-size: .8rem; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; margin-top: 12px; }
.thumb { padding: 0; border: 1px solid var(--line); background: var(--surface); aspect-ratio: 1 / 1; cursor: pointer; overflow: hidden; opacity: .7; transition: opacity .2s; }
.thumb:hover { opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { opacity: 1; border-color: var(--brass); outline: 2px solid var(--brass); outline-offset: -2px; }
.item-info { position: sticky; top: calc(var(--header-h) + 28px); }
.item-info h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
@media (max-width: 900px) { .item-info { position: static; } }
.reserve-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--olive); }
.status-box { padding: 18px 22px; margin-bottom: 30px; border: 1px solid; border-left-width: 4px; background: var(--surface); }
.status-box strong { font-family: var(--display); font-weight: 600; letter-spacing: .2em; }
.status-box p { margin: 6px 0 0; }
.status-reserved { border-color: #e0cba6; border-left-color: var(--reserved); color: var(--reserved); }
.status-sold { border-color: var(--line); border-left-color: var(--olive); color: var(--ink); }
.prose { font-family: var(--serif); font-size: 1.06rem; line-height: 1.7; }
.prose p { margin-bottom: 1em; }
.extra-info { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 10px; }
.extra-info h2 { font-family: var(--display); font-weight: 500; font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-top: 14px; }

/* ---------- Moj račun ---------- */
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.account-grid > div { min-width: 0; }
.account-grid h2 { font-family: var(--display); font-weight: 500; font-size: .95rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.account-grid h2:first-child { margin-top: 0; }
@media (max-width: 900px) { .account-grid { grid-template-columns: 1fr; gap: 24px; } }
.reservation-list { list-style: none; padding: 0; margin: 0; }
.reservation-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.reservation-list li > div:first-child { display: flex; flex-direction: column; }
.reservation-list strong { font-family: var(--serif); font-size: 1.08rem; }
.reservation-meta { display: flex; align-items: center; gap: 14px; }
.reservation-meta .price { font-size: 1.1rem; }

.badge {
  display: inline-block; font-family: var(--display); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--radius); background: var(--brass-soft); color: var(--ink); white-space: nowrap;
}
.badge-reserved, .badge-item-reserved { background: #f3e2c2; color: var(--reserved); }
.badge-negotiating { background: #dfe5ea; color: #34506b; }
.badge-sold, .badge-item-sold { background: #dfe7d9; color: var(--success); }
.badge-cancelled, .badge-item-unavailable { background: #e6e2da; color: var(--muted); }
.badge-item-available { background: #dfe7d9; color: var(--success); }

/* ---------- Administracija ---------- */
.admin-nav { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.admin-nav a {
  padding: 12px 16px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-family: var(--display); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
}
.admin-nav a:hover { color: var(--ink); }
.admin-nav a.active { color: var(--ink); border-bottom-color: var(--brass); }
.admin h1 { font-size: 2.1rem; margin: 0; }
.admin h2 { font-family: var(--display); font-weight: 500; font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 2.4em; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--olive); padding: 18px 20px; display: flex; flex-direction: column; color: var(--ink); transition: box-shadow .2s; }
.stat:hover { color: var(--ink); box-shadow: var(--shadow); border-top-color: var(--brass); }
.stat-value { font-family: var(--display); font-size: 2.4rem; font-weight: 500; line-height: 1.1; }
.stat-label { font-size: .8rem; color: var(--muted); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.filters input, .filters select { flex: 1 1 180px; width: auto; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-family: var(--display); font-weight: 500; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 13px 14px; border-bottom: 1px solid var(--line); background: #f1ece0; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: #f3eee2; }
.table tr.inactive td { color: var(--muted); }
.thumb-cell { width: 64px; }
.thumb-cell img { width: 48px; height: 48px; object-fit: cover; border: 1px solid var(--line); }
.inline-edit { display: flex; gap: 8px; align-items: center; }
.inline-edit input { padding: 8px 10px; }
.inline-edit .short { width: 90px; flex: none; }

.item-form { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .item-form { grid-template-columns: 1fr; } }
.form-main, .form-side { display: flex; flex-direction: column; gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); padding: 22px; }
.panel h2:first-child { margin-top: 0; }
.panel label { display: block; }
.panel .check { display: flex; }

.admin-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.admin-image { margin: 0; background: var(--surface); border: 1px solid var(--line); }
.admin-image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.admin-image figcaption { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; font-size: .8rem; gap: 8px; }
.danger-zone { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-bottom: 16px; }
.detail-grid .panel h2 { margin-top: 0; }
.detail-image { width: 100%; max-height: 240px; object-fit: cover; margin-bottom: 16px; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 16px; }
.dl dt { color: var(--muted); font-size: .85rem; }
.dl dd { margin: 0; }
.note { background: var(--paper); padding: 12px 14px; white-space: pre-wrap; border-left: 3px solid var(--brass); }
.status-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.settings-form { max-width: 760px; }
.settings-form h2 { margin-bottom: 0; }
.settings-hero { max-width: 320px; margin-bottom: 8px; border: 1px solid var(--line); }

/* ---------- Dvostopenjska prijava ---------- */
.setup-steps { padding-left: 1.2em; display: flex; flex-direction: column; gap: 22px; }
.setup-steps li { padding-left: 6px; }
.setup-steps li::marker { font-family: var(--display); color: var(--brass); }
.qr { width: 240px; height: 240px; margin: 12px 0 8px; background: #fff; padding: 8px; border: 1px solid var(--line); image-rendering: pixelated; }
.secret { font-family: ui-monospace, Consolas, monospace; background: var(--brass-soft); padding: 2px 6px; word-break: break-all; }
.code-form { flex-direction: row; flex-wrap: wrap; margin-top: 10px; }
.code-form input { width: 170px; flex: none; font-size: 1.25rem; letter-spacing: .25em; }

/* ---------- Prilagoditve za telefone ---------- */
.hero-subhead {
  display: block; margin: 0 0 4px; font-family: var(--display); font-weight: 500;
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-light);
}
@media (max-width: 600px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-card { aspect-ratio: 1 / 1; }
  .category-caption { padding: 14px 14px 12px; }
  .category-name { font-size: .95rem; letter-spacing: .06em; padding-right: 0; }
  .category-count { font-size: .72rem; }
  .category-card::after { display: none; }
  .category-initial { font-size: 5rem; }
  .hero { min-height: auto; }
  .hero h1 { font-size: 2.3rem; }
  .page-pad { padding-top: 32px; padding-bottom: 56px; }
}

/* ---------- Dražbe ---------- */
.btn-brass { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--olive-dark); border-color: var(--olive-dark); color: var(--surface); }
.price-block { display: flex; flex-direction: column; line-height: 1.1; }
.price-label { font-family: var(--display); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.auction-flag {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 7px 14px;
  background: linear-gradient(0deg, rgba(20, 22, 18, .92), rgba(20, 22, 18, .75));
  color: var(--brass-light); font-family: var(--display); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
}
.auction-flag [data-countdown] { color: var(--surface); letter-spacing: .08em; }
[data-countdown].is-urgent { color: #e4a85c !important; }
.item-card.is-auction { border-color: #cdbb93; }
.section-title-auction { color: var(--olive-dark); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #b5452f; box-shadow: 0 0 0 0 rgba(181, 69, 47, .6); animation: live 1.8s infinite; flex: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(181, 69, 47, .55); } 70% { box-shadow: 0 0 0 10px rgba(181, 69, 47, 0); } 100% { box-shadow: 0 0 0 0 rgba(181, 69, 47, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

.auction-box { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brass); margin-bottom: 30px; scroll-margin-top: calc(var(--header-h) + 20px); }
.auction-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 22px; background: var(--ink-2); color: var(--surface); flex-wrap: wrap; }
.auction-flag-static { font-family: var(--display); letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; color: var(--brass-light); }
.auction-timer { font-family: var(--display); letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; color: rgba(247, 243, 234, .7); }
.auction-timer strong { color: var(--surface); font-size: 1.05rem; font-weight: 500; letter-spacing: .06em; margin-left: 6px; }
.auction-figures { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 20px 22px 6px; flex-wrap: wrap; }
.auction-figures .price-large { margin: 0; }
.auction-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.auction-box > .auction-state, .auction-box > form, .auction-box > .bid-history { margin-left: 22px; margin-right: 22px; }
.auction-state { padding: 10px 14px; background: var(--paper); border-left: 3px solid var(--line); margin-top: 10px; margin-bottom: 16px; }
.state-leading { border-left-color: var(--success); color: var(--success); }
.state-outbid { border-left-color: var(--danger); color: var(--danger); }
.bid-form { display: flex; flex-direction: column; gap: 8px; padding: 10px 0 18px; }
.bid-row { display: flex; gap: 8px; align-items: stretch; }
.bid-currency { display: flex; align-items: center; padding: 0 14px; background: var(--paper); border: 1px solid var(--line); font-family: var(--serif); font-size: 1.2rem; }
.bid-row input { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; flex: 1; min-width: 0; }
.bid-row .btn { padding-left: 30px; padding-right: 30px; }
.bid-history { border-top: 1px dashed var(--line); padding: 12px 0 18px; }
.bid-history summary { cursor: pointer; font-family: var(--display); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.bid-history ol { list-style: none; margin: 10px 0 0; padding: 0; max-height: 280px; overflow: auto; }
.bid-history li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); }
.bid-history li:last-child { border-bottom: 0; }
.bid-history li.is-top strong { color: var(--olive); }
.bid-history li.is-mine span:first-child { font-weight: 600; color: var(--olive-dark); }
@media (max-width: 480px) {
  .bid-history li { grid-template-columns: 1fr auto; }
  .bid-history li .small { grid-column: 1 / -1; order: 3; }
  .auction-meta { align-items: flex-start; text-align: left; }
}

.badge-auction { background: var(--ink-2); color: var(--brass-light); }
.badge-bid-leading, .badge-bid-won { background: #dfe7d9; color: var(--success); }
.badge-bid-outbid { background: #f3dcd7; color: var(--danger); }
.badge-bid-lost { background: #e6e2da; color: var(--muted); }

/* Administracija — način prodaje */
.sale-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .sale-options { grid-template-columns: 1fr; } }
.sale-option { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); background: #fffdf8; cursor: pointer; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-weight: 400; }
.sale-option:has(input:checked) { border-color: var(--olive); box-shadow: inset 0 0 0 1px var(--olive); }
.sale-option input { margin-top: 3px; accent-color: var(--olive); }
.sale-option strong { display: block; font-family: var(--display); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; }
.sale-option .hint { margin: 0; }
.auction-fields { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.quick-durations { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: .85rem; }
.auction-admin { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 6px 22px 6px 0; }
.auction-admin .auction-figures { padding-top: 12px; flex: 1; }

/* Kategorije — slike */
.cat-image-cell { width: 150px; }
.cat-thumb { width: 64px; height: 80px; background: var(--olive-dark); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--brass-light); font-family: var(--serif); font-size: 1.6rem; margin-bottom: 6px; }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-upload { display: inline; margin-right: 8px; font-size: .8rem; }
.cat-upload label { display: inline; cursor: pointer; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-weight: 400; font-size: .8rem; color: var(--olive); }
.cat-upload label:hover { color: var(--brass); }

.auction-figures .price-label { display: block; }
input[type="radio"] { width: 16px; height: 16px; flex: none; padding: 0; }

/* Glava strani kategorije */
.category-header { display: flex; align-items: center; gap: 22px; margin-bottom: 28px; }
.category-header h1 { margin: 0; }
.category-header-count { margin: 6px 0 0; font-family: var(--display); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
@media (max-width: 600px) {
  .category-header { gap: 16px; }
}

/* ---------- Prijava z zunanjimi računi ---------- */
/* Enoten, umirjen videz: bela gumba z barvnim logotipom, na računalniku drug ob drugem, na telefonu en pod drugim. */
.social-login { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 16px;
  border: 1px solid var(--line); background: #fffdf8; color: var(--ink); border-radius: var(--radius);
  font: 500 .92rem/1 var(--sans); letter-spacing: .01em;
  transition: border-color .15s, box-shadow .15s, transform .15s, background .15s;
}
.social-btn:hover { color: var(--ink); background: #fff; border-color: var(--brass); box-shadow: 0 2px 10px rgba(28, 30, 25, .08); transform: translateY(-1px); }
.social-btn:active { transform: translateY(0); box-shadow: none; }
.social-btn:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.social-btn.social-facebook .social-icon { color: #1877f2; }
.social-icon { display: inline-flex; width: 18px; height: 18px; flex: none; }
.social-icon svg { display: block; }
.social-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0 18px; color: var(--muted); font-family: var(--display); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }
.social-divider::before, .social-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.identity-list { list-style: none; margin: 0; padding: 0; }
.identity-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.identity-list .social-icon { width: 22px; height: 22px; align-items: center; justify-content: center; }
.identity-list .social-facebook { color: #1877f2; }
.identity-name { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.identity-name .small { overflow: hidden; text-overflow: ellipsis; }

/* Skrito ostane skrito, tudi če ima element nastavljen display (npr. polja dražbe pri fiksni ceni). */
[hidden] { display: none !important; }

/* Fotografija predmeta: okvir se prilagodi obliki slike (brez praznih pasov pri ležečih fotografijah). */
.gallery-main { aspect-ratio: auto; min-height: 280px; max-height: 78vh; }
.gallery-main img { height: auto; max-height: calc(78vh - 20px); }
.gallery-main.no-image { aspect-ratio: 4 / 3; }

/* Stran z napako */
.error-page { min-height: 52vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.error-mark {
  width: 64px; height: 64px; border: 1.5px solid var(--brass); border-radius: 50%; margin-bottom: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23a8843f' d='M12 3.5l2.47 5.6 6.03.56-4.57 3.98 1.36 5.9L12 16.4l-5.29 3.14 1.36-5.9L3.5 9.66l6.03-.56z'/%3E%3C/svg%3E") center / 28px no-repeat;
}

/* ---------- Pregledovalnik fotografij ---------- */
html.lb-open, html.lb-open body { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(14, 15, 12, .94);
  display: flex; align-items: center; justify-content: center;
  padding: calc(56px + env(safe-area-inset-top, 0px)) 16px calc(56px + env(safe-area-inset-bottom, 0px));
  touch-action: pan-y; overscroll-behavior: contain;
}
.lb-stage { margin: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb-close, .lb-prev, .lb-next {
  position: absolute; border: 0; background: rgba(247, 243, 234, .1); color: var(--surface);
  width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--brass); color: var(--ink); }
.lb-close { top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center; color: rgba(247, 243, 234, .7); font-family: var(--display); letter-spacing: .16em; font-size: .8rem; }
@media (max-width: 600px) {
  .lb-prev, .lb-next { top: auto; bottom: calc(6px + env(safe-area-inset-bottom, 0px)); transform: none; width: 44px; height: 44px; }
}
.gallery-main { cursor: zoom-in; }

/* ---------- Črta nalaganja na vrhu strani ---------- */
.page-progress {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; z-index: 1000;
  height: 3px; width: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--brass) 0%, var(--brass-light) 100%);
  box-shadow: 0 0 8px rgba(201, 164, 99, .6);
}
.page-progress.is-loading { opacity: 1; }
/* svetel »utrinek« na sprednjem robu črte */
.page-progress::after {
  content: ''; position: absolute; right: 0; top: 0; width: 90px; height: 100%;
  box-shadow: 0 0 12px var(--brass-light), 0 0 6px var(--brass-light);
  opacity: 1;
}

/* Razprte velike črke (letter-spacing) dodajo presledek tudi za zadnjo črko, kar sredinsko besedilo
   zamakne v levo. Zamik izravnamo, da je besedilo res na sredini. */
.btn { text-indent: .16em; }
.btn-small { text-indent: .16em; }
.social-divider span { margin-right: -.18em; }
.site-footer .wrap { text-indent: .2em; }
.lb-count { text-indent: .16em; }
