.residence-card {
    width: 100%;
    position: relative;
}

.residence-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.residence-card-image {
    width: 100%;
    aspect-ratio: 500/450;
    position: relative;
    z-index: 1;
}

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

.residence-card-info {
    position: absolute;
    height: auto;
    min-height: 160px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(70%);
    background: #fff;
    padding: 25px 40px;
    width: 85%;
    z-index: 2;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Default text styles for WYSIWYG content */
.residence-card-info h1,
.residence-card-info h2,
.residence-card-info h3,
.residence-card-info h4,
.residence-card-info h5,
.residence-card-info h6 {
    color: #B51D25;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.residence-card-info h3 {
    font-size: clamp(18px, 2vw, 24px);
    text-transform: uppercase;
}

.residence-card-info p {
    margin: 8px 0;
    line-height: 1.4;
    font-size: clamp(13px, 1.5vw, 16px);
    color: #333;
}

.residence-card-info strong {
    font-weight: 500;
    margin-right: 5px;
}

/* Hover Effects */
.residence-card-image {
    overflow: hidden;
}

.residence-card-image img {
    transition: transform 0.6s ease;
}

.residence-card:hover .residence-card-image img {
    transform: scale(1.05);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .residence-card-info {
        padding: 20px 25px;
    }
}

@media (max-width: 480px) {
    .residence-card-info {
        padding: 15px 20px;
    }
}

.residence-card-title {
    margin: 0 0 15px 0;
    font-weight: 600;
    text-transform: uppercase;
}

.residence-card-content {
    white-space: pre-line; /* Preserves line breaks from textarea */
    text-align: center;
} 