/* Visitors' features of 10/2026: "Ajouter à mon agenda" (event page, inc/add-to-calendar.php)
 * and the events map (agenda in "vue=carte", template-parts/archive-event.php). Same palette and font as the agenda filters. */

.cz-cal,
.cz-map {
  --cz-ink: #111;
  --cz-text: #1a1a1a;
  --cz-muted: #6d6d6d;
  --cz-line: #dcdcd6;
  --cz-soft: #efeee9;
  --cz-paper: #fff;
  font-family: "Source Sans Pro", sans-serif;
  color: var(--cz-text);
}

/* ----- Ajouter à mon agenda ----- */

.cz-cal {
  margin: 0 0 2.5rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--cz-line);
}

.cz-cal__title {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .75rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cz-muted);
}

.cz-cal__title svg {
  width: 1.1rem;
  height: 1.1rem;
}

.cz-cal__links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cz-cal__links li {
  margin: 0;
  padding: 0;
}

.cz-cal__links li::before {
  content: none;
}

.cz-cal__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .55rem 1.1rem;
  border: 1px solid var(--cz-ink);
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--cz-ink);
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}

.cz-cal__links a:hover,
.cz-cal__links a:focus-visible {
  background: var(--cz-ink);
  color: var(--cz-paper);
}

.cz-cal__note {
  margin: .75rem 0 0;
  font-size: .85rem;
  line-height: 1.4;
  color: var(--cz-muted);
}

/* ----- Carte des événements ----- */

.cz-map {
  max-width: 1280px;
  margin: 0 auto 5rem;
  padding: 0 1.25rem;
}

/* "Autour de moi": over the map, top left (zoom buttons are bottom right). */
.cz-map__stage {
  grid-area: canvas;
  position: relative;
  min-height: 0;
}

.cz-map__locate {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--cz-ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  color: var(--cz-paper);
  cursor: pointer;
  transition: opacity .2s ease;
}

.cz-map__locate[hidden] {
  display: none;
}

.cz-map__locate svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.cz-map__locate:hover {
  opacity: .85;
}

.cz-map__locate.is-loading {
  opacity: .6;
  cursor: progress;
}

.cz-map__locate.is-active {
  background: var(--cz-paper);
  color: var(--cz-ink);
}

.cz-map__locate:focus-visible,
.cz-map__show:focus-visible {
  outline: 2px solid var(--cz-ink);
  outline-offset: 2px;
}

/* Map and list side by side (list on the left), each as tall as the screen allows. */
.cz-map__layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  grid-template-areas: "side canvas";
  gap: 1.25rem;
  height: min(78vh, 780px);
  min-height: 520px;
}

.cz-map__canvas {
  position: relative;
  height: 100%;
  z-index: 0; /* Leaflet panes stay under the site's sticky header */
  border-radius: 16px;
  overflow: hidden;
  background: #e9e9e6;
}

.cz-map__side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--cz-line);
  border-radius: 16px;
  background: var(--cz-paper);
  overflow: hidden;
}

.cz-map.is-loading .cz-map__side,
.cz-map.is-loading .cz-map__canvas {
  opacity: .55;
  transition: opacity .2s ease;
}

.cz-map__status {
  margin: 0 !important; /* the theme gives every paragraph a bottom margin */
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--cz-line);
  font-size: .9rem;
  color: var(--cz-muted);
}

.cz-map__status strong {
  color: var(--cz-ink);
}

.cz-map__status a {
  color: var(--cz-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cz-map__list {
  flex: 1;
  margin: 0 !important; /* the theme spaces its lists */
  padding: 0 !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
}

.cz-map__item {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: .85rem;
  align-items: start;
  margin: 0;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--cz-soft);
  transition: background-color .15s ease;
}

.cz-map__item::before {
  content: none;
}

.cz-map__item:hover {
  background: #f7f7f4;
}

.cz-map__thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cz-soft);
}

.cz-map__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cz-map__text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}

.cz-map__type {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cz-muted);
}

.cz-map__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--cz-ink);
  text-decoration: none;
}

.cz-map__title:hover {
  text-decoration: underline;
}

.cz-map__meta {
  font-size: .85rem;
  line-height: 1.35;
  color: var(--cz-muted);
}

.cz-map__dist {
  padding: .15rem .55rem;
  border-radius: 999px;
  background: var(--cz-ink);
  font-size: .75rem;
  font-weight: 700;
  color: var(--cz-paper);
  white-space: nowrap;
}

/* Right column of a row: distance, then the "show on the map" pin button. */
.cz-map__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
}

.cz-map__show {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--cz-line);
  border-radius: 50%;
  background: var(--cz-paper);
  color: var(--cz-ink);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.cz-map__show svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.cz-map__show:hover,
.cz-map__item:hover .cz-map__show {
  border-color: var(--cz-ink);
  background: var(--cz-ink);
  color: var(--cz-paper);
}

/* Markers: Coze black, white ring; the active one (list hover) grows. */
.cz-pin span {
  display: block;
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
  transition: transform .15s ease;
}

.cz-pin.is-active span {
  transform: scale(1.35);
  background: #e63312;
}

.cz-cluster span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  background: #111;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .35);
  font-family: "Source Sans Pro", sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
}

.cz-me span {
  display: block;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #1a73e8;
  box-shadow: 0 0 0 6px rgba(26, 115, 232, .25);
}

/* OpenStreetMap tiles with their colours toned down (water, parks and roads still readable),
   so the black markers stand out. */
.cz-map .leaflet-tile-pane {
  filter: saturate(.45) contrast(.95) brightness(1.03);
}

/* Fractional zoom draws hairlines between the tiles; a transparent outline removes them (oversizing the tiles makes it worse). */
.cz-map .leaflet-tile {
  outline: 1px solid transparent;
}

.cz-map .leaflet-control-zoom {
  border: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

.cz-map .leaflet-control-zoom a {
  width: 36px;
  height: 36px;
  line-height: 36px;
  color: #111;
}

/* Popup: a small card linking to the event. */
.cz-popup .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}

.cz-popup .leaflet-popup-content {
  width: 260px !important;
  margin: 0;
}

.cz-popup .leaflet-popup-close-button {
  top: 6px !important;
  right: 6px !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92) !important;
  font: 18px/26px sans-serif !important;
  color: #111 !important;
}

.cz-pop {
  display: block;
  color: inherit !important;
  text-decoration: none;
}

.cz-pop__img {
  display: block;
  aspect-ratio: 16 / 9;
  background: #efeee9;
}

.cz-pop__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cz-pop__body {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .8rem 1rem 1rem;
  font-family: "Source Sans Pro", sans-serif;
}

.cz-pop__type {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6d6d6d;
}

.cz-pop__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: #111;
}

.cz-pop:hover .cz-pop__title {
  text-decoration: underline;
}

.cz-pop__meta {
  font-size: .85rem;
  line-height: 1.35;
  color: #555;
}

/* In the agenda, the map sits in the listing's column, beside the ads: no page margins of its own,
 * and the list of the map goes under it as soon as the column gets narrow. */
.cz-map--agenda {
  max-width: none;
  margin: 0;
  padding: 0;
}

.cz-map--agenda .cz-map__layout {
  grid-template-columns: minmax(300px, 380px) 1fr;
  height: min(calc(78vh + 64px), 900px); /* one more event in the list, and room for all of Alsace */
}

[data-cz-pane][hidden] {
  display: none !important;
}

@media (max-width: 1199px) {
  .cz-map--agenda .cz-map__layout {
    grid-template-columns: 1fr;
    grid-template-areas: "canvas" "side";
    height: auto;
    min-height: 0;
  }

  .cz-map--agenda .cz-map__canvas {
    height: min(62vh, 560px);
    min-height: 340px;
  }

  .cz-map--agenda .cz-map__list {
    max-height: 520px;
    overflow-y: auto;
  }
}

/* Phones and small tablets: the map first, then the list in the page flow. */
@media (max-width: 899px) {
  .cz-map__layout {
    grid-template-columns: 1fr;
    grid-template-areas: "canvas" "side";
    height: auto;
    min-height: 0;
  }

  .cz-map__canvas {
    height: 58vh;
    min-height: 340px;
  }

  .cz-map__locate {
    top: .6rem;
    left: .6rem;
    min-height: 40px;
    padding: 0 .95rem;
    font-size: .9rem;
  }

  .cz-map__list {
    overflow: visible;
  }

}

@media (prefers-reduced-motion: reduce) {
  .cz-cal__links a,
  .cz-map__locate,
  .cz-pin span {
    transition: none;
  }
}

/* ----- Fiche lieu (lieu.php) ----- */

.cz-venue-map {
  position: relative;
  z-index: 0;
  height: 320px;
  margin: 0 0 3rem;
  border-radius: 16px;
  overflow: hidden;
  background: #e9e9e6;
}

.cz-venue-map .leaflet-tile-pane {
  filter: saturate(.45) contrast(.95) brightness(1.03);
}

.cz-venue-events .article__item {
  height: 100%;
}

/* Place name on an event page: link to the place page. */
.cz-venue-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cz-venue-link:hover {
  text-decoration-thickness: 2px;
}

/* Upcoming events of a place page: same rows as the agenda; the place is the page itself. */
.cz-venue-list .cz-row__place {
  display: none;
}

.cz-venue-count {
  margin: .5rem 0 0;
  font-size: 1rem;
  color: #6d6d6d;
}

.cz-row__more {
  display: block;
  margin-top: .2rem;
  font-size: .8rem;
  font-weight: 600;
  color: #6d6d6d;
}

/* Place page, programme first (client's mock-up, 11/2026). */
.cz-venue {
  --cz-ink: #111;
  --cz-muted: #6d6d6d;
  --cz-line: #dcdcd6;
  --cz-soft: #f1f1f1;
  margin-bottom: 4rem;
  font-family: "Source Sans Pro", sans-serif;
  color: var(--cz-ink);
}

.cz-venue a {
  color: inherit;
}

.cz-venue__head {
  margin: .75rem 0 2rem;
  text-align: center;
}

.cz-venue__kicker,
.cz-venue__label {
  margin: 0 !important;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cz-venue__name {
  margin: .5rem 0 !important;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
}

.cz-venue__address {
  margin: 0 !important;
  color: #444;
}

.cz-venue__address a {
  margin-left: .9rem;
  font-weight: 700;
  color: var(--cz-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cz-venue__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2.5rem;
  align-items: start;
  scroll-margin-top: 140px;
}

.cz-venue__label {
  margin-bottom: .9rem !important;
}

/* The featured event's picture is shown whole, whatever its format (4 in 10 are portrait posters):
 * the section follows the picture, up to a height that keeps the next dates close. */
.cz-venue a.cz-venue-next {
  display: flex;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  background: var(--cz-soft);
}

.cz-venue-next__img {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  max-width: 62%;
}

.cz-venue-next__img img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 520px;
}

/* Stretched and centred from inside, so that its background covers the whole right part on hover. */
.cz-venue-next__body {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  padding: 2rem 2.25rem;
  transition: background-color .15s ease;
}

.cz-venue-next:hover .cz-venue-next__body {
  background: #e3e3e3;
}

.cz-venue-next__title {
  margin: .4rem 0 .6rem !important;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
}

.cz-venue-next__when {
  margin: 0 0 1.1rem !important;
  font-size: 1.1rem;
}

.cz-venue-next__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin: 0 !important;
}

.cz-venue-next__btn {
  display: inline-block;
  padding: .7rem 1.35rem;
  border-radius: 999px;
  background: var(--cz-ink);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.cz-venue-next:hover .cz-venue-next__btn {
  background: #333;
}

.cz-venue__section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  margin: 2.75rem 0 1.25rem;
}

.cz-venue__main > .cz-venue__section-head:first-child {
  margin-top: 0;
}

.cz-venue__section-head a,
.cz-venue-about__info a,
.cz-venue-access summary,
.cz-venue-more-text summary {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cz-venue__title {
  margin: 0 0 .75rem !important;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.cz-venue__section-head .cz-venue__title {
  margin: 0 !important;
}

.cz-venue-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 1.25rem;
}

.cz-venue a.cz-venue-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.cz-venue-card__img {
  display: block;
  aspect-ratio: 16 / 9;
  margin-bottom: .75rem;
  border-radius: 12px;
  overflow: hidden;
  background: #ddd;
}

.cz-venue-card__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.cz-venue-card:hover .cz-venue-card__img img {
  transform: scale(1.03);
}

.cz-venue-card__cat {
  display: block;
  margin: 0 !important;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #444;
}

.cz-venue-card__title {
  margin: .3rem 0 .6rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.cz-venue-card:hover .cz-venue-card__title {
  text-decoration: underline;
}

.cz-venue-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem .6rem;
  margin-top: auto;
}

.cz-venue-card__when {
  font-size: .9rem;
  color: #444;
}

.cz-venue-card__price {
  padding: .2rem .65rem;
  border: 1px solid var(--cz-ink);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}

.cz-venue-card__price.is-long {
  flex-basis: 100%;
  padding: 0;
  border: 0;
  font-size: .8rem;
  font-weight: 400;
  line-height: 1.3;
  color: #444;
  white-space: normal;
}

.cz-venue a.cz-venue-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 180px;
  border: 1px solid var(--cz-ink);
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}

.cz-venue-more strong {
  font-size: 2rem;
  line-height: 1;
}

.cz-venue a.cz-venue-more:hover {
  background: var(--cz-ink);
  color: #fff;
}

.cz-venue__empty {
  color: var(--cz-muted);
}

/* "Tous les établissements" (etablissements.php): same frame as a place page. */
.cz-places__search {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 2rem;
}

.cz-places__search[hidden] {
  display: none;
}

.cz-places__search input {
  width: 100%;
  min-height: 3rem;
  padding: 0 1.1rem;
  border: 1.5px solid var(--cz-ink);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 1rem;
  color: var(--cz-ink);
}

.cz-places__search input:focus-visible {
  outline: 3px solid var(--cz-ink);
  outline-offset: 2px;
}

.cz-places .cz-venue__empty:empty {
  display: none;
}

/* Letters: follows the visitor under the site's menu (places-list.js). */
.cz-places__az-slot {
  margin-bottom: 2rem;
}

.cz-places__az-slot[hidden] {
  display: none;
}

.cz-places__az {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem;
  padding: .45rem 0;
  border-top: 1px solid var(--cz-line);
  border-bottom: 1px solid var(--cz-line);
  background: #fff;
}

/* Right under the site's menu, wherever it is on screen (places-list.js). */
.cz-places__az.is-stuck {
  position: fixed;
  z-index: 20;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 0 8px 14px -12px rgba(0, 0, 0, .35);
}

.cz-places__az.is-stuck::-webkit-scrollbar {
  display: none;
}

.cz-venue .cz-places__az a {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 .3rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
}

.cz-places__az a[hidden] {
  display: none !important;
}

.cz-venue .cz-places__az a:hover {
  background: #efeee9;
}

.cz-venue .cz-places__az a[aria-current="true"] {
  background: var(--cz-ink);
  color: #fff;
}

.cz-venue .cz-places__az a:focus-visible {
  outline: 3px solid var(--cz-ink);
  outline-offset: 1px;
}

.cz-places__letter:focus {
  outline: none;
}

.cz-places__group {
  margin-bottom: 2rem;
}

.cz-places__group[hidden],
.cz-places__list li[hidden] {
  display: none;
}

.cz-places__letter {
  margin: 0 0 .5rem !important;
  padding-bottom: .4rem;
  border-bottom: 1.5px solid var(--cz-ink);
  font-size: 1.25rem;
  font-weight: 700;
}

.cz-places__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.cz-places__list li {
  margin: 0 !important;
  border-bottom: 1px solid var(--cz-line);
}

.cz-places__list li::before {
  content: none !important;
}

.cz-venue a.cz-places__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  text-decoration: none;
}

.cz-places__name {
  min-width: 0;
  font-weight: 600;
}

.cz-venue a.cz-places__link:hover .cz-places__name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cz-places__town {
  flex: none;
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .9rem;
  color: var(--cz-muted);
}

/* With pictures: cards (a plain list with ?affichage=liste). */
.cz-places__list--pictures {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 1.25rem;
  padding-top: 1rem !important;
}

.cz-places__list--pictures li {
  border-bottom: 0;
}

.cz-venue .cz-places__list--pictures a.cz-places__link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
}

.cz-places__picture {
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: .6rem;
  border-radius: 12px;
  overflow: hidden;
  background: #ecedf1;
}

.cz-places__picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.cz-places__link:hover .cz-places__picture img {
  transform: scale(1.03);
}

.cz-places__picture.is-logo {
  padding: 1.25rem;
  border: 1px solid var(--cz-line);
  background: #fff;
}

.cz-places__picture.is-logo img {
  object-fit: contain;
}

.cz-places__picture.is-dark {
  border-color: #000;
  background: #000;
}

.cz-places__list--pictures .cz-places__town {
  max-width: none;
  margin-top: .1rem;
}

@media (max-width: 1199px) {
  .cz-places__list--pictures {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .cz-places__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .cz-places__list--pictures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem .85rem;
  }

  /* One sideways row on phones, so that it does not take half the screen once it follows. */
  .cz-places__az {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .cz-venue .cz-places__az a {
    min-width: 2.5rem;
    height: 2.5rem;
  }
}

.cz-venue-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--cz-line);
}

/* No text about the place: only its practical information, without an empty column. */
.cz-venue-about--info {
  grid-template-columns: minmax(0, 480px);
}

.cz-venue-more-text summary {
  margin-bottom: 1rem;
}

.cz-venue-more-text[open] summary {
  display: none;
}

.cz-venue-about__info {
  font-size: .95rem;
}

.cz-venue-about__info p {
  margin: 0 0 .6rem !important;
}

.cz-venue-about .cz-venue-map {
  height: 180px;
  margin: 0 0 1rem;
}

.cz-venue-access {
  margin-bottom: .9rem;
}

.cz-venue-access ul {
  margin: .75rem 0;
  padding-left: 1.1rem;
}

.cz-venue-access h1,
.cz-venue-access h2,
.cz-venue-access h3 {
  font-size: 1rem;
}

.cz-venue-share {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--cz-muted);
}

.cz-venue-share svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 1199px) {
  .cz-venue__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cz-venue-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cz-venue-about {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 2rem;
  }
}

@media (max-width: 767px) {
  .cz-venue__address a {
    display: inline-block;
    margin-left: 0;
  }

  .cz-venue a.cz-venue-next {
    flex-direction: column;
  }

  .cz-venue-next__img {
    justify-content: center;
    max-width: none;
  }

  .cz-venue-next__img img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
  }

  .cz-venue-next__body {
    flex: none;
    align-self: stretch;
  }

  .cz-venue-next__body {
    padding: 1.25rem;
  }

  .cz-venue-cards {
    gap: 1.25rem .85rem;
  }

  .cz-venue-about {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    margin-top: 2rem;
  }
}
