/* Modern Trendy Property Details - Smaller Fonts & Contemporary Design */
:root {
    --primary-color: #6366f1;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-dark: #111827;
    --text-medium: #374151;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    background: #fafafa;
    font-size: 13px; /* Reduced from 14px */
}

/* Container Alignment */
.container-elegant {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

.property-details-page {
    padding: 20px 1rem 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Modern Compact Layout */
.property-container {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 0;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    min-height: 600px;
    max-height: 85vh;
    max-width: 100%;
    margin: 0;
    width: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Gallery Section - Modern Dark Theme */
.gallery-section {
    background: #0f0f0f;
    position: relative;
    display: flex;
    flex-direction: column;
}

.gallery-container {
    position: relative;
    height: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.main-image {
    position: relative;
    flex: 1;
    overflow: hidden;
    background: #0f0f0f;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 600px;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-dark);
    font-size: 13px; /* Reduced from 14px */
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.gallery-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-md);
}

.prev-btn {
    left: 12px;
}

.next-btn {
    right: 12px;
}

.image-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 10px; /* Reduced from 11px */
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.thumbnail-gallery {
    display: flex;
    gap: 6px;
    padding: 12px;
    overflow-x: auto;
    background: #1a1a1a;
    border-top: 1px solid #333;
}

.thumbnail {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
    position: relative;
    user-select: none;
}

.thumbnail:hover {
    opacity: 0.9;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* Property Info Section - Modern Typography */
.property-info-section {
    padding: 20px; /* Reduced from 24px */
    overflow-y: auto;
    max-height: 85vh;
    background: var(--bg-white);
}

/* Property Header - Compact & Modern */
.property-header {
    margin-bottom: 16px; /* Reduced from 20px */
}

.property-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px; /* Reduced from 12px */
}

.property-header h1 {
    font-size: 20px; /* Reduced from 22px */
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px; /* Reduced from 6px */
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.property-location {
    font-size: 12px; /* Reduced from 13px */
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px; /* Reduced from 12px */
}

.property-badges {
    display: flex;
    gap: 6px; /* Reduced from 8px */
    margin-bottom: 16px; /* Reduced from 20px */
    flex-wrap: wrap;
}

.badge {
    padding: 3px 10px; /* Reduced from 4px 12px */
    border-radius: 14px; /* Reduced from 16px */
    font-size: 10px; /* Reduced from 11px */
    font-weight: 600;
    background: var(--bg-light);
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-primary {
    background: #eef2ff;
    color: var(--primary-color);
}

.badge-success {
    background: #d1fae5;
    color: var(--secondary-color);
}

/* Share & Actions - Minimalist */
.share-actions {
    display: flex;
    gap: 5px; /* Reduced from 6px */
}

.share-btn,
.action-btn {
    width: 30px; /* Reduced from 32px */
    height: 30px; /* Reduced from 32px */
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px; /* Reduced from 12px */
    transition: all 0.2s ease;
    color: var(--text-light);
}

.share-btn:hover,
.action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Price Section - Modern Gradient */
.price-section {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 16px; /* Reduced from 20px */
    border-radius: var(--radius-lg);
    margin-bottom: 16px; /* Reduced from 20px */
    color: white;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px; /* Reduced from 16px */
}

.price-item {
    text-align: center;
}

.price-label {
    font-size: 10px; /* Reduced from 11px */
    opacity: 0.9;
    margin-bottom: 3px; /* Reduced from 4px */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.price-value {
    font-size: 16px; /* Reduced from 18px */
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: -0.025em;
}

.price-range {
    font-size: 9px; /* Reduced from 10px */
    opacity: 0.8;
}

/* Contact Button - Modern */
.btn-contact {
    width: 100%;
    padding: 10px; /* Reduced from 12px */
    border-radius: var(--radius-md);
    border: none;
    background: var(--primary-color);
    color: white;
    font-size: 13px; /* Reduced from 14px */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px; /* Reduced from 20px */
    text-decoration: none;
    display: block;
    text-align: center;
    letter-spacing: -0.025em;
}

.btn-contact:hover {
    background: #5855eb;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Features Grid - Compact */
.property-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); /* Reduced from 120px */
    gap: 12px; /* Reduced from 16px */
    margin-bottom: 20px; /* Reduced from 24px */
    padding: 16px; /* Reduced from 20px */
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced from 10px */
}

.feature-icon {
    font-size: 18px; /* Reduced from 20px */
}

.feature-text {
    flex: 1;
}

.feature-value {
    font-size: 14px; /* Reduced from 16px */
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    letter-spacing: -0.025em;
}

.feature-label {
    font-size: 9px; /* Reduced from 10px */
    color: var(--text-light);
    margin-top: 1px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Description - Clean Typography */
.property-description {
    margin-bottom: 20px; /* Reduced from 24px */
}

.property-description h2 {
    font-size: 15px; /* Reduced from 16px */
    font-weight: 700;
    margin-bottom: 10px; /* Reduced from 12px */
    color: var(--text-dark);
    letter-spacing: -0.025em;
}

.property-description p {
    font-size: 12px; /* Reduced from 13px */
    line-height: 1.6;
    color: var(--text-medium);
}

/* Amenities - Modern Grid */
.property-amenities {
    margin-bottom: 20px; /* Reduced from 24px */
}

.property-amenities h2 {
    font-size: 15px; /* Reduced from 16px */
    font-weight: 700;
    margin-bottom: 10px; /* Reduced from 12px */
    color: var(--text-dark);
    letter-spacing: -0.025em;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Reduced from 160px */
    gap: 6px; /* Reduced from 8px */
}

.amenity-item {
    padding: 6px 10px; /* Reduced from 8px 12px */
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 10px; /* Reduced from 11px */
    color: var(--text-medium);
    transition: all 0.2s ease;
    text-align: center;
}

.amenity-item:hover {
    border-color: var(--primary-color);
    background: #f0f9ff;
    color: var(--primary-color);
}

/* Brokerage Calculator - Modern Card */
.brokerage-calculator {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    padding: 16px; /* Reduced from 20px */
    border-radius: var(--radius-lg);
    color: white;
    margin-bottom: 20px; /* Reduced from 24px */
}

.brokerage-calculator h2 {
    font-size: 15px; /* Reduced from 16px */
    font-weight: 700;
    margin-bottom: 12px; /* Reduced from 16px */
    letter-spacing: -0.025em;
}

.calculator-content {
    background: rgba(255,255,255,0.1);
    padding: 12px; /* Reduced from 16px */
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.calculator-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0; /* Reduced from 8px 0 */
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-size: 11px; /* Reduced from 12px */
}

.calculator-row.total {
    border-bottom: none;
    font-size: 13px; /* Reduced from 14px */
    font-weight: 700;
    padding-top: 10px; /* Reduced from 12px */
    margin-top: 6px; /* Reduced from 8px */
    border-top: 2px solid rgba(255,255,255,0.3);
}

.offer-code-section {
    margin-top: 12px; /* Reduced from 16px */
    padding-top: 12px; /* Reduced from 16px */
    border-top: 1px solid rgba(255,255,255,0.2);
}

.offer-code-section h3 {
    font-size: 12px; /* Reduced from 13px */
    margin-bottom: 8px; /* Reduced from 10px */
    letter-spacing: -0.025em;
}

.offer-input-group {
    display: flex;
    gap: 6px; /* Reduced from 8px */
}

.offer-input-group input {
    flex: 1;
    padding: 6px 8px; /* Reduced from 8px 10px */
    border: none;
    border-radius: var(--radius-sm);
    font-size: 11px; /* Reduced from 12px */
}

.offer-input-group button {
    padding: 6px 12px; /* Reduced from 8px 16px */
    background: white;
    color: var(--text-dark);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 11px; /* Reduced from 12px */
}

.offer-input-group button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Recommendations Section - Modern Cards */
.recommendations-section {
    margin-top: 28px; /* Reduced from 32px */
    padding: 0 20px;
}

.recommendations-section h2 {
    font-size: 18px; /* Reduced from 20px */
    font-weight: 700;
    margin-bottom: 16px; /* Reduced from 20px */
    color: var(--text-dark);
    text-align: center;
    letter-spacing: -0.025em;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Reduced from 280px */
    gap: 16px; /* Reduced from 20px */
}

.property-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.property-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.property-image {
    height: 140px; /* Reduced from 160px */
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-content {
    padding: 12px; /* Reduced from 16px */
}

.property-title a {
    font-size: 13px; /* Reduced from 14px */
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.property-title a:hover {
    color: var(--primary-color);
}

.property-location {
    font-size: 10px; /* Reduced from 11px */
    color: var(--text-light);
    margin: 4px 0; /* Reduced from 6px 0 */
}

.property-price {
    font-size: 14px; /* Reduced from 16px */
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.025em;
}

/* Responsive Design - Mobile First */
@media (max-width: 1024px) {
    .property-details-page {
        padding: 100px 1rem 40px;
    }
    
    .property-container {
        grid-template-columns: 1fr;
        min-height: auto;
        max-height: none;
    }
    
    .gallery-section {
        order: 1;
    }
    
    .property-info-section {
        order: 2;
        max-height: none;
    }
    
    .main-image {
        min-height: 280px;
        max-height: 360px;
    }
    
    .gallery-container {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .property-details-page {
        padding: 80px 12px 24px;
    }
    
    .property-container {
        border-radius: var(--radius-lg);
    }
    
    .property-header h1 {
        font-size: 20px;
    }
    
    .property-title-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .share-actions {
        align-self: flex-start;
    }
    
    .price-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .property-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .property-info-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .main-image {
        min-height: 220px;
    }
    
    .property-info-section {
        padding: 16px;
    }
    
    .property-features-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    
    .thumbnail-gallery {
        padding: 8px;
        gap: 4px;
    }
    
    .thumbnail {
        width: 48px;
        height: 36px;
    }
    
    .property-header h1 {
        font-size: 18px;
    }
    
    .price-value {
        font-size: 16px;
    }
    
    .feature-value {
        font-size: 14px;
    }
}