/* ===================================
   Property Detail Page Styles
   =================================== */

.property-detail-section {
    padding: 120px 0 60px;
    background: var(--dark-bg);
    min-height: 100vh;
    transition: background-color 0.3s ease;
}

/* Image Gallery */
.property-gallery {
    margin-bottom: 2rem;
}

.main-image-container {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.main-image {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.main-image:hover img {
    transform: scale(1.05);
}

/* Gallery Navigation Buttons */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(212, 175, 55, 0.5);
    color: var(--gold-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 1.2rem;
}

.gallery-nav-btn:hover {
    background: var(--gold-primary);
    color: var(--dark-bg);
    border-color: var(--gold-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.5);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

/* Zoom Modal */
.zoom-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.zoom-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
    animation: zoomIn 0.3s ease;
}

.zoom-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--gold-primary);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.5);
}

.zoom-close:hover {
    background: var(--gold-primary);
    color: var(--dark-bg);
    transform: scale(1.1);
    border-color: var(--gold-primary);
}

.zoom-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(212, 175, 55, 0.5);
    color: var(--gold-primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    font-size: 1.5rem;
}

.zoom-nav-btn:hover {
    background: var(--gold-primary);
    color: var(--dark-bg);
    border-color: var(--gold-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.5);
}

.zoom-prev {
    left: 30px;
}

.zoom-next {
    right: 30px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.thumbnail-gallery {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail {
    min-width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--gold-primary);
    opacity: 1;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Property Description */
.property-description {
    background: var(--dark-secondary);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: background-color 0.3s ease;
}

.property-description p {
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
    font-size: 1.1rem;
}

.section-title-small {
    color: var(--gold-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title-small::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gold-primary);
    border-radius: 2px;
}

/* Property Details Card */
.property-details-card {
    background: var(--dark-secondary);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: background-color 0.3s ease;
}

.property-details-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px dotted rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row:hover {
    padding-left: 0.5rem;
    border-bottom-color: rgba(212, 175, 55, 0.4);
}

.detail-label {
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.detail-value {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    text-align: right;
    flex: 1;
    margin-left: 1rem;
}

[data-theme="light"] .property-details-card {
    background: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .detail-value {
    color: var(--text-light);
}

/* Property Features */
.property-features-section {
    background: var(--dark-secondary);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: background-color 0.3s ease;
}

.feature-category {
    margin-bottom: 2rem;
}

.feature-category:last-child {
    margin-bottom: 0;
}

.feature-category-title {
    color: var(--gold-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.95rem;
    padding: 0.5rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-primary);
    transform: translateX(5px);
}

.feature-item i {
    color: var(--gold-primary);
    font-size: 0.9rem;
}

/* Sidebar */
.property-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--dark-secondary);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
    border-color: var(--gold-primary);
}

.property-badge-large {
    display: inline-block;
    background: var(--gold-primary);
    color: var(--dark-bg);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.property-badge-large.badge-rent {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
}

.property-price-large {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.price-type {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-gray);
}

.property-title-large {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.property-location-large {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.property-location-large i {
    color: var(--gold-primary);
}

.property-specs {
    display: flex;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-weight: 600;
}

.spec-item i {
    color: var(--gold-primary);
    font-size: 1.2rem;
}

/* Agent Card */
.agent-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.agent-title {
    color: var(--gold-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.agent-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.agent-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold-primary);
    flex-shrink: 0;
}

.agent-details {
    flex: 1;
}

.agent-name {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.agent-phone,
.agent-email {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}

.agent-phone i,
.agent-email i {
    color: var(--gold-primary);
    width: 20px;
}

.agent-phone a,
.agent-email a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.agent-phone a:hover,
.agent-email a:hover {
    color: var(--gold-primary);
}

.btn-outline-gold {
    background: transparent;
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: var(--gold-primary);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Light Theme */
[data-theme="light"] .property-detail-section {
    background: var(--dark-bg);
}

[data-theme="light"] .property-description,
[data-theme="light"] .property-features-section,
[data-theme="light"] .sidebar-card {
    background: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .property-description p,
[data-theme="light"] .feature-item,
[data-theme="light"] .property-title-large,
[data-theme="light"] .spec-item,
[data-theme="light"] .agent-name {
    color: var(--text-light);
}

[data-theme="light"] .feature-item {
    background: rgba(212, 175, 55, 0.05);
}

[data-theme="light"] .agent-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
}

/* Responsive */
@media (max-width: 992px) {
    .property-sidebar {
        position: relative;
        top: 0;
    }
    
    .main-image {
        height: 400px;
    }
    
    .gallery-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .property-price-large {
        font-size: 2rem;
    }
    
    .property-title-large {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .property-detail-section {
        padding: 100px 0 40px;
    }
    
    .main-image {
        height: 300px;
    }
    
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .gallery-prev {
        left: 5px;
    }
    
    .gallery-next {
        right: 5px;
    }
    
    .zoom-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
    
    .zoom-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .zoom-prev {
        left: 15px;
    }
    
    .zoom-next {
        right: 15px;
    }
    
    .thumbnail {
        min-width: 80px;
        height: 80px;
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .property-specs {
        flex-direction: column;
        gap: 1rem;
    }
    
    .property-price-large {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .sidebar-card,
    .property-description,
    .property-features-section {
        padding: 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-gallery {
        gap: 0.5rem;
    }
    
    .thumbnail {
        min-width: 60px;
        height: 60px;
    }
}

