/* NaCSBA Custom Build Plots */

.np-wrap {
    max-width: 1252px;
    margin: 0 auto;
}

/* ---- Filters ---- */
.np-filters {
    margin-bottom: 40px;
}

.np-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.np-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 160px;
}

.np-filter-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #666666;
}

.np-filter-select {
    padding: 10px 12px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    width: 100%;
}

.np-filter-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.np-filter-btn {
    padding: 10px 24px;
    background: #123E4B;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
}

.np-filter-btn:hover {
    background: #0e3039;
}

.np-filter-reset {
    color: #666666;
    font-size: 0.875rem;
    text-decoration: underline;
}

/* ---- Grid ---- */
.np-grid {
    display: grid;
    align-items: start;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 900px) {
    .np-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
    .np-grid { grid-template-columns: 1fr; }
    .np-filter-group { min-width: 100%; }
}

/* ---- Card ---- */
.np-card {
    border: 1px solid #dddddd;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.np-card-link,
.np-card-link:hover,
.np-card-link:visited {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit !important;
}

.np-card-media {
    position: relative;
}

.np-map {
    height: 180px;
    width: 100%;
    display: block;
    pointer-events: none;
}

.np-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #e8edf0;
}

/* ---- Badges ---- */
.np-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 400;
}

.np-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    background: #e8edf0;
    color: #123E4B;
}

.np-badge--new-launch {
    background: #009fe3;
    color: #ffffff;
}

.np-badge--gold-member {
    background: #C9A84C;
    color: #ffffff;
}

/* ---- Card body ---- */
.np-card-body-top {
    padding: 16px 20px 0;
}

.np-card-body-bottom {
    padding: 0 20px;
}

.np-card-link .np-title { color: #123E4B !important; text-decoration: none !important; }
.np-card-link .np-location,
.np-card-link .np-region,
.np-card-link .np-detail-label,
.np-card-link .np-detail-value {
    text-decoration: none !important;
}

.np-title {
    margin: 0 0 4px;
    color: #123E4B;
}

.np-location {
    margin: 0 0 2px;
    color: #444444;
    font-size: 0.9rem;
}

.np-region {
    margin: 0 0 14px;
    color: #999999;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.np-region-tight {
    margin-bottom: 2px;
}

.np-developer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 14px;
    padding: 0 20px;
}

.np-developer {
    color: #666666;
    font-size: 0.85rem;
    font-weight: 400;
}

.np-developer a {
    color: #009fe3;
    text-decoration: none;
}

.np-developer a:hover {
    text-decoration: underline;
}

/* ---- Two-column details grid ---- */
.np-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid #eeeeee;
    margin-bottom: 16px;
}

.np-detail-cell {
    padding: 10px 0;
    border-bottom: 1px solid #eeeeee;
}

.np-detail-cell:nth-child(odd) {
    padding-right: 12px;
    border-right: 1px solid #eeeeee;
}

.np-detail-cell:nth-child(odd):last-child {
    padding-right: 0;
    border-right: none;
}

.np-detail-cell:nth-child(even) {
    padding-left: 12px;
}

.np-detail-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999999;
    margin-bottom: 3px;
}

.np-detail-value {
    display: block;
    font-size: 0.875rem;
    color: #222222;
}

/* ---- Card footer ---- */
.np-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding: 12px 20px 20px;
}

.np-developer-site-link,
.np-developer-row .np-developer-site-link,
.np-developer-site-link:visited {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #009fe3 !important;
    text-decoration: none !important;
}

.np-developer-site-link:hover,
.np-developer-row .np-developer-site-link:hover {
    color: #009fe3 !important;
    text-decoration: underline !important;
}

.np-price strong {
    font-size: 0.9rem;
    color: #123E4B;
}

.np-price-unit {
    font-size: 0.8rem;
    color: #666666;
}

.np-enquire-btn {
    background: none;
    border: none;
    color: #009fe3;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0;
    white-space: nowrap;
    text-decoration: none;
}

.np-enquire-btn:hover {
    text-decoration: underline;
}

/* ---- Modal ---- */
.np-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.np-modal {
    background: #ffffff;
    border-radius: 10px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
}

.np-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666666;
    line-height: 1;
    padding: 0;
}

.np-modal-close:hover {
    color: #123E4B;
}

.np-modal-title {
    margin: 0 0 20px;
    color: #123E4B;
    padding-right: 32px;
}

/* ---- No results ---- */
.np-none {
    color: #666666;
    font-style: italic;
}

/* ---- Single plot page ---- */
.np-single-wrap {
    padding: 40px 0 60px;
}

.np-back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: #123E4B;
    font-size: 0.875rem;
    text-decoration: none;
}

.np-back-link:hover {
    text-decoration: underline;
}

.np-single-media {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 32px;
}

.np-single-image {
    height: 360px;
}

.np-single-placeholder {
    background-color: #e8edf0;
}

.np-single-columns {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: start;
}

.np-single-columns.np-no-gallery {
    grid-template-columns: 1fr;
}

.np-no-gallery .np-single-main {
    max-width: 760px;
}

.np-single-gallery-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.np-gallery-thumb {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    background-color: #e8edf0;
    border-radius: 8px;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.np-gallery-thumb:hover {
    opacity: 0.85;
}

@media (max-width: 780px) {
    .np-single-columns {
        grid-template-columns: 1fr;
    }
}

.np-single-map-section {
    margin-top: 40px;
    border-radius: 10px;
    overflow: hidden;
}

.np-single-map-full {
    height: 320px;
    width: 100%;
}

@media (max-width: 580px) {
    .np-single-map-full {
        height: 240px;
    }
}

.np-single-title {
    margin: 0 0 6px;
    color: #123E4B;
}

.np-single-details-grid {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 24px;
    max-width: 720px;
    margin-top: 20px;
}

.np-single-details-grid .np-detail-cell {
    padding-left: 0;
    padding-right: 0;
    border-right: 1px solid #eeeeee;
}

.np-single-details-grid .np-detail-cell:last-child {
    border-right: none;
}

.np-single-description {
    margin-top: 24px;
    color: #333333;
    line-height: 1.6;
}

.np-single-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eeeeee;
}

.np-single-price strong {
    font-size: 1.3rem;
}

.np-single-enquire-btn {
    background: #1C3D4A;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.np-single-enquire-btn:hover {
    background: #0e3039;
    text-decoration: none;
}

@media (max-width: 580px) {
    .np-single-wrap { padding: 40px 1rem 60px; }
    .np-single-details-grid { grid-template-columns: 1fr 1fr; }
    .np-single-image {
        height: 220px;
    }
}

/* ---- Lightbox ---- */
.np-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.np-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.np-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.np-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
}

.np-lightbox-nav:hover {
    background: rgba(255,255,255,0.3);
}

.np-lightbox-prev {
    left: 24px;
}

.np-lightbox-next {
    right: 24px;
}

@media (max-width: 580px) {
    .np-lightbox-nav { display: none; }
    .np-lightbox-overlay { padding: 20px; }
}
