.gallery-main {
  aspect-ratio: auto;
  height: auto;
  max-height: 55dvh;
  object-fit: contain;
}
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  padding: 3px 8px;
  border-radius: 4px;
  width: max-content;
  max-width: 100%;
  margin: 5px 0;
}
.rating-badge svg {
  width: 13px;
  height: 13px;
}
.rank-5 {
  background: #fff0e9;
  color: #a23d31;
}
.rank-4 {
  background: #e5f2eb;
  color: #17654b;
}
.rank-3 {
  background: #fff4d2;
  color: #815b08;
}
.rank-2 {
  background: #edf0f3;
  color: #536574;
}
.rank-1 {
  background: #eeeef0;
  color: #6e4852;
}
.rank-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0 0 8px;
}
.rank-note {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 21px;
  max-width: 760px;
}
.result-count {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 15px;
}
.theme-filter {
  flex-wrap: wrap;
  overflow: visible;
}
.place-plan {
  display: block;
  margin-top: 3px;
}
.pros-cons {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 16px 0 20px;
}
.pros-cons p {
  margin: 10px 0 !important;
  font-size: 13px;
  color: var(--muted);
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
}
.pros-cons strong {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  margin-bottom: 4px;
}
.pros-cons strong svg {
  width: 13px;
  height: 13px;
}
.pros-cons .pro strong {
  color: var(--green);
}
.pros-cons .con strong {
  color: #986347;
}
.pros-cons.compact {
  padding: 9px 0 3px;
  border-bottom: 0;
  margin: 10px 0 0;
}
.pros-cons.compact p {
  font-size: 12px;
  margin: 7px 0 !important;
}
.pros-cons.compact span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.8;
}
.pros-cons.compact strong {
  font-size: 11px;
}
.alternatives {
  margin: 10px 0 6px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}
.alternatives > small {
  font-size: 11px !important;
  color: #687972 !important;
  display: block;
  margin-bottom: 5px;
}
.alternatives > div {
  display: flex;
  gap: 5px 12px;
  flex-wrap: wrap;
}
.alternatives button {
  font-size: 11px;
  color: var(--green);
  padding: 3px 0;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1.65;
  max-width: 100%;
}
.alternatives button svg {
  width: 12px;
  height: 12px;
}
.preference-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-left: 3px solid var(--red);
  padding: 0 0 0 14px;
  margin: 0 0 24px;
}
.preference-band strong {
  font-size: 15px;
}
.preference-band p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.preference-band button {
  white-space: nowrap;
}
.swap-routes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}
.swap-route {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.swap-route h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.swap-route p {
  font-size: 13px;
  color: var(--muted);
}
.swap-links {
  display: flex;
  gap: 10px 15px;
  flex-wrap: wrap;
  margin-top: 11px;
}
.swap-links button {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
  padding: 0;
  font-size: 12px;
}
.swap-links svg {
  width: 13px;
  height: 13px;
}
.gallery-link-cover {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--green);
  font-size: 13px;
  background: #e5eee8;
}
.gallery-link-cover svg {
  width: 32px;
  height: 32px;
}
.official-gallery {
  padding: 30px 20px;
  text-align: center;
  background: #eaf1ed;
}
.official-gallery > svg {
  width: 36px;
  height: 36px;
  color: var(--green);
  margin-bottom: 7px;
}
.official-gallery p {
  font-size: 13px;
  margin-bottom: 15px;
  color: var(--muted);
}
.unavailable-photo {
  object-fit: contain !important;
  font-size: 11px;
  background: #e7eee9;
  color: var(--muted);
}
@media (max-width: 700px) {
  .rank-note {
    font-size: 11px;
    margin-bottom: 17px;
  }
  .rating-badge {
    font-size: 10px;
    padding: 3px 6px;
  }
  .place-body .pros-cons.compact p {
    font-size: 11px;
  }
  .pros-cons strong {
    font-size: 12px;
  }
  .pros-cons span {
    font-size: 12px;
  }
  .alternatives button {
    font-size: 10px;
  }
  .preference-band {
    display: block;
    margin-bottom: 22px;
    padding-left: 11px;
  }
  .preference-band strong {
    font-size: 14px;
  }
  .preference-band p {
    font-size: 11px;
    line-height: 1.8;
  }
  .preference-band button {
    font-size: 11px;
    margin-top: 5px;
  }
  .swap-routes {
    display: block;
  }
  .swap-route h3 {
    font-size: 15px;
  }
  .swap-route p {
    font-size: 12px;
  }
  .swap-links button {
    font-size: 11px;
  }
  .gallery-link-cover {
    font-size: 11px;
  }
}
