.smartpm-pins-wrap {
    margin: 24px 0;
}
/* Trim oversized theme banners on pages that host the shortcode (roofrite + similar). */
body:has(.smartpm-pins-wrap) .banner-area.page-banner {
    padding: 40px 0 24px !important;
    margin-top: 60px !important;
    margin-bottom: 16px !important;
    min-height: 0 !important;
    height: auto !important;
}
body:has(.smartpm-pins-wrap) .banner-area.page-banner .banner-title {
    margin-bottom: 8px;
}
body:has(.smartpm-pins-wrap) .banner-area.page-banner .breadcrumb-container {
    margin-top: 12px;
}
body:has(.smartpm-pins-wrap) #primary.content-area,
body:has(.smartpm-pins-wrap) .page-content-area {
    padding-top: 0;
}

.smartpm-pins-empty {
    color: #666;
    font-style: italic;
}
.smartpm-pins-map {
    width: 100%;
    height: 420px;
    margin-bottom: 24px;
    border-radius: 6px;
    background: #eef1f5;
}
.smartpm-pins-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.smartpm-pin-card {
    background: #fff;
    border: 1px solid #d8dce1;
    border-radius: 8px;
    padding: 20px 24px;
}
.smartpm-pin-header {
    margin-bottom: 12px;
}
.smartpm-pin-title {
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}
.smartpm-pin-company {
    font-weight: 600;
}
.smartpm-pin-divider {
    color: #8a929c;
    font-weight: 400;
    margin: 0 2px;
}
.smartpm-pin-date {
    font-weight: 500;
    color: #1a1a1a;
}
.smartpm-pin-location {
    margin: 0;
    color: #5a6470;
    font-size: 0.92rem;
}
.smartpm-pin-note {
    margin: 0 0 16px;
    color: #2c333a;
    line-height: 1.55;
    font-size: 0.97rem;
}
.smartpm-pin-note p {
    margin: 0 0 8px;
}
.smartpm-pin-note p:last-child {
    margin: 0;
}
.smartpm-pin-meta {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    font-size: 0.88rem;
    color: #444;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.smartpm-pin-meta li { margin: 0; }
.smartpm-pin-meta strong {
    color: #1a1a1a;
    margin-right: 4px;
    font-weight: 600;
}
.smartpm-pin-card-map {
    width: 100%;
    height: 260px;
    margin-bottom: 16px;
    border-radius: 6px;
    background: #eef1f5;
}
.smartpm-pin-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}
.smartpm-pin-photo {
    flex: 0 0 auto;
    width: calc((100% - 24px) / 3);
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #1a1a1a;
    cursor: zoom-in;
}
.smartpm-pin-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}
.smartpm-pin-photo:hover img {
    transform: scale(1.04);
}

/* Lightbox overlay (injected by JS) */
.smartpm-pin-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}
.smartpm-pin-lightbox.is-open {
    display: flex;
}
.smartpm-pin-lightbox-figure {
    position: relative;
    margin: 0;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.smartpm-pin-lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.smartpm-pin-lightbox-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    color: #1a1a1a;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: background 0.15s;
}
.smartpm-pin-lightbox-btn:hover {
    background: #fff;
}
.smartpm-pin-lightbox-close {
    top: 18px;
    right: 18px;
}
.smartpm-pin-lightbox-prev {
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
}
.smartpm-pin-lightbox-next {
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
}
.smartpm-pin-lightbox-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 12px;
    border-radius: 12px;
}
@media (max-width: 600px) {
    .smartpm-pin-lightbox-prev { left: 8px; }
    .smartpm-pin-lightbox-next { right: 8px; }
    .smartpm-pin-lightbox-btn { width: 38px; height: 38px; }
}
@media (max-width: 700px) {
    .smartpm-pin-photo { width: calc((100% - 12px) / 2); }
    .smartpm-pin-card-map { height: 220px; }
    .smartpm-pin-card { padding: 16px 18px; }
}
@media (max-width: 420px) {
    .smartpm-pin-photo { width: 100%; }
}
