/* ===========================================================
   artofmat · partneri — material-library design system
   Palette: leather/cognac + brass + slate on white
   =========================================================== */

:root {
  /* brand font — matches the Shopify store Enterprise theme */
  --brand-font: "Inter", system-ui, -apple-system, sans-serif;

  /* color */
  --ink:      #211C17;   /* warm near-black — text & dark surfaces */
  --ink-soft: #4A4039;   /* secondary text */
  --bone:     #ffffff;   /* page background */
  --paper:    #ffffff;   /* cards */
  --cognac:   #8A4A2E;   /* leather — primary brand */
  --cognac-d: #6E3A23;
  --brass:    #C0883C;   /* metallic accent — quality mark, hardware */
  --brass-d:  #9C6C2A;
  --slate:    #36453F;   /* deep slate-green counterpoint */
  --stone:    #D9D0C0;   /* borders / hairlines */
  --stone-d:  #BCB09B;
  --bg-alt:   #E0D9CE;   /* segmented control track */

  /* category material tones (swatch strip) */
  --mat-upholsterer: #8A4A2E;
  --mat-furniture:   #36453F;
  --mat-carpenter:   #9C6C2A;
  --mat-architect:   #4A4039;

  /* type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: var(--brand-font);

  /* scale */
  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0:  clamp(0.95rem, 0.92rem + 0.15vw, 1.05rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  --step-3:  clamp(2.2rem, 1.8rem + 2vw, 3.4rem);
  --step-4:  clamp(2.8rem, 2rem + 4vw, 5rem);

  --maxw: 1240px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(33,28,23,.06), 0 8px 24px rgba(33,28,23,.06);

  /* header height: three-zone booking-style layout */
  --header-h: clamp(68px, calc(2vw + 56px), 84px);
}

* { box-sizing: border-box; }
a, button, input, select, label { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- black top bar — scrolls away, never sticky ---------- */
.topbar {
  background: #000;
  color: #fff;
  height: 36px;
  position: relative;
  z-index: 2100;
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.lang-drop { position: relative; }
.lang-drop-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--body); font-size: 12px; font-weight: 500;
  color: #fff; padding: 4px 2px;
  display: flex; align-items: center; gap: 5px;
  letter-spacing: .03em;
}
.lang-drop-btn:hover { opacity: .75; }
.lang-drop-btn svg { flex-shrink: 0; }
.lang-drop-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: #fff; border: 1px solid rgba(0,0,0,.12);
  border-radius: 6px; list-style: none; margin: 0; padding: 4px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.22); z-index: 3000;
  min-width: 110px;
}
.lang-drop-menu[hidden] { display: none; }
.lang-drop-menu li a {
  display: block; padding: 9px 16px;
  font-family: var(--body); font-size: 13px; font-weight: 500;
  color: var(--ink); text-decoration: none;
}
.lang-drop-menu li[aria-selected="true"] a { font-weight: 700; color: var(--cognac); }
.lang-drop-menu li a:hover { background: var(--bg-alt); }

/* ---------- header — three-zone booking-style ---------- */
.site-header {
  position: sticky; top: 0; z-index: 2000;
  background: var(--bone);
  border-bottom: 1px solid var(--stone);
}
.hdr-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.hdr-left  { display: flex; align-items: center; }
.hdr-center { display: flex; justify-content: center; align-items: center; }
.hdr-right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }

.brand {
  display: flex; flex-direction: column; align-items: center; text-decoration: none;
  width: clamp(46px, 6vw, 72px);
}
.brand-logo { width: 100%; height: auto; display: block; }
.brand-sub {
  width: 100%; display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 3px; padding: 0;
}
.brand-sub span { font-size: 7px; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; line-height: 1; letter-spacing: 0; }

/* lang switch — used in header right zone and mobile drawer */
.lang-switch {
  display: flex; gap: 2px; font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase;
}
.lang-switch a {
  text-decoration: none; padding: 5px 9px; border-radius: var(--radius);
  color: var(--ink-soft); font-weight: 600;
}
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--bone); }

/* "Postani partner" desktop button — outlined, matches register-btn style */
.hdr-partner-btn {
  background: transparent; border: 1.5px solid var(--stone-d); cursor: pointer;
  font-family: var(--body); font-size: var(--step--1); font-weight: 600;
  color: var(--ink); padding: 6px 14px; border-radius: 999px;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.hdr-partner-btn:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* Register / Sign in buttons */
.hdr-auth-btn {
  font-family: var(--body); font-size: var(--step--1); font-weight: 600;
  border-radius: 999px; padding: 6px 14px; cursor: pointer;
  white-space: nowrap; transition: background .15s, color .15s, border-color .15s;
}
.hdr-register-btn {
  background: transparent; border: 1.5px solid var(--stone-d); color: var(--ink);
}
.hdr-register-btn:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.hdr-signin-btn {
  background: var(--ink); border: 1.5px solid var(--ink); color: #fff;
}
.hdr-signin-btn:hover { background: var(--ink-soft); border-color: var(--ink-soft); }

/* visibility helpers */
.hdr-mobile-only { display: none !important; }

/* hamburger */
.hdr-burger {
  background: none; border: none; cursor: pointer; padding: 6px;
  display: flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius);
}
.hdr-burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: background .15s; }
.hdr-burger:hover span { background: var(--cognac); }

/* mobile drawer */
.hdr-drawer {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bone); border-bottom: 1px solid var(--stone);
  padding: 8px 20px 16px;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 8px 24px rgba(33,28,23,.10);
  z-index: 1999;
}
.hdr-drawer[hidden] { display: none; }
.hdr-drawer-partner {
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--body); font-size: var(--step-0); font-weight: 600;
  color: var(--ink); padding: 12px 4px;
  border-bottom: 1px solid var(--stone);
  text-decoration: underline; text-underline-offset: 3px;
  width: 100%;
}
.hdr-drawer-lang { padding: 12px 4px; border-bottom: 1px solid var(--stone); }
.hdr-drawer-auth {
  background: none; border: none; cursor: pointer; text-align: left; width: 100%;
  font-family: var(--body); font-size: var(--step-0); font-weight: 500;
  color: var(--ink); padding: 12px 4px; border-bottom: 1px solid var(--stone);
}
.hdr-drawer-auth:last-child { border-bottom: none; }

@media (max-width: 700px) {
  .hdr-desktop-only { display: none !important; }
  .hdr-mobile-only  { display: flex !important; }
  .hdr-inner { padding: 0 14px; }
}

/* ---------- modals ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(33,28,23,.50);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  background: var(--paper); border-radius: 16px;
  box-shadow: 0 8px 40px rgba(33,28,23,.22);
  padding: 36px 32px 32px;
  width: 100%; max-width: 480px;
  position: relative;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.modal-card--sm { max-width: 340px; text-align: center; padding: 48px 32px 36px; }
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--ink-soft);
  padding: 4px 8px; border-radius: 50%;
  transition: background .12s;
}
.modal-close:hover { background: var(--bg-alt); color: var(--ink); }
.modal-title {
  font-family: var(--body); font-weight: 700; font-size: var(--step-2);
  margin: 0 0 6px; color: var(--ink);
}
.modal-sub { font-size: var(--step--1); color: var(--ink-soft); margin: 0 0 24px; }
.partner-form { display: flex; flex-direction: column; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label { font-size: var(--step--1); font-weight: 600; color: var(--ink); }
.form-field input,
.form-field textarea {
  font-family: var(--body); font-size: var(--step-0);
  border: 1.5px solid var(--stone); border-radius: 8px;
  padding: 10px 14px; color: var(--ink); background: #fff;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--cognac); box-shadow: 0 0 0 3px rgba(138,74,46,.08);
}
.form-field input.field-error,
.form-field textarea.field-error { border-color: #C0392B; }
.form-field textarea { resize: vertical; min-height: 80px; }
.partner-form-submit {
  font-family: var(--body); font-size: var(--step-0); font-weight: 600;
  background: var(--ink); color: #fff;
  border: none; border-radius: 999px; padding: 12px 24px;
  cursor: pointer; margin-top: 8px;
  transition: background .15s;
}
.partner-form-submit:hover { background: var(--ink-soft); }
body.modal-open { overflow: hidden; }

/* ---------- grey zone ---------- */
#main { background: #F5F5F7; }

/* ---------- control bar (country select + search) ---------- */
.control-bar { padding: 14px 0; border-bottom: 1px solid var(--stone); }
.control-bar-inner {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  max-width: 640px; margin: 0 auto; padding: 0 24px;
}

/* Country custom dropdown */
.country-select-wrap { position: relative; flex-shrink: 0; }
.country-flag {
  width: 18px; height: 18px; flex-shrink: 0;
  border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
  display: flex; align-items: center; justify-content: center;
  line-height: 0; font-size: 0;
}
.country-flag svg { display: block; width: 18px; height: 18px; }

.country-btn {
  display: flex; align-items: center; gap: 7px;
  height: 44px; padding: 0 12px 0 10px;
  border: 1px solid var(--stone); border-radius: 999px;
  font-family: var(--body); font-size: calc(var(--step--1) * 1.1); font-weight: 500;
  color: var(--ink); background: #fff; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s;
  white-space: nowrap;
}
.country-btn:hover { border-color: var(--stone-d); }
.country-btn:focus { border-color: var(--cognac); box-shadow: 0 0 0 3px rgba(138,74,46,.1); outline: none; }
.country-chevron { width: 10px; height: 10px; flex-shrink: 0; color: var(--ink-soft); }

.country-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: #fff; border: 1px solid var(--stone); border-radius: 10px;
  list-style: none; margin: 0; padding: 4px 0;
  box-shadow: 0 4px 20px rgba(33,28,23,.12); z-index: 500;
  min-width: 130px; max-width: calc(100vw - 24px);
}
.country-menu[hidden] { display: none; }
.country-menu li {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; cursor: pointer;
  font-family: var(--body); font-size: var(--step--1); font-weight: 400; color: var(--ink);
}
.country-menu li[aria-selected="true"] { font-weight: 500; }
.country-menu li:hover { background: var(--bg-alt); }

.search-box { position: relative; flex: 1; }
#geo-search {
  width: 100%; height: 44px; padding: 0 40px 0 15px;
  border: 1px solid var(--stone); border-radius: 999px;
  font-family: var(--body); font-size: calc(var(--step--1) * 1.1);
  background: #fff; color: var(--ink); outline: none;
}
#geo-search:focus { border-color: var(--cognac); box-shadow: 0 0 0 3px rgba(138,74,46,.1); }
#geo-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--ink-soft);
  font-size: 20px; line-height: 1; padding: 2px 4px; border-radius: 50%;
}
#geo-clear:hover { background: var(--bg-alt); }
#geo-suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--stone); border-radius: 10px;
  list-style: none; margin: 0; padding: 4px 0;
  box-shadow: 0 4px 20px rgba(33,28,23,.12); z-index: 200;
  max-height: 240px; overflow-y: auto;
}
#geo-suggestions li {
  padding: 8px 16px; cursor: pointer; color: var(--ink);
}
#geo-suggestions li .sug-name { font-size: var(--step--1); font-weight: 500; }
#geo-suggestions li .sug-type { font-size: 10px; letter-spacing: .1em; color: var(--ink-soft); margin-top: 1px; }
#geo-suggestions li:hover { background: var(--bg-alt); }

/* ---------- side-by-side content area ---------- */
.content-area {
  display: flex; gap: 28px; align-items: flex-start;
  padding: 28px 24px 72px;
}
.cards-col {
  flex: 1; min-width: 0;
  height: calc(100vh - 200px);
  max-height: 680px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin; scrollbar-color: var(--stone) transparent;
}
.map-col {
  flex: 0 0 auto;
  width: clamp(280px, 44%, 520px);
  position: sticky; top: var(--header-h);
}
#map {
  height: calc(100vh - 200px);
  max-height: 680px;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--stone);
  background: var(--paper); z-index: 1;
}
/* mobile legend — hidden on desktop, shown below map on phones */
@media (max-width: 820px) {
  .content-area { flex-direction: column-reverse; padding-left: 12px; padding-right: 12px; gap: 8px; }
  .map-col { width: 100%; position: static; }
  #map { aspect-ratio: unset; height: 380px; border-radius: 8px; }
  .cards-col { max-height: none; overflow-y: visible; }
  /* hide the Leaflet on-map legend overlay on phones */
  .map-legend { display: none !important; }
}

/* dir head */
.dir-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dir-head h2 { font-family: var(--body); font-weight: 600; font-size: var(--step-2); margin: 0; }
.dir-count { font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Leaflet zoom controls — circular ---------- */
.leaflet-control-zoom { border: none !important; box-shadow: none !important; display: flex !important; flex-direction: column !important; gap: 5px !important; }
.leaflet-control-zoom a { width: 34px !important; height: 34px !important; line-height: 32px !important; border-radius: 50% !important; border: none !important; background: #fff !important; color: #374151 !important; font-size: 18px !important; font-weight: 600 !important; box-shadow: 0 2px 8px rgba(0,0,0,.22) !important; text-align: center !important; }
.leaflet-control-zoom a:hover { background: #f3f4f6 !important; box-shadow: 0 3px 12px rgba(0,0,0,.28) !important; }

/* ---------- Apple-style segmented filter bar ---------- */
.seg-bar-wrap {
  background: var(--bone);
  border-bottom: 1px solid var(--stone);
  padding: 10px 24px;
}
.seg-bar {
  display: flex; gap: 0;
  background: var(--bg-alt);
  border-radius: 999px; padding: 4px;
  max-width: 640px; margin: 0 auto;
}
.seg-bar button {
  flex: 1;
  font-family: var(--body); font-size: calc(var(--step--1) * 1.1); font-weight: 500;
  border: none; background: transparent; border-radius: 999px;
  padding: 8px 13px; cursor: pointer; color: var(--ink);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.seg-bar button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg-bar button:hover:not([aria-pressed="true"]) { background: rgba(33,28,23,.08); }
/* pin icon inside category buttons — hidden on desktop */
.cat-pin { display: none; }

@media (max-width: 600px) {
  .seg-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: transparent;
    border-radius: 0;
    padding: 0;
  }
  .seg-bar button {
    min-height: 52px;
    padding: 8px 10px;
    white-space: normal;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-alt);
  }
  .seg-bar button[aria-pressed="true"] { background: var(--ink); color: #fff; }
  .seg-bar button:hover:not([aria-pressed="true"]) { background: rgba(33,28,23,.12); }
  .seg-bar button:active { opacity: 0.75; }
  /* colored teardrop pin — absolutely positioned at consistent left offset */
  .cat-pin {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    display: inline-flex; align-items: center; justify-content: center;
    width: 14px; height: 14px;
  }
  .cat-pin::before {
    content: '';
    display: block;
    width: 10px; height: 10px;
    background: var(--pin-color, #999);
    border: 1.5px solid rgba(255,255,255,0.65);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
  }
}

/* partner cards — vertical card layout */
.cards { display: flex; flex-direction: column; gap: 10px; }

.card {
  display: flex; flex-direction: row;
  border-radius: 10px; background: var(--paper);
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
  overflow: hidden; text-decoration: none; color: inherit;
  border: 2px solid transparent;
  transition: border-color .15s, box-shadow .15s;
  position: relative; cursor: pointer;
}
.card:hover, .card.card-active {
  border-color: var(--cognac);
  box-shadow: 0 3px 12px rgba(138,74,46,.18);
}
.card:focus-visible { outline: 2px solid var(--cognac); outline-offset: 2px; }

/* card image — fixed-width left column, grey when no image */
.card-img { flex: 0 0 40%; align-self: stretch; background: #E8E3DB; overflow: hidden; position: relative; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* monogram placeholder — works inside .card-img (position:relative) and .p-left-img (position:relative) */
.monogram { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #E8E3DB; font-size: 2rem; font-weight: 700; color: #8A7A6A; user-select: none; }

.card .body { padding: 12px 50px 44px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1 1 auto; min-width: 0; }
.card .cat { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.card .name { font-family: var(--body); font-weight: 600; font-size: 17px; line-height: 1.25; margin: 0; color: #111827; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card .meta { font-size: var(--step-0); color: var(--ink-soft); margin: 0; display: flex; align-items: center; gap: 5px; }
.card-pin { display: block; width: 10px; height: 10px; flex-shrink: 0; margin-top: 1px; }
.card-pin-inner { display: block; width: 10px; height: 10px; background: var(--cognac); border: 1.5px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 1px 2px rgba(0,0,0,.35); }
.card-pin-inner.cat-architect   { background: #2E86C1; }
.card-pin-inner.cat-upholsterer { background: #A8472E; }
.card-pin-inner.cat-furniture   { background: #5C7A4E; }
.card-pin-inner.cat-carpenter   { background: #C9A24B; }
.card-ocena { display: flex; align-items: center; gap: 5px; margin: 2px 0 0; }
.ocena-label { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); flex-shrink: 0; padding-right: 2px; }
.ocena-stars { color: var(--brass); letter-spacing: 1px; font-size: var(--step-0); }
.ocena-val { font-weight: 600; color: var(--ink); font-size: var(--step-0); }
.ocena-empty { color: var(--ink-soft); font-size: var(--step-0); font-style: italic; }
.card-arrow {
  position: absolute; bottom: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--stone-d);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
  background: transparent; z-index: 1;
}
.card-arrow:hover, .card:hover .card-arrow, .card.card-active .card-arrow {
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.card-arrow svg { width: 14px; height: 14px; }

/* desktop compact card — square image drives card height */
@media (min-width: 481px) {
  .card { height: auto; }
  /* 1:1 square image: aspect-ratio from its flex-basis width; align-self: flex-start lets it size itself */
  .card-img { flex: 0 0 28%; align-self: flex-start; aspect-ratio: 1; }
  .card .body { padding: 8px 44px 16px 12px; gap: 6px; justify-content: flex-start; overflow: hidden; align-self: stretch; }
  .card .name { font-size: 17px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card .cat  { font-size: 12px; }
  .card .meta { font-size: 14px; }
  .card-ocena { font-size: 16px; margin-top: auto; }
  .ocena-label { font-size: 11px; }
  .ocena-stars { font-size: 16px; }
  .ocena-val   { font-size: 16px; }
  .ocena-empty { font-size: 16px; }
  .card-arrow  { width: 28px; height: 28px; bottom: 10px; right: 10px; }
  .card-arrow svg { width: 13px; height: 13px; }
}

/* 50/50 desktop split */
@media (min-width: 821px) {
  .cards-col { flex: 1 1 0; }
  .map-col   { flex: 1 1 0; width: auto; }
}

@media (max-width: 480px) {
  /* fixed card height — tall enough for four one-line rows without descender clipping */
  .card { height: 100px; }

  /* image: fixed 96px wide, fills the full card height, covers without distortion */
  .card-img { flex: 0 0 96px; height: 100%; }

  /* text column: vertically centered, right pad clears the chevron */
  .card .body { padding: 8px 52px 8px 12px; gap: 3px; overflow: hidden; justify-content: center; }

  /* name on ONE line — ellipsis if it overflows */
  .card .name { font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .card .cat  { font-size: 10px; }
  .card .meta { font-size: 12px; }
  .card-ocena { font-size: 12px; margin: 0; }
  .ocena-stars { font-size: 12px; }
  .ocena-val   { font-size: 12px; }
  .ocena-empty { font-size: 12px; }

  /* chevron: vertically centered in the fixed-height card */
  .card-arrow { top: 50%; bottom: auto; transform: translateY(-50%); }

  /* clip map controls so nothing bleeds over the card list */
  .map-col { overflow: hidden; }
}

/* ---------- map pin ---------- */
/* .amat-pin is a div INSIDE .leaflet-marker-icon (the divIcon html child).
   Leaflet's translate3d() is on .leaflet-marker-icon; the bounce is on .amat-pin —
   separate elements, no transform conflict. Inner .amat-pin-inner keeps the rotation. */
@keyframes pinbounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-9px); }
}
.amat-pin {
  display: block;
}
.amat-pin.is-active {
  animation: pinbounce 0.6s ease-in-out infinite;
}
.amat-pin-inner {
  display: block; width: 16px; height: 16px;
  background: var(--pin-color, var(--cognac));
  border: 2px solid #FBF8F2;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
  transition: background .15s;
}

/* Map legend — top-right corner of the map */
.map-legend {
  background: rgba(245,245,247,0.94);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 8px;
  padding: 7px 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,.10);
  font-family: var(--body);
  pointer-events: none;
}
.legend-row { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.legend-name { font-size: 10.5px; font-weight: 500; color: var(--ink); line-height: 1.2; }

/* Partner tooltip (shown above pin on hover) — mini-card layout */
.leaflet-tooltip.partner-tooltip {
  font-family: var(--body);
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.16);
  padding: 10px 12px;
  white-space: normal;
  pointer-events: none;
}
.leaflet-tooltip.partner-tooltip::before {
  border-top-color: #fff;
}

/* quality mark — brass lozenges (the artofmat stamp) */
.qmark { display: inline-flex; gap: 4px; align-items: center; }
.qmark i { width: 9px; height: 9px; transform: rotate(45deg); background: var(--brass);
  box-shadow: inset 0 0 0 1px var(--brass-d); display: block; }
.qmark .label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-d); margin-left: 4px; transform: none; }

/* google rating pill */
.grate { display: inline-flex; align-items: center; gap: 5px; font-size: var(--step--1); font-weight: 600; color: var(--ink); }
.grate svg { width: 14px; height: 14px; }
.grate .count { color: var(--ink-soft); font-weight: 400; }

.verified { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--slate); font-weight: 700; }

/* ---------- map ---------- */
.map-note { font-size: var(--step--1); color: var(--ink-soft); margin: 10px 2px 0; }
/* base popup style (non-partner contexts) */
.leaflet-popup-content-wrapper { border-radius: var(--radius); }
.leaflet-popup-content { font-family: var(--body); margin: 12px 14px; }
/* partner mini-card popup wrapper — clean single card, no extra padding */
.partner-popup .leaflet-popup-content-wrapper {
  border-radius: 10px; padding: 0; overflow: hidden;
  box-shadow: 0 2px 14px rgba(33,28,23,.18);
}
.partner-popup .leaflet-popup-content { margin: 0; padding: 0; }
/* hide × on desktop (hover-controlled); show on mobile */
.no-close-btn .leaflet-popup-close-button { display: none !important; }
/* pp-card: the whole card is the clickable unit; padding reserves space for chevron */
.pp-card {
  display: flex; gap: 12px; align-items: flex-start;
  min-width: 220px; position: relative;
  padding: 12px 14px 44px; cursor: pointer;
}
.pp-img { width: 52px; height: 52px; border-radius: 6px; overflow: hidden; background: #E8E3DB; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.pp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-mono { font-weight: 700; font-size: 1.3rem; color: #8A7A6A; }
.pp-body { display: flex; flex-direction: column; gap: 3px; }
.pp-name { font-weight: 600; font-size: 0.95rem; color: var(--ink); line-height: 1.25; }
.pp-cat { font-size: 12px; color: var(--ink-soft); }
.pp-rating { font-size: 12px; color: var(--ink); margin: 2px 0 0; }
.pp-stars { color: #C0883C; letter-spacing: 1px; }
/* circular chevron button — bottom-right of the popup card */
.pp-arrow {
  position: absolute; bottom: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--stone-d);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
  background: transparent;
}
.pp-arrow:hover, .pp-card:hover .pp-arrow { background: var(--ink); border-color: var(--ink); color: #fff; }
.pp-arrow svg { width: 12px; height: 12px; }

/* ---------- partner page ---------- */
.crumbs { padding: 24px 0 0; font-size: var(--step--1); letter-spacing: .04em; color: var(--ink-soft); }
.crumbs a { color: var(--cognac); text-decoration: none; }

.p-head { padding: 18px 0 30px; border-bottom: 1px solid var(--stone); }
.p-head .cat { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.p-head h1 { font-family: var(--body); font-weight: 500; font-size: var(--step-3); margin: 8px 0 12px; letter-spacing: -.01em; }
.p-head .p-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.p-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 40px 0 80px; }
@media (min-width: 900px) { .p-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }

.rating-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 32px; }
.rpanel { border: 1px solid var(--stone); border-radius: var(--radius); padding: 18px; background: var(--paper); }
.rpanel.is-internal { border-color: var(--brass); }
.rpanel .rp-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.rpanel .rp-score { font-family: var(--body); font-size: var(--step-3); font-weight: 540; line-height: 1; margin: 8px 0 4px; }
.rpanel .rp-sub { font-size: var(--step--1); color: var(--ink-soft); }
.rpanel a { color: var(--cognac); font-weight: 600; text-decoration: none; font-size: var(--step--1); }

.section-title { font-family: var(--body); font-weight: 500; font-size: var(--step-2); margin: 0 0 16px; }
.about-text { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.6; }

/* reviews — only photo-verified shown */
.reviews { display: grid; gap: 18px; margin-top: 8px; }
.review { display: grid; grid-template-columns: 120px 1fr; gap: 16px; border: 1px solid var(--stone);
  border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.review img { width: 120px; height: 120px; object-fit: cover; }
.review .rv-body { padding: 14px 16px 14px 0; }
.review .rv-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.review .rv-author { font-weight: 700; }
.review .rv-date { font-size: var(--step--1); color: var(--ink-soft); }
.review .rv-stars { color: var(--brass); letter-spacing: 2px; font-size: var(--step--1); }
.review .rv-text { margin: 6px 0 0; font-size: var(--step-0); color: var(--ink-soft); }
.review .rv-tag { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); font-weight: 700; margin-top: 8px; display: inline-block; }
.reviews-empty { color: var(--ink-soft); font-size: var(--step-0); border: 1px dashed var(--stone-d); border-radius: var(--radius); padding: 20px; }

.aside-box { border: 1px solid var(--stone); border-radius: var(--radius); padding: 20px; background: var(--paper); }
.aside-box h3 { font-family: var(--body); font-weight: 500; margin: 0 0 12px; font-size: var(--step-1); }
.contact-row { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--stone); font-size: var(--step-0); }
.contact-row:first-of-type { border-top: 0; }
.contact-row a { color: var(--cognac); text-decoration: none; word-break: break-word; }
#map-mini { height: 240px; border-radius: var(--radius); border: 1px solid var(--stone); margin-top: 16px; }

/* ---------- partner detail — top section ---------- */
.p-top {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  padding: 20px 0 40px; border-bottom: 1px solid var(--stone); align-items: start;
}
@media (max-width: 700px) { .p-top { grid-template-columns: 1fr; gap: 20px; } }

/* left: compact horizontal card (image + text) */
.p-top-left {
  display: flex; flex-direction: row;
  border: 1px solid var(--stone); border-radius: var(--radius); overflow: hidden;
  background: var(--paper);
}
.p-left-img {
  flex: 0 0 42%; background: #E8E3DB; overflow: hidden; position: relative;
}
.p-left-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-left-body {
  flex: 1; padding: 18px 20px; display: flex; flex-direction: column; gap: 11px; justify-content: center;
}
.p-left-cat { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.p-name { font-weight: 700; font-size: var(--step-1); margin: 0; line-height: 1.2; color: var(--ink); }
.p-address { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ink-soft); font-size: var(--step-0); }
.p-address-detail { font-size: var(--step--1); color: var(--ink-soft); margin: 0; padding-left: 16px; }
.p-address-link { color: inherit; text-decoration: none; }
.p-address-link:hover { text-decoration: underline; text-underline-offset: 2px; color: var(--cognac); }
.p-verified { margin: 0; }

/* cooperation years — static info box, matches accordion header look */
.coop-box {
  display: flex; align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--stone);
  font-family: var(--body); font-size: calc(var(--step-1) * 0.85); font-weight: 600;
  color: var(--ink-soft);
}
.coop-val { color: var(--cognac); font-weight: 700; margin-left: 4px; }

/* right: accordion container */
.p-top-right {
  display: flex; flex-direction: column;
  border: 1px solid var(--stone); border-radius: var(--radius); overflow: hidden;
}
/* accordion */
.acc-panel {
  display: flex; flex-direction: column;
  border-bottom: 1px solid var(--stone);
}
.acc-panel:last-child { border-bottom: none; }
.acc-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px; gap: 14px;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--body); font-size: calc(var(--step-1) * 0.85); font-weight: 600;
  color: var(--ink-soft);            /* pale / muted when closed */
  transition: background .12s, color .18s;
}
.acc-btn:hover { background: #F5F5F7; }
.acc-panel.is-open .acc-btn {
  color: #1E3A5F;                    /* accent blue when open */
}
.acc-chevron {
  width: 18px; height: 18px; flex-shrink: 0;
  transition: transform .25s ease, color .18s;
}
.acc-panel.is-open .acc-chevron { transform: rotate(180deg); }
/* smooth height animation — max-height trick, no hidden attr */
.acc-content {
  overflow: hidden;
  max-height: 0;
  padding: 0 22px;
  transition: max-height .28s ease, padding-bottom .28s ease;
}
.acc-panel.is-open .acc-content {
  max-height: 800px;
  padding-bottom: 20px;
}
.acc-content .about-text { font-size: calc(var(--step-1) * 0.85); }
.acc-content .contact-row { font-size: calc(var(--step-0) * 0.85); }
.p-back-wrap { padding: 20px 0 60px; }

/* nav pill buttons — back link and store link */
.nav-btn {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--body); font-size: var(--step--1); font-weight: 600;
  color: var(--ink); background: transparent;
  border: 1.5px solid var(--stone-d); border-radius: 999px;
  padding: 8px 16px;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s, color .15s, border-color .15s;
  cursor: pointer;
}
.nav-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.nav-btn:active { opacity: .82; }

.nav-btn-circle {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid currentColor;
  flex-shrink: 0;
}
.nav-btn-circle svg { width: 11px; height: 11px; }

/* ---------- Amazon-style Ocene section (white) ---------- */
.ocene-full {
  background: #fff;
  padding: 56px 24px 72px;
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
  margin: 0;
}
.ocene-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.ocene-heading {
  font-size: var(--step-2);
  font-weight: 700;
  margin: 0 0 36px;
  color: #1E3A5F;
  display: inline-block;
}
.ocene-heading::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: #1E3A5F;
  border-radius: 2px;
  margin-top: 7px;
}
/* two-column grid */
.ocene-cols {
  display: grid;
  grid-template-columns: 32% 1fr;
  gap: 0;
  align-items: start;
}
@media (max-width: 660px) { .ocene-cols { grid-template-columns: 1fr; } }
.ocene-left {
  padding-right: 40px;
  border-right: 1px solid var(--stone);
}
@media (max-width: 660px) { .ocene-left { border-right: none; border-bottom: 1px solid var(--stone); padding-right: 0; padding-bottom: 32px; margin-bottom: 32px; } }
.ocene-right { padding-left: 40px; }
@media (max-width: 660px) { .ocene-right { padding-left: 0; } }
/* left: score + stars + count */
.ocene-avg { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-bottom: 20px; }
.ocene-avg-score { font-size: 56px; font-weight: 700; line-height: 1; color: var(--ink); }
.ocene-avg-stars { color: var(--brass); font-size: 20px; letter-spacing: 2px; }
.ocene-avg-count { font-size: var(--step--1); color: var(--ink-soft); }
/* star distribution bars */
.ocene-bars { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.ocene-bar-row { display: flex; align-items: center; gap: 8px; }
.ocene-bar-label { font-size: 12px; color: var(--ink-soft); width: 24px; text-align: right; flex-shrink: 0; }
.ocene-bar-track { flex: 1; height: 7px; background: var(--bg-alt); border-radius: 4px; overflow: hidden; }
.ocene-bar-fill { height: 100%; background: var(--brass); border-radius: 4px; }
.ocene-bar-pct { font-size: 11px; color: var(--ink-soft); width: 30px; text-align: right; flex-shrink: 0; }
/* write review button */
.ocene-btn-wrap { margin-top: 4px; }
.ocene-btn {
  background: transparent; border: 1.5px solid var(--ink); color: var(--ink);
  padding: 9px 24px; border-radius: 999px; width: 100%;
  font-family: var(--body); font-size: var(--step--1); font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s;
}
.ocene-btn:hover:not(:disabled) { background: var(--ink); color: #fff; }
.ocene-btn:disabled { opacity: .4; cursor: default; }
.ocene-coming { margin-top: 8px; font-size: var(--step--1); color: var(--ink-soft); text-align: center; }
/* right: sort bar */
.ocene-sort-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.ocene-sort-label { font-size: var(--step--1); font-weight: 500; color: var(--ink-soft); flex-shrink: 0; }
.ocene-sort-sel {
  height: 34px; padding: 0 28px 0 10px; border: 1px solid var(--stone); border-radius: 6px;
  font-family: var(--body); font-size: var(--step--1); color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234A4039' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 9px center;
  appearance: none; -webkit-appearance: none; cursor: pointer; outline: none;
}
.ocene-sort-sel:focus { border-color: var(--cognac); box-shadow: 0 0 0 3px rgba(138,74,46,.1); }
/* review cards — hairline-separated, no box */
.ocene-cards { display: flex; flex-direction: column; }
.ocene-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--stone);
  color: var(--ink);
}
.ocene-card:last-child { border-bottom: none; }
.ocene-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.ocene-card-author { font-weight: 700; font-size: var(--step-0); }
.ocene-card-date { font-size: var(--step--1); color: var(--ink-soft); flex-shrink: 0; }
.ocene-card-stars { color: var(--brass); letter-spacing: 2px; font-size: var(--step--1); margin-bottom: 7px; }
.ocene-card-text { margin: 0 0 12px; font-size: var(--step-0); color: var(--ink-soft); line-height: 1.55; }
.ocene-card-photo {
  width: 160px; height: 108px; object-fit: cover; border-radius: 6px;
  display: block; margin-bottom: 8px;
}
/* rating-only summary (no bars, no individual reviews yet) */
.ocene-summary { display: flex; align-items: center; gap: 48px; padding-bottom: 36px; border-bottom: 1px solid var(--stone); margin-bottom: 32px; }
.ocene-summary .ocene-avg { margin-bottom: 0; }
.ocene-reviews-placeholder { padding: 4px 0 0; }

/* empty state */
.ocene-empty { padding: 20px 0; }
.ocene-empty-text { font-size: var(--step-1); color: var(--ink-soft); margin-bottom: 20px; }

/* ---------- review card photo — clickable ---------- */
.ocene-card-photo { cursor: zoom-in; }
.ocene-loading-text { color: var(--ink-soft); font-size: var(--step--1); padding: 16px 0; }
.ocene-error-text   { color: #C0392B; font-size: var(--step--1); padding: 16px 0; }

/* ---------- photo lightbox ---------- */
.ocene-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 4000; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.ocene-lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 6px; object-fit: contain; }

/* ---------- review modal — star picker ---------- */
.rv-star-pick { display: flex; gap: 4px; margin: 6px 0 4px; }
.rv-star { font-size: 30px; cursor: pointer; color: var(--stone); line-height: 1; user-select: none; transition: color .1s; }
.rv-star.on { color: var(--brass); }

/* ---------- review modal — photo preview ---------- */
.rv-photo-preview { display: none; width: 100%; max-height: 180px; object-fit: cover; border-radius: 6px; margin-top: 10px; }
.rv-photo-preview.shown { display: block; }

/* ---------- review modal — user row ---------- */
.rv-user-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 8px; }
.rv-user-row small { font-size: var(--step--1); color: var(--ink-soft); }
.rv-logout-btn { font-size: var(--step--1); color: var(--cognac); background: none; border: none; cursor: pointer; text-decoration: underline; padding: 0; font-family: var(--body); }

/* ---------- review modal — inline field errors ---------- */
.rv-field-error { display: none; color: #C0392B; font-size: var(--step--1); margin-top: 4px; }
.rv-field-error.shown { display: block; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--stone); padding: 40px 0; color: var(--ink-soft); font-size: var(--step--1); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.site-footer a:not(.nav-btn) { color: var(--cognac); text-decoration: none; }

/* ---------- a11y ---------- */
:focus-visible { outline: 2px solid var(--cognac); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bone); padding: 10px 14px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; border-radius: var(--radius); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.hidden { display: none !important; }
