/* Listing Detail Styles */
.listing-detail {
    background-color: #f8fafc;
    min-height: calc(100vh - var(--header-height));
}

/* Breadcrumbs */
.breadcrumbs {
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
}

.breadcrumbs::-webkit-scrollbar {
    display: none;
}

/* Gallery */
.listing-gallery {
    position: relative;
}

.gallery-item {
    aspect-ratio: 4/3;
    transition: all 0.3s ease;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Gallery Modal */
.gallery-modal {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

.gallery-close,
.gallery-prev,
.gallery-next {
    background: none;
    border: none;
    padding: 1rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.gallery-close:hover,
.gallery-prev:hover,
.gallery-next:hover {
    opacity: 1;
}

/* Detail Items */
.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.detail-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Feature Items */
.feature-item {
    padding: 0.75rem;
    background-color: #fff;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Contact Form */
.form-group {
    margin-bottom: 1rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    background-color: #fff;
    color: #4a5568;
    transition: all 0.3s ease;
}

.form-input:hover,
.form-textarea:hover {
    border-color: #cbd5e0;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/* Action Buttons */
.btn-share,
.btn-favorite {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    background-color: #fff;
    color: #4a5568;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-share:hover,
.btn-favorite:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-favorite.favorited {
    border-color: #e53e3e;
    color: #e53e3e;
}

/* Similar Listings */
.similar-listing {
    transition: all 0.3s ease;
}

.similar-listing:hover {
    transform: translateY(-2px);
}

/* Map Container */
#map {
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .listing-gallery .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-item {
        padding: 0.75rem;
    }

    .detail-item i {
        font-size: 1.25rem;
    }

    .gallery-prev,
    .gallery-next {
        display: none;
    }
}

/* Loading States */
.listing-detail.loading {
    position: relative;
}

.listing-detail.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.listing-detail.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 11;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
} 