.sfe-root {
  --sfe-orange: #f59f24;
  --sfe-orange-deep: #ec7f12;
  --sfe-orange-soft: #fff0e4;
  --sfe-ink: #20242a;
  --sfe-muted: #626975;
  --sfe-line: #e3e5e8;
  --sfe-soft: #f7f7f7;
  --sfe-columns: 4;
  color: var(--sfe-ink);
  font-family: Poppins, Arial, sans-serif;
}


.sfe-up-root {
  --sfe-up-orange: var(--orange-d, var(--bde-brand-primary-color, #ec7f12));
  --sfe-up-ink: var(--ink, #20242a);
  --sfe-up-body: var(--body, #626975);
  --sfe-up-line: var(--line, rgba(22, 22, 22, 0.12));
  --sfe-up-shadow: var(--shadow, 0 18px 44px rgba(18, 24, 32, 0.12));
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 300px;
  padding: 16px 16px 8px;
  border-radius: 18px;
  background: var(--white, #ffffff);
  box-shadow: var(--sfe-up-shadow);
  color: var(--sfe-up-ink);
  font-family: Poppins, Arial, sans-serif;
}

.sfe-up-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sfe-up-head b {
  color: var(--sfe-up-ink);
  font-family: var(--disp, Poppins, Arial, sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-transform: uppercase;
}

.sfe-up-head a {
  color: var(--sfe-up-orange);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.sfe-up-head a:hover,
.sfe-up-head a:focus {
  color: var(--sfe-up-orange);
  text-decoration: underline;
  outline: none;
}
.sfe-up-list {
  display: flex;
  flex-direction: column;
}

.sfe-up-row {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 9px 0;
  border-top: 1px solid var(--sfe-up-line);
  color: inherit;
  text-decoration: none;
}

.sfe-up-row:hover,
.sfe-up-row:focus {
  color: inherit;
  outline: none;
}

.sfe-up-row:focus-visible {
  border-radius: 10px;
  box-shadow: 0 0 0 2px rgba(245, 159, 36, 0.45);
}

.sfe-up-thumb {
  display: block;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 11px;
  background: #f1eee9;
  flex-shrink: 0;
  object-fit: cover;
}

.sfe-up-image,
.sfe-up-image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tataz kolize s `.breakdance img` jako u `.sfe-card-image` vyse — bez tohoto
   se nahled neroztahne na cely ctverec 46x46 v `.sfe-up-thumb`. */
.sfe-up-thumb .sfe-up-image {
  height: 100%;
}

.sfe-up-image-placeholder {
  background: linear-gradient(135deg, rgba(245, 159, 36, 0.22), rgba(32, 36, 42, 0.1));
}

.sfe-up-content {
  flex: 1;
  min-width: 0;
}

.sfe-up-title {
  display: block;
  overflow: hidden;
  color: var(--sfe-up-ink);
  font-family: var(--disp);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.25;
  text-overflow: ellipsis;
  letter-spacing: normal;
}

.sfe-up-place,
.sfe-up-date {
  display: block;
  overflow: hidden;
  color: var(--sfe-up-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sfe-up-badge {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(245, 159, 36, 0.14);
  color: var(--sfe-up-orange);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.sfe-up-empty {
  margin: 0;
  padding: 9px 0;
  border-top: 1px solid var(--sfe-up-line);
  color: var(--sfe-up-body);
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .sfe-up-root {
    position: static;
    width: auto;
    margin-top: 14px;
    box-shadow: var(--shadow-sm, 0 10px 24px rgba(18, 24, 32, 0.08));
  }
}
.sfe-filter-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid var(--sfe-line);
  border-radius: 8px;
  background: #ffffff;
}

.sfe-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
}

.sfe-category-label {
  color: var(--sfe-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.sfe-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sfe-pill {
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid rgba(22, 22, 22, 0.18);
  border-radius: 999px;
  background: transparent;
  color: var(--sfe-ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.sfe-pill:hover,
.sfe-pill:focus {
  border-color: rgba(245, 159, 36, 0.85);
  background: rgba(245, 159, 36, 0.08);
  color: var(--sfe-orange-deep) !important;
}

.sfe-pill.is-active,
.sfe-pill.is-active:hover,
.sfe-pill.is-active:focus {
  border-color: var(--bde-brand-primary-color, var(--sfe-orange));
  background: var(--bde-brand-primary-color, var(--sfe-orange));
  color: #ffffff !important;
}

.sfe-filter-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(3, minmax(150px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.sfe-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.sfe-field span {
  font-size: 12px;
  font-weight: 700;
  color: var(--sfe-muted);
}

.sfe-input,
.sfe-select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--sfe-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--sfe-ink);
  font: inherit;
  font-size: 14px;
}

.sfe-input:focus,
.sfe-select:focus {
  border-color: var(--sfe-orange);
  box-shadow: 0 0 0 3px rgba(245, 159, 36, 0.2);
  outline: none;
}

.sfe-submit,
.sfe-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1.5px solid var(--sfe-orange);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.sfe-submit,
.sfe-button-primary {
  background: var(--sfe-orange);
  color: #ffffff !important;
}

.sfe-button-outline {
  background: #ffffff;
  color: var(--sfe-ink) !important;
}

.sfe-submit:hover,
.sfe-submit:focus,
.sfe-button-primary:hover,
.sfe-button-primary:focus {
  background: var(--sfe-orange-deep);
  border-color: var(--sfe-orange-deep);
  color: #ffffff !important;
}

.sfe-button-outline:hover,
.sfe-button-outline:focus {
  background: var(--sfe-orange-soft);
  border-color: var(--sfe-orange);
  color: var(--sfe-orange-deep) !important;
}

.sfe-results {
  position: relative;
}

.sfe-results.is-loading {
  min-height: 160px;
  opacity: 0.65;
  pointer-events: none;
}

.sfe-results.is-loading::after {
  content: "";
  position: absolute;
  top: 56px;
  left: 50%;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  border: 3px solid #eeeeee;
  border-top-color: var(--sfe-orange);
  border-radius: 50%;
  animation: sfe-spin 0.8s linear infinite;
}

@keyframes sfe-spin {
  to {
    transform: rotate(360deg);
  }
}

.sfe-grid {
  display: grid;
  grid-template-columns: repeat(var(--sfe-columns), minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.sfe-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--sfe-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--sfe-muted);
}

.sfe-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--sfe-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(18, 24, 32, 0.045);
  height: 100%;
}

.sfe-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--sfe-soft);
  color: inherit;
  text-decoration: none;
}

.sfe-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

/* Breakdance nastavuje `.breakdance img { height: auto }` se specificitou
   (0,1,1), takze prebiji `height: 100%` z `.sfe-card-image` (0,1,0) a obrazek
   pak ignoruje `aspect-ratio: 16 / 10` na `.sfe-card-media`. Selektor nize ma
   (0,2,0), takze vyhrava bez `!important`. */
.sfe-card-media .sfe-card-image {
  height: 100%;
}

.sfe-card:hover .sfe-card-image {
  transform: scale(1.025);
}

.sfe-card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(245, 159, 36, 0.18), rgba(21, 21, 21, 0.08)),
    var(--sfe-soft);
}

.sfe-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 9px;
  overflow: hidden;
  border: 1px solid var(--sfe-orange-deep);
  border-radius: 8px;
  background: var(--sfe-orange-soft);
  color: var(--sfe-orange-deep) !important;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sfe-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 18px;
}

.sfe-card-title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.sfe-card-title a {
  color: var(--sfe-ink);
  text-decoration: none;
}


.sfe-root .sfe-card-title {
  font-size: 19px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: var(--sfe-ink) !important;
}

.sfe-root .sfe-card-title a {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

.sfe-root .sfe-card-meta,
.sfe-root .sfe-excerpt {
  color: var(--sfe-muted) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}
.sfe-card-title a:hover,
.sfe-card-title a:focus {
  color: var(--sfe-orange);
}

.sfe-card-meta {
  color: var(--sfe-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.sfe-card-place {
  color: var(--sfe-muted);
}

.sfe-card-date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sfe-muted);
}

.sfe-icon-calendar {
  display: inline-block;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v2h6V2h2v2h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h3V2zm13 8H4v10h16V10zM4 8h16V6H4v2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sfe-excerpt {
  margin: 0;
  color: var(--sfe-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.sfe-read-more {
  display: inline;
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sfe-orange);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.sfe-read-more:hover,
.sfe-read-more:focus {
  color: #d9820a;
  text-decoration: underline;
}

.sfe-card-actions {
  margin-top: auto;
  padding-top: 8px;
}

.sfe-card-actions .sfe-button {
  width: 100%;
}


.sfe-root .sfe-card-body,
.sfe-root .sfe-card-title,
.sfe-root .sfe-card-title a,
.sfe-root .sfe-card-meta,
.sfe-root .sfe-excerpt,
.sfe-root .sfe-card-actions {
  text-align: left !important;
}

.sfe-root .sfe-card-actions {
  display: flex;
  justify-content: flex-start;
}

.sfe-root .sfe-card-actions .sfe-button {
  width: auto;
  justify-content: flex-start;
  text-align: left !important;
}
.sfe-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 24px 0 0;
}

.sfe-page,
.sfe-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.sfe-page {
  border: 1px solid var(--sfe-line);
  background: #ffffff;
  color: var(--sfe-ink);
  text-decoration: none;
}

.sfe-page:hover,
.sfe-page:focus,
.sfe-page.is-active {
  border-color: var(--sfe-orange);
  background: var(--sfe-orange);
  color: #ffffff !important;
}

.sfe-page.is-active {
  pointer-events: none;
}

.sfe-ellipsis {
  color: var(--sfe-muted);
}

@media (max-width: 1024px) {
  .sfe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sfe-filter-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sfe-submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .sfe-filter-form {
    padding: 14px;
  }

  .sfe-filter-controls,
  .sfe-grid {
    grid-template-columns: 1fr;
  }

  .sfe-card-title {
    font-size: 19px;
  }
}
