/* ============================================
   MALISAFI SINGLE PROPERTY - COMPLETE STYLES
   ============================================ */

:root {
    /* Color Palette */
    --mls-primary: #1e5277;
    --mls-primary-light: #2d6b9a;
    --mls-primary-dark: #143a55;
    --mls-accent: #dc2626;
    --mls-accent-light: #ef4444;
    --mls-success: #10b981;
    --mls-warning: #f59e0b;
    --mls-info: #3b82f6;
    --mls-purple: #7c3aed;
    
    /* Neutral Colors */
    --mls-white: #ffffff;
    --mls-light: #f8fafc;
    --mls-gray-50: #f9fafb;
    --mls-gray-100: #f3f4f6;
    --mls-gray-200: #e5e7eb;
    --mls-gray-300: #d1d5db;
    --mls-gray-400: #9ca3af;
    --mls-gray-500: #6b7280;
    --mls-gray-600: #4b5563;
    --mls-gray-700: #374151;
    --mls-gray-800: #1f2937;
    --mls-gray-900: #111827;
    
    /* Shadows */
    --mls-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --mls-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --mls-shadow-md: 0 6px 12px -1px rgba(0, 0, 0, 0.1), 0 4px 8px -1px rgba(0, 0, 0, 0.06);
    --mls-shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.1), 0 6px 12px -2px rgba(0, 0, 0, 0.05);
    --mls-shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
    --mls-shadow-2xl: 0 30px 60px -10px rgba(0, 0, 0, 0.15), 0 18px 36px -8px rgba(0, 0, 0, 0.08);
    
    /* Transitions */
    --mls-transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --mls-transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --mls-transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Borders */
    --mls-radius-sm: 6px;
    --mls-radius: 10px;
    --mls-radius-md: 14px;
    --mls-radius-lg: 18px;
    --mls-radius-xl: 24px;
    --mls-radius-full: 9999px;
    
    /* Spacing */
    --mls-space-xs: 0.5rem;
    --mls-space-sm: 0.75rem;
    --mls-space: 1rem;
    --mls-space-md: 1.5rem;
    --mls-space-lg: 2rem;
    --mls-space-xl: 3rem;
    --mls-space-2xl: 4rem;
}

/* ============================================
   BASE STYLES
   ============================================ */

.malisafi-single-property {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--mls-space-xl) var(--mls-space-md);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--mls-gray-800);
    line-height: 1.6;
    background: var(--mls-white);
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.property-gallery {
    margin-bottom: var(--mls-space-2xl);
    position: relative;
}

.gallery-main-wrapper {
    position: relative;
    border-radius: var(--mls-radius-lg);
    overflow: hidden;
    box-shadow: var(--mls-shadow-xl);
    margin-bottom: var(--mls-space);
    background: linear-gradient(135deg, var(--mls-gray-50), var(--mls-gray-100));
    transition: transform var(--mls-transition-base);
}

.gallery-main-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: var(--mls-shadow-2xl);
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    max-height: 700px;
    overflow: hidden;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--mls-gray-50);
    transition: transform var(--mls-transition-slow);
}

.gallery-main:hover .main-image {
    transform: scale(1.02);
}

/* Gallery Badges */
.gallery-badges {
    position: absolute;
    top: var(--mls-space-md);
    left: var(--mls-space-md);
    display: flex;
    flex-wrap: wrap;
    gap: var(--mls-space-xs);
    z-index: 10;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--mls-radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: var(--mls-shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge .badge-icon {
    width: 14px;
    height: 14px;
}

.badge.verified {
    background: rgba(16, 185, 129, 0.95);
    color: white;
}

.badge.featured {
    background: rgba(245, 158, 11, 0.95);
    color: white;
}

.badge.status {
    background: rgba(30, 82, 119, 0.95);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status-specific colors matching property cards */
.badge.status[data-status*="sale"],
.badge.status[data-status*="Sale"] {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.badge.status[data-status*="rent"],
.badge.status[data-status*="Rent"] {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.badge.status[data-status*="sold"],
.badge.status[data-status*="Sold"] {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.badge.status[data-status*="rented"],
.badge.status[data-status*="Rented"] {
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
}

.badge.status[data-status*="pending"],
.badge.status[data-status*="Pending"] {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.badge.status[data-status*="offer"],
.badge.status[data-status*="Offer"] {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
}

/* Gallery Navigation */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: var(--mls-radius-full);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--mls-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--mls-transition-base);
    opacity: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    box-shadow: var(--mls-shadow-lg);
}

.gallery-main-wrapper:hover .gallery-nav {
    opacity: 1;
}

.gallery-nav-prev {
    left: var(--mls-space-md);
}

.gallery-nav-next {
    right: var(--mls-space-md);
}

.gallery-nav:hover {
    background: var(--mls-white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--mls-shadow-xl);
    color: var(--mls-primary-dark);
}

.gallery-nav svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* Compact layout adjustments */
.property-section { margin: 20px 0; }
.section-title { margin: 10px 0 12px; font-size: 1.25rem; }
.property-specs { gap: 8px 12px; }
.spec-item, .spec-item-inline { margin: 2px 0; }
.property-header { margin-bottom: 12px; }
.property-excerpt { margin: 8px 0 12px; }
.gallery-thumbnails .thumbnail { margin-right: 6px; }
.gallery-thumbnails { padding: 6px 32px; }

/* Gallery Counter */
.thumbs-nav { position:absolute; top:50%; transform:translateY(-50%); background:#fff; border:1px solid #ddd; border-radius:50%; width:28px; height:28px; display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 2px 6px rgba(0,0,0,0.1); z-index:2; }
.thumbs-prev { left:4px; }
.thumbs-next { right:4px; }

.gallery-counter {
    position: absolute;
    bottom: var(--mls-space-md);
    right: var(--mls-space-md);
    background: rgba(30, 82, 119, 0.9);
    color: white;
    padding: var(--mls-space-xs) var(--mls-space);
    border-radius: var(--mls-radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 4px;
}

.gallery-counter .current {
    font-weight: 700;
    font-size: 1rem;
}

/* Thumbnails */
.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--mls-space-sm);
    padding: var(--mls-space-sm);
    background: var(--mls-gray-50);
    border-radius: var(--mls-radius-md);
    max-height: 140px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--mls-gray-300) transparent;
}

.gallery-thumbnails::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: transparent;
    border-radius: var(--mls-radius-full);
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--mls-gray-300);
    border-radius: var(--mls-radius-full);
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--mls-gray-400);
}

.thumbnail {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--mls-radius);
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all var(--mls-transition-base);
    background: var(--mls-white);
    box-shadow: var(--mls-shadow-sm);
}

.thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: var(--mls-shadow-md);
    border-color: var(--mls-gray-200);
}

.thumbnail.active {
    border-color: var(--mls-primary);
    box-shadow: 0 0 0 3px rgba(30, 82, 119, 0.1);
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--mls-transition-base);
}

.thumbnail:hover img {
    transform: scale(1.1);
}

.thumbnail-badge.area-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--mls-primary);
    padding: 4px 10px;
    border-radius: var(--mls-radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(30, 82, 119, 0.1);
    max-width: calc(100% - 16px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   PROPERTY HEADER
   ============================================ */

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--mls-space-xl);
    margin-bottom: var(--mls-space-md);
    padding-bottom: var(--mls-space-md);
    border-bottom: 1px solid var(--mls-gray-200);
}

@media (max-width: 768px) {
    .property-header {
        flex-direction: column;
        gap: var(--mls-space-md);
    }
}

.property-title-section {
    flex: 1;
}

.title-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--mls-space-xs);
    margin-bottom: var(--mls-space-sm);
}

.inline-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--mls-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inline-badge.verified-inline {
    background: rgba(16, 185, 129, 0.1);
    color: var(--mls-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.inline-badge.featured-inline {
    background: rgba(245, 158, 11, 0.1);
    color: var(--mls-warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.property-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 var(--mls-space-sm) 0;
    color: var(--mls-gray-900);
    background: linear-gradient(135deg, var(--mls-gray-900), var(--mls-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .property-title {
        font-size: 2rem;
    }
}

/* Property Actions */
.property-actions {
    display: flex;
    gap: var(--mls-space-sm);
    flex-wrap: wrap;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--mls-white);
    border: 2px solid var(--mls-gray-200);
    border-radius: var(--mls-radius);
    color: var(--mls-gray-700);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--mls-transition-base);
    min-width: 120px;
}

.action-button:hover {
    background: var(--mls-gray-50);
    border-color: var(--mls-gray-300);
    transform: translateY(-2px);
    box-shadow: var(--mls-shadow-md);
}

.action-button .action-icon {
    width: 20px;
    height: 20px;
}

.action-button.favorite-button.favorited {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-color: var(--mls-accent);
    color: var(--mls-accent);
}

.action-button.share-button:hover {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-color: var(--mls-info);
    color: var(--mls-info);
}

.action-button.report-button:hover {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-color: var(--mls-accent);
    color: var(--mls-accent);
}

/* ============================================
   PROPERTY SPECS INLINE
   ============================================ */

.property-specs-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--mls-space);
    margin: 0 0 var(--mls-space-md) 0;
    padding: var(--mls-space);
    background: linear-gradient(135deg, rgba(30, 82, 119, 0.03), rgba(30, 82, 119, 0.08));
    border-radius: var(--mls-radius-lg);
    border: 1px solid rgba(30, 82, 119, 0.1);
}

.spec-item-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--mls-white);
    border-radius: var(--mls-radius);
    box-shadow: var(--mls-shadow-sm);
    border: 1px solid var(--mls-gray-200);
    min-width: fit-content;
    transition: all var(--mls-transition-fast);
}

.spec-item-inline:hover {
    transform: translateY(-2px);
    box-shadow: var(--mls-shadow);
    border-color: var(--mls-primary);
}

/* Price Item */
.spec-price {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
}

.spec-price:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Icons Styling */
.spec-icon-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: inherit;
}

.spec-price .spec-icon-inline {
    color: white;
}

.spec-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    color: var(--mls-gray-900);
}

.spec-price .spec-value {
    color: white;
    font-size: 1.2rem;
}

.spec-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--mls-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-price .spec-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Individual Icon Colors */
.spec-location .spec-icon-inline {
    color: #dc2626;
}

.spec-bedrooms .spec-icon-inline {
    color: #1e5277;
}

.spec-bathrooms .spec-icon-inline {
    color: #059669;
}

.spec-area .spec-icon-inline {
    color: #7c3aed;
}

.spec-garage .spec-icon-inline {
    color: #f59e0b;
}

/* SVG Icon Sizes */
.spec-icon-inline svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ============================================
   PROPERTY CONTENT
   ============================================ */

.property-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--mls-space-2xl);
}

@media (max-width: 1200px) {
    .property-content-wrapper {
        grid-template-columns: 1fr;
        gap: var(--mls-space-xl);
    }
}

.property-main-content {
    display: flex;
    flex-direction: column;
    gap: var(--mls-space-2xl);
}

/* Property Section */
.property-section {
    background: var(--mls-white);
    border-radius: var(--mls-radius-lg);
    padding: var(--mls-space-xl);
    border: 1px solid var(--mls-gray-200);
    box-shadow: var(--mls-shadow);
    transition: transform var(--mls-transition-base);
}

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

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 var(--mls-space-lg) 0;
    color: var(--mls-gray-900);
    padding-bottom: var(--mls-space-sm);
    border-bottom: 3px solid var(--mls-primary);
    display: inline-block;
}

.property-description {
    color: var(--mls-gray-700);
    line-height: 1.8;
    font-size: 1.05rem;
}

.property-description p {
    margin: 0 0 var(--mls-space) 0;
}

.property-description p:last-child {
    margin-bottom: 0;
}

/* Details Grid */
.property-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--mls-space);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--mls-space) 0;
    border-bottom: 1px solid var(--mls-gray-200);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--mls-gray-600);
    font-size: 0.95rem;
}

.detail-value {
    font-weight: 700;
    color: var(--mls-gray-900);
    text-align: right;
    font-size: 1rem;
}

/* Features Grid */
.property-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--mls-space);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--mls-space-sm);
    padding: var(--mls-space);
    background: var(--mls-gray-50);
    border-radius: var(--mls-radius);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--mls-transition-base);
    border: 1px solid transparent;
}

.feature-item:hover {
    background: var(--mls-white);
    border-color: var(--mls-gray-300);
    transform: translateX(5px);
    box-shadow: var(--mls-shadow-sm);
}

.feature-item svg {
    color: var(--mls-success);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ============================================
   SIDEBAR
   ============================================ */

.property-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--mls-space-xl);
}

/* Agent Contact Card */
.agent-contact-card {
    background: var(--mls-white);
    border-radius: var(--mls-radius-lg);
    padding: var(--mls-space-xl);
    border: 1px solid var(--mls-gray-200);
    box-shadow: var(--mls-shadow-lg);
    position: sticky;
    top: var(--mls-space-xl);
}

.agent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--mls-space-lg);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--mls-gray-900);
}

.agent-badge.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--mls-success);
    border-radius: var(--mls-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.agent-badge.verified-badge svg {
    width: 12px;
    height: 12px;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: var(--mls-space);
    margin-bottom: var(--mls-space-lg);
    padding-bottom: var(--mls-space-lg);
    border-bottom: 1px solid var(--mls-gray-200);
}

.agent-avatar {
    flex-shrink: 0;
}

.agent-avatar img {
    width: 64px;
    height: 64px;
    border-radius: var(--mls-radius-full);
    object-fit: cover;
    border: 3px solid var(--mls-primary);
    padding: 2px;
    background: var(--mls-white);
}

.agent-details {
    flex: 1;
}

.agent-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--mls-gray-900);
}

.agent-name .agent-link {
    color: var(--mls-gray-900);
    text-decoration: none;
    transition: color 0.2s ease;
}

.agent-name .agent-link:hover {
    color: var(--mls-primary);
    text-decoration: none;
}

.agent-role {
    font-size: 0.95rem;
    color: var(--mls-gray-600);
    margin: 0 0 12px 0;
}

.view-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--mls-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--mls-radius-sm);
    background: var(--mls-gray-50);
    border: 1px solid var(--mls-gray-200);
    transition: all var(--mls-transition-fast);
}

.view-profile-link:hover {
    background: var(--mls-primary);
    color: white;
    border-color: var(--mls-primary);
    transform: translateX(2px);
    text-decoration: none;
}

.view-profile-link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--mls-transition-fast);
}

.view-profile-link:hover svg {
    transform: scale(1.1);
}

/* Contact Buttons */
.contact-agent-button,
.rate-agent-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--mls-primary), var(--mls-primary-dark));
    color: white;
    border: none;
    border-radius: var(--mls-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--mls-transition-base);
    margin-bottom: var(--mls-space);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-agent-button:hover,
.rate-agent-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(30, 82, 119, 0.4);
}

.rate-agent-button {
    background: linear-gradient(135deg, var(--mls-warning), #d97706);
}

.rate-agent-button:hover {
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4);
}

.contact-agent-button svg,
.rate-agent-button svg {
    width: 20px;
    height: 20px;
}

/* Contact Details */
.agent-contact-details {
    margin-top: var(--mls-space-lg);
    padding-top: var(--mls-space-lg);
    border-top: 1px solid var(--mls-gray-200);
}

.agent-contact-details.hidden {
    display: none;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--mls-gray-700);
}

.contact-item:not(:last-child) {
    border-bottom: 1px solid var(--mls-gray-100);
}

.contact-item svg {
    color: var(--mls-primary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.contact-item a {
    color: var(--mls-gray-700);
    text-decoration: none;
    transition: color var(--mls-transition-fast);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--mls-primary);
    text-decoration: underline;
}

/* Contact Form */
.contact-form.hidden {
    display: none;
}

.contact-form {
    margin-top: var(--mls-space-lg);
    padding-top: var(--mls-space-lg);
    border-top: 1px solid var(--mls-gray-200);
}

.form-group {
    margin-bottom: var(--mls-space-lg);
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--mls-text);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--mls-gray-300);
    border-radius: var(--mls-radius);
    font-size: 1rem;
    transition: all var(--mls-transition-base);
    background: var(--mls-white);
    color: var(--mls-gray-900);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--mls-primary);
    box-shadow: 0 0 0 3px rgba(30, 82, 119, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    width: 100%;
    padding: 16px;
    background: var(--mls-gradient-primary);
    color: white;
    border: none;
    border-radius: var(--mls-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--mls-transition-base);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(30, 82, 119, 0.4);
}

/* Property Meta Card */
.property-meta-card {
    background: var(--mls-white);
    border-radius: var(--mls-radius-lg);
    padding: var(--mls-space-xl);
    border: 1px solid var(--mls-gray-200);
    box-shadow: var(--mls-shadow-lg);
}

.property-meta-card .card-title {
    margin-bottom: var(--mls-space-lg);
}

.meta-grid {
    display: grid;
    gap: var(--mls-space);
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.meta-item:not(:last-child) {
    border-bottom: 1px solid var(--mls-gray-200);
}

.meta-label {
    color: var(--mls-gray-600);
    font-weight: 500;
    font-size: 0.95rem;
}

.meta-value {
    color: var(--mls-gray-900);
    font-weight: 700;
    font-size: 1rem;
}

/* ============================================
   MODALS
   ============================================ */

.malisafi-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.malisafi-modal.open {
    display: flex !important;
}

/* Force hide modals without open class */
.malisafi-modal:not(.open) {
    display: none !important;
}

.modal-content {
    background: var(--mls-white);
    border-radius: var(--mls-radius-xl);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--mls-shadow-2xl);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--mls-space-xl);
    border-bottom: 1px solid var(--mls-gray-200);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mls-gray-900);
}

.modal-close {
    background: var(--mls-gray-100);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--mls-radius-full);
    color: var(--mls-gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--mls-transition-base);
}

.modal-close:hover {
    background: var(--mls-gray-200);
    color: var(--mls-gray-900);
    transform: rotate(90deg);
}

.modal-body {
    padding: var(--mls-space-xl);
}

.login-prompt {
    text-align: center;
    padding: 40px 20px;
}

.login-prompt p {
    margin-bottom: 20px;
    color: var(--mls-gray-600);
    font-size: 1.1rem;
}

.success-message {
    text-align: center;
    padding: 20px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--mls-radius);
    color: var(--mls-success);
    font-weight: 600;
}

.success-message.hidden {
    display: none;
}

/* Form Elements in Modals */
.modal-body .form-group {
    margin-bottom: var(--mls-space-lg);
}

.modal-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--mls-gray-700);
    font-size: 0.95rem;
}

.modal-body input,
.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--mls-gray-300);
    border-radius: var(--mls-radius);
    font-size: 1rem;
    transition: all var(--mls-transition-base);
    background: var(--mls-white);
    color: var(--mls-gray-900);
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: var(--mls-primary);
    box-shadow: 0 0 0 3px rgba(30, 82, 119, 0.1);
}

.form-actions {
    display: flex;
    gap: var(--mls-space);
    margin-top: var(--mls-space-xl);
}

.button-secondary,
.button-primary {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: var(--mls-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--mls-transition-base);
}

.button-secondary {
    background: var(--mls-gray-100);
    color: var(--mls-gray-700);
}

.button-secondary:hover {
    background: var(--mls-gray-200);
    transform: translateY(-1px);
    box-shadow: var(--mls-shadow);
}

.button-primary {
    background: linear-gradient(135deg, var(--mls-primary), var(--mls-primary-dark));
    color: white;
}

.button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(30, 82, 119, 0.4);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hidden {
    display: none !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .property-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .agent-contact-card {
        position: static;
    }
    
    .gallery-main {
        height: 60vh;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .malisafi-single-property {
        padding: var(--mls-space-lg) var(--mls-space);
    }
    
    .property-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .property-actions {
        justify-content: stretch;
    }
    
    .action-button {
        flex: 1;
        min-width: auto;
    }
    
    .property-specs-inline {
        gap: var(--mls-space);
        padding: var(--mls-space-sm);
        justify-content: center;
    }
    
    .spec-item-inline {
        padding: 8px 12px;
        min-width: 120px;
        justify-content: center;
    }
    
    .spec-value {
        font-size: 1rem;
    }
    
    .spec-label {
        font-size: 0.75rem;
    }
    
    .gallery-main {
        height: 50vh;
        min-height: 350px;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        max-height: 120px;
    }
    
    .modal-content {
        width: 95%;
        margin: var(--mls-space);
    }
}

@media (max-width: 480px) {
    .property-title {
        font-size: 1.75rem;
    }
    
    .property-specs-inline {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
        gap: 10px;
    }
    
    .spec-item-inline {
        min-width: auto;
        width: 100%;
        justify-content: flex-start;
    }
    
    .spec-price {
        grid-column: span 2;
        justify-content: center;
    }
    
    .gallery-main {
        height: 40vh;
        min-height: 300px;
    }
    
    .gallery-nav {
        width: 44px;
        height: 44px;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        max-height: 100px;
    }
    
    .property-details-grid,
    .property-features-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .property-actions,
    .contact-agent-button,
    .rate-agent-button,
    .gallery-nav,
    .gallery-counter,
    .malisafi-modal,
    .gallery-thumbnails {
        display: none !important;
    }
    
    .property-gallery {
        break-inside: avoid;
    }
    
    .malisafi-single-property {
        padding: 0;
        max-width: 100%;
    }
    
    .property-content-wrapper {
        display: block;
    }
}