@charset "UTF-8";
/* ===== CSS variables (světlý/tmavý) ===== */
:root {
  --bg: #0b0c10;
  --surface: #0f1117;
  --card: #131722;
  --text: #e6e8ee;
  --muted: #9aa4b2;
  --border: #1f2430;
  --accent: #5b8cff;
  --accent-2: #67d0bd;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #607081;
    --border: #e6e8ee;
    --accent: #2f6aff;
    --accent-2: #0aa37f;
    --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  }
}
/* ===== Base ===== */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(91, 140, 255, 0.12), transparent 50%), radial-gradient(900px 500px at 100% 0%, rgba(103, 208, 189, 0.1), transparent 60%), var(--bg);
  color: var(--text);
}

/* ===== Layout ===== */
.page {
  width: min(1100px, 92%);
  margin: 40px auto 64px;
}

.page__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.page__title {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 34px);
  letter-spacing: -0.02em;
}

/* ===== Search ===== */
.search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.search__input {
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search__input:focus {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--text));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}

/* ===== Buttons ===== */
.btn {
  appearance: none;
  border: 0;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.2s, background 0.2s;
  box-shadow: var(--shadow);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  color: white;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent), #fff 10%));
}

/* ===== Empty state ===== */
.empty {
  display: grid;
  place-items: center;
  padding: 40px 0;
}

.empty__card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: var(--shadow);
  width: min(520px, 100%);
}

.empty__emoji {
  font-size: 40px;
  margin-bottom: 10px;
}

.empty__title {
  margin: 0 0 6px;
  font-size: 22px;
}

.empty__text {
  margin: 0;
  color: var(--muted);
}

/* 1 sloupec */
.card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.card__body {
  padding: 18px;
}

.card__title {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.3;
}

.card__link {
  color: var(--text);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.2s ease, color 0.2s ease;
}

.card__link:hover {
  background-size: 100% 2px;
}

.card__subtitle {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

/* meta „pills“ */
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.meta__item {
  font-size: 13px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 70%, #000 0%);
  border: 1px solid var(--border);
  padding: 6px 8px;
  border-radius: 10px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta__item span {
  font-variant-numeric: tabular-nums;
}

/* externí odkaz */
.card__extlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--border));
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.2s, border-color 0.2s;
}

.card__extlink:hover {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: var(--accent);
}

/* ===== Pagination (přestylování výstupu pagerfanty) ===== */
.pagination {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.pagination .pagination {
  /* výstup z pagerfanty: <ul class="pagination">… */
  display: inline-flex;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.pagination .page-item .page-link,
.pagination .pagination li > a,
.pagination .pagination li > span {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s;
}

.pagination .pagination li.active > span,
.pagination .pagination li.active > a {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
}

.pagination .pagination li > a:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
}

.pagination .pagination .disabled > span {
  opacity: 0.5;
}

.import-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.flash {
  margin: 10px 0;
  padding: 12px;
  border-radius: 10px;
}

.flash--success {
  background: color-mix(in srgb, var(--accent-2) 18%, transparent);
  border: 1px solid var(--accent-2);
}

.flash--danger {
  background: color-mix(in srgb, #ff6b6b 18%, transparent);
  border: 1px solid #ff6b6b;
}

/* ===== Buttons: ghost variant (pro zpět) ===== */
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px dashed var(--border);
}

.btn--ghost:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  margin-bottom: 12px;
}

/* ===== Detail header ===== */
.detail__header {
  margin-bottom: 16px;
}

.detail__location {
  margin: 6px 0 10px;
  color: var(--muted);
}

.detail__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail__stat {
  font-size: 14px;
  background: color-mix(in srgb, var(--surface) 70%, #000 0%);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail__stat span {
  font-variant-numeric: tabular-nums;
}

.detail__actions {
  margin-top: 14px;
}

/* ===== Detail layout ===== */
.detail {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 899px) {
  .detail {
    grid-template-columns: 1fr;
  }
}
/* ===== Panel (card-like) ===== */
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.panel__title {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== Definition list (properties) ===== */
.props {
  margin: 0;
}

.props__row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

.props__row:last-child {
  border-bottom: 0;
}

.props dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.props dd {
  margin: 0;
  word-break: break-word;
}

.props a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent);
}

.props a:hover {
  border-bottom-color: var(--accent);
}

/* ===== Key–value list in sidebar ===== */
.kv {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.kv li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed var(--border);
  padding: 8px 0;
}

.kv li:last-child {
  border-bottom: 0;
}

.kv span {
  color: var(--muted);
}

.kv strong {
  font-variant-numeric: tabular-nums;
}

.listing__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn--accent {
  background: linear-gradient(135deg, var(--accent-2), color-mix(in srgb, var(--accent-2), #fff 10%));
  color: #fff;
}

/* malé tlačítko */
.btn--sm {
  padding: 8px 12px;
  font-size: 14px;
}

/* destruktivní akce */
.btn--danger {
  color: #fff;
  background: linear-gradient(135deg, #d64949, color-mix(in srgb, #d64949, #fff 10%));
  box-shadow: var(--shadow);
}

.btn--danger:hover {
  filter: brightness(1.02);
}

.delete-form {
  margin-top: 10px;
}

/* Přepínač zobrazení */
.view-toggle {
  display: inline-flex;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.view-toggle__btn {
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}

.view-toggle__btn:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.view-toggle__btn.is-active {
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  border-color: var(--accent);
}

/* Tabulka */
.tablewrap {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: auto;
  background: var(--card);
  box-shadow: var(--shadow);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 860px;
}

.table thead th {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--surface) 80%, var(--card));
  color: var(--muted);
  text-align: left;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.table tbody td {
  padding: 12px 14px;
  border-bottom: 1px dashed var(--border);
  vertical-align: middle;
}

.table tbody tr:hover td {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.th--num, .td--num {
  text-align: right;
  width: 70px;
}

.th--meta {
  width: 160px;
}

.th--actions {
  width: 120px;
  text-align: right;
}

.td--actions {
  text-align: right;
}

.td--muted {
  color: var(--muted);
}

.td--url a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent);
}

.td--url a:hover {
  border-bottom-color: var(--accent);
}

.table__link {
  color: var(--text);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.2s ease;
}

.table__link:hover {
  background-size: 100% 2px;
}

.map {
  width: 100%;
  height: clamp(260px, 40vh, 420px);
  border-radius: 12px;
  overflow: hidden;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  font-size: 13px;
  color: var(--muted);
}

.search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.search__input {
  min-width: 220px;
}

/* --- FIX: přebij starý 12-col grid --- */
.grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 20px !important;
  align-items: start;
}

/* zruš nucené spanování z dřívějška */
.grid > .card {
  grid-column: auto !important;
  width: auto; /* just in case */
  min-width: 0; /* aby nic nepřetékalo */
}

/* mobil – nech auto-fit, netřeba speciálních spanů */
@media (max-width: 599px) {
  .grid {
    grid-template-columns: 1fr !important;
  }
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--card, #fff);
  border: 1px solid var(--border, #ddd);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow, 0 1px 4px rgba(0, 0, 0, 0.1));
}

/* Media area s pevným poměrem stran */
.card__media {
  position: relative;
  aspect-ratio: 16/10; /* moderní prohlížeče */
  background: #f4f4f6;
}

/* Rezerva pro starší Safari (optional): */
/* .card__media::before { content: ""; display: block; padding-top: 62.5%; } */
.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* vyřeší ořez na poměr */
  object-position: center;
}

/* Placeholder, když není fotka */
.card__media--placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 28px;
}

/* Tělo karty */
.card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/*# sourceMappingURL=style.css-v6FNvR9.map */
