/* DESKTOP STYLES */
.projects-desktop-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.projects-icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.projects-icon-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.projects-explore-button:hover {
    transform: scale(1.05);
}

/* MOBILE & TABLET STYLES */
.projects-mobile-card-wrapper {
    background: linear-gradient(
        180deg,
        rgba(254, 243, 199, 0.95),
        rgba(253, 230, 138, 0.95)
    );
    /* mh-cream to a slightly darker cream */
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    overflow: hidden;
    flex-direction: column;
    height: 100%;
    margin: 0.75rem;
}

.lg\:hidden .projects-mobile-card-wrapper {
    display: flex;
    /* Apply flex only when parent is not hidden */
}

.projects-mobile-card-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.projects-mobile-card-image {
    height: 14rem;
    width: 100%;
    object-fit: cover;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.projects-mobile-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    background: linear-gradient(to right, #2a7d7b, #1a4b5f);
    /* mh-teal to mh-deep-teal */
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.projects-mobile-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 1rem;
}

.projects-mobile-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a4b5f;
    /* mh-deep-teal */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.projects-mobile-card-title a:hover {
    color: #d97706;
    /* mh-amber */
    transition: color 0.2s ease;
}

.projects-mobile-card-location {
    font-size: 0.875rem;
    color: #2a7d7b;
    /* mh-teal */
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.25rem;
}

.projects-mobile-card-specs-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 0.75rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid #fef3c7;
    /* mh-cream */
    border-bottom: 1px solid #fef3c7;
    /* mh-cream */
}

.projects-spec-item-icon {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a4b5f;
    /* mh-deep-teal */
}

.projects-spec-item-icon .projects-icon-sm {
    margin-right: 0.5rem;
    height: 0.875rem;
    width: 0.875rem;
    color: #87a96b;
    /* mh-sage */
}

.projects-mobile-card-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 1rem;
}

.projects-mobile-card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #d97706;
    /* mh-amber */
}

.projects-mobile-card-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.projects-mobile-icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.projects-mobile-icon-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.projects-mobile-icon-button.bg-mh-teal {
    background: linear-gradient(to right, #2a7d7b, #1a4b5f);
    /* mh-teal to mh-deep-teal */
}

.projects-mobile-icon-button.bg-mh-olive {
    background: linear-gradient(to right, #87a96b, #6b8e23);
    /* mh-sage to mh-olive */
}

.projects-mobile-details-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    background-color: #fef3c7;
    /* mh-cream */
    color: #1a4b5f;
    /* mh-deep-teal */
    transition: all 0.2s ease;
}

.projects-mobile-details-button:hover {
    background-color: #fde68a;
    /* amber-200, for a gold tint */
    transform: scale(1.05);
}

.projects-icon-sm {
    height: 0.875rem;
    width: 0.875rem;
    color: #87a96b;
    /* mh-sage */
}

/* PULSE ANIMATION FOR BUTTONS */
@keyframes pulse-slow {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}
