/**
 * WP Emlak Pro - Custom Styles
 */

/* Admin Panel Styles */
.property-meta-box {
    background: #fff;
}

.meta-section {
    border: 1px solid #e5e7eb;
}

/* Loading State */
.property-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Hover Enhancements */
.property-card {
    position: relative;
}

.property-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, #2563eb, #f59e0b);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.property-card:hover::before {
    opacity: 1;
}

/* Status Badges */
.property-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active { background: #dcfce7; color: #166534; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-sold { background: #fee2e2; color: #991b1b; }

/* Filter Tags */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.filter-tag .remove {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.filter-tag .remove:hover {
    opacity: 1;
}

/* Property Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 0.875rem;
}

.feature-item .icon {
    color: #10b981;
}

/* ========================================
   PROPERTY DETAILED FEATURES
   ======================================== */
.property-features-detailed {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-category {
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.feature-category:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.feature-category h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid #bfdbfe;
    transition: all 0.2s ease;
}

.feature-tag:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    transform: translateY(-1px);
}

/* Different colors for different categories */
.feature-category:nth-child(2) .feature-tag {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
    border-color: #bbf7d0;
}

.feature-category:nth-child(3) .feature-tag {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    color: #854d0e;
    border-color: #fde047;
}

.feature-category:nth-child(4) .feature-tag {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #075985;
    border-color: #7dd3fc;
}

.feature-category:nth-child(5) .feature-tag {
    background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
    color: #86198f;
    border-color: #e879f9;
}

.feature-category:nth-child(6) .feature-tag {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: #9a3412;
    border-color: #fdba74;
}

.feature-category:nth-child(7) .feature-tag {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    color: #5b21b6;
    border-color: #a78bfa;
}

.feature-category:nth-child(8) .feature-tag {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #065f46;
    border-color: #6ee7b7;
}

/* Mortgage Calculator Widget */
.mortgage-calculator {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: #fff;
    border-radius: 16px;
    padding: 24px;
}

.mortgage-calculator h3 {
    margin-bottom: 20px;
    font-size: 1.125rem;
}

.mortgage-calculator .form-group {
    margin-bottom: 15px;
}

.mortgage-calculator label {
    display: block;
    font-size: 0.8125rem;
    margin-bottom: 5px;
    opacity: 0.9;
}

.mortgage-calculator input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
}

.mortgage-result {
    background: rgba(255,255,255,0.15);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    text-align: center;
}

.mortgage-result .amount {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumbs a {
    color: #2563eb;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #d1d5db;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .property-sidebar,
    .gallery-overlay,
    .property-favorite {
        display: none !important;
    }
    
    .property-main {
        width: 100% !important;
    }
    
    .gallery-main-image {
        height: 300px !important;
    }
    
    body {
        background: #fff !important;
    }
    
    .feature-tag {
        background: #f3f4f6 !important;
        border: 1px solid #d1d5db !important;
        color: #374151 !important;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Animation Classes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Sticky Header */
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Responsive Tables */
@media (max-width: 640px) {
    .details-table .detail-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .details-table .detail-value {
        text-align: left;
    }
    
    .property-features-detailed {
        gap: 20px;
    }
    
    .feature-category h4 {
        font-size: 0.9375rem;
    }
    
    .feature-tag {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
