.listing-detail { padding: 4px 0 12px; }

.listing-detail__card {
  padding: 10px 16px 12px;
  overflow: hidden;
}

.listing-detail__band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: -10px -16px 6px;
  padding: 8px 12px;
  background: #16213e;
  color: #fff;
}

.listing-detail__band img {
  display: block;
  width: auto;
  max-width: min(168px, 46vw);
  height: 40px;
  object-fit: contain;
}

.listing-detail__band span {
  flex: 1 1 auto;
  min-width: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 40px;
  text-align: right;
  white-space: nowrap;
}

.listing-detail__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  column-gap: 8px;
  align-items: start;
}

.listing-detail__identity { min-width: 0; grid-column: 1; grid-row: 1; }

.listing-detail__side { display: contents; }

.listing-detail__rail {
  display: flex;
  grid-column: 2;
  grid-row: 1 / span 2;
  flex-direction: column;
  align-items: center;
  align-self: start;
  min-width: 0;
  padding-left: 4px;
  border-left: 1px solid #edf1f5;
}

.listing-detail__rail .listing-share { position: static; color: #16213e; }

.listing-detail__card .listing-detail__rail .v2-listing-social__favorite {
  position: static;
  top: auto;
  right: auto;
  width: 100%;
  max-width: 68px;
  min-width: 44px;
  min-height: 44px;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1.1;
}

.listing-detail__intent { margin: 0 0 2px; color: var(--orange, #ff6b00); }
.listing-detail__nickname { margin: 0 0 2px; }
.listing-detail__title { margin: 0 0 4px; color: var(--orange, #ff6b00); }

.listing-detail__card .v2-listing-social__summary {
  display: flex;
  grid-column: 1;
  grid-row: 2;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  width: auto;
  margin: 2px 0 4px;
  padding: 0 0 4px;
  border-bottom: 1px solid #e4e9ef;
}

.listing-detail__card .v2-listing-social__summary span { width: auto; }
.listing-detail__fact { margin: 0; }
.listing-detail__fact span { margin-bottom: 0; }
.v2-ui .listing-detail__fact { padding: 2px 0; }

.listing-detail__phone-scope {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 0;
}

.listing-detail__more {
  display: block;
  grid-column: 1 / -1;
  grid-row: 1;
  flex: none;
  width: 100%;
}

.listing-detail__more summary {
  box-sizing: border-box;
  justify-content: center;
  width: calc(50% - 4px);
  padding: 0 8px;
  border: 1.5px solid var(--orange, #ff6b00);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  white-space: nowrap;
}

.listing-detail__more summary::after { content: none; }
.listing-detail__sum-open { display: none; }
.listing-detail__extra { margin-top: 0; padding-right: 0; }

.listing-detail__phone {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  box-sizing: border-box;
  width: 100%;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0 8px;
  border-radius: 12px;
  font-size: 14px;
  white-space: nowrap;
}

.listing-detail__phone::after {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background: center / 16px 16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h3l1.5 4-2 1.2a12 12 0 0 0 5.3 5.3l1.2-2 4 1.5v3a2 2 0 0 1-2.2 2A16.5 16.5 0 0 1 4.5 5.7 2 2 0 0 1 6.5 3.5z'/%3E%3C/svg%3E");
}

.listing-detail__more[open] {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
  width: 100%;
}

.listing-detail__more[open]::details-content,
.listing-detail__more[open] .listing-detail__extra {
  display: block;
  order: 1;
  width: 100%;
  min-width: 0;
}

.listing-detail__more[open] summary {
  order: 2;
  width: calc(50% - 4px);
}
.listing-detail__more[open] .listing-detail__sum-closed { display: none; }
.listing-detail__more[open] .listing-detail__sum-open { display: inline; }
.listing-detail__more[open] ~ .listing-detail__phone { align-self: end; }
.v2-ui .listing-detail__back { margin-top: 10px; }

.v2-listing-social__rate-label {
  flex: 1 0 100%;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy, #16213e);
}

.v2-listing-social__save[hidden],
.v2-listing-social__clear[hidden],
.v2-listing-social__note[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .ilan-ver-chrome { display: none; }

  .listing-detail__head { display: block; }

  .listing-detail__side {
    float: right;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
    max-width: 46%;
    margin: 0 0 4px 8px;
  }

  .listing-detail__rail { width: 100%; }

  .listing-detail__card .v2-listing-social__summary {
    align-items: center;
    width: max-content;
    margin: 0;
    padding: 2px 0 0 4px;
    border-bottom: 0;
    border-left: 1px solid #edf1f5;
    white-space: nowrap;
  }

  .listing-detail__title { margin-bottom: 2px; }

  .v2-ui .listing-detail__fact,
  .v2-ui .listing-detail__fact span {
    font-size: 16px;
    line-height: 1.4;
    overflow-wrap: break-word;
  }

  .v2-ui .listing-detail__fact { padding: 6px 0; }

  .listing-detail__fact span { margin-bottom: 3px; }

  .listing-detail__phone-scope { clear: both; }

  .listing-detail__extra .listing-detail__fact { padding-right: 0; }
}

@media (min-width: 1100px) {
  .listing-results-detail .listing-detail__band { display: none; }
}
