* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    #e5e5e5;
  background-size: 24px 24px;
}

.notice-sheet {
  position: relative;
  border: 5px solid #171717;
  outline: 10px solid #f97316;
}

.notice-sheet::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.45), transparent 35%),
    radial-gradient(circle at 20% 10%, rgba(249, 115, 22, 0.08), transparent 26%),
    radial-gradient(circle at 85% 70%, rgba(15, 23, 42, 0.06), transparent 28%);
  content: '';
}

.notice-sheet > * {
  position: relative;
}

.notice-pin {
  position: absolute;
  top: -1.15rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 4px solid #171717;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.22);
}

.notice-pin::after {
  position: absolute;
  inset: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  content: '';
}

.stamp {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border: 2px solid #171717;
  background: #f97316;
  padding: 0.35rem 0.7rem;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.stamp-light {
  background: #ffffff;
  color: #171717;
}

.price-box {
  border: 4px solid #171717;
  background: #ffffff;
  padding: 1rem;
}

.quick-cell {
  min-height: 5.5rem;
  border: 2px solid #171717;
  background: #fff7ed;
  padding: 0.75rem;
}

.quick-cell span {
  display: block;
  color: #9a3412;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-cell strong {
  display: block;
  margin-top: 0.35rem;
  color: #171717;
  font-size: 1rem;
  line-height: 1.25;
}

.contact-strip {
  background: #f97316;
  color: #171717;
}

.phone-number {
  border: 4px solid #171717;
  background: #ffffff;
  padding: 0.6rem 0.75rem;
  color: #171717;
  font-size: clamp(1.8rem, 7vw, 3.1rem);
  font-weight: 900;
  line-height: 1;
  word-break: break-word;
}

.notice-title {
  display: inline-block;
  border: 3px solid #171717;
  background: #f97316;
  padding: 0.35rem 0.75rem;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  border: 2px solid #171717;
  background: #ffffff;
}

.detail-row dt {
  border-right: 2px solid #171717;
  background: #ffedd5;
  padding: 0.65rem 0.75rem;
  color: #9a3412;
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-row dd {
  padding: 0.65rem 0.75rem;
  font-weight: 700;
  line-height: 1.45;
}

.bullet-line {
  position: relative;
  border: 2px solid #171717;
  background: #ffffff;
  padding: 0.7rem 0.8rem 0.7rem 2.1rem;
  font-weight: 700;
  line-height: 1.55;
}

.bullet-line::before {
  position: absolute;
  left: 0.65rem;
  top: 0.78rem;
  width: 0.75rem;
  height: 0.75rem;
  background: #f97316;
  box-shadow: 0 0 0 2px #171717;
  content: '';
}

.mini-box {
  border: 2px solid #171717;
  background: #fff7ed;
  padding: 0.9rem;
}

.mini-box h3 {
  color: #9a3412;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-box p {
  margin-top: 0.4rem;
  font-weight: 700;
  line-height: 1.55;
}

.gallery-count {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  border: 2px solid #171717;
  background: #ffffff;
  padding: 0.35rem 0.75rem;
  color: #9a3412;
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
}

.property-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.6rem;
}

.gallery-card {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  border: 3px solid #171717;
  background: #ffffff;
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
}

.gallery-card:focus-visible {
  outline: 4px solid #c2410c;
  outline-offset: 3px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.gallery-card:hover img {
  transform: scale(1.035);
}

.gallery-feature {
  grid-column: span 3;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(23, 23, 23, 0.9);
  padding: 1rem;
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox img {
  max-width: min(100%, 72rem);
  max-height: 88vh;
  border: 4px solid #ffffff;
  background: #ffffff;
  object-fit: contain;
}

.gallery-lightbox-close {
  position: fixed;
  right: 1rem;
  top: 1rem;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 3px solid #ffffff;
  background: #f97316;
  color: #171717;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.tag {
  display: flex;
  min-height: 2.8rem;
  align-items: center;
  border: 2px solid #171717;
  background: #ffffff;
  padding: 0.55rem 0.65rem;
  line-height: 1.25;
}

.faq-line {
  border: 2px solid #171717;
  background: #ffffff;
}

.faq-line summary {
  cursor: pointer;
  list-style: none;
  padding: 0.75rem 0.9rem;
  font-weight: 900;
}

.faq-line summary::-webkit-details-marker {
  display: none;
}

.faq-line summary::after {
  float: right;
  color: #c2410c;
  content: '+';
  font-size: 1.35rem;
  line-height: 1;
}

.faq-line[open] summary {
  border-bottom: 2px solid #171717;
  background: #ffedd5;
}

.faq-line[open] summary::after {
  content: '-';
}

.faq-line p {
  padding: 0.75rem 0.9rem;
  font-weight: 700;
  line-height: 1.55;
}

.tear-tabs {
  background:
    repeating-linear-gradient(90deg, transparent 0 3.6rem, rgba(23, 23, 23, 0.12) 3.6rem 3.7rem),
    #fff7ed;
}

.tear-tabs span {
  display: block;
  min-height: 3.5rem;
  border: 2px dashed #171717;
  background: #ffffff;
  padding: 0.7rem 0.45rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.15;
  word-break: break-word;
}

@media print {
  body {
    background: #ffffff;
  }

  main {
    padding: 0 !important;
  }

  .notice-sheet {
    max-width: none;
    border-width: 3px;
    outline: none;
    box-shadow: none !important;
  }

  .notice-pin {
    display: none;
  }
}

@media (max-width: 640px) {
  .notice-sheet {
    border-width: 3px;
    outline-width: 5px;
  }

  .notice-pin {
    display: none;
  }

  .detail-row {
    grid-template-columns: 1fr;
  }

  .detail-row dt {
    border-bottom: 2px solid #171717;
    border-right: 0;
  }

  .quick-cell {
    min-height: 4.8rem;
  }

  .property-gallery-section {
    overflow: hidden;
  }

  .property-gallery {
    display: flex;
    margin-inline: -1rem;
    overflow-x: auto;
    padding: 0 1rem 0.7rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .gallery-card,
  .gallery-feature {
    flex: 0 0 min(82vw, 21rem);
    aspect-ratio: 4 / 5;
    scroll-snap-align: start;
  }

  .gallery-lightbox {
    padding: 0.75rem;
  }

  .gallery-lightbox img {
    max-height: 82vh;
    border-width: 3px;
  }
}
