
/* ===== Property Detail Page ===== */
.property-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.property-detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.property-detail-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #fff;
}

.property-detail-header .address {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.property-detail-header .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.property-detail-header .price-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    opacity: 0.8;
}

.property-detail-header .actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.property-detail-btn {
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 600;
}

.property-detail-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

.property-detail-btn.primary {
    background: #fff;
    color: #667eea;
    border-color: #fff;
}

.property-detail-btn.primary:hover {
    background: #f0f0f0;
}

/* ===== Photo Gallery ===== */
.property-gallery {
    margin-bottom: 30px;
}

.main-photo {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    background: #f0f0f0;
}

.photo-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.photo-thumbnails::-webkit-scrollbar {
    display: none;
}

.photo-thumbnail {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid transparent;
}

.photo-thumbnail:hover {
    transform: scale(1.05);
    border-color: #667eea;
}

.photo-thumbnail.active {
    border-color: #667eea;
}

/* ===== Property Overview ===== */
.property-overview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.property-main-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.property-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.property-quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Property Details Section ===== */
.detail-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.detail-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.detail-item-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.detail-item-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

/* ===== Features & Amenities ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #e8f0fe;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #667eea;
}

.feature-tag i {
    font-size: 0.9rem;
}

/* ===== Price History Chart ===== */
.price-history-chart {
    width: 100%;
    height: 300px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    position: relative;
}

/* ===== School Ratings ===== */
.schools-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.school-card {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.school-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.school-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.rating-stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.rating-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

/* ===== Walk Score ===== */
.walk-score-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.score-card {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
}

.score-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.score-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===== Mortgage Calculator ===== */
.mortgage-calculator {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
}

.calculator-input {
    margin-bottom: 15px;
}

.calculator-input label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600;
}

.calculator-input input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
}

.calculator-results {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1rem;
}

.result-item-label {
    color: #666;
}

.result-item-value {
    font-weight: 700;
    color: #667eea;
    font-size: 1.2rem;
}

/* ===== Agent Card ===== */
.agent-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
}

.agent-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid #667eea;
}

.agent-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.agent-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.contact-btn {
    padding: 10px 20px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.contact-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

/* ===== Similar Properties ===== */
.similar-properties {
    margin-top: 40px;
}

.similar-properties h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #333;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.similar-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
}

.similar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.similar-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.similar-card-content {
    padding: 20px;
}

.similar-card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.similar-card-address {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.similar-card-details {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
}

/* ===== Virtual Tour ===== */
.virtual-tour-section {
    margin-bottom: 30px;
}

.tour-iframe {
    width: 100%;
    height: 600px;
    border-radius: 12px;
    border: none;
}

/* ===== Map Section ===== */
.map-section {
    margin-bottom: 30px;
}

.property-map {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    border: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .property-overview {
        grid-template-columns: 1fr;
    }
    
    .property-quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
}
