/* Property Details Page */

.property-details-page {
    padding: 2rem 0 4rem;
    background: #f8f9fa;
}

.property-details-page .breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #666;
}

.property-details-page .breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}

.property-details-page .breadcrumb a:hover {
    text-decoration: underline;
}

.property-details-page .breadcrumb .sep {
    margin: 0 0.5rem;
    color: #999;
}

.property-details-page .breadcrumb .current {
    color: #333;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: start;
}

.detail-main {
    min-width: 0;
}

/* Gallery */
.detail-gallery {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.gallery-main {
    position: relative;
    aspect-ratio: 16 / 10;
    max-height: 480px;
    background: #e9ecef;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #0066cc;
    color: #fff;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    border-top: 1px solid #eee;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: none;
    transition: border-color 0.2s, opacity 0.2s;
}

.gallery-thumb:hover {
    opacity: 0.9;
}

.gallery-thumb.active {
    border-color: #0066cc;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Header */
.detail-header {
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.detail-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 1rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #555;
    font-size: 1rem;
}

.detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.detail-meta i {
    color: #0066cc;
    width: 1.1em;
}

/* Location */
.detail-location {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.detail-location h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-location h2 i {
    color: #0066cc;
}

.detail-address {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 1rem;
}

.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.btn-map:hover {
    text-decoration: underline;
}

/* Description */
.detail-description {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.detail-description h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.detail-description p {
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* Features */
.detail-features {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.detail-features h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: #f0f8ff;
    color: #0066cc;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Sidebar */
.detail-sidebar {
    position: sticky;
    top: 100px;
}

.contact-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.contact-card p {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: #444;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-card p i {
    color: #0066cc;
    width: 1.2em;
}

.contact-card a {
    color: #0066cc;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.85rem 1.25rem;
    background: #0066cc;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-contact:hover {
    background: #0052a3;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-back:hover {
    color: #0066cc;
}

@media (max-width: 900px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: static;
        order: -1;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 1rem;
        align-items: start;
    }

    .contact-card {
        margin-bottom: 0;
    }
}

@media (max-width: 600px) {
    .detail-sidebar {
        grid-template-columns: 1fr;
    }

    .detail-title {
        font-size: 1.5rem;
    }

    .detail-price {
        font-size: 1.5rem;
    }

    .detail-meta {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .gallery-main {
        max-height: 280px;
    }

    .gallery-thumb {
        width: 60px;
        height: 45px;
    }
}
