.rental-guide {
  --rental-border: #d7e0e8;
  --rental-accent: #224f80;
  --rental-tint: #eef4fa;
}

.rental-guide h2 {
  scroll-margin-top: 6rem;
}

.rental-jump {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.rental-jump a,
.rental-guide button {
  border: 1px solid var(--rental-border);
  border-radius: .45rem;
  background: #fff;
  color: var(--rental-accent);
  padding: .55rem .75rem;
  font: inherit;
}

.rental-guide button {
  min-height: 44px;
  cursor: pointer;
}

.rental-panel {
  min-width: 0;
  margin: 1.2rem 0;
  padding: clamp(.8rem, 3vw, 1.4rem);
  border: 1px solid var(--rental-border);
  border-radius: .6rem;
  background: #fff;
}

.rental-panel legend,
.rental-panel figcaption strong {
  font-size: 1.15rem;
  font-weight: 750;
}

.rental-panel > :last-child {
  margin-bottom: 0;
}

.rental-panel dt {
  font-weight: 700;
}

.rental-panel dd {
  margin: 0;
}

.rental-bars > div {
  margin: .85rem 0;
}

.rental-bars dd {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .35rem .75rem;
}

.rental-bar {
  grid-column: 1 / -1;
  background: var(--rental-tint);
  border-radius: .25rem;
}

.rental-bar > span {
  display: block;
  height: .65rem;
  background: var(--rental-accent);
  border-radius: inherit;
}

.rental-listing {
  display: flex;
  flex-wrap: wrap;
  gap: .25em;
  align-items: baseline;
  margin-top: 1rem;
  padding: .65rem .8rem;
  border-radius: .4rem;
  background: var(--rental-tint);
  color: var(--rental-accent);
  font-size: clamp(1.4rem, 5vw, 2rem);
}

.rental-slash {
  color: #516679;
}

.rental-facts > div {
  padding: .6rem 0;
}

.rental-facts > div + div {
  border-top: 1px solid var(--rental-border);
}

.rental-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.rental-fields > :first-child {
  grid-column: 1 / -1;
}

.rental-housing-note {
  margin: 0;
  color: #465768;
  font-size: .9rem;
}

.rental-housing {
  display: grid;
  gap: .75rem;
}

.rental-housing-card {
  --housing-tint: #f8eedf;
  display: grid;
  grid-template-columns: clamp(96px, 19vw, 148px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(.65rem, 2vw, 1.2rem);
  padding: clamp(.55rem, 1.6vw, .85rem);
  border: 1px solid var(--rental-border);
  border-radius: .75rem;
  background: var(--housing-tint);
}

.rental-housing-officetel { --housing-tint: #eaf1fa; }
.rental-housing-villa { --housing-tint: #faeee8; }
.rental-housing-apartment { --housing-tint: #e8f2ec; }
.rental-housing-goshiwon { --housing-tint: #f1edf8; }

.rental-housing-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: .55rem;
}

.rental-housing-card h3 {
  margin: 0 0 .3rem;
  font-size: 1.1rem;
  line-height: 1.35;
}

.rental-housing-card h3 span {
  margin-inline-start: .2em;
  color: #465768;
  font-size: .88em;
  white-space: nowrap;
}

.rental-housing-card p {
  margin: 0;
  font-size: .98rem;
}

.rental-timeline {
  border-left: 3px solid var(--rental-border);
}

.rental-timeline li {
  padding: 0 0 .5rem .3rem;
}

.rental-timeline li::marker {
  color: var(--rental-accent);
  font-weight: 750;
}

.rental-timeline p {
  margin: 0;
}

.rental-check-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: .35rem .8rem;
  margin: .6rem 0 .9rem;
}

.rental-check-items label {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  cursor: pointer;
}

.rental-check-items input {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  accent-color: var(--rental-accent);
}

.rental-status {
  display: block;
  margin-top: .4rem;
}

.rental-status:empty {
  display: none;
}

.rental-fields label {
  display: grid;
  align-content: space-between;
  gap: .3rem;
  font-size: .92rem;
  font-weight: 650;
}

.rental-fields input {
  width: 100%;
  min-height: 44px;
  padding: .55rem .8rem;
  border: 1px solid var(--rental-border);
  border-radius: .65rem;
  background: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
}

.rental-fields input:focus-visible {
  outline: 2px solid var(--rental-accent);
  outline-offset: 2px;
}

.rental-estimates {
  margin-top: 1rem;
}

.rental-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  margin: 0 0 .65rem;
}

.rental-totals > div {
  padding: .7rem .85rem;
  border-radius: .65rem;
  background: #e9f1fa;
  color: #173a61;
}

.rental-totals > div:nth-child(2) {
  background: #e6f3ed;
  color: #185343;
}

.rental-totals > div:last-child {
  grid-column: 1 / -1;
  background: #f3eef9;
  color: #4e376e;
}

.rental-totals dt {
  font-size: .86rem;
  font-weight: 650;
}

.rental-totals output {
  font-size: clamp(1.15rem, 3.4vw, 1.65rem);
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.rental-breakdown {
  padding: .8rem;
  border: 1px solid var(--rental-border);
  border-radius: .65rem;
}

.rental-breakdown h3 {
  margin: 0 0 .6rem;
  font-size: 1rem;
}

.rental-cost-bar {
  display: flex;
  height: .85rem;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--rental-tint);
}

.rental-cost-bar span {
  flex-basis: 0;
  background: var(--cost-color);
}

.rental-cost-rent { --cost-color: #3175ae; }
.rental-cost-management { --cost-color: #8163ac; }
.rental-cost-utilities { --cost-color: #ca8429; }
.rental-cost-internet { --cost-color: #21866b; }

.rental-breakdown dl {
  display: grid;
  gap: .25rem .8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: .65rem 0 0;
}

.rental-breakdown dl > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: .45rem;
  font-size: .9rem;
}

.rental-breakdown dt::before {
  content: "";
  display: inline-block;
  width: .55rem;
  height: .55rem;
  margin-right: .35rem;
  border-radius: 50%;
  background: var(--cost-color);
}

.rental-breakdown dd {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

@media (max-width: 440px) {
  .rental-totals,
  .rental-breakdown dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .rental-housing-card {
    align-items: start;
  }
}

.rental-registry dl > div {
  margin-top: .55rem;
  padding: .6rem .8rem;
  background: var(--rental-tint);
  border-left: .2rem solid var(--rental-accent);
}

.rental-table {
  max-width: 100%;
}

.rental-table table {
  table-layout: fixed;
  overflow-wrap: anywhere;
}

.rental-faq {
  padding: .65rem .15rem;
  border-bottom: 1px solid var(--rental-border);
}

.rental-faq summary {
  cursor: pointer;
  font-weight: 700;
}
