/* static/css/components/card.css */

.property-card {
    background-color: var(--color-surface);
    border-radius: 12px; /* Smoother premium edges */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0,0,0,0.06); /* Sophisticated subtle border */
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02); /* Smooth multi-layered drop shadow for extreme depth */
}

.property-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); /* Dramatically pops out on hover */
    transform: translateY(-5px);
}

.card-image-wrap {
    position: relative;
    height: 250px;
    width: 100%;
}

.card-link-box {
    display: block;
    height: 100%;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    pointer-events: none;
}

/* Badges */
.badge-top-left {
    position: absolute;
    top: 12px; left: 12px;
    background-color: #EAB308;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.badge-bottom-right {
    position: absolute;
    bottom: 12px; right: 12px;
    background-color: #EAB308;
    color: #fff;
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.badge-bottom-right {
    position: absolute;
    bottom: 12px; right: 12px;
    background-color: #EAB308;
    color: #fff;
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

/* Agent Overlay */
.agent-overlay {
    position: absolute;
    bottom: 12px; left: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.agent-avatar-wrap {
    position: relative;
    width: 40px; height: 40px;
}

.agent-avatar-wrap img {
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}

.verified-badge {
    position: absolute;
    bottom: 0; right: -2px;
    background-color: #EAB308;
    color: #fff;
    font-size: 0.55rem;
    width: 14px; height: 14px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #fff;
    font-weight: bold;
}

.agent-info-text {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.agent-name {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
}

.agent-date {
    color: rgba(255,255,255,0.7);
    font-size: 0.7rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px;
}

.icon-xs {
    font-size: 10px;
}

/* Content Box */
.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.card-title a {
    color: var(--color-text);
    text-decoration: none;
}
.card-title a:hover {
    color: #EAB308;
}

.card-location {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 1.25rem;
}

/* Amenities Array */
.amenities-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}
@media (max-width: 480px) {
    .amenities-compact { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}

.am-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}

.am-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
}
.am-value small {
    font-size: 0.75rem;
    color: var(--color-text-light);
    font-weight: 500;
}
.am-icon {
    font-size: 20px;
    color: #888;
}

/* Material Icon Utilities */
.icon-sm {
    font-size: 16px;
}
.location-icon {
    color: #EAB308;
    margin-right: 2px;
}

/* Footer Section */
.card-footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto; 
}

.for-sale-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 4px;
}

.price-yellow {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #EAB308;
    line-height: 1;
}

.action-icons {
    display: flex;
    gap: 16px;
    color: #bbb;
}

.action-icon {
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s ease, font-variation-settings 0.2s ease;
}
.action-icon:hover {
    color: #EAB308;
    font-variation-settings: 'FILL' 1; /* Automatically fill material icon gracefully */
}
