.archive-page:has(> .archive-main > .bm-site)
  > :is(.v4-top, .v4-head, .archive-footer) {
  display: none;
}

.v4.design-refined .archive-main:has(> .bm-site) {
  width: 100%;
  max-width: none;
  padding: 0;
}

.archive-main:has(> .bm-site) > .archive-breadcrumb {
  display: none;
}

.archive-main:has(> .bm-site) > h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.bm-site {
  --bm-accent: var(--site-accent, #1151ad);
  background: #fff;
  color: #333;
  font:
    12px/1.4 돋움,
    Dotum,
    'Malgun Gothic',
    sans-serif;
}

.bm-wrap {
  width: min(900px, calc(100% - 24px));
  margin-inline: auto;
}

.bm-hero {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 620px);
  min-height: 120px;
  padding-block: 10px;
  margin-bottom: 10px;
}

.bm-identity {
  display: flex;
  min-width: 0;
  min-height: 100px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow-wrap: anywhere;
  padding-inline: 8px;
  text-align: center;
}

.v4 .bm-identity > a:first-child {
  color: var(--bm-accent);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.bm-identity p {
  margin: 0;
}

.bm-logo {
  display: block;
  max-width: min(170px, 100%);
  max-height: 62px;
  object-fit: contain;
}

.bm-banner {
  display: block;
  width: 100%;
  max-width: 620px;
  height: 100px;
  object-fit: cover;
}

.v4 .bm-phone {
  color: var(--bm-accent);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.bm-menu {
  position: relative;
  background: var(--bm-accent);
}

.bm-section-heading img {
  filter: hue-rotate(-55deg);
}

.bm-menu-inner {
  padding-block: 4px;
}

.bm-menu a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.bm-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-top: 10px;
}

.bm-sidebar {
  min-width: 0;
  border: 1px solid #d8d8d8;
  border-radius: 7px;
  padding: 14px 9px 12px;
  background: linear-gradient(#f5f5f5, #fff 14px);
}

.bm-sidebar-shortcuts {
  margin-bottom: 8px;
  text-align: center;
}

.bm-portrait {
  display: block;
  width: 170px;
  max-width: 100%;
  height: 170px;
  object-fit: contain;
  margin: 0 auto 4px;
}

.bm-details {
  margin: 0 4px 6px;
  font-size: 12px;
  line-height: 1.25;
}

.bm-details > div {
  display: grid;
  grid-template-columns: 73px minmax(0, 1fr);
}

.bm-details dt::before {
  content: '· ';
  color: #456581;
}

.bm-details dt::after {
  content: ':';
  float: right;
  padding-right: 5px;
}

.bm-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.v4 .bm-details a {
  text-decoration: none;
  color: inherit;
}

.bm-address {
  margin: 0 4px 8px;
  padding: 6px;
  background: #e2e2e2;
  text-align: center;
  white-space: pre-line;
}

.v4 .bm-category-title {
  margin: 0 0 4px;
  font-size: 12px;
}

.bm-category-title img,
.bm-category-links img {
  display: block;
}

.bm-category-links {
  padding: 8px 9px;
  border: 1px solid #cfcfcf;
  box-shadow: inset 0 0 4px #bcbcbc;
  background: #f1f1f1;
}

.bm-category-links > div {
  display: flex;
  min-height: 19px;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
}

.v4 .bm-category-links a {
  color: #555;
  text-decoration: none;
}

.bm-category-links span {
  display: flex;
  gap: 1px;
}

.v4 .bm-about-links a {
  color: #555;
}

.bm-about-links {
  display: grid;
  gap: 3px;
  margin: 7px 3px 0;
}

.bm-content {
  min-width: 0;
  padding-top: 10px;
}

.bm-panel {
  margin-bottom: 12px;
}

.v4 .bm-content h2 {
  margin: 0 0 4px;
  font:
    bold 14px/1.4 돋움,
    Dotum,
    'Malgun Gothic',
    sans-serif;
  color: var(--bm-accent);
}

.bm-section-heading {
  min-height: 19px;
  border-bottom: 1px solid #86a6cd;
}

.v4 .bm-section-heading h2 {
  margin: 0;
}

.bm-section-heading img {
  display: block;
}

.bm-empty {
  margin: 0;
  padding: 15px 4px;
  text-align: center;
}

.bm-empty span {
  color: #a14756;
}

.bm-introduction {
  white-space: pre-wrap;
}

.bm-site .pb-property-controls {
  gap: 7px;
  margin: 8px 0;
}

.bm-site .pb-property-controls label,
.bm-site .pb-property-controls :is(input, select) {
  font-size: 12px;
}

.bm-site .pb-property-controls :is(input, select) {
  min-height: 29px;
  padding: 4px 7px;
  border-radius: 3px;
}

.bm-result-count {
  margin: 5px 0;
  color: #555;
}

.bm-listings {
  overflow: auto;
}

.bm-listings table {
  width: 100%;
  min-width: 590px;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: center;
  font-size: 12px;
}

.bm-listings :is(th, td) {
  height: 28px;
  padding: 3px 6px;
  border: 1px solid #b6c5bb;
  line-height: 17px;
  overflow-wrap: anywhere;
}

.bm-listings th {
  background: #f7faf7;
  color: #25543a;
  white-space: nowrap;
}

.bm-listings .bm-list-photo {
  width: 52px;
}
.bm-listings .bm-list-address {
  width: 100px;
}
.bm-listings .bm-list-lot {
  width: 64px;
}
.bm-listings .bm-list-area {
  width: 70px;
}
.bm-listings .bm-list-price {
  width: 82px;
}
.bm-listings .bm-list-date {
  width: 86px;
}
.bm-listings .bm-list-action {
  width: 48px;
}

.bm-listings td.bm-list-title {
  text-align: left;
}

.bm-listings td img {
  object-fit: cover;
  vertical-align: middle;
}

.bm-listings small {
  display: block;
  color: #666;
}

.v4 .bm-listings td a {
  color: var(--bm-accent);
}

.v4 .bm-listings a.bm-list-view {
  display: inline-block;
  min-width: 32px;
  padding: 1px 5px;
  border: 1px solid #8da296;
  border-radius: 3px;
  background: #fff;
  color: #25543a;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.v4 .bm-listings a.bm-list-view:hover {
  background: #edf2ee;
}

.bm-recent-listings {
  width: calc(100% + clamp(0px, 50vw - 474px, 236px));
}

.bm-recent-listings .bm-listings table {
  min-width: 710px;
}

.bm-recent-listings .bm-list-address {
  width: 122px;
}

.bm-recent-listings .bm-list-area {
  width: 105px;
}

.bm-recent-listings .bm-list-price {
  width: 110px;
}

.bm-recent-listings .bm-list-date {
  width: 94px;
}

.bm-recent-listings .bm-listings td {
  max-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bm-recent-listings .bm-listings small {
  display: inline;
  margin-inline-start: 4px;
}

.bm-recent-listings .bm-listings td img {
  width: 36px;
  height: 24px;
}

.v4 .bm-content .archive-article {
  padding: 10px;
  border-radius: 4px;
}

.bm-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 12px;
  padding: 10px 0;
  border-top: 1px solid #dedede;
  color: #555;
}

.bm-footer img {
  display: block;
  max-width: 100%;
}

.bm-eyebrow {
  font-size: 12px;
  color: #4b6782;
  letter-spacing: 0.7px;
}

.bm-directory-heading {
  padding: 4px 0;
}
.bm-directory-heading h2 {
  font-size: 24px;
  margin: 6px 0;
}
.bm-directory-heading p {
  margin: 6px 0;
  color: #52677d;
  font-size: 14px;
  line-height: 1.6;
}
.bm-directory .pb-directory-search {
  margin: 6px 0 4px;
}
.bm-directory .pb-result-count {
  margin: 4px 0;
}
.bm-directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}
.bm-agency-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #dce6f1;
  border-radius: 6px;
  overflow: hidden;
  background: white;
}
.bm-directory .bm-agency-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
  padding: 6px;
  color: #21394f;
  text-align: center;
}
.bm-agency-photo {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 4px;
}
.bm-directory .bm-agency-photo img,
.bm-directory .bm-no-photo {
  display: block;
  width: 96px;
  height: 112px;
  object-fit: contain;
  object-position: center;
  border-radius: 4px;
  background: #f0f5fb;
}
.bm-directory .bm-no-photo {
  display: grid;
  place-items: center;
  font-size: 12px;
}
.bm-agency-info {
  display: grid;
  gap: 0;
  letter-spacing: -0.2px;
  width: 100%;
  min-width: 0;
}
.bm-directory .bm-agency-main h3 {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
}
.bm-agency-main h3 a,
.bm-agency-address {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.bm-directory .bm-agency-main p {
  margin: 0;
  font-size: 11px;
  line-height: 14px;
}
.bm-directory .bm-agency-main .bm-agency-phone {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.bm-directory .bm-agency-address {
  font-size: 11px;
  line-height: 14px;
}
.bm-directory .bm-agency-main a {
  color: inherit;
  text-decoration: none;
}
.bm-directory .bm-agency-main a:hover {
  color: var(--site-accent, #1151ad);
  text-decoration: underline;
}
.bm-directory .bm-agency-main small,
.bm-directory .bm-muted {
  color: #52677d;
  font-size: 10px;
  line-height: 13px;
}
.bm-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #dce6f1;
  background: #f3f7fc;
}
.bm-card-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 2px;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  color: var(--site-accent, #1151ad);
}
.bm-card-actions a + a {
  border-left: 1px solid #dce6f1;
}
.bm-directory a:focus-visible {
  outline: 2px solid var(--site-accent, #1151ad);
  outline-offset: -2px;
}
@media (max-width: 760px) {
  .bm-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bm-directory .bm-agency-main {
    padding: 5px 4px;
    gap: 3px;
  }
  .bm-directory .bm-agency-photo img,
  .bm-directory .bm-no-photo {
    width: 80px;
    height: 96px;
  }
  .bm-directory .bm-agency-main h3 {
    font-size: 12px;
  }
  .bm-card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bm-card-actions a {
    min-height: 36px;
    font-size: 10px;
  }
  .bm-card-actions a:first-child {
    grid-column: 1 / -1;
  }
  .bm-card-actions a + a {
    border-top: 1px solid #dce6f1;
  }
  .bm-card-actions a:nth-child(2) {
    border-left: 0;
  }
}
.bm-directory input,
.bm-site input,
.bm-site select {
  max-width: 100%;
}
@media (max-width: 580px) {
  .bm-hero {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .bm-identity {
    min-height: 44px;
  }

  .bm-banner {
    height: auto;
    aspect-ratio: 6.2;
  }

  .bm-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .bm-sidebar {
    grid-row: 2;
  }
}
