.card-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

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

.gallery-card {
    position: relative;
    overflow: hidden;
}

.gallery-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgb(0 0 0 / 80%) 0%, rgb(0 0 0 / 0%) 100%);
    z-index: 1;
    pointer-events: none;
}

.card-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card-type,
.card-title,
.card-address,
.card-stats,
.card-description,
.card-button {
    opacity: 0;
}

.card-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--color-accent);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.card-address {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.card-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.card-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-description {
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.card-button {
    display: inline-block;
    padding: 8px 20px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.card-button:hover {
    background: var(--color-accent-hover);
}

/* Full description в карточке */
.full-description {
    color: var(--color-text-secondary);
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 16px;
    min-height: 60px;
}

.full-description h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 10px;
}

.full-description p {
    margin: 0;
}

.card-actions {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

.card-actions button {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.card-actions button:hover {
    color: #fff;
}

.card-actions .like-btn.liked {
    color: var(--color-heart);
}

/* Typewriter effect */
.typewriter-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--color-accent);
    animation: blink-caret 0.75s step-end infinite;
    display: inline-block;
    max-width: 0;
    animation: typewriter 2s steps(40, end) forwards, blink-caret 0.75s step-end infinite;
}

.typewriter-text.complete {
    border-right-color: transparent;
    animation: blink-caret 0s step-end infinite;
}

@keyframes typewriter {
    from {
        max-width: 0;
    }
    to {
        max-width: 100%;
    }
}

/* Для многострочного текста */
.typewriter-multiline {
    opacity: 0;
    animation: fadeInTypewriter 0.5s ease forwards;
}

@keyframes fadeInTypewriter {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}