/**
 * Overview Cards - Property Card Layout
 * Matches the property card design from homepage
 */

/* Grid layout - 3 cards in a row on desktop */
.overview-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    margin-top: 2rem;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Property card styling for overview cards */
.overview-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #495057; /* Dark gray like property cards */
    border: none;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
}

.overview-card:hover {
    box-shadow: none;
    transform: none;
}

/* Hide the icon */
.overview-card .overview-icon {
    display: none !important;
}

/* Create image area using ::before pseudo-element */
.overview-card::before {
    content: '';
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    flex-shrink: 0;
    position: relative;
}

/* Transform h3 into status badge at bottom of image */
.overview-card h3 {
    position: relative;
    left: 0;
    right: 0;
    height: auto;
    padding: 0.5rem 0;
    margin: 0;
    color: #ffffff !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    text-align: center;
}

/* Color coding for each card title based on order */
.overview-card:nth-child(1) h3 {
    /* background-color: var(--status-build-to-suit) !important; */ /* Investor - Gray like build-to-suit */
}

.overview-card:nth-child(2) h3 {
    /* background-color: var(--status-construction) !important; */ /* Developer - Orange like under construction */
}

.overview-card:nth-child(3) h3 {
    /* background-color: var(--status-available) !important; */ /* Engineering - Blue-gray like available */
}

.overview-card:nth-child(4) h3 {
    background-color: #909090 !important; /* Production - Gray */
    color: #ffffff !important;
}

.overview-card:nth-child(5) h3 {
    /* background-color: var(--brand-mid-blue-gray) !important; */ /* General Contractor - Custom blue-gray */
}

/* Content area - dark gray background with white text, centered */
.overview-card p {
    padding: 1.5rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
    background-color: #495057;
    flex-grow: 1;
    text-align: center !important;
}

/* View details overlay removed per user request */
.overview-card::after {
    display: none;
}

/* NEW STRUCTURE SUPPORT - If using new HTML with image area */
.overview-card-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #e5e7eb;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.overview-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.overview-card-image-placeholder i {
    font-size: 3rem;
    opacity: 0.4;
}

.overview-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25px;
    padding: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Override inline styles for card 4 */
.overview-card:nth-child(4) .overview-card-title {
    background-color: #909090 !important;
}

.overview-card-title h3 {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    padding: 0 !important;
    height: auto !important;
}

.overview-card-content {
    position: relative;
    background-color: #495057;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.overview-card-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    text-align: center !important;
}

/* Hide ::before when new structure is used */
.overview-card:has(.overview-card-image)::before {
    display: none;
}

/* View details overlay disabled for new structure */

/* Responsive adjustments */
@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
    }

    .overview-card p,
    .overview-card-content {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        padding: 0 20px !important;
    }

    .overview-card h3,
    .overview-card-title h3 {
        font-size: 1rem !important;
    }

    .overview-card p {
        padding: 0;
    }

    .overview-card-content {
        padding: 0;
    }

    .overview-card p,
    .overview-card-content p {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        padding: 0 !important;
    }
}

@media (max-width: 480px) {
    .overview-grid {
        grid-template-columns: 1fr !important;
        padding: 0 20px !important;
    }

    .overview-card h3,
    .overview-card-title h3 {
        font-size: 1rem !important;
    }

    .overview-card p {
        padding: 0;
    }

    .overview-card-content {
        padding: 0;
    }

    .overview-card p,
    .overview-card-content p {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        padding: 0 !important;
    }
}
