/* Palladium Listings – additions on top of the theme's listings.css / listing-detail.css. */

/* Pagination links (theme styles .lpg-btn as buttons). */
.pal-pagination .lpg-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.pal-pagination .lpg-btn.active,
.pal-pagination .lpg-btn.current { background: #11181d; border-color: #11181d; color: #fff; }
.pal-pagination .lpg-btn.dots { border: 0; background: transparent; cursor: default; }
.pal-filters .lf-btn-reset { display: inline-flex; align-items: center; text-decoration: none; }
.listings-empty a { color: #c9a96e; }

/* Cards: no link underlines (some page contexts underline links). */
.listings-grid a.lc, .listings-grid a.lc * { text-decoration: none; }

/* Card: keep heights consistent when titles wrap. */
.listings-grid .lc .lc-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.listings-grid .lc .lc-photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Detail page additions. */
.pal-listing .ld-gallery-main img { aspect-ratio: 16 / 9; object-fit: cover; }
.pal-subtitle { margin: -4px 0 10px; color: #6b6b6b; font-size: .95rem; }
.pal-notice { margin: 0 0 20px; padding: 14px 20px; border-radius: 8px; background: #f6f4f0; border-left: 4px solid #c9a96e; color: #11181d; font-size: .95rem; }
.pal-notice--warn { border-left-color: #b4533a; }
.pal-demo-badge { position: absolute; top: 20px; right: 24px; background: rgba(17, 24, 29, .78); color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; }

.pal-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.pal-details > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #eee; }
.pal-details dt { color: #6b6b6b; font-size: .9rem; }
.pal-details dd { margin: 0; font-weight: 600; color: #11181d; text-align: right; font-size: .92rem; }

.pal-plan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pal-plan li { background: #f6f4f0; border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.pal-plan-val { font-size: 1.5rem; font-weight: 700; color: #11181d; }
.pal-plan-text { grid-column: 1 / -1; }
.pal-plan-text .pal-plan-val { font-size: 1.1rem; }
.pal-plan-label { color: #6b6b6b; font-size: .88rem; }

.pal-location-text { margin: 0 0 8px; }
.pal-map-link, .pal-permit a { color: #c9a96e; font-weight: 600; text-decoration: none; }
.pal-map-link:hover, .pal-permit a:hover { text-decoration: underline; }
.pal-permit p { margin: 0 0 6px; }

.pal-similar { max-width: 1200px; margin: 24px auto 64px; padding: 0 24px; }
.pal-similar h2 { margin: 0 0 20px; }

@media (max-width: 768px) {
	.pal-details { grid-template-columns: 1fr; }
	.pal-similar { padding: 0 16px; }
}

/* Breadcrumbs (replaces the back link). */
.pal-breadcrumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: #6b6b6b; }
.pal-breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: #b5b5b5; }
.pal-breadcrumbs a { color: #6b6b6b; text-decoration: none; }
.pal-breadcrumbs a:hover { color: #c9a96e; }
.pal-breadcrumbs [aria-current] { color: #11181d; }
.pal-facts { margin: 12px 0 0; color: #333; }
.pal-archive-links { margin: 32px 0 0; text-align: center; font-size: .9rem; color: #6b6b6b; }
.pal-archive-links a { color: #c9a96e; text-decoration: none; font-weight: 600; }
/* Hub pages, archive "about" sections and internal links (v0.6.0). */
.listings-hero .pal-crumbs { margin: 0 0 14px; font-size: .85rem; color: rgba(255,255,255,.75); }
.listings-hero .pal-crumbs a { color: inherit; text-decoration: none; }
.listings-hero .pal-crumbs a:hover { color: #c9a96e; }
.pal-archive-about { max-width: 980px; margin: 48px auto 0; color: #333; line-height: 1.7; }
.pal-archive-about h2 { font-size: 1.35rem; color: #11181d; margin: 32px 0 12px; }
.pal-archive-about h3 { font-size: 1.1rem; color: #11181d; margin: 24px 0 8px; }
.pal-archive-copy p { margin: 0 0 14px; }
.pal-archive-copy a, .pal-hub-links a, .pal-hub-more a { color: #7d5f2b; font-weight: 600; text-decoration: none; }
.pal-archive-copy a:hover, .pal-hub-links a:hover, .pal-hub-more a:hover { text-decoration: underline; }
.pal-hub-facts { background: #f6f4f0; border-left: 4px solid #c9a96e; border-radius: 8px; padding: 6px 24px 18px; }
.pal-hub-facts ul { margin: 0; padding-left: 18px; }
.pal-hub-facts li { margin: 6px 0; }
.pal-hub-links ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 20px; }
.pal-hub-count { color: #8a8a8a; font-size: .85rem; }
.pal-plan-handover { margin: -4px 0 14px; color: #333; }
.pal-hub-more { margin: 10px 0 0; font-size: .92rem; }
@media (max-width: 640px) {
	.pal-archive-about { margin-top: 32px; padding: 0 16px; }
	.pal-hub-facts { padding: 4px 16px 14px; }
	.pal-hub-links ul { grid-template-columns: 1fr 1fr; }
}
