/* ============================================================
   ALP PROJECT CARD  –  redesigned to match screenshot layout
   ============================================================ */

/* ── Card wrapper ─────────────────────────────────────────── */
.alp-project-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    max-width: 380px;       /* adjust to your grid */
    width: 100%;
}

.alp-project-card:hover {
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.16);
    transform: translateY(-3px);
}

/* ── Image / Slider area ─────────────────────────────────── */
.alp-card-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #e8edf2;
    line-height: 0;
    font-size: 0;
}

.alp-card-image .swiper {
    width: 100%;
    padding-bottom: 0 !important;
}

.alp-card-image .swiper-wrapper {
    padding-bottom: 0 !important;
}

.alp-card-image .swiper-slide {
    width: 100%;
    line-height: 0;
    font-size: 0;
}

.alp-card-image .swiper-slide a {
    display: block;
    width: 100%;
    line-height: 0;
}

/* pagination hidden - arrows used for navigation instead */
.alp-card-image .swiper-pagination,
.alp-swiper-pagination-wrap {
    display: none !important;
}

/* Override Swiper JS inline padding-bottom on container */
.alp-project-card .alp-card-image .swiper.alp-slider {
    padding-bottom: 0 !important;
}

.alp-card-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
}

/* Handover year badge ─────────────────────────────────────── */
.alp-badge-handover {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
    background: #1e3a5f;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 6px;
    line-height: 1.4;
    pointer-events: none;
}

/* Swiper nav arrows ──────────────────────────────────────── */
.alp-card-image .swiper-button-next,
.alp-card-image .swiper-button-prev {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.35);
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.alp-card-image .swiper-button-next::after,
.alp-card-image .swiper-button-prev::after {
    font-size: 13px;
    font-weight: 700;
}

/* Swiper pagination dots ─────────────────────────────────── */
.alp-card-image .swiper-pagination-bullet-active {
    background: #2b6cb0;
}

/* ── Card body ───────────────────────────────────────────── */
.alp-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* ── Title row: name + developer logo ────────────────────── */
.alp-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.alp-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    color: #1a3a5c;
}

.alp-card-title a {
    color: inherit;
    text-decoration: none;
}

.alp-card-title a:hover {
    color: #2b6cb0;
}

/* Developer / category logo */
.alp-dev-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.alp-dev-logo img {
    max-height: 28px;
    max-width: 90px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ── Meta fields ─────────────────────────────────────────── */
.alp-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.alp-meta-row {
    margin: 0;
    font-size: 14px;
    color: #374151;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.alp-meta-row strong {
    color: #1a3a5c;
    font-weight: 700;
    white-space: nowrap;
}

.alp-meta-value {
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Starting price – highlighted value */
.alp-price-value {
    color: #1a56db;
    font-weight: 700;
    font-size: 15px;
}

.alp-meta-value .fa-location-dot {
    color: #e53e3e;
    font-size: 13px;
}

.alp-meta-value .fa-bed {
    color: #2b6cb0;
    font-size: 13px;
}

/* ── Short description ───────────────────────────────────── */
.alp-card-desc {
    margin: 0;
    font-size: 13.5px;
    color: #6b7280;
    line-height: 1.6;
    /* clamp to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Action buttons ──────────────────────────────────────── */
.alp-card-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;   /* push to bottom of card */
    padding-top: 8px;
}

.alp-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.alp-btn:hover {
    transform: translateY(-1px);
}

/* "View More" button */
.alp-btn-view {
    background: #2d4a6e;
    color: #ffffff;
}

.alp-btn-view:hover {
    background: #1e3a5f;
    color: #ffffff;
}

/* "Contact" button */
.alp-btn-contact {
    background: #2d4a6e;
    color: #ffffff;
}

.alp-btn-contact:hover {
    background: #1e3a5f;
    color: #ffffff;
}

/* ── Responsive tweaks ───────────────────────────────────── */
@media (max-width: 480px) {
    .alp-card-title {
        font-size: 17px;
    }

    .alp-btn {
        font-size: 13px;
        padding: 10px 8px;
    }
}
