/* Keçid — açıq kart — Desktop 6494:32015, Mobile 5474:25511.
   The road page's layout (Yol — açıq kart, Desktop 6494:30826, Mobile 6494:28910) with the
   crossing's text: these rules are road-detail.css's under their own class names, so the two pages
   stay in step. */

.aayda-crossing-detail-page {
  background-color: var(--aayda-colors-surface-disabled);
}

.aayda-crossing-detail__only-desktop {
  display: none;
}

.aayda-crossing-detail__hero-image.aayda-crossing-detail__only-desktop {
  display: none;
}

.aayda-crossing-detail {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  min-width: 0;
  padding: 20px 16px 80px;
}

.aayda-crossing-detail-page .aayda-breadcrumbs {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.aayda-crossing-detail-page .aayda-breadcrumbs__list {
  align-items: center;
  width: fit-content;
  max-width: 100%;
}

.aayda-crossing-detail__shell {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-width: 0;
}

.aayda-crossing-detail__top {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

/* bug-fix-5 batch 2: information cards are white with a 1px #e2e8f0 stroke and the desktop content panel is
   transparent over the page's #f3f4f6, so the cards stand out from the page (owner-approved, Figma road detail
   6494:30826). The stroke is an inset ring, so no card changes size. */
.aayda-crossing-detail__hero-card {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  min-width: 0;
  padding: 20px 16px;
  background: var(--aayda-colors-base-white);
  box-shadow: inset 0 0 0 1px #e2e8f0;
  border-radius: var(--aayda-radius-image);
}

.aayda-crossing-detail__intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.aayda-crossing-detail__badge-row {
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}

.aayda-crossing-detail__badge {
  box-sizing: border-box;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--aayda-numbers-spacing-6);
  width: auto;
  height: 28px;
  padding: 1px 13px;
  background: transparent;
  border: 1px solid var(--aayda-colors-green-600);
  border-radius: 100px;
}

.aayda-crossing-detail__badge-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--aayda-colors-green-600);
  border-radius: 4px;
}

.aayda-crossing-detail__badge-text {
  color: var(--aayda-colors-gray-800);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-12);
  font-weight: var(--aayda-typography-weight-medium);
  line-height: var(--aayda-typography-line-height-12);
  letter-spacing: var(--aayda-typography-letter-spacing-12);
  white-space: nowrap;
}

.aayda-crossing-detail__title {
  margin: 0;
  color: var(--aayda-colors-navy-900);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-24);
  font-weight: var(--aayda-typography-weight-semi-bold);
  line-height: var(--aayda-typography-line-height-heading-24);
  letter-spacing: var(--aayda-typography-letter-spacing-24);
  overflow-wrap: break-word;
}

.aayda-crossing-detail__hero {
  position: relative;
  flex-shrink: 0;
  width: calc(100% + 3px);
  min-width: 0;
  height: 203px;
  overflow: clip;
  overflow: hidden;
  border-radius: var(--aayda-radius-button);
}

.aayda-crossing-detail__hero-media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0 solid transparent;
  background-clip: padding-box;
  pointer-events: none;
}

.aayda-crossing-detail__hero-image {
  position: absolute;
  top: -4.89%;
  left: 0;
  display: block;
  width: 100%;
  height: 101.37%;
  max-width: none;
  border: 0 solid transparent;
  background-clip: padding-box;
  object-fit: cover;
  object-position: left top;
}

.aayda-crossing-detail__hero-overlay {
  position: absolute;
  right: auto;
  bottom: 8px;
  left: -3px;
  display: flex;
  flex-direction: column;
  gap: var(--aayda-numbers-spacing-4);
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 99px;
  padding: 0 12px 4px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
  border-bottom-right-radius: var(--aayda-radius-image);
  border-bottom-left-radius: var(--aayda-radius-image);
}

.aayda-crossing-detail__hero-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.aayda-crossing-detail__hero-caption {
  margin: 0;
  width: 139px;
  color: var(--aayda-colors-base-white);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-12);
  font-weight: var(--aayda-typography-weight-bold);
  line-height: var(--aayda-typography-line-height-12);
  letter-spacing: var(--aayda-typography-letter-spacing-12);
}

.aayda-crossing-detail__hero-tools {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  margin-left: auto;
}

.aayda-crossing-detail__hero-arrows {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--aayda-numbers-spacing-12);
}

.aayda-crossing-detail__hero-arrow {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.aayda-crossing-detail__hero-arrow img {
  width: 35px;
  height: 35px;
  max-width: none;
}

.aayda-crossing-detail__hero-arrow .aayda-crossing-detail__hero-arrow-desktop {
  display: none;
}

.aayda-crossing-detail__hero-arrow .aayda-crossing-detail__hero-arrow-mobile {
  display: block;
}

.aayda-crossing-detail__hero-arrow--next img {
  transform: scaleX(-1);
}

.aayda-crossing-detail__hero-dots {
  display: flex;
  align-items: center;
  gap: var(--aayda-numbers-spacing-4);
  height: 18px;
}

.aayda-crossing-detail__hero-dots--desktop {
  display: none;
}

.aayda-crossing-detail__hero-dots--mobile {
  box-sizing: border-box;
  width: 122px;
  padding: 0 10px;
}

.aayda-crossing-detail__hero-dot {
  flex-shrink: 0;
  width: 11px;
  height: 4px;
  padding: 0;
  background: #d0d5dd;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}

/* The active dot is the one the carousel marks aria-current, so the look and the state are one. */
.aayda-crossing-detail__hero-dot[aria-current="true"] {
  width: 34px;
  background: var(--aayda-colors-navy-900);
}

/*
 * The slides lie on top of one another and cross-fade; only the active one is visible. Before the
 * carousel script runs, the first slide is the active one and the controls stay hidden, so the page
 * reads as a single picture.
 */
.aayda-crossing-detail__hero {
  touch-action: pan-y;
}

.aayda-crossing-detail__hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 300ms ease-out;
}

.aayda-crossing-detail__hero-slide.is-active {
  opacity: 1;
}

.aayda-crossing-detail__hero:not(.is-ready) .aayda-crossing-detail__hero-tools,
.aayda-crossing-detail__hero:not(.is-ready) .aayda-crossing-detail__hero-dots {
  visibility: hidden;
}

/* Keyboard focus — the site's ring. The design defines hover icons for the arrows but no ring. */
.aayda-crossing-detail__hero-arrow:focus-visible,
.aayda-crossing-detail__hero-dot:focus-visible {
  outline: var(--aayda-border-width-focus-ring) solid var(--aayda-colors-ring-focus);
  outline-offset: 2px;
  border-radius: 50%;
}

.aayda-crossing-detail__hero-dot:focus-visible {
  border-radius: 2px;
}

/* Read out after a slide change and never shown: the design has no visible counter. */
.aayda-crossing-detail__hero-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.aayda-crossing-detail__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(89px, auto);
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.aayda-crossing-detail__metrics--desktop {
  display: none;
}

.aayda-crossing-detail__metric {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  min-width: 0;
  min-height: 89px;

  /* 12px rather than the design's 16px: the value and label stand 65px tall, and the 89px card the
     design fixed let them spill 4px into each padding. The card now grows with a longer label, so
     the padding is what keeps the ordinary card at 89px. */
  padding: 12px 16px 12px 12px;
  background: var(--aayda-colors-base-white);
  border: 0;
  border-radius: var(--aayda-radius-button);
  box-shadow: inset 0 0 0 1px #e2e8f0;
  transition:
    background-color 300ms ease-out,
    box-shadow 300ms ease-out;
}

.aayda-crossing-detail__metric-value {
  margin: 0;
  flex: 0 0 41px;
  height: 41px;
  color: var(--aayda-colors-navy-900);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-20);
  font-weight: var(--aayda-typography-weight-semi-bold);
  line-height: var(--aayda-typography-line-height-20);
  letter-spacing: var(--aayda-typography-letter-spacing-20);
  white-space: nowrap;
  transition: color 300ms ease-out;
}

.aayda-crossing-detail__metric-rule {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 100%;
  max-width: 151px;
  height: 0;
}

.aayda-crossing-detail__metric-line {
  position: absolute;
  top: -1px;
  left: 0;
  display: block;
  width: 100%;
  height: 1px;
  max-width: none;
  transition: opacity 300ms ease-out;
}

.aayda-crossing-detail__metric-line--default {
  opacity: 1;
}

.aayda-crossing-detail__metric-line--hover {
  opacity: 0;
}

.aayda-crossing-detail__metric-label {
  margin: 0;
  padding-top: var(--aayda-numbers-spacing-4);
  color: var(--aayda-colors-text-secondary);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-12);
  font-weight: var(--aayda-typography-weight-semi-bold);
  line-height: var(--aayda-typography-line-height-12);
  letter-spacing: var(--aayda-typography-letter-spacing-12);
  overflow-wrap: break-word;
  transition: color 300ms ease-out;
}

.aayda-crossing-detail__metric:hover,
.aayda-crossing-detail__metric:focus-visible {
  background: var(--aayda-colors-navy-900);
  box-shadow: inset 0 0 0 var(--aayda-border-width-card) var(--aayda-colors-navy-900);
}

.aayda-crossing-detail__metric:hover .aayda-crossing-detail__metric-value,
.aayda-crossing-detail__metric:focus-visible .aayda-crossing-detail__metric-value {
  color: var(--aayda-colors-green-600);
}

.aayda-crossing-detail__metric:hover .aayda-crossing-detail__metric-label,
.aayda-crossing-detail__metric:focus-visible .aayda-crossing-detail__metric-label {
  color: var(--aayda-colors-base-white);
}

.aayda-crossing-detail__metric:hover .aayda-crossing-detail__metric-line--default,
.aayda-crossing-detail__metric:focus-visible .aayda-crossing-detail__metric-line--default {
  opacity: 0;
}

.aayda-crossing-detail__metric:hover .aayda-crossing-detail__metric-line--hover,
.aayda-crossing-detail__metric:focus-visible .aayda-crossing-detail__metric-line--hover {
  opacity: 1;
}

.aayda-crossing-detail__map {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 100%;
  min-width: 0;
  padding: 26px 22px;
  background: var(--aayda-colors-base-white);
  box-shadow: inset 0 0 0 1px #e2e8f0;
  border-radius: var(--aayda-radius-image);
}

.aayda-crossing-detail__map-heading {
  display: flex;
  align-items: center;
  gap: var(--aayda-numbers-spacing-8);
}

.aayda-crossing-detail__map-pin {
  display: block;
  width: 20px;
  height: 20px;
  max-width: none;
}

.aayda-crossing-detail__map-title {
  margin: 0;
  color: var(--aayda-colors-navy-900);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-14);
  font-weight: var(--aayda-typography-weight-medium);
  line-height: var(--aayda-typography-line-height-14);
  letter-spacing: var(--aayda-typography-letter-spacing-14);
  white-space: nowrap;
}

.aayda-crossing-detail__map-label {
  margin: var(--aayda-numbers-spacing-12) 0 0;
  color: var(--aayda-colors-gray-800);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-14);
  font-weight: var(--aayda-typography-weight-medium);
  line-height: var(--aayda-typography-line-height-14);
  letter-spacing: var(--aayda-typography-letter-spacing-14);
  overflow-wrap: break-word;
}

/* The record's own Google map, only when it has one: the bridge and tunnel cards' map box (140px tall,
   the button's radius, clipped), between the caption and the button. Without one nothing is drawn. */
.aayda-crossing-detail__map-embed {
  position: relative;
  width: 100%;
  height: 140px;
  margin-top: var(--aayda-numbers-spacing-16);
  overflow: hidden;
  border-radius: var(--aayda-radius-button);
}

.aayda-crossing-detail__map-embed-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--aayda-radius-button);
}

.aayda-crossing-detail__map-button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--aayda-numbers-spacing-16);
  width: 100%;
  height: 40px;
  margin-top: var(--aayda-numbers-spacing-16);
  padding: 4px 8px;
  color: #344054;
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-12);
  font-weight: var(--aayda-typography-weight-medium);
  line-height: var(--aayda-typography-line-height-12);
  letter-spacing: var(--aayda-typography-letter-spacing-12);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-radius: 44px;
  box-shadow: inset 0 0 0 0.5px var(--aayda-colors-faq-lead);
  backdrop-filter: blur(6px);
  transition:
    background-color 300ms ease-out,
    box-shadow 300ms ease-out,
    color 300ms ease-out;
}

.aayda-crossing-detail__map-button-icons {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.aayda-crossing-detail__map-button-icon {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 16px;
  height: 16px;
  max-width: none;
  transition: opacity 300ms ease-out;
}

.aayda-crossing-detail__map-button-icon--default {
  opacity: 1;
}

.aayda-crossing-detail__map-button-icon--hover {
  opacity: 0;
}

.aayda-crossing-detail__map-button:hover,
.aayda-crossing-detail__map-button:focus-visible {
  color: var(--aayda-colors-base-white);
  background: var(--aayda-colors-navy-900);
  box-shadow: inset 0 0 0 0.5px var(--aayda-colors-blue-400);
}

.aayda-crossing-detail__map-button:hover .aayda-crossing-detail__map-button-icon--default,
.aayda-crossing-detail__map-button:focus-visible .aayda-crossing-detail__map-button-icon--default {
  opacity: 0;
}

.aayda-crossing-detail__map-button:hover .aayda-crossing-detail__map-button-icon--hover,
.aayda-crossing-detail__map-button:focus-visible .aayda-crossing-detail__map-button-icon--hover {
  opacity: 1;
}

.aayda-crossing-detail__copy {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--aayda-numbers-spacing-8);
  width: calc(100% - 2px);
  min-width: 0;
  padding: var(--aayda-numbers-spacing-20);
  background: var(--aayda-colors-base-white);
  box-shadow: inset 0 0 0 1px #e2e8f0;
  border-radius: var(--aayda-radius-image);
}

.aayda-crossing-detail__lead {
  margin: 0;
  width: 100%;
  padding-left: 19px;
  color: var(--aayda-colors-navy-900);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-16);
  font-weight: var(--aayda-typography-weight-bold);
  line-height: var(--aayda-typography-line-height-16);
  letter-spacing: var(--aayda-typography-letter-spacing-16);
  box-shadow: inset 3px 0 0 var(--aayda-colors-navy-900);
}

.aayda-crossing-detail__body {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding-top: var(--aayda-numbers-spacing-20);
  color: var(--aayda-colors-gray-800);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-16);
  font-weight: var(--aayda-typography-weight-medium);
  line-height: var(--aayda-typography-line-height-16);
  letter-spacing: var(--aayda-typography-letter-spacing-16);
  overflow-wrap: break-word;
}

/* One blank line between blocks — the gap the design drew with an empty paragraph. */
.aayda-crossing-detail__body > * {
  margin-top: 0;
  margin-bottom: 0;
}

.aayda-crossing-detail__body > * + * {
  margin-top: var(--aayda-typography-line-height-16);
}

.aayda-crossing-detail__body img {
  max-width: 100%;
  height: auto;
}

/* A photo tile and a related card are links: the site's ring, inset because the strips clip. */
.aayda-crossing-detail__photo:focus-visible,
.aayda-crossing-detail__related-card:focus-visible {
  outline: var(--aayda-border-width-focus-ring) solid var(--aayda-colors-ring-focus);
  outline-offset: calc(var(--aayda-border-width-focus-ring) * -1);
}

.aayda-crossing-detail__media {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  min-width: 0;
  margin-top: 52px;
}

.aayda-crossing-detail__section {
  display: flex;
  flex-direction: column;
  gap: var(--aayda-numbers-spacing-16);
  width: 100%;
  min-width: 0;
}

.aayda-crossing-detail__section--related {
  gap: var(--aayda-numbers-spacing-20);
}

.aayda-crossing-detail__section--related .aayda-crossing-detail__section-header {
  position: relative;
  gap: 0;
  height: 26px;
  min-height: 26px;
}

.aayda-crossing-detail__section--related .aayda-crossing-detail__section-bar {
  height: 26px;
  min-height: 26px;
  align-items: flex-start;
}

.aayda-crossing-detail__section--related .aayda-crossing-detail__section-rule {
  display: none;
}

.aayda-crossing-detail__section--related .aayda-crossing-detail__more-icons {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
}

.aayda-crossing-detail__section--related .aayda-crossing-detail__more-icons .aayda-crossing-detail__more-arrow {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 28px;
  height: 28px;
  max-width: none;
  transition: opacity 300ms ease-out;
}

.aayda-crossing-detail__section--related .aayda-crossing-detail__more-icons .aayda-crossing-detail__more-arrow--hover {
  opacity: 0;
}

.aayda-crossing-detail__section--related .aayda-crossing-detail__more:hover .aayda-crossing-detail__more-icons .aayda-crossing-detail__more-arrow--default,
.aayda-crossing-detail__section--related .aayda-crossing-detail__more:focus-visible .aayda-crossing-detail__more-icons .aayda-crossing-detail__more-arrow--default {
  opacity: 0;
}

.aayda-crossing-detail__section--related .aayda-crossing-detail__more:hover .aayda-crossing-detail__more-icons .aayda-crossing-detail__more-arrow--hover,
.aayda-crossing-detail__section--related .aayda-crossing-detail__more:focus-visible .aayda-crossing-detail__more-icons .aayda-crossing-detail__more-arrow--hover {
  opacity: 1;
}

.aayda-crossing-detail__section-header {
  display: flex;
  flex-direction: column;
  gap: var(--aayda-numbers-spacing-8);
  width: 100%;
  min-width: 0;
}

.aayda-crossing-detail__section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
}

.aayda-crossing-detail__section-title-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.aayda-crossing-detail__section-title-wrap--related {
  gap: var(--aayda-numbers-spacing-8);
}

.aayda-crossing-detail__section-icon {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 18px;
  max-width: none;
}

.aayda-crossing-detail__section-title-wrap--related .aayda-crossing-detail__section-icon--grid {
  width: 21px;
  height: 18px;
}

.aayda-crossing-detail__section-title {
  margin: 0;
  padding-left: var(--aayda-numbers-spacing-8);
  color: var(--aayda-colors-navy-900);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-16);
  font-weight: var(--aayda-typography-weight-bold);
  line-height: var(--aayda-typography-line-height-16);
  letter-spacing: var(--aayda-typography-letter-spacing-16);
  white-space: nowrap;
}

.aayda-crossing-detail__section-title-wrap--related .aayda-crossing-detail__section-title {
  padding-left: 0;
}

.aayda-crossing-detail__more {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0;
  color: var(--aayda-colors-blue-400);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-14);
  font-weight: var(--aayda-typography-weight-semi-bold);
  line-height: var(--aayda-typography-line-height-14);
  letter-spacing: var(--aayda-typography-letter-spacing-14);
  text-decoration: none;
  white-space: nowrap;
  transition: color 300ms ease-out;
}

.aayda-crossing-detail__more:hover,
.aayda-crossing-detail__more:focus-visible {
  color: var(--aayda-colors-news-link-hover);
}

.aayda-crossing-detail__more-icons {
  position: relative;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  transform: translateX(0);
  transition: transform 300ms ease-out;
}

.aayda-crossing-detail__more:hover .aayda-crossing-detail__more-icons,
.aayda-crossing-detail__more:focus-visible .aayda-crossing-detail__more-icons {
  transform: translateX(4px);
}

.aayda-crossing-detail__more img {
  display: block;
  width: 28px;
  height: 28px;
  max-width: none;
}

.aayda-crossing-detail__more-arrow--hover {
  display: none;
}

.aayda-crossing-detail__section--photos .aayda-crossing-detail__more-icons .aayda-crossing-detail__more-arrow {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  transition: opacity 300ms ease-out;
}

.aayda-crossing-detail__section--photos .aayda-crossing-detail__more-icons .aayda-crossing-detail__more-arrow--hover {
  opacity: 0;
}

.aayda-crossing-detail__section--photos .aayda-crossing-detail__more:hover .aayda-crossing-detail__more-icons .aayda-crossing-detail__more-arrow--default,
.aayda-crossing-detail__section--photos .aayda-crossing-detail__more:focus-visible .aayda-crossing-detail__more-icons .aayda-crossing-detail__more-arrow--default {
  opacity: 0;
}

.aayda-crossing-detail__section--photos .aayda-crossing-detail__more:hover .aayda-crossing-detail__more-icons .aayda-crossing-detail__more-arrow--hover,
.aayda-crossing-detail__section--photos .aayda-crossing-detail__more:focus-visible .aayda-crossing-detail__more-icons .aayda-crossing-detail__more-arrow--hover {
  opacity: 1;
}

.aayda-crossing-detail__section--photos .aayda-crossing-detail__more img {
  width: 30px;
  height: 30px;
}

.aayda-crossing-detail__section--photos .aayda-crossing-detail__section-header {
  position: relative;
  gap: 0;
  height: 33px;
}

.aayda-crossing-detail__section--photos .aayda-crossing-detail__section-bar {
  height: 32px;
}

.aayda-crossing-detail__section--photos .aayda-crossing-detail__section-rule {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
}

.aayda-crossing-detail__section-rule {
  width: 100%;
  height: 1px;
  background: #e2e8f0;
}

.aayda-crossing-detail__photos {
  display: flex;
  gap: var(--aayda-numbers-spacing-8);
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.aayda-crossing-detail__photos::-webkit-scrollbar {
  display: none;
}

.aayda-crossing-detail__photos--desktop {
  display: none;
}

.aayda-crossing-detail__photo {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--aayda-radius-button);
}

.aayda-crossing-detail__photo-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border-radius: var(--aayda-radius-button);
  pointer-events: none;
}

.aayda-crossing-detail__photo--01 {
  width: 192px;
  height: 180px;
}

.aayda-crossing-detail__photo--02 {
  width: 194px;
  height: 181px;
}

.aayda-crossing-detail__photo--02 .aayda-crossing-detail__photo-image {
  inset: auto;
  top: 0;
  left: -33.27%;
  width: 166.53%;
  height: 100%;
}

.aayda-crossing-detail__photo--03,
.aayda-crossing-detail__photo--04 {
  width: 193px;
  height: 181px;
}

.aayda-crossing-detail__photo--04 {
  width: 195px;
}

.aayda-crossing-detail__photo--05 {
  width: 193px;
  height: 181px;
}

.aayda-crossing-detail__photo--05 .aayda-crossing-detail__photo-image {
  opacity: 0.8;
}

.aayda-crossing-detail__photo-more {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--aayda-colors-base-white);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-18);
  font-weight: var(--aayda-typography-weight-semi-bold);
  line-height: var(--aayda-typography-line-height-18);
  letter-spacing: var(--aayda-typography-letter-spacing-18);
  white-space: nowrap;
}

.aayda-crossing-detail__related {
  display: flex;
  gap: 24px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.aayda-crossing-detail__related::-webkit-scrollbar {
  display: none;
}

.aayda-crossing-detail__related--desktop {
  display: none;
}

.aayda-crossing-detail__related-card {
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  width: 296px;
  height: 314px;
  overflow: hidden;
  background: var(--aayda-colors-base-white);
  border: var(--aayda-border-width-card) solid var(--aayda-colors-base-white);
  border-radius: 14px;
  text-decoration: none;
}

.aayda-crossing-detail__related-media {
  flex-shrink: 0;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

/* A crossing with no picture: the listing card's placeholder fill, so the card does not read as blank. */
.aayda-crossing-detail__related-media--empty {
  background: var(--aayda-colors-news-tab-active-fill);
}

.aayda-crossing-detail__related-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
}

.aayda-crossing-detail__related-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--aayda-numbers-spacing-12);
  width: 100%;
  min-width: 0;
  padding: 16px 20px 20px;
}

.aayda-crossing-detail__related-code {
  display: inline-flex;
  align-items: center;
  gap: var(--aayda-numbers-spacing-6);
  padding: 4px 12px 4px 10px;
  background: var(--aayda-colors-surface-disabled);
  border-radius: 20px;
}

.aayda-crossing-detail__related-code img {
  display: block;
  width: 6px;
  height: 6px;
  max-width: none;
}

.aayda-crossing-detail__related-code span {
  color: var(--aayda-colors-navy-700);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-10);
  font-weight: var(--aayda-typography-weight-semi-bold);
  line-height: var(--aayda-typography-line-height-10);
  letter-spacing: var(--aayda-typography-letter-spacing-10);
  white-space: nowrap;
}

/* ML-E D5: at most two lines, the second ending in an ellipsis, instead of a name cut through a
   line; the box keeps the design's 36px and the full name stays in the title attribute. */
.aayda-crossing-detail__related-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  width: 264px;
  height: 36px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: var(--aayda-colors-teal-900);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-14);
  font-weight: var(--aayda-typography-weight-semi-bold);
  line-height: var(--aayda-typography-line-height-14);
  letter-spacing: var(--aayda-typography-letter-spacing-14);
}

.aayda-crossing-detail__related-rule {
  display: block;
  width: 256px;
  height: 1px;
  max-width: none;
}

.aayda-crossing-detail__related-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 256px;
  height: 20px;
  overflow: hidden;
}

/* ML-E D9: the metric label gives way to the arrow (which never shrinks): a label longer than the
   row's room ends in an ellipsis, so the arrow keeps its place at the row's end — after the 130px
   gap on desktop, at the right edge below. The full label stays in the title attribute. */
.aayda-crossing-detail__related-meta p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--aayda-colors-navy-700);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-12);
  font-weight: var(--aayda-typography-weight-semi-bold);
  line-height: var(--aayda-typography-line-height-10);
  letter-spacing: var(--aayda-typography-letter-spacing-12);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aayda-crossing-detail__related-arrow {
  display: block;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  max-width: none;
}

.aayda-crossing-detail__related-arrow--mobile {
  margin-top: -4px;
}

.aayda-crossing-detail__related-arrow--hover,
.aayda-crossing-detail__related-arrow--desktop {
  display: none;
}

.aayda-crossing-detail__divider {
  display: none;
}

.aayda-crossing-detail__story {
  width: 100%;
  min-width: 0;
  margin-top: 19px;
}

.aayda-crossing-detail__story-row {
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

@media (min-width: 1416px) {
  .aayda-crossing-detail__only-mobile {
    display: none;
  }

  .aayda-crossing-detail__hero-image.aayda-crossing-detail__only-desktop {
    display: block;
  }

  .aayda-crossing-detail {
    gap: 32px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 32px 0 96px;
  }

  .aayda-crossing-detail-page .aayda-breadcrumbs {
    width: 100%;
    padding-left: max(110px, calc((100% - 1440px) / 2 + 110px));
  }

  /* ML-E D6: still one line, but held to the breadcrumb's width, so a long current crumb shrinks to
     an ellipsis (breadcrumbs.css) instead of running past the viewport. */
  .aayda-crossing-detail-page .aayda-breadcrumbs__list {
    align-items: flex-start;
    flex-wrap: nowrap;
    width: fit-content;
    max-width: 100%;
  }

  .aayda-crossing-detail-page .aayda-breadcrumbs__link,
  .aayda-crossing-detail-page .aayda-breadcrumbs__current {
    white-space: nowrap;
  }

  .aayda-crossing-detail__shell {
    box-sizing: border-box;
    gap: 0;
    width: 1246px;
    max-width: none;
    margin: 0 auto;
    padding: 56px 118px 88px 134px;
    background: transparent;
    border: var(--aayda-border-width-card) solid var(--aayda-colors-base-white);
    border-radius: var(--aayda-radius-image);
  }

  .aayda-crossing-detail__top {
    gap: 20px;
    width: 993.5px;
  }

  .aayda-crossing-detail__hero-card {
    gap: 12px;
    width: 993px;
    height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .aayda-crossing-detail__intro {
    gap: 12px;
    width: 993px;
  }

  .aayda-crossing-detail__badge-row {
    height: 40px;
  }

  .aayda-crossing-detail__title {
    font-size: var(--aayda-typography-size-32);
    line-height: var(--aayda-typography-line-height-heading-32);
    letter-spacing: var(--aayda-typography-letter-spacing-32);
  }

  .aayda-crossing-detail__hero {
    width: 993px;
    height: 440px;
  }

  .aayda-crossing-detail__hero-image {
    inset: 0;
    top: auto;
    left: auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .aayda-crossing-detail__hero-overlay {
    right: 0;
    bottom: 0;
    left: 0;
    flex-direction: row;
    align-items: flex-end;
    width: auto;
    height: 80px;
    padding: 0 16px 16px;
    border-radius: 0;
  }

  .aayda-crossing-detail__hero-toolbar {
    align-items: center;
    width: 961px;
  }

  .aayda-crossing-detail__hero-caption {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .aayda-crossing-detail__hero-tools {
    display: flex;
    align-items: center;
    gap: 282px;
  }

  .aayda-crossing-detail__hero-arrow img {
    width: 48px;
    height: 48px;
  }

  .aayda-crossing-detail__hero-arrow .aayda-crossing-detail__hero-arrow-mobile {
    display: none;
  }

  .aayda-crossing-detail__hero-arrow .aayda-crossing-detail__hero-arrow-desktop.aayda-crossing-detail__hero-arrow-default {
    display: block;
  }

  .aayda-crossing-detail__hero-arrow .aayda-crossing-detail__hero-arrow-desktop.aayda-crossing-detail__hero-arrow-hover {
    display: none;
  }

  .aayda-crossing-detail__hero-arrow:hover .aayda-crossing-detail__hero-arrow-default,
  .aayda-crossing-detail__hero-arrow:focus-visible .aayda-crossing-detail__hero-arrow-default {
    display: none;
  }

  .aayda-crossing-detail__hero-arrow:hover .aayda-crossing-detail__hero-arrow-hover,
  .aayda-crossing-detail__hero-arrow:focus-visible .aayda-crossing-detail__hero-arrow-hover {
    display: block;
  }

  .aayda-crossing-detail__hero-dots--mobile {
    display: none;
  }

  .aayda-crossing-detail__hero-dots--desktop {
    display: flex;
    width: 159px;
    padding: 10px;
  }

  .aayda-crossing-detail__metrics--mobile {
    display: none;
  }

  .aayda-crossing-detail__metrics--desktop {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
    width: 993.5px;
  }

  /*
   * Four to a row, as the design draws them: a quarter of the row less its share of the three 12px
   * gaps. road-detail.css's fixed 240px needs 996px, a little over the 993.5px row, so there four
   * cards wrap three-and-one.
   */
  .aayda-crossing-detail__metric {
    flex: 0 0 calc((100% - 36px) / 4);
    width: calc((100% - 36px) / 4);
    padding: 12px 16px 12px 24px;
  }

  .aayda-crossing-detail__metric-rule {
    max-width: 199px;
  }

  .aayda-crossing-detail__divider {
    display: block;
    width: 993px;
    height: 1px;
    margin-top: 36px;
    background: #e2e8f0;
  }

  .aayda-crossing-detail__story {
    width: 993px;
    margin-top: 12px;
    padding-top: 24px;
  }

  .aayda-crossing-detail__story-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 44px;
    width: 993px;
  }

  .aayda-crossing-detail__copy {
    gap: 8px;
    width: 614px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .aayda-crossing-detail__lead {
    width: 563px;
  }

  .aayda-crossing-detail__body {
    width: 563px;
  }

  .aayda-crossing-detail__map {
    width: 335px;
    padding: 20px;
    background: var(--aayda-colors-base-white);
    border: 0;
    box-shadow: inset 0 0 0 1px #e2e8f0;
  }

  .aayda-crossing-detail__map-embed {
    width: 294px;
  }

  .aayda-crossing-detail__map-button {
    width: 294px;
    backdrop-filter: blur(5.6px);
  }

  .aayda-crossing-detail__map-button:hover,
  .aayda-crossing-detail__map-button:focus-visible {
    box-shadow: inset 0 0 0 0.5px var(--aayda-colors-blue-400);
  }

  .aayda-crossing-detail__media {
    gap: 60px;
    width: 993px;
    margin-top: 48px;
  }

  .aayda-crossing-detail__section {
    gap: 20px;
    width: 993px;
  }

  .aayda-crossing-detail__section-icon {
    width: 24px;
    height: 18px;
  }

  .aayda-crossing-detail__section-icon--grid {
    width: 24px;
    height: 16px;
  }

  .aayda-crossing-detail__more img {
    width: 30px;
    height: 30px;
  }

  .aayda-crossing-detail__photos--mobile {
    display: none;
  }

  .aayda-crossing-detail__photos--desktop {
    display: flex;
    overflow: visible;
  }

  .aayda-crossing-detail__photo--desktop {
    width: 238px;
    height: 181px;
  }

  .aayda-crossing-detail__photo--desktop .aayda-crossing-detail__photo-image {
    inset: auto;
    height: 115.47%;
    left: -42.03%;
    top: -7.73%;
    width: 184.05%;
    object-fit: fill;
    transition:
      height 300ms ease-out,
      width 300ms ease-out,
      left 300ms ease-out,
      top 300ms ease-out;
  }

  .aayda-crossing-detail__photo--desktop:hover .aayda-crossing-detail__photo-image,
  .aayda-crossing-detail__photo--desktop:focus-visible .aayda-crossing-detail__photo-image {
    height: 128.73%;
    left: -52.59%;
    top: -14.36%;
    width: 205.19%;
  }

  .aayda-crossing-detail__photo--plus {
    width: 256px;
    height: 181px;
  }

  .aayda-crossing-detail__photo--plus .aayda-crossing-detail__photo-image {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
  }

  .aayda-crossing-detail__section--related .aayda-crossing-detail__section-header {
    height: 35px;
    min-height: 35px;
  }

  .aayda-crossing-detail__section--related .aayda-crossing-detail__section-bar {
    height: 26px;
    min-height: 26px;
  }

  .aayda-crossing-detail__section--related .aayda-crossing-detail__section-rule {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .aayda-crossing-detail__section--related .aayda-crossing-detail__section-icon--grid {
    width: 24px;
    height: 16px;
  }

  .aayda-crossing-detail__section--related .aayda-crossing-detail__more {
    margin-top: -3px;
  }

  .aayda-crossing-detail__section--related .aayda-crossing-detail__more-icons {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
  }

  .aayda-crossing-detail__section--related .aayda-crossing-detail__more-icons .aayda-crossing-detail__more-arrow {
    width: 30px;
    height: 30px;
  }

  .aayda-crossing-detail__related--mobile {
    display: none;
  }

  .aayda-crossing-detail__related--desktop {
    display: flex;
    gap: 12px;
    overflow: visible;
  }

  .aayda-crossing-detail__related-card {
    width: 324px;
    height: 316px;
  }

  .aayda-crossing-detail__related-body {
    padding-top: 18px;
  }

  .aayda-crossing-detail__related-title {
    width: 256px;
  }

  .aayda-crossing-detail__related-rule {
    width: 288px;
  }

  .aayda-crossing-detail__related-meta {
    justify-content: flex-start;
    gap: 130px;
    width: 288px;
  }

  .aayda-crossing-detail__related-meta p {
    line-height: var(--aayda-typography-line-height-12);
  }

  .aayda-crossing-detail__related-arrow--mobile {
    display: none;
    margin-top: 0;
  }

  .aayda-crossing-detail__related-arrow--desktop.aayda-crossing-detail__related-arrow--default {
    display: block;
  }

  .aayda-crossing-detail__related-card:hover .aayda-crossing-detail__related-arrow--default,
  .aayda-crossing-detail__related-card:focus-visible .aayda-crossing-detail__related-arrow--default {
    display: none;
  }

  .aayda-crossing-detail__related-card:hover .aayda-crossing-detail__related-arrow--hover,
  .aayda-crossing-detail__related-card:focus-visible .aayda-crossing-detail__related-arrow--hover {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aayda-crossing-detail__hero-slide {
    transition: none;
  }

  /* The hover states still apply; they change at once instead of fading. */
  .aayda-crossing-detail__metric,
  .aayda-crossing-detail__metric-value,
  .aayda-crossing-detail__metric-label,
  .aayda-crossing-detail__metric-line,
  .aayda-crossing-detail__map-button,
  .aayda-crossing-detail__map-button-icon,
  .aayda-crossing-detail__more,
  .aayda-crossing-detail__photo-image {
    transition: none;
  }
}

/* ===========================================================================
 * Bug-fix 2, correction 16 — the related cards ("Digərləri"), shared by the road, bridge, tunnel and
 * pedestrian crossing pages (bug-fixes2/AAYDA_bugfix2_tasks.md). The road page had 16.1, 16.3 and 16.4
 * since the first bug-fix round; this block brings this page's strip to the same behaviour.
 * =========================================================================== */

/* 16.1 — the tag hugs its code (Figma's tag is HUG); the body is a stretching column, which drew it
   across the card's whole width. A long code still stays on one line inside it. */
.aayda-crossing-detail__related-code {
  align-self: flex-start;
  max-width: 100%;
}

/* Bug-fix 4, correction 43 — the tag shows no stroke of its own while its card is hovered, focused or
   pressed (owner decision; Figma's Related item has none in either state). Bug-fix 2's 16.2 inset ring
   is gone; the card keeps its own border, the picture its zoom and the arrow its swap. */

@media (min-width: 1416px) {
  /* 16.3 — the arrow keeps its place at the row's right end whatever the metric's length, and when a
     card has no metric at all (the 130px gap is still the least room between them). */
  .aayda-crossing-detail__related-meta .aayda-crossing-detail__related-arrow--desktop {
    margin-left: auto;
  }

  /* 16.4 — the picture comes forward on hover as on the road and bridge pages (Figma's Photo info card,
     1.09x, 0.3s ease-out): only the hovered card's own picture, inside its own frame, which clips it,
     so no other card and nothing around it moves. Keyboard focus does the same. */
  .aayda-crossing-detail__related-image {
    transform: scale(1);
    transition: transform 300ms ease-out;
  }

  .aayda-crossing-detail__related-card:hover .aayda-crossing-detail__related-image,
  .aayda-crossing-detail__related-card:focus-visible .aayda-crossing-detail__related-image {
    transform: scale(1.09);
  }
}

@media (prefers-reduced-motion: reduce) {
  .aayda-crossing-detail__related-image {
    transition: none;
  }
}
