.tvmse-imx-list {
  --tvmse-imx-card-bg: var(--base-3, #fff);
  --tvmse-imx-card-border: var(--contrast-3, rgba(0, 0, 0, 0.1));
  --tvmse-imx-card-radius: var(--radius-m, 0.75rem);
  --tvmse-imx-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --tvmse-imx-card-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.08);
  --tvmse-imx-accent: var(--accent, #005e90);
  --tvmse-imx-link: var(--link, var(--accent, #005e90));
  --tvmse-imx-muted: var(--contrast-2, #4a3d42);
}

.tvmse-imx-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

.tvmse-imx-list--card-grid .tvmse-imx-list__items {
  grid-template-columns: repeat(var(--tvmse-imx-columns, 1), minmax(0, 1fr));
}

@media (min-width: 640px) {
  .tvmse-imx-list--card-grid .tvmse-imx-list__items {
    grid-template-columns: repeat(var(--tvmse-imx-columns, 2), minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .tvmse-imx-list--poi.tvmse-imx-list--card-grid .tvmse-imx-list__items,
  .tvmse-imx-list--tour.tvmse-imx-list--card-grid .tvmse-imx-list__items {
    grid-template-columns: repeat(var(--tvmse-imx-columns, 3), minmax(0, 1fr));
  }
}

.tvmse-imx-list__item {
  margin: 0;
  min-width: 0;
}

.tvmse-imx-card {
  height: 100%;
}

.tvmse-imx-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--tvmse-imx-card-bg);
  border: 1px solid var(--tvmse-imx-card-border);
  border-radius: var(--tvmse-imx-card-radius);
  padding: 1.25rem 1.35rem 1.1rem;
  box-shadow: var(--tvmse-imx-card-shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tvmse-imx-card:hover .tvmse-imx-card__inner,
.tvmse-imx-card__inner:focus-within {
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: var(--tvmse-imx-card-shadow-hover);
  transform: translateY(-1px);
}

.tvmse-imx-card__badge {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tvmse-imx-link);
}

.tvmse-imx-card__title {
  margin: 0 0 0.65rem;
  font-size: 1.12rem;
  line-height: 1.35;
  font-weight: 600;
}

.tvmse-imx-card__title a {
  color: inherit;
  text-decoration: none;
}

.tvmse-imx-card__title a:hover {
  color: var(--tvmse-imx-link);
}

.tvmse-imx-card__excerpt {
  margin: 0 0 1rem;
  flex: 1 1 auto;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--tvmse-imx-muted);
}

.tvmse-imx-card__excerpt.line-limit-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.tvmse-imx-card__cta {
  margin: auto 0 0;
  padding-top: 0.35rem;
}

.tvmse-imx-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tvmse-imx-link);
  text-decoration: none;
}

.tvmse-imx-card__link:hover {
  text-decoration: underline;
}

.tvmse-imx-list__items--compact {
  display: block;
  background: var(--tvmse-imx-card-bg);
  border: 1px solid var(--tvmse-imx-card-border);
  border-radius: var(--tvmse-imx-card-radius);
  padding: 0.35rem 1rem;
}

.tvmse-imx-list__item--compact {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tvmse-imx-list__item--compact:last-child {
  border-bottom: 0;
}

.tvmse-imx-list__link {
  display: block;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
}

.tvmse-imx-list__link:hover {
  color: var(--tvmse-imx-link);
  text-decoration: underline;
}

.tvmse-imx-list__items--detail {
  grid-template-columns: 1fr;
}

.tvmse-imx-list--detail .tvmse-imx-card__inner {
  padding: 1.35rem 1.5rem;
}

.tvmse-imx-card--empty,
.tvmse-imx-list--empty {
  padding: 0.75rem 1rem;
  border: 1px dashed rgba(0, 0, 0, 0.15);
  border-radius: var(--tvmse-imx-card-radius);
  color: var(--tvmse-imx-muted);
}

.tvmse-imx-list__meta {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--tvmse-imx-muted);
}

.tvmse-imx-list__compact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}

.tvmse-imx-list__meta-line {
  font-size: 0.85rem;
  color: var(--tvmse-imx-muted);
  white-space: nowrap;
}

.tvmse-imx-list--teaser .tvmse-imx-list__items {
  grid-template-columns: repeat(var(--tvmse-imx-columns, 1), minmax(0, 1fr));
}

@media (min-width: 640px) {
  .tvmse-imx-list--teaser .tvmse-imx-list__items {
    grid-template-columns: repeat(var(--tvmse-imx-columns, 2), minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .tvmse-imx-list--poi.tvmse-imx-list--teaser .tvmse-imx-list__items,
  .tvmse-imx-list--tour.tvmse-imx-list--teaser .tvmse-imx-list__items {
    grid-template-columns: repeat(var(--tvmse-imx-columns, 3), minmax(0, 1fr));
  }
}

.tvmse-imx-card--teaser .tvmse-imx-card__inner {
  padding: 0;
  overflow: hidden;
}

.tvmse-imx-card__media {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.04);
}

.tvmse-imx-card__media a {
  display: block;
  height: 100%;
}

.tvmse-imx-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tvmse-imx-card__media picture,
.tvmse-imx-gallery__figure picture,
.tvmse-imx-event-grid__media picture,
.tvmse-imx-card__media .tvmse-imx-image-placeholder,
.tvmse-imx-gallery__figure .tvmse-imx-image-placeholder,
.tvmse-imx-event-grid__media .tvmse-imx-image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.tvmse-imx-card__media picture img,
.tvmse-imx-gallery__figure picture img,
.tvmse-imx-event-grid__media picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tvmse-imx-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: rgba(20, 79, 38, 0.45);
  background:
    linear-gradient(145deg, rgba(20, 79, 38, 0.08) 0%, rgba(20, 79, 38, 0.02) 55%, rgba(0, 0, 0, 0.03) 100%);
}

.tvmse-imx-image-placeholder svg {
  width: 42%;
  max-width: 3rem;
  height: auto;
  opacity: 0.85;
}

.tvmse-imx-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.1rem 1.25rem 1rem;
}

.tvmse-imx-card__meta {
  margin: -0.25rem 0 0.65rem;
  font-size: 0.86rem;
  color: var(--tvmse-imx-muted);
}

.tvmse-imx-map {
  width: 100%;
  border-radius: var(--tvmse-imx-card-radius);
  overflow: hidden;
  border: 1px solid var(--tvmse-imx-card-border);
}

.tvmse-imx-map-popup__img img {
  width: 100%;
  max-width: 220px;
  height: 130px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  margin-bottom: 6px;
}

.tvmse-imx-map-popup__city {
  color: #666;
}

.tvmse-imx-map-popup__short {
  margin: 6px 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

.tvmse-imx-map-popup__link {
  display: inline-block;
  padding: 4px 10px;
  background: var(--tvmse-imx-accent);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
}

.leaflet-container .tvmse-imx-map-popup .leaflet-popup-content {
  margin: 10px 12px;
}

.tvmse-imx-search-hit .entry-title a,
.tvmse-imx-search-hit .post-title a,
.search-results .tvmse-imx-search-hit a {
  font-weight: 600;
}

.tvmse-imx-search-hit--poi .entry-summary,
.tvmse-imx-search-hit--tour .entry-summary,
.tvmse-imx-search-hit--event .entry-summary,
.tvmse-imx-search-hit--offer .entry-summary {
  color: var(--tvmse-imx-muted, rgba(0, 0, 0, 0.62));
}

.tvmse-imx-list--gallery .tvmse-imx-list__items--gallery {
  grid-template-columns: repeat(var(--tvmse-imx-columns, 3), minmax(0, 1fr));
  gap: 1.25rem;
}

.tvmse-imx-list--gallery,
.tvmse-imx-list--gallery-map {
  --tvmse-imx-marker-default: #228530;
  --tvmse-imx-marker-active: #f59e0b;
}

.tvmse-imx-gallery__item {
  min-width: 0;
}

.tvmse-imx-gallery__link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.tvmse-imx-gallery__link:focus-visible {
  outline: 2px solid var(--tvmse-imx-marker-active, #f59e0b);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .tvmse-imx-gallery__link:hover {
    outline: 2px solid var(--tvmse-imx-marker-active, #f59e0b);
    outline-offset: 3px;
  }
}

.tvmse-imx-gallery__item.is-imx-map-highlight .tvmse-imx-gallery__link {
  outline: 2px solid var(--tvmse-imx-marker-active, #f59e0b);
  outline-offset: 3px;
}

.tvmse-imx-gallery__figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
}

.tvmse-imx-gallery__image,
.tvmse-imx-gallery__figure picture,
.tvmse-imx-gallery__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tvmse-imx-gallery__caption,
.tvmse-imx-gallery__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0;
  padding: 15px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(10, 10, 10, 0) 40%);
  pointer-events: none;
}

.tvmse-imx-gallery__fallback {
  position: relative;
  min-height: 12rem;
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--tvmse-imx-card-border);
  border-radius: 15px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(20, 79, 38, 0.35) 100%);
}

.tvmse-imx-gallery__caption-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.tvmse-imx-gallery__title {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.tvmse-imx-gallery__arrow {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 5px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.35s ease;
}

.tvmse-imx-gallery__arrow svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (hover: hover) and (pointer: fine) {
  .tvmse-imx-gallery__link:hover .tvmse-imx-gallery__arrow,
  .tvmse-imx-gallery__link:focus-visible .tvmse-imx-gallery__arrow {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (hover: none), (pointer: coarse) {
  .tvmse-imx-gallery__arrow {
    opacity: 0.9;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tvmse-imx-gallery__arrow {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tvmse-imx-gallery__arrow {
    transition: none;
  }
}

@media (max-width: 639px) {
  .tvmse-imx-list--gallery .tvmse-imx-list__items--gallery {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 640px) and (max-width: 959px) {
  .tvmse-imx-list--gallery .tvmse-imx-list__items--gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Galerie + Karte (Split, Legacy formatter_pois_teaser_stickymap) */
.tvmse-imx-list--gallery-map .tvmse-imx-gallery-map__mobile-toggle {
  display: none;
}

.tvmse-imx-gallery-map__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.tvmse-imx-gallery-map__map-col {
  position: sticky;
  top: calc(var(--tvmse-imx-sticky-top, 4.5rem) + 0.75rem);
  z-index: 2;
  align-self: start;
}

.tvmse-imx-gallery-map__map-col .tvmse-imx-map--gallery-panel {
  border-radius: var(--tvmse-imx-card-radius, 12px);
  overflow: hidden;
  border: 1px solid var(--tvmse-imx-card-border, rgba(0, 0, 0, 0.1));
  box-shadow: var(--tvmse-imx-card-shadow, 0 2px 8px rgba(0, 0, 0, 0.06));
}

@media (min-width: 768px) {
  .tvmse-imx-gallery-map__map-col .tvmse-imx-map--gallery-panel {
    min-height: 280px;
    max-height: calc(100vh - var(--tvmse-imx-sticky-top, 4.5rem) - 1rem);
  }
}

.tvmse-imx-list--gallery-map .tvmse-imx-list__items--gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tvmse-imx-map-pin-wrap {
  background: transparent;
  border: 0;
}

.leaflet-marker-icon.tvmse-imx-map-pin-wrap--active {
  z-index: 1200 !important;
}

.tvmse-imx-map-pin-wrap svg {
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.28));
  transition: transform 0.2s ease;
}

.tvmse-imx-map-pin-wrap--active svg {
  transform: scale(1.12);
}

.tvmse-imx-map-pin-wrap--drop svg {
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.32));
}

.tvmse-imx-map-pin-wrap--drop.tvmse-imx-map-pin-wrap--active svg {
  transform: scale(1.08);
  transform-origin: 50% 100%;
}

.tvmse-imx-gallery-map__mobile-toggle {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
}

.tvmse-imx-gallery-map__tab {
  flex: 1 1 0;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  color: var(--tvmse-imx-muted, rgba(0, 0, 0, 0.62));
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tvmse-imx-gallery-map__tab.is-active {
  color: #fff;
  background: var(--tvmse-imx-accent, #228530);
  box-shadow: 0 2px 6px rgba(34, 133, 48, 0.25);
}

.tvmse-imx-gallery-map__tab:focus-visible {
  outline: 2px solid var(--tvmse-imx-accent, #228530);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .tvmse-imx-list--gallery-map[data-imx-has-map="1"] .tvmse-imx-gallery-map__mobile-toggle {
    display: flex;
  }

  .tvmse-imx-gallery-map__layout {
    grid-template-columns: 1fr;
  }

  .tvmse-imx-list--gallery-map .tvmse-imx-list__items--gallery {
    grid-template-columns: 1fr;
  }

  .tvmse-imx-gallery-map__map-col {
    display: none;
    position: static;
  }

  .tvmse-imx-list--gallery-map.tvmse-imx-gallery-map--view-map .tvmse-imx-gallery-map__map-col {
    display: block;
  }

  .tvmse-imx-list--gallery-map.tvmse-imx-gallery-map--view-map .tvmse-imx-gallery-map__list-col {
    display: none;
  }

  .tvmse-imx-list--gallery-map.tvmse-imx-gallery-map--view-map .tvmse-imx-gallery-map__map-col .tvmse-imx-map {
    min-height: 65vh;
    height: 65vh !important;
  }
}

.tvmse-imx-list--event-grid .tvmse-imx-list__items--event-grid {
  grid-template-columns: repeat(var(--tvmse-imx-columns, 3), minmax(0, 1fr));
  gap: 1.5rem;
}

.tvmse-imx-event-grid__item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.tvmse-imx-event-grid__card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: var(--tvmse-imx-card-bg);
  border: 1px solid var(--tvmse-imx-card-border);
  border-radius: var(--tvmse-imx-card-radius);
  box-shadow: var(--tvmse-imx-card-shadow);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tvmse-imx-event-grid__card-link--static {
  cursor: default;
}

.tvmse-imx-event-grid__card-link--static:hover,
.tvmse-imx-event-grid__card-link--static:focus-visible {
  transform: none;
  border-color: var(--tvmse-imx-card-border);
  box-shadow: var(--tvmse-imx-card-shadow);
}

.tvmse-imx-event-grid__card-link:hover,
.tvmse-imx-event-grid__card-link:focus-visible {
  border-color: rgba(20, 79, 38, 0.35);
  box-shadow: var(--tvmse-imx-card-shadow-hover);
  transform: translateY(-2px);
  color: inherit;
  outline: none;
}

.tvmse-imx-event-grid__media {
  margin-bottom: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--base-2, #f7f8f9);
}

.tvmse-imx-event-grid__media picture,
.tvmse-imx-event-grid__media picture img,
.tvmse-imx-event-grid__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.tvmse-imx-event-grid__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.45rem;
  padding: 1rem 1.15rem 1.15rem;
}

.tvmse-imx-event-grid__date {
  margin: 0;
  align-self: flex-start;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #144f26;
  background: rgba(20, 79, 38, 0.1);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
}

.tvmse-imx-event-grid__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.tvmse-imx-event-grid__title-text {
  font-weight: 600;
}

.tvmse-imx-event-grid__excerpt {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--tvmse-imx-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.tvmse-imx-event-grid__location {
  margin: 0;
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--tvmse-imx-muted);
}

.tvmse-imx-event-grid__location-icon {
  opacity: 0.85;
}

.tvmse-imx-event-grid__footer {
  margin: 1.75rem 0 0;
  text-align: center;
}

.tvmse-imx-event-grid__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #144f26;
  text-decoration: none;
  border: 1px solid rgba(20, 79, 38, 0.28);
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tvmse-imx-event-grid__more:hover,
.tvmse-imx-event-grid__more:focus-visible {
  background: #144f26;
  border-color: #144f26;
  color: #fff;
  outline: none;
}

.tvmse-imx-event-grid__more-arrow {
  line-height: 1;
}

@media (max-width: 600px) {
  .tvmse-imx-list--event-grid .tvmse-imx-list__items--event-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .tvmse-imx-list--event-grid .tvmse-imx-list__items--event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .tvmse-imx-list--event-grid .tvmse-imx-list__items--event-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tvmse-imx-agenda {
  margin: 1.5rem 0;
  --tvmse-imx-agenda-accent: #144f26;
  --tvmse-imx-agenda-accent-soft: rgba(20, 79, 38, 0.1);
  --tvmse-imx-agenda-accent-hover: #289b38;
}

.tvmse-imx-agenda__empty {
  margin: 1rem 0;
  color: #666;
}

.tvmse-imx-agenda__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  align-items: flex-end;
  justify-content: space-between;
  background: #f7f8f9;
  border: 1px solid rgba(20, 79, 38, 0.12);
  border-radius: 0.75rem;
}

.tvmse-imx-agenda__filters-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  flex: 1 1 280px;
}

.tvmse-imx-agenda__filters-range {
  flex: 0 1 auto;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.tvmse-imx-agenda__range-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  justify-content: flex-end;
}

.tvmse-imx-agenda__filter-group--date {
  flex: 0 1 150px;
  min-width: 130px;
}

.tvmse-imx-agenda__filter-group--date input[type="date"] {
  padding: 0.38rem 0.55rem;
  border: 1px solid #cdd5e0;
  border-radius: 6px;
  font-size: 0.88rem;
  background: #fff;
  color: #1a2a3a;
  width: 100%;
  box-sizing: border-box;
}

.tvmse-imx-agenda__filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1 160px;
}

.tvmse-imx-agenda__filter-group--search {
  flex: 2 1 220px;
}

.tvmse-imx-agenda__filter-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tvmse-imx-agenda__filter-group input[type="text"],
.tvmse-imx-agenda__filter-group select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #cdd5e0;
  border-radius: 6px;
  font-size: 0.92rem;
  background: #fff;
  color: #1a2a3a;
  width: 100%;
  box-sizing: border-box;
}

.tvmse-imx-agenda__filter-group--place {
  flex: 1 1 150px;
}

.tvmse-imx-agenda__quick-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}

.tvmse-imx-agenda__quick-cat {
  appearance: none;
  border: 1px solid rgba(20, 79, 38, 0.22);
  background: #fff;
  color: var(--tvmse-imx-agenda-accent);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tvmse-imx-agenda__quick-cat:hover,
.tvmse-imx-agenda__quick-cat.is-active {
  background: var(--tvmse-imx-agenda-accent);
  border-color: var(--tvmse-imx-agenda-accent);
  color: #fff;
}

.tvmse-imx-agenda__results-count {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tvmse-imx-agenda-accent);
}

.tvmse-imx-agenda__filter-soldout {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: #444;
  padding-bottom: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
}

.tvmse-imx-agenda__filter-group--range {
  flex: 0 1 auto;
  min-width: 0;
}

.tvmse-imx-agenda__filter-group-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.tvmse-imx-agenda__range-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.tvmse-imx-agenda__range-btn {
  appearance: none;
  border: 1px solid #cdd5e0;
  border-radius: 999px;
  background: #fff;
  color: #1a2a3a;
  font-size: 0.82rem;
  line-height: 1.2;
  padding: 0.38rem 0.72rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tvmse-imx-agenda__range-btn:hover {
  border-color: var(--tvmse-imx-agenda-accent-hover);
  color: var(--tvmse-imx-agenda-accent);
}

.tvmse-imx-agenda__range-btn.is-active {
  background: var(--tvmse-imx-agenda-accent);
  border-color: var(--tvmse-imx-agenda-accent);
  color: #fff;
}

.tvmse-imx-agenda__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 2rem 0 1rem;
}

.tvmse-imx-agenda__pager.is-loading {
  opacity: 0.72;
}

.tvmse-imx-agenda__pager-btn {
  appearance: none;
  border: 1px solid rgba(20, 79, 38, 0.28);
  border-radius: 999px;
  background: #fff;
  color: var(--tvmse-imx-agenda-accent);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tvmse-imx-agenda__pager-btn:hover:not(:disabled) {
  background: var(--tvmse-imx-agenda-accent);
  border-color: var(--tvmse-imx-agenda-accent);
  color: #fff;
}

.tvmse-imx-agenda__pager-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tvmse-imx-agenda__pager-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tvmse-imx-agenda__pager-page {
  appearance: none;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.45rem;
  border: 1px solid rgba(20, 79, 38, 0.22);
  border-radius: 999px;
  background: #fff;
  color: var(--tvmse-imx-agenda-accent);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tvmse-imx-agenda__pager-page:hover:not(:disabled):not(.is-active) {
  border-color: var(--tvmse-imx-agenda-accent-hover);
  color: var(--tvmse-imx-agenda-accent-hover);
}

.tvmse-imx-agenda__pager-page.is-active {
  background: var(--tvmse-imx-agenda-accent);
  border-color: var(--tvmse-imx-agenda-accent);
  color: #fff;
  cursor: default;
}

.tvmse-imx-agenda__pager-page:disabled:not(.is-active) {
  opacity: 0.45;
  cursor: not-allowed;
}

.tvmse-imx-agenda__pager-gap {
  min-width: 1.25rem;
  text-align: center;
  color: rgba(20, 79, 38, 0.55);
  font-size: 0.92rem;
  font-weight: 600;
  user-select: none;
}

.tvmse-imx-agenda__pager-status {
  flex: 0 0 100%;
  min-width: 8rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tvmse-imx-agenda-accent);
}

.tvmse-imx-agenda__load-more-wrap {
  display: none;
  margin: 2rem 0 1rem;
  text-align: center;
}

.tvmse-imx-agenda__load-more-wrap.is-visible {
  display: block;
}

.tvmse-imx-agenda__load-more {
  appearance: none;
  border: 1px solid rgba(20, 79, 38, 0.28);
  border-radius: 999px;
  background: #fff;
  color: var(--tvmse-imx-agenda-accent);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.65rem 1.35rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.tvmse-imx-agenda__load-more:hover:not(:disabled) {
  background: var(--tvmse-imx-agenda-accent);
  border-color: var(--tvmse-imx-agenda-accent);
  color: #fff;
}

.tvmse-imx-agenda__load-more:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.tvmse-imx-agenda__load-more.is-loading {
  opacity: 0.72;
}

.tvmse-imx-agenda--load-more .tvmse-imx-agenda__item {
  align-items: flex-start;
}

.tvmse-imx-agenda--load-more .tvmse-imx-agenda__item > picture,
.tvmse-imx-agenda--load-more .tvmse-imx-agenda__item > .tvmse-imx-image-placeholder {
  width: 112px;
  height: 84px;
}

.tvmse-imx-agenda--load-more .tvmse-imx-agenda__category {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(20, 79, 38, 0.08);
  color: var(--tvmse-imx-agenda-accent);
  font-size: 0.75rem;
  font-weight: 600;
}

.tvmse-imx-agenda__list {
  display: block;
}

.tvmse-imx-agenda__no-results {
  padding: 2rem 1rem;
  text-align: center;
  color: #888;
  font-style: italic;
  display: none;
}

.tvmse-imx-agenda__day-group {
  margin-bottom: 2rem;
}

.tvmse-imx-agenda__day-group--hidden {
  display: none;
}

.tvmse-imx-agenda__day-header {
  background: var(--tvmse-imx-agenda-accent-soft);
  border-left: 4px solid var(--tvmse-imx-agenda-accent);
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 0 4px 4px 0;
  font-weight: 700;
  font-size: 1rem;
  color: #1a2a3a;
}

.tvmse-imx-agenda__place-group {
  margin-bottom: 2rem;
}

.tvmse-imx-agenda__place-header {
  background: #f4f7f5;
  border-left: 4px solid var(--tvmse-imx-agenda-accent);
  padding: 0.55rem 1rem;
  margin-bottom: 0.65rem;
  border-radius: 0 4px 4px 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1a2a3a;
}

.tvmse-imx-agenda__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #eee;
  transition: background 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
  border-radius: 0.35rem;
}

a.tvmse-imx-agenda__item:hover {
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(20, 79, 38, 0.08);
}

.tvmse-imx-agenda__item--soldout {
  opacity: 0.55;
}

.tvmse-imx-agenda__item--hidden {
  display: none;
}

.tvmse-imx-agenda__item > picture,
.tvmse-imx-agenda__item > .tvmse-imx-image-placeholder {
  flex-shrink: 0;
  width: 88px;
  height: 66px;
  border-radius: 6px;
  overflow: hidden;
}

.tvmse-imx-agenda__item > picture {
  display: block;
}

.tvmse-imx-agenda__item > .tvmse-imx-image-placeholder {
  display: flex;
}

.tvmse-imx-agenda__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.tvmse-imx-agenda__date-col {
  flex-shrink: 0;
  width: 90px;
  text-align: center;
  padding-top: 0.1rem;
}

.tvmse-imx-agenda__day {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--tvmse-imx-agenda-accent);
}

.tvmse-imx-agenda__month {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
}

.tvmse-imx-agenda__weekday {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 0.1rem;
}

.tvmse-imx-agenda__body {
  flex: 1;
  min-width: 0;
}

.tvmse-imx-agenda__title {
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #1a2a3a;
  line-height: 1.35;
}

a.tvmse-imx-agenda__item .tvmse-imx-agenda__title,
a.tvmse-imx-agenda__item:hover .tvmse-imx-agenda__title {
  color: var(--tvmse-imx-agenda-accent);
}

.tvmse-imx-agenda__short {
  font-size: 0.85rem;
  color: #666;
  margin: 0.2rem 0 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tvmse-imx-agenda__meta {
  font-size: 0.85rem;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.tvmse-imx-agenda__time {
  font-weight: 600;
  color: var(--tvmse-imx-agenda-accent);
}

.tvmse-imx-agenda__time::before {
  content: "◷";
  margin-right: 0.25rem;
  opacity: 0.85;
}

.tvmse-imx-agenda__location::before {
  content: "⌖";
  margin-right: 0.2rem;
  opacity: 0.75;
}

.tvmse-imx-agenda__soldout-badge {
  background: #dc3545;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.tvmse-imx-agenda__category {
  background: var(--tvmse-imx-agenda-accent-soft);
  color: var(--tvmse-imx-agenda-accent);
  font-size: 0.72rem;
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
  white-space: nowrap;
}

.tvmse-imx-agenda__notes {
  font-size: 0.8rem;
  color: #999;
  font-style: italic;
  margin-top: 0.2rem;
}

@media (max-width: 600px) {
  .tvmse-imx-agenda__filters {
    flex-direction: column;
    align-items: stretch;
  }

  .tvmse-imx-agenda__filters-range {
    margin-left: 0;
    align-items: stretch;
  }

  .tvmse-imx-agenda__range-custom {
    justify-content: flex-start;
  }

  .tvmse-imx-agenda__range-options {
    justify-content: flex-start;
  }

  .tvmse-imx-agenda__filter-group {
    flex: 1 1 100%;
  }

  .tvmse-imx-agenda__date-col {
    width: 60px;
  }

  .tvmse-imx-agenda__day {
    font-size: 1.2rem;
  }

  .tvmse-imx-agenda__image {
    width: 60px;
    height: 45px;
  }

  .tvmse-imx-agenda__title {
    font-size: 0.92rem;
    white-space: normal;
  }
}
