/* FID-695: Upper-level yard unit highlighting */
:root {
  --dp-rust: #b5573b;
  --dp-navy: #1b2b3b;
  --dp-pink: #f8e6df;
  --dp-line: #e4cdc3;
  --dp-green: #d7e6d2;
  --dp-green-ink: #2f5a3a;
}
/* Piece 1 & 5: Badge */
.dp-yard-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 20px);
  background: var(--dp-rust);
  color: #fff !important;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}
.dp-yard-badge svg { width: 13px; height: 13px; fill: #fff; flex: none; }
.dp-yard-badge:hover, .dp-yard-badge:focus-visible { background: #9a4730; color: #fff; text-decoration: none; }
.dp-yard-badge--inline { position: static; display: inline-flex; margin-bottom: 8px; }
/* Piece 2: Private Yard cell */
.dp-yard-cell {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--dp-rust);
}
.dp-yard-cell:hover { color: #9a4730; }
/* Piece 4: Explainer and chips */
.dp-yard-explain { font-size: 15px; line-height: 1.45; margin: 0 0 12px; }
.dp-yard-explain b { color: var(--dp-rust); }
.dp-yard-explain a { color: var(--dp-rust); text-underline-offset: 3px; }
.dp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.dp-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 3px solid #1a2b3b;
  background: transparent;
  color: #1a2b3b;
  border-radius: 20px;
  padding: 8px 14px;
  height: auto;
  font: inherit;
  font-size: 20px;
  cursor: pointer;
  white-space: break-spaces;
  text-decoration: none;
  min-width: auto;
  flex-wrap: wrap;
}
.dp-chip:hover {
    background: #1a2b3b;
    color: #fff;
    border: 3px solid #1a2b3b;
}
.dp-chip svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.dp-chip .count { font-weight: 400; opacity: 0.85; }
.dp-chip.is-on { background: var(--dp-rust); border-color: var(--dp-rust); color: #fff; }
@media (max-width: 600px) {
  .dp-chips { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; white-space: normal; }
  .dp-chip { flex-shrink: 0; font-size: 14px; }
}
/* Fix: Bootstrap FAQ accordion conflicts with .accordion base rules in site CSS */
.faq_accordions.accordion { height: auto; border: none; cursor: default; line-height: normal; padding: 0; margin-bottom: 0; }
.faq_accordions.accordion:after { content: none; }
/* Piece 5: Detail page yard line */
.dp-yard-line { margin: 0 0 12px; font-size: 14px; color: var(--dp-rust); font-weight: 600; line-height: 1.4; }
/* Piece 6: Swipeable gallery */
.dp-gallery { position: relative; overflow: hidden; border-radius: 12px; }
.dp-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; scrollbar-width: none; cursor: grab; }
.dp-strip:active { cursor: grabbing; }
.dp-strip::-webkit-scrollbar { display: none; }
.dp-strip img { flex: none; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start; border-radius: 0; display: block; }
.dp-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.dp-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.55); }
.dp-dots i.on { background: #fff; }
/* Piece 7: Feature card */
.dp-feature { background: #fff; border: 1px solid var(--dp-line); border-radius: 6px; padding: 14px; display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.dp-feature h3 { margin: 0; font-size: 24px; line-height: 1.1; color: var(--dp-navy); }
.dp-feature ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 15px; }
.dp-feature li { display: flex; gap: 9px; align-items: flex-start; }
.dp-feature li svg { width: 16px; height: 16px; fill: var(--dp-rust); flex: none; margin-top: 2px; }
.dp-feature p { margin: 0; font-size: 14px; color: #6b6560; line-height: 1.45; }
.dp-feature-cta { display: block; text-align: center; }
.dp-feature-more { display: block; text-align: center; color: var(--dp-rust); font-size: 14px; text-underline-offset: 3px; }
/* Fix: amenity list float/fixed-height layout breaks with long item text */
.amenity_list { display: grid; grid-template-columns: repeat(3, 1fr); }
.amenity_list li { float: none; width: auto; height: auto; }
@media (max-width: 1200px) {
  .amenity_list { grid-template-columns: repeat(2, 1fr); }
  .amenity_list li { width: auto; }
}
@media (max-width: 768px) {
  .amenity_list { grid-template-columns: 1fr; }
  .amenity_list li { width: auto; }
}
/* Floor plan name link color */
.rtext a { color: #ad7a3c; text-decoration: none; }
.rtext a:hover { text-decoration: underline; }
/* Badge in table listing: display above image on mobile instead of overlapping */
@media (max-width: 992px) {
  td .dp-yard-badge { position: static; display: inline-flex; margin-bottom: 8px; }
}
.dp-gallery {
    margin-left: 40px;
}
@media(max-width:992px){
	.dp-gallery {
	    margin-left: 0;
	}
}
@media (max-width: 767.98px) {
    .view_btn {
        margin-bottom: 0;
    }
}
