/* ═══════════════════════════════════════════════════════════
   JAPS PROPERTIES v3 — Matches "Our Projects" image style
   Brand: #0d1e3d (navy) · #f0a500 (gold) · #2e8b57 (green)
═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

/* ── SECTION WRAPPER ──────────────────────────────────────── */
.japs-prop-section {
    padding: 56px 48px;
    background: #ffffff;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── SECTION HEADER ───────────────────────────────────────── */
.japs-prop-header {
    text-align: center;
    margin-bottom: 32px;
}
.japs-prop-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0d1e3d;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 10px;
}
.japs-prop-underline {
    width: 44px;
    height: 3px;
    background: #2e8b57;
    margin: 0 auto 0;
    border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════
   SLIDER — "Our Projects" panel layout
   Left info panel + right scrolling image strip
═══════════════════════════════════════════════════════════ */
.japs-slider-outer {
    display: flex;
    gap: 0;
    background: #f4f6f9;
    border-radius: 12px;
    overflow: hidden;
    min-height: 220px;
}

/* ── LEFT INFO PANEL ──────────────────────────────────────── */
.japs-slider-info {
    flex: 0 0 220px;
    background: #ffffff;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    border-right: 1px solid #e8ecf2;
}
.japs-slider-info .japs-info-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #2e8b57;
    margin: 0;
}
.japs-slider-info h3 {
    font-size: 17px;
    font-weight: 800;
    color: #0d1e3d;
    margin: 0;
    line-height: 1.3;
}
.japs-slider-info p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}
.japs-slider-info-btn {
    display: inline-block;
    background: #0d1e3d;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 5px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    text-transform: uppercase;
    align-self: flex-start;
    white-space: nowrap;
}
.japs-slider-info-btn:hover { background: #f0a500; color: #fff; }

/* ── RIGHT VIEWPORT ───────────────────────────────────────── */
.japs-slider-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.japs-slider-track {
    display: flex;
    gap: 0;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    height: 100%;
}

/* ── SLIDER CARDS ─────────────────────────────────────────── */
.japs-slider-track .japs-slide-card {
    flex-shrink: 0;
    width: calc((100%) / var(--cards-visible, 4));
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-left: 1px solid #e8ecf2;
}
.japs-slider-track .japs-slide-card:first-child { border-left: none; }

.japs-slide-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    min-height: 200px;
}
.japs-slide-card:hover img { transform: scale(1.04); }

/* Green caption bar at bottom — matching image exactly */
.japs-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2e8b57;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    padding: 6px 8px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hover overlay */
.japs-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,30,61,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    padding-bottom: 28px;
}
.japs-slide-card:hover .japs-slide-overlay { opacity: 1; }
.japs-slide-overlay span {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    background: rgba(240,165,0,0.92);
    padding: 5px 13px;
    border-radius: 20px;
}

/* Status badge */
.japs-slide-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 9px;
    border-radius: 100px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    line-height: 1;
    z-index: 2;
}
.japs-slide-badge.forsale { background: #f0a500; color: #fff; }
.japs-slide-badge.forrent { background: #2e8b57; color: #fff; }
.japs-slide-badge.sold    { background: #94a3b8; color: #fff; }
.japs-slide-badge.rented  { background: #64748b; color: #fff; }

/* ── SLIDER DOTS ──────────────────────────────────────────── */
.japs-slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}
.japs-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}
.japs-dot.active {
    background: #0d1e3d;
    width: 22px;
    border-radius: 3px;
}

/* ── VIEW ALL LINK ──────────────────────────────────────── */
.japs-prop-cta {
    text-align: center;
    margin-top: 28px;
}
.japs-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0d1e3d;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid #f0a500;
    padding-bottom: 2px;
    transition: color 0.2s;
    letter-spacing: 0.3px;
}
.japs-view-all-btn:hover { color: #f0a500; }

/* ═══════════════════════════════════════════════════════════
   GRID SECTION
═══════════════════════════════════════════════════════════ */
.japs-grid-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

/* ── FILTER TABS ──────────────────────────────────────────── */
.japs-prop-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.japs-tab {
    padding: 7px 20px;
    border: 1.5px solid #d1d5db;
    background: #fff;
    color: #6b7280;
    font-weight: 600;
    font-size: 12px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    line-height: 1;
}
.japs-tab:hover { border-color: #0d1e3d; color: #0d1e3d; }
.japs-tab.active {
    background: #0d1e3d;
    border-color: #0d1e3d;
    color: #f0a500;
}

/* ── SEARCH BOX ───────────────────────────────────────────── */
.japs-search-wrap {
    position: relative;
    flex: 0 0 240px;
}
.japs-search-wrap svg {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}
.japs-search-input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    border: 1.5px solid #d1d5db;
    border-radius: 100px;
    font-size: 12px;
    color: #0d1e3d;
    outline: none;
    transition: border 0.2s;
    font-family: inherit;
}
.japs-search-input::placeholder { color: #9ca3af; }
.japs-search-input:focus { border-color: #0d1e3d; }

/* ── GRID LAYOUT ──────────────────────────────────────────── */
.japs-prop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ── NO RESULTS ───────────────────────────────────────────── */
.japs-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    color: #9ca3af;
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════
   GRID PROPERTY CARD — images pop, bold look
═══════════════════════════════════════════════════════════ */
.japs-prop-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.japs-prop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(13,30,61,0.14);
}
.japs-prop-card.japs-hidden { display: none !important; }

/* ── CARD IMAGE ───────────────────────────────────────────── */
.japs-card-img-wrap {
    position: relative;
    height: 210px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}
.japs-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}
.japs-card-img-wrap:hover .japs-card-img { transform: scale(1.06); }

/* Overlay on hover */
.japs-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,30,61,0.55) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.japs-card-img-wrap:hover .japs-img-overlay { opacity: 1; }
.japs-img-overlay span {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    background: rgba(240,165,0,0.92);
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* Status badge */
.japs-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    line-height: 1;
    z-index: 2;
}
.japs-status-badge.forsale { background: #f0a500; color: #fff; }
.japs-status-badge.forrent { background: #2e8b57; color: #fff; }
.japs-status-badge.sold    { background: #94a3b8; color: #fff; }
.japs-status-badge.rented  { background: #64748b; color: #fff; }

/* Gallery count pill */
.japs-gallery-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.52);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 100px;
    backdrop-filter: blur(4px);
    line-height: 1.4;
}

/* ── CARD BODY ────────────────────────────────────────────── */
.japs-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.japs-card-type {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2e8b57;
    margin-bottom: 4px;
    display: block;
}
.japs-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #0d1e3d;
    margin: 0 0 5px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.japs-card-location {
    font-size: 12px;
    color: #9ca3af;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 3px;
}
.japs-card-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Seller / listing source line */
.japs-card-seller {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.japs-card-seller a {
    color: #2e8b57;
    font-weight: 700;
    text-decoration: none;
}
.japs-card-seller a:hover { text-decoration: underline; }

.japs-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    gap: 8px;
}
.japs-card-price {
    font-size: 14px;
    font-weight: 800;
    color: #0d1e3d;
    line-height: 1;
}
.japs-card-btn {
    background: #0d1e3d;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.japs-card-btn:hover { background: #f0a500; color: #fff; }

/* ═══════════════════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════════════════ */
.japs-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5,10,20,0.95);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}
.japs-lightbox.open { display: flex; }
.japs-lb-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}
.japs-lb-img {
    max-width: 88vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    user-select: none;
}
.japs-lb-close {
    position: fixed;
    top: 18px; right: 22px;
    background: rgba(255,255,255,0.1);
    border: none; color: #fff;
    width: 36px; height: 36px;
    border-radius: 50%; font-size: 18px;
    cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    transition: background 0.2s; z-index: 2;
}
.japs-lb-close:hover { background: rgba(240,165,0,0.8); }
.japs-lb-nav {
    display: flex; align-items: center;
    gap: 20px; margin-top: 16px;
}
.japs-lb-btn {
    background: rgba(255,255,255,0.1);
    border: none; color: #fff;
    width: 38px; height: 38px;
    border-radius: 50%; font-size: 16px;
    cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    transition: background 0.2s;
}
.japs-lb-btn:hover { background: #f0a500; }
.japs-lb-counter {
    color: rgba(255,255,255,0.7);
    font-size: 13px; min-width: 50px;
    text-align: center;
}
.japs-lb-thumbs {
    display: flex; gap: 8px;
    margin-top: 14px; max-width: 88vw;
    overflow-x: auto; padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.japs-lb-thumb {
    width: 52px; height: 38px;
    object-fit: cover; border-radius: 4px;
    cursor: pointer; opacity: 0.5;
    transition: opacity 0.2s, outline 0.2s;
    flex-shrink: 0; outline: 2px solid transparent;
}
.japs-lb-thumb.active { opacity: 1; outline-color: #f0a500; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .japs-prop-section { padding: 48px 24px; }
}
@media (max-width: 900px) {
    .japs-slider-outer { flex-direction: column; }
    .japs-slider-info { flex: none; border-right: none; border-bottom: 1px solid #e8ecf2; padding: 20px 24px; }
    .japs-slider-track .japs-slide-card { width: calc(100% / var(--cards-visible, 2)); }
}
@media (max-width: 768px) {
    .japs-prop-section { padding: 40px 16px; }
    .japs-prop-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .japs-prop-header h2 { font-size: 20px; }
    .japs-grid-controls { flex-direction: column; align-items: flex-start; }
    .japs-search-wrap { flex: none; width: 100%; }
}
@media (max-width: 480px) {
    .japs-prop-grid { grid-template-columns: 1fr; }
    .japs-card-img-wrap { height: 180px; }
    .japs-slider-track .japs-slide-card { width: calc(100% / var(--cards-visible, 1)); }
}