/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: #f8fafc;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header .container {
    display: flex;
    align-items: center;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.back-button:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.logo {
    height: 35px;
}

/* Main Content */
.main-content {
    padding: 32px 0 60px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
}

.left-column {
    min-width: 0;
}

/* Carousel Section */
.carousel-section {
    margin-bottom: 32px;
}

.carousel-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #1e293b;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-control:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 16px;
}

.carousel-control.next {
    right: 16px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid white;
}

.indicator.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

/* Thumbnails */
.thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px 0;
    scroll-behavior: smooth;
}

.thumbnails::-webkit-scrollbar {
    height: 6px;
}

.thumbnails::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.thumbnails::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 3px;
}

.thumbnails::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

.thumbnail {
    min-width: 100px;
    width: 100px;
    height: 75px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail:hover {
    border-color: #3b82f6;
    opacity: 0.8;
}

.thumbnail.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Property Details */
.property-details {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.property-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 16px;
}

.property-location svg {
    color: #ef4444;
}

.property-price {
    font-size: 28px;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 24px;
}

.property-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 28px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.spec-item {
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    text-align: left;
    transition: all 0.3s;
}

.spec-item:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.spec-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.spec-value {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

/* Property Description Section */
.property-description {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.property-description h2 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.property-description p {
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
    white-space: pre-line;
}

.property-description p:last-child {
    margin-bottom: 0;
}

/* Property Tour Section */
.property-tour-section {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.property-tour-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.property-tour-section .video-container {
    width: 100%;
    max-width: 100%;
}

/* Computation Section */
.computation-section {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.computation-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
}

.computation-text {
    color: #475569;
    font-size: 14px;
    line-height: 2;
}

.computation-text p {
    margin-bottom: 8px;
}

.computation-text p:last-child {
    margin-bottom: 0;
}

.computation-text strong {
    color: #0f172a;
    font-weight: 600;
}

.computation-note {
    margin-top: 20px;
    font-size: 13px;
    color: #64748b;
    font-style: italic;
}

/* Video Section */
.video-section {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.video-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
}

.video-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    display: block;
}

/* Map Section */
.map-section {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.map-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Sidebar (Fixed Position) */
.sidebar {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

/* Seller Card */
.seller-card {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.seller-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.seller-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: #f8fafc;
    padding: 8px;
    flex-shrink: 0;
}

.seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.seller-details {
    flex: 1;
}

.seller-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.seller-role {
    font-size: 13px;
    color: #64748b;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.contact-btn.phone {
    background: #3b82f6;
    color: white;
}

.contact-btn.phone:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.contact-btn.email {
    background: #10b981;
    color: white;
}

.contact-btn.email:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.contact-btn.whatsapp {
    background: #25d366;
    color: white;
}

.contact-btn.whatsapp:hover {
    background: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.contact-btn.messenger {
    background: #0084ff;
    color: white;
}

.contact-btn.messenger:hover {
    background: #0073e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 132, 255, 0.3);
}

.contact-btn.viber {
    background: #7360f2;
    color: white;
    display: none;
}

.contact-btn.viber:hover {
    background: #5f4fd1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(115, 96, 242, 0.3);
}

.contact-btn.chat {
    background: #1e3a8a;
    color: white;
    display: none;
    border: none;
    cursor: pointer;
}

.contact-btn.chat:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.seller-contact-info {
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 12px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item svg {
    flex-shrink: 0;
}

/* Share Card */
.share-card {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.share-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.share-btn {
    aspect-ratio: 1;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.facebook:hover {
    background: #0c63d4;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.3);
}

.share-btn.messenger {
    background: #0084ff;
    color: white;
}

.share-btn.messenger:hover {
    background: #006fd6;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 132, 255, 0.3);
}

.share-btn.copy {
    background: #f1f5f9;
    color: #475569;
}

.share-btn.copy:hover {
    background: #e2e8f0;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(71, 85, 105, 0.2);
}

.copy-message {
    margin-top: 12px;
    padding: 10px;
    background: #10b981;
    color: white;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.copy-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Recommendations Section */
.recommendations-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

.recommendations-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.recommendations-header svg {
    color: #3b82f6;
}

.recommendations-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.recommendation-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.recommendation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: #3b82f6;
}

.recommendation-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f3f4f6;
}

.recommendation-content {
    padding: 1rem;
}

.recommendation-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommendation-location {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.recommendation-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #3b82f6;
}

.recommendation-meta {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
}

.recommendation-badge {
    background: #eff6ff;
    color: #1e40af;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.no-recommendations {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 32px 0;
    text-align: center;
    margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        margin-top: 32px;
    }
    
    .property-specs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .main-content {
        padding: 24px 0 40px;
    }
    
    .property-title {
        font-size: 20px;
    }
    
    .property-price {
        font-size: 24px;
    }
    
    .property-specs {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .spec-item {
        padding: 16px;
    }
    
    /* Mobile carousel - make it square (1:1 ratio) */
    .carousel-wrapper {
        aspect-ratio: 3/4;
    }
    
    .thumbnails {
        gap: 6px;
    }

    .thumbnail {
        min-width: 80px;
        width: 80px;
        height: 60px;
    }
    
    .property-details,
    .computation-section,
    .video-section,
    .map-section {
        padding: 24px;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control.prev {
        left: 12px;
    }
    
    .carousel-control.next {
        right: 12px;
    }
    
    .share-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .back-button {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .back-text-extra {
        display: none;
    }
}

@media (max-width: 480px) {
    .property-specs {
        grid-template-columns: 1fr;
    }
    
    .spec-item {
        padding: 16px;
    }
    
    .thumbnails {
        gap: 6px;
    }

    .thumbnail {
        min-width: 70px;
        width: 70px;
        height: 52px;
    }
}
