/* ===================================
   FEATURED CONDOS GRID STYLES
   All CSS rules used by featured-condos-grid section
   Loaded conditionally for front-page.php
   Prefix: fcg- (featured-condos-grid)
   =================================== */

/* ===================================
   SECTION STRUCTURE
   =================================== */

/* Property Section Container */
.fcg-section {
    padding: 10px 0;
    background: #fff;
}

/* Section Header */
.fcg-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.fcg-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgb(52 152 219);
    margin: 0 0 15px;
    line-height: 1.3;
    text-align: center;
}

.fcg-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* ===================================
   GRID LAYOUT
   =================================== */

.fcg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 56px;
    margin: 0 auto;
}

/* ===================================
   MODERN PROPERTY CARD
   =================================== */

.fcg-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgb(0 0 0 / 4%), 0 1px 6px rgb(0 0 0 / 2%);
    transition: all 0.25s ease-out;
    position: relative;
    border: 1px solid #f1f3f4;
    min-width: 0;
    width: 100%;
}

.fcg-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(0 0 0 / 6%), 0 2px 6px rgb(0 0 0 / 4%);
    border-color: #e8eaed;
}

.fcg-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.fcg-card-link:hover,
.fcg-card-link:focus {
    text-decoration: none;
    color: inherit;
}

/* ===================================
   CARD IMAGE SECTION
   =================================== */

.fcg-card-image {
    position: relative;
    overflow: hidden;
    background: #f9fafb;
}

.fcg-image-wrapper {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.fcg-property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-out;
}

.fcg-card:hover .fcg-property-image {
    transform: scale(1.02);
}

/* Image Placeholder */
.fcg-image-placeholder {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-text);
}

.fcg-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.fcg-placeholder-icon {
    opacity: 0.7;
}

.fcg-placeholder-text {
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===================================
   STATUS BADGES
   =================================== */

.fcg-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.fcg-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    border: 1px solid rgb(255 255 255 / 20%);
}

.fcg-badge-type {
    background: rgb(255 255 255 / 95%);
    color: #374151;
    border-color: rgb(0 0 0 / 10%);
}

/* ===================================
   CARD CONTENT SECTION
   =================================== */

.fcg-card-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Card Title Text */
.fcg-title-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: #6c757d;
    line-height: 1.4;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* Address/Location */
.fcg-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1;
    margin-bottom:8px;
}

.fcg-address-icon {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Features Section */
.fcg-features {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: space-between;
}

.fcg-feature-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 2px;
    background: #fafbfc;
    border: 1px solid #e8eaed;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #5f6368;
    transition: all 0.2s ease;
    flex: 1;
    font-weight: bold;
}

.fcg-feature-pill:hover {
    background: #f1f3f4;
    border-color: #dadce0;
    color: #3c4043;
}

.fcg-feature-pill svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Warning pill style (middle pill) */
.fcg-feature-pill-warning {
    background: #F4A261;
    color: white;
    border-color: #F4A261;
}

.fcg-feature-pill-warning:hover {
    background: #f57c00;
    border-color: #ef6c00;
    color: white;
}

/* ===================================
   ACTIVE PROPERTY MODIFIER
   =================================== */

.fcg-active {
    background: #fff;
}

.fcg-active:hover {
    background: #fafafa;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (width <= 1024px) {
    .fcg-title {
        font-size: 2.2rem;
    }

    .fcg-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    .fcg-card-content {
        padding: 18px;
        gap: 14px;
    }
}

@media (width <= 768px) {
    .fcg-section {
        /* padding: 60px 0; */
    }

    .fcg-title {
        font-size: 1.9rem;
    }

    .fcg-subtitle {
        font-size: 1rem;
    }

    .fcg-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .fcg-card {
        border-radius: 10px;
    }

    .fcg-card-content {
        padding: 16px;
        gap: 12px;
    }

    .fcg-title-text {
        font-size: 1rem;
    }

    .fcg-features {
        gap: 6px;
    }

    .fcg-feature-pill {
        padding: 5px 10px;
        font-size: 0.8125rem;
    }

    .fcg-badges {
        top: 10px;
        left: 10px;
        gap: 6px;
    }

    .fcg-badge {
        padding: 3px 10px;
        font-size: 0.6875rem;
    }
}

@media (width <= 480px) {
    .fcg-title {
        font-size: 1.6rem;
    }

    .fcg-header {
        margin-bottom: 40px;
    }

    .fcg-card-content {
        padding: 14px;
        gap: 10px;
    }

    .fcg-features {
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 100%;
    }

    .fcg-feature-pill {
        justify-content: center;
        width: 100%;
    }

    .fcg-title-text {
        font-size: 0.9375rem;
        -webkit-line-clamp: 1;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

.fcg-card:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.fcg-card-link:focus {
    outline: none;
}

/* ===================================
   HIGH CONTRAST SUPPORT
   =================================== */

@media (prefers-contrast: high) {
    .fcg-card {
        border: 2px solid;
    }

    .fcg-badge,
    .fcg-feature-pill {
        border: 2px solid;
    }
}

/* ===================================
   LOAD MORE BUTTON
   =================================== */

.fcg-load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0 20px;
    margin-top: 30px;
}

.fcg-load-more-btn {
    padding: 14px 32px;
    background: rgb(52 152 219);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgb(52 152 219 / 20%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fcg-load-more-btn:hover {
    background: rgb(41 128 185);
    box-shadow: 0 4px 12px rgb(52 152 219 / 30%);
    transform: translateY(-2px);
}

.fcg-load-more-btn:active {
    transform: translateY(0);
}

.fcg-load-more-btn:disabled,
.fcg-load-more-btn.fcg-loading {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.fcg-remaining-count {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
}

.fcg-spinner {
    animation: fcg-spin 1s linear infinite;
}

@keyframes fcg-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   REDUCED MOTION SUPPORT
   =================================== */

@media (prefers-reduced-motion: reduce) {
    .fcg-card,
    .fcg-property-image,
    .fcg-feature-pill {
        transition: none;
    }

    .fcg-card:hover {
        transform: none;
    }

    .fcg-card:hover .fcg-property-image {
        transform: none;
    }

    .fcg-load-more-btn {
        transition: none;
    }

    .fcg-load-more-btn:hover {
        transform: none;
    }

    .fcg-spinner {
        animation: none;
    }
}
