/* ===================================================================
   FEATURED PROPERTIES — CARD GRID + ENLARGED MODAL VIEW
   File: featured-properties.css

   All selectors are namespaced with an "fp-" (Featured Property)
   prefix so they cannot collide with existing rules in style.css,
   categories.css, property-popup.css or contact-drawer.css.

   Note: the modal SHELL (#propertyModal, .close-btn, overlay/backdrop,
   open/close animation) already lives in property-popup.css and is
   left untouched. The classes below only style the rich content that
   gets injected INSIDE #modalContent.
=================================================================== */

.fp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 32px;
}

.fp-no-results {
    display: none;
    text-align: center;
    padding: 48px 20px;
    color: #6b7280;
    font-size: 0.95rem;
}

/* =========================================
   CARD
========================================= */
.fp-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 18px rgba(15, 30, 45, 0.08);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(15, 30, 45, 0.16);
}

.fp-card-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #e9e6df;
}

.fp-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.fp-card:hover .fp-card-img {
    transform: scale(1.07);
}

.fp-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #ffffff;
    z-index: 2;
}

.fp-badge-sale { background: #c0392b; }
.fp-badge-rent { background: #1a5276; }

/* hover arrows to flip through a card's photos without opening the modal */
.fp-img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 30, 45, 0.55);
    color: #ffffff;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    z-index: 3;
}

.fp-card-img-wrap:hover .fp-img-nav {
    opacity: 1;
}

.fp-img-nav:hover {
    background: var(--gold, #b89a5a);
}

.fp-img-prev { left: 10px; }
.fp-img-next { right: 10px; }

.fp-img-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 3;
}

.fp-img-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    transition: background 0.2s, transform 0.2s;
}

.fp-img-dots span.active {
    background: var(--gold, #b89a5a);
    transform: scale(1.25);
}

.fp-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fp-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy, #1a2a3a); /* if it is the color of opened card display var(--navy, #1a2a3a);        */
    line-height: 1.4;
    margin-bottom: 6px;
}

.fp-card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 12px;
}

.fp-card-location svg {
    flex-shrink: 0;
    color: var(--gold, #b89a5a);
}

.fp-card-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold, #b89a5a);
    margin-bottom: 14px;
}

.fp-card-stats {
    display: flex;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid #eee9e0;
    margin-top: auto;
    flex-wrap: wrap;
}

.fp-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #555555;
}

.fp-stat svg {
    color: var(--gold, #b89a5a);
    flex-shrink: 0;
}

/* =========================================
   ENLARGED MODAL VIEW (content injected into #modalContent)
========================================= */
.fp-modal-gallery {
    position: relative;
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    background: #ffffff;  /* #111111; */
}

.fp-modal-main-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.fp-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 30, 45, 0.55);
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.fp-modal-nav:hover {
    background: var(--gold, #b89a5a);
}

.fp-modal-prev { left: 14px; }
.fp-modal-next { right: 14px; }

.fp-modal-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    overflow-x: auto;
    background: #f4f1ea;
}

.fp-modal-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: opacity 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.fp-modal-thumb:hover {
    opacity: 0.9;
}

.fp-modal-thumb.active {
    opacity: 1;
    border-color: var(--gold, #b89a5a);
}

.fp-modal-details {
    padding: 24px 28px 28px;
}

.fp-modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: gold;  /* var(--navy, #1a2a3a); */
    margin-bottom: 8px;
}

.fp-modal-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: gold; /*  #6b7280; */
    margin-bottom: 14px;
}

.fp-modal-location svg {
    color: var(--gold, #b89a5a);
    flex-shrink: 0;
}

.fp-modal-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: gold; /* var(--gold, #b89a5a); */
    margin-bottom: 20px;
}

.fp-modal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid #eee9e0;
    border-bottom: 1px solid #eee9e0;
    margin-bottom: 22px;
}

.fp-modal-stat {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.88rem;
    color: white; /* var(--navy, #1a2a3a); */
}

.fp-modal-stat svg {
    color: var(--gold, #b89a5a);
    flex-shrink: 0;
    background: rgba(184, 154, 90, 0.12);
    border-radius: 50%;
    padding: 6px;
    box-sizing: content-box;
}

.fp-modal-cta {
    display: inline-block;
    background: var(--navy, #1a2a3a);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}

.fp-modal-cta:hover {
    background: var(--gold, #b89a5a);
    color: var(--navy, #1a2a3a);
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .fp-modal-details {
        padding: 18px 18px 22px;
    }
    .fp-modal-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .fp-modal-gallery,
    .fp-modal-main-img {
        max-height: 280px;
    }
}
