/*!
 * Read More/Less styles
 */

.read-more-container {
    position: relative;
}

.read-more-preview,
.read-more-full {
    transition: opacity 0.3s ease-in-out;
}

.read-more-toggle {
    display: inline-block;
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 0;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-top: 8px;
}

.read-more-toggle:hover {
    color: #0056b3;
    text-decoration: underline;
}

.read-more-toggle:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.read-more-toggle i {
    margin-right: 4px;
    font-size: 12px;
}

.description-text {
    line-height: 1.6;
    color: #333;
    margin-bottom: 0;
}

.description-text p {
    margin-bottom: 1em;
}

.description-text p:last-child {
    margin-bottom: 0;
}

/* For property listing cards */
.item .read-more-container {
    margin-top: 10px;
}

.item .read-more-toggle {
    font-size: 13px;
}

.item .description-text {
    font-size: 14px;
    color: #666;
}

/* For detail pages */
.property-detail .read-more-container {
    margin: 15px 0;
}

.property-detail .description-text {
    font-size: 16px;
    line-height: 1.7;
}

/* Loading state */
.read-more-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation for smooth transition */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.read-more-full[style*="block"] {
    animation: fadeIn 0.3s ease-in-out;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .read-more-toggle {
        font-size: 13px;
    }
    
    .description-text {
        font-size: 14px;
    }
    
    .property-detail .description-text {
        font-size: 15px;
    }
}