/* 여행후기 — 네이버 블로그 앨범형 목록 (tour/review*.html). board-ui.css 다음에 로드 */

.rv-main {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.rv-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--hl-ink);
}
.rv-top-title {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}
.rv-top-title h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--hl-ink);
}
.rv-count {
  margin: 0;
  font-size: 0.9rem;
  color: var(--hl-muted);
}
.rv-count b {
  color: var(--hl-gold);
}
.rv-cats {
  margin: 1.2rem 0 1.6rem;
}

/* 앨범 그리드 */
.rv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.25rem;
  margin: 0;
  padding: 0;
}
.rv-grid[aria-busy="true"]:empty {
  min-height: 320px;
}
.rv-card {
  display: block;
  color: inherit !important;
}
.rv-thumb {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--hl-sand);
}
.rv-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(11, 28, 51, 0.06);
  transition: background 0.3s ease;
  pointer-events: none;
}
.rv-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.rv-card:hover .rv-thumb img {
  transform: scale(1.05);
}
.rv-card:hover .rv-thumb::after {
  background: rgba(11, 28, 51, 0.12);
}
.rv-nophoto {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #b3a891;
}
.rv-photos {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
  background: rgba(11, 28, 51, 0.62);
  border-radius: 2px;
}
.rv-photos svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.4;
}
.rv-new,
.rv-sample {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 1;
  padding: 0.25rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--hl-gold);
  border-radius: 2px;
}
.rv-new + .rv-sample {
  top: 2.3rem;
}
.rv-sample {
  color: var(--hl-ink);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(11, 28, 51, 0.15);
}
.rv-sample.is-inline {
  position: static;
}
.rv-info {
  display: block;
  padding-top: 0.9rem;
}
.rv-cat {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hl-gold);
}
.rv-place {
  overflow: hidden;
  font-weight: 500;
  color: var(--hl-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rv-place::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.7em;
  margin-right: 0.45rem;
  background: #c9ced6;
}
.rv-title {
  display: -webkit-box;
  margin-top: 0.4rem;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--hl-ink);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.rv-card:hover .rv-title {
  color: var(--hl-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rv-meta {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #8a95a3;
}
.rv-meta span + span::before {
  content: "·";
  margin-right: 0.5rem;
}
.rv-empty {
  grid-column: 1 / -1;
  padding: 5rem 1rem;
  font-size: 0.95rem;
  text-align: center;
  color: var(--hl-muted);
  background: #fff;
  border: 1px solid #e5e8ec;
}

.rv-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 2.8rem;
}
.rv-bottom .qb-pager {
  grid-column: 2;
}
.rv-bottom .qb-write {
  grid-column: 3;
}

/* 상세 */
.rv-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  margin: 0;
  padding: 1rem 1.6rem;
  background: #f8f6f1;
  border-bottom: 1px solid var(--hl-line);
}
.rv-facts div {
  display: flex;
  gap: 0.6rem;
  font-size: 0.88rem;
}
.rv-facts dt {
  font-weight: 700;
  color: var(--hl-gold);
}
.rv-facts dd {
  margin: 0;
  color: var(--hl-ink);
}

.rv-related {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.rv-related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--hl-ink);
}
.rv-related-head h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--hl-ink);
}
.rv-related-head a {
  font-size: 0.86rem;
  color: var(--hl-muted) !important;
}
.rv-related-head a::after {
  content: " ›";
}
.rv-grid.is-related {
  gap: 1.2rem 1rem;
}
.rv-grid.is-related .rv-title {
  font-size: 0.92rem;
}

@media (max-width: 1024px) {
  .rv-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .rv-grid.is-related {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 760px) {
  .rv-top {
    flex-direction: column;
    align-items: stretch;
  }
  .rv-search input {
    flex: 1;
    width: auto;
    min-width: 0;
  }
  .rv-cats {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .rv-grid,
  .rv-grid.is-related {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 0.75rem;
  }
  .rv-title {
    font-size: 0.92rem;
  }
  .rv-meta {
    font-size: 0.74rem;
  }
  .rv-meta span:first-child {
    display: none;
  }
  .rv-meta span + span::before {
    content: none;
  }
  .rv-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .rv-bottom .qb-pager,
  .rv-bottom .qb-write {
    grid-column: 1;
  }
  .rv-bottom .qb-write {
    justify-self: stretch;
    justify-content: center;
  }
  .rv-facts {
    padding: 0.9rem 1.1rem;
    gap: 0.3rem 1.2rem;
  }
}
