.availability-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 48px;
  margin-top: 26px;
  padding: 0 0 9px;
  border: 0;
  border-bottom: 1px solid #d5be95;
  background: transparent;
  color: #f3eee2;
  cursor: pointer;
  font: 600 10px/1.3 var(--sans);
  letter-spacing: .17em;
  text-align: left;
}
.availability-trigger span { font-size: 19px; font-weight: 300; letter-spacing: 0; }
.availability-trigger:hover, .availability-trigger:focus-visible { color: #d5be95; }
.availability-trigger:focus-visible, .dialog-close:focus-visible, .listing-secondary:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.collection-note { max-width: 850px; line-height: 1.6; }
body.dialog-open { overflow: hidden; }
.availability-overlay { position: fixed; z-index: 100; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: #070906dc; backdrop-filter: blur(7px); }
.availability-overlay[hidden] { display: none; }
.availability-dialog {
  position: relative;
  width: min(1100px, calc(100vw - 48px));
  max-width: none;
  max-height: min(880px, calc(100dvh - 48px));
  margin: 0;
  padding: 0;
  border: 1px solid #a18a66;
  background: #171b15;
  color: var(--cream);
  box-shadow: 0 35px 100px #000a;
  scrollbar-color: #5c6558 #171b15;
}
.availability-dialog { display: grid; grid-template-columns: 42% 58%; overflow: hidden; }
.dialog-close {
  position: absolute;
  z-index: 5;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 1px solid #d8d3c575;
  border-radius: 50%;
  background: #171b15e8;
  color: #f5f0e7;
  cursor: pointer;
  font: 300 28px/1 var(--sans);
}
.dialog-close:hover { background: #5b4d39; }
.listing-gallery { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: min(880px, calc(100dvh - 48px)); min-height: 0; background: #10130f; }
.listing-image { position: relative; min-height: 0; overflow: hidden; background: #3d3e2e; }
.listing-image img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.listing-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #0c0e0a99, transparent 40%); pointer-events: none; }
.listing-image>span { position: absolute; z-index: 1; bottom: 24px; left: 28px; color: #f1ebe1; font-size: 10px; font-weight: 600; letter-spacing: .19em; }
.listing-image .listing-image-count { left: auto; right: 28px; }
.listing-thumbnails { display: flex; gap: 9px; padding: 14px 18px; border-top: 1px solid #ffffff25; }
.listing-thumb { width: 79px; height: 57px; padding: 0; border: 1px solid #ffffff4c; background: #2e332c; cursor: pointer; opacity: .67; transition: opacity .2s, border-color .2s; }
.listing-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.listing-thumb:hover, .listing-thumb.is-active { border-color: #d6bc8f; opacity: 1; }
.listing-thumb:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.listing-content { max-height: min(880px, calc(100dvh - 48px)); overflow-y: auto; padding: 66px 58px 38px; scrollbar-color: #5c6558 #171b15; }
.listing-kicker, .listing-section-title, .listing-price span { font-size: 10px; font-weight: 600; letter-spacing: .16em; }
.listing-kicker { display: flex; justify-content: space-between; gap: 20px; color: #ceb78c; }
.listing-kicker span { color: #93978a; text-align: right; }
.listing-content h2 { margin: 24px 0 18px; font: 400 clamp(39px, 4.4vw, 65px)/1.08 var(--serif); letter-spacing: -.045em; }
.listing-content h2 em { color: #d4bc94; font-weight: 400; }
.listing-intro { max-width: 540px; color: #cbcbbf; font-size: 14px; line-height: 1.7; }
.listing-price { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 29px 0 33px; padding: 22px 0; border-top: 1px solid #ffffff35; border-bottom: 1px solid #ffffff35; }
.listing-price>div { min-width: 0; }
.listing-price span { display: block; margin-bottom: 11px; color: #c8b48e; }
.listing-price strong { display: block; font: 400 clamp(23px, 2.4vw, 31px)/1.2 var(--serif); white-space: nowrap; }
.listing-price .btc-value { color: #d6c7a7; }
.listing-section-title { display: flex; justify-content: space-between; gap: 20px; color: #e0d2b7; }
.listing-section-title span { color: #8f9588; text-align: right; }
.listing-facts { margin: 17px 0 17px; border-top: 1px solid #ffffff22; }
.listing-facts>div { display: grid; grid-template-columns: 33% 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid #ffffff22; font-size: 13px; line-height: 1.4; }
.listing-facts dt { color: #999f93; }
.listing-facts dd { margin: 0; color: #dddcd0; }
.listing-rate-note { margin: 0 0 25px; color: #a6ab9f; font-size: 11px; line-height: 1.55; }
.listing-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.listing-actions { margin: 0 0 31px; }
.listing-actions .button { min-width: 215px; padding: 15px 19px; }
.listing-secondary { display: inline-flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #bca47b; color: #e4d8c3; font-size: 10px; font-weight: 600; letter-spacing: .15em; }
.listing-secondary:hover { color: #fff; }
.listing-secondary span { font-size: 16px; font-weight: 300; }
.listing-legal { max-width: 560px; margin: 23px 0 0; color: #858b80; font-size: 10px; line-height: 1.6; }
@media (max-width: 800px) {
  .availability-overlay { padding: 12px; }
  .availability-dialog { width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
  .availability-dialog { display: block; overflow-y: auto; }
  .listing-gallery { display: block; height: auto; }
  .listing-image { height: 260px; min-height: 0; }
  .listing-image img { object-position: center 20%; }
  .listing-thumbnails { padding: 10px 15px; }
  .listing-thumb { width: 74px; height: 50px; }
  .listing-content { max-height: none; overflow: visible; padding: 31px 28px 32px; }
  .listing-content h2 { font-size: clamp(39px, 8vw, 54px); }
}
@media (max-width: 480px) {
  .availability-overlay { padding: 8px; }
  .availability-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .listing-image { height: 215px; }
  .listing-image img { object-position: center 14%; }
  .listing-image>span { bottom: 17px; left: 18px; }
  .listing-image .listing-image-count { right: 18px; }
  .listing-content { padding: 29px 21px 30px; }
  .listing-kicker { font-size: 9px; }
  .listing-price { gap: 12px; }
  .listing-price strong { font-size: 21px; }
  .listing-facts>div { grid-template-columns: 35% 1fr; gap: 8px; font-size: 12px; }
  .listing-actions { align-items: stretch; flex-direction: column; gap: 13px; }
  .listing-actions .button { width: 100%; }
  .listing-secondary { align-self: flex-start; }
}
