/* Horizontal Structure Card Styles */
.structure-card-horizontal {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .structure-card-horizontal {
        flex-direction: row;
        height: auto;
        min-height: 220px;
    }
}

.structure-card-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Clickable container linkage */
.structure-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media (min-width: 768px) {
    .structure-card-link {
        flex-direction: row;
    }
}

/* Image Section */
.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

@media (min-width: 768px) {
    .card-image-wrapper {
        width: 320px;
        height: auto;
        min-height: 220px;
    }
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.structure-card-horizontal:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-badge-featured {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #DAA520;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.card-rating-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #2a2a2a;
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

/* Content Section */
.card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
    line-height: 1.3;
}

.card-location {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-price-container {
    text-align: right;
    flex-shrink: 0;
}

.price-tag {
    font-size: 1.25rem;
    font-weight: 700;
    color: #28a745;
}

.price-period {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
}

.card-description {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer / Chips */
.card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
    margin-top: auto;
}

.accepted-animals {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #6c757d;
}

.animal-icons {
    display: flex;
    gap: 4px;
}

.animal-icon {
    width: 24px;
    height: 24px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #495057;
    font-size: 0.75rem;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .card-header-row {
        flex-direction: column;
        gap: 8px;
    }

    .card-price-container {
        text-align: left;
        margin-top: 4px;
    }

    .price-tag {
        font-size: 1.1rem;
    }
}