.tvmse-ds-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

.tvmse-ds-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tvmse-ds-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.tvmse-ds-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.tvmse-ds-card__kicker,
.tvmse-ds-object__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #005e90;
}

.tvmse-ds-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  line-height: 1.35;
}

.tvmse-ds-card__city,
.tvmse-ds-card__price,
.tvmse-ds-card__actions {
  margin: 0 0 0.35rem;
}

.tvmse-ds-object {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.tvmse-ds-object--detail {
  max-width: none;
}

.tvmse-ds-object--map {
  max-width: min(96rem, 100%);
}

.tvmse-ds-map-overview {
  max-width: none;
}

body.tvmse-ds-map-page .site-content,
body.tvmse-ds-map-page .inside-article,
body.tvmse-ds-map-page .tvmse-ds-map-overview {
  max-width: none;
}

body.tvmse-ds-detail-page .site.grid-container,
body.tvmse-ds-detail-page .site-content,
body.tvmse-ds-detail-page .site-content .grid-container,
body.tvmse-ds-detail-page .inside-article {
  max-width: none;
  width: 100%;
}

body.tvmse-ds-detail-page .tvmse-ds-detail,
body.tvmse-ds-detail-page #primary {
  box-sizing: border-box;
  width: 100%;
  max-width: min(80rem, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter, 1.25rem);
}

body.tvmse-ds-detail-page .entry-title {
  display: none;
}

.tvmse-ds-object__back {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
}

.tvmse-ds-object__back a {
  color: #005e90;
  font-weight: 600;
  text-decoration: none;
}

.tvmse-ds-object__back a:hover {
  text-decoration: underline;
}

h1.tvmse-ds-object__title {
  margin: 0 0 0.5rem;
  padding-left: 0;
  font-family: var(--headline-font, inherit);
  font-style: normal;
}

.tvmse-ds-object__lead {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #4a3d42;
}

.tvmse-ds-object__meta {
  margin: 0 0 1.25rem;
  color: #4a3d42;
}

.tvmse-ds-object__gallery {
  margin: 0 0 1.75rem;
}

.tvmse-ds-object__mosaic {
  display: grid;
  gap: 0.5rem;
  min-height: 16rem;
  border-radius: 0.75rem;
  overflow: hidden;
}

.tvmse-ds-object__mosaic[data-count="1"] {
  grid-template-columns: 1fr;
}

.tvmse-ds-object__mosaic[data-count="2"] {
  grid-template-columns: 2fr 1fr;
}

.tvmse-ds-object__mosaic[data-count="3"],
.tvmse-ds-object__mosaic[data-count="4"],
.tvmse-ds-object__mosaic[data-count="5"] {
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.tvmse-ds-object__shot {
  margin: 0;
  min-height: 7.5rem;
  background: #f3f1ee;
  overflow: hidden;
}

.tvmse-ds-object__shot--lead {
  grid-row: 1 / span 2;
  min-height: 18rem;
}

.tvmse-ds-object__mosaic[data-count="1"] .tvmse-ds-object__shot--lead,
.tvmse-ds-object__mosaic[data-count="1"] .tvmse-ds-object__shot--lead img {
  min-height: 18rem;
}

.tvmse-ds-object__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tvmse-ds-object__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.5rem 0 0;
}

.tvmse-ds-object__thumbs .tvmse-ds-object__shot {
  border-radius: 0.5rem;
  min-height: 0;
}

.tvmse-ds-object__thumbs .tvmse-ds-object__shot img {
  aspect-ratio: 3 / 2;
}

.tvmse-ds-object__credit {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: #4a3d42;
}

.tvmse-ds-object__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  gap: 2rem 2.5rem;
  align-items: start;
}

.tvmse-ds-object__aside {
  position: sticky;
  top: 5.5rem;
}

.tvmse-ds-object__panel {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem 1.15rem;
  background: #f7f6f4;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
}

.tvmse-ds-object__panel h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.tvmse-ds-object__facts {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.tvmse-ds-object__facts li {
  display: grid;
  gap: 0.15rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.95rem;
}

.tvmse-ds-object__facts li span {
  color: #4a3d42;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tvmse-ds-object__facts li strong {
  font-weight: 600;
}

.tvmse-ds-object__address {
  margin: 0 0 0.35rem;
}

.tvmse-ds-object__route {
  margin: 0 0 0.75rem;
}

.tvmse-ds-object__route a {
  color: #005e90;
  font-weight: 600;
  text-decoration: none;
}

.tvmse-ds-object__route a:hover {
  text-decoration: underline;
}

.tvmse-ds-object__distances {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1.5rem;
}

.tvmse-ds-object__distances li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tvmse-ds-object__distances li span:last-child {
  color: #4a3d42;
  white-space: nowrap;
}

@media (max-width: 52rem) {
  .tvmse-ds-object__layout {
    grid-template-columns: 1fr;
  }

  .tvmse-ds-object__aside {
    position: static;
  }

  .tvmse-ds-object__distances {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 40rem) {
  .tvmse-ds-object__mosaic,
  .tvmse-ds-object__mosaic[data-count="2"],
  .tvmse-ds-object__mosaic[data-count="3"],
  .tvmse-ds-object__mosaic[data-count="4"],
  .tvmse-ds-object__mosaic[data-count="5"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }

  .tvmse-ds-object__shot--lead {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 12rem;
  }

  .tvmse-ds-object__thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tvmse-ds-map {
  margin: 1rem 0 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #e8eef2;
}

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

.tvmse-ds-map-pin svg {
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.28));
}

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

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

.tvmse-ds-gallery-map {
  --tvmse-ds-accent: #005e90;
}

.tvmse-ds-gallery-map__toggle {
  display: none;
}

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

.tvmse-ds-gallery-map__map {
  position: sticky;
  top: 5.25rem;
  z-index: 2;
  align-self: start;
}

.tvmse-ds-map--panel {
  margin: 0;
  min-height: 280px;
  max-height: calc(100vh - 6rem);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tvmse-ds-gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

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

.tvmse-ds-gallery__link:focus-visible,
.tvmse-ds-gallery__card.is-active .tvmse-ds-gallery__link,
.tvmse-ds-gallery__item.is-active .tvmse-ds-gallery__link {
  outline: 2px solid #f59e0b;
  outline-offset: 3px;
}

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

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

.tvmse-ds-gallery__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tvmse-ds-gallery__caption,
.tvmse-ds-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-ds-gallery__fallback {
  position: relative;
  min-height: 12rem;
  aspect-ratio: 4 / 3;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 94, 144, 0.35) 100%);
}

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

.tvmse-ds-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-ds-gallery__arrow {
  display: inline-flex;
  flex-shrink: 0;
  color: #fff;
  opacity: 0.9;
}

.tvmse-ds-gallery__arrow svg {
  width: 20px;
  height: 20px;
}

.tvmse-ds-gallery-map__toggle {
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
}

.tvmse-ds-gallery-map__tab {
  flex: 1 1 0;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 600;
  color: #4a3d42;
  background: transparent;
  cursor: pointer;
}

.tvmse-ds-gallery-map__tab.is-active {
  color: #fff;
  background: var(--tvmse-ds-accent, #005e90);
  box-shadow: 0 2px 6px rgba(0, 94, 144, 0.25);
}

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

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

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

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

  .tvmse-ds-gallery-map--view-map .tvmse-ds-gallery-map__map {
    display: block;
  }

  .tvmse-ds-gallery-map--view-map .tvmse-ds-gallery-map__list {
    display: none;
  }

  .tvmse-ds-gallery-map--view-map .tvmse-ds-map--panel {
    min-height: 65vh;
    height: 65vh !important;
    max-height: none;
  }
}

.tvmse-ds-map-popup {
  min-width: 10rem;
}

.tvmse-ds-map-popup__img img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 0 0 0.45rem;
  border-radius: 0.35rem;
}

.leaflet-container .tvmse-ds-map-popup a {
  color: #005e90;
}

.tvmse-ds-object__cta {
  margin: 0 0 1.75rem;
}

.tvmse-ds-object__button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.8rem 1.1rem;
  background: #005e90;
  color: #fff;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.4rem;
}

.tvmse-ds-object__button:hover,
.tvmse-ds-object__button:focus {
  color: #fff;
  filter: brightness(1.05);
}

.tvmse-ds-object__section {
  margin: 0 0 1.5rem;
}

.tvmse-ds-object__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tvmse-ds-object__chips li {
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  font-size: 0.9rem;
}
