/**
 * Property System Styling
 * House/Apartment buying and management interface
 */

/* Main property menu container */
.property-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #3A3238;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    font-family: 'Courier New', monospace;
    padding: 2rem;
}

/* Close button */
.property-close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: transparent;
    border: 2px solid #8E7F7F;
    color: #5F5449;
    font-size: 16px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Courier New', monospace;
    z-index: 300;
}

.property-close:hover {
    background: rgba(142, 127, 127, 0.2);
    border-color: #5F5449;
}

/* Document container */
.property-document {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    background: #EBE6D8;
    border: 2px solid #8E7F7F;
    box-shadow:
        0 0 30px rgba(0,0,0,0.3),
        inset 0 0 100px rgba(210,180,140,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Paper texture */
.property-document::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.8"/></filter><rect width="100" height="100" filter="url(%23noise)" opacity="0.1"/></svg>');
    pointer-events: none;
    opacity: 0.3;
    z-index: 0;
}

/* Folder tab */
.property-folder-tab {
    position: absolute;
    width: 300px;
    height: 40px;
    background: #D4C8BE;
    top: -40px;
    left: 40px;
    border: 2px solid #8E7F7F;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3A3238;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
    font-size: 13px;
    letter-spacing: 1px;
}

/* Classification bar */
.property-classification-bar {
    background: darkred;
    color: #EBE6D8;
    text-align: center;
    padding: 0.5rem;
    font-size: 11px;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

/* Header */
.property-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #8E7F7F;
    position: relative;
    z-index: 1;
}

.property-header-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 14px;
}

.property-date-stamp {
    background: #D4C8BE;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 12px;
}

/* Filter section */
.property-filter-section {
    background: rgba(212,200,190,0.3);
    padding: 1rem;
    margin: 0 2rem;
    border: 2px solid #8E7F7F;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.property-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.property-filter-label {
    font-size: 11px;
    font-weight: bold;
    color: #5F5449;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-filter-select {
    background: #EBE6D8;
    border: 2px solid #8E7F7F;
    padding: 0.5rem;
    font-family: inherit;
    width: 100%;
    font-size: 12px;
    color: #5F5449;
    cursor: pointer;
}

.property-filter-select:hover {
    border-color: #5F5449;
}

/* Properties container */
.properties-container {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 1.5rem;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

/* Property card */
.property-card {
    background: rgba(212,200,190,0.3);
    border: 2px solid #8E7F7F;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    background: rgba(212,200,190,0.5);
    border-color: #5F5449;
}

.property-card.selected {
    border: 3px solid #3A3238;
    background: rgba(212,200,190,0.6);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.property-card-header {
    background: #D4C8BE;
    padding: 1rem;
    border-bottom: 2px solid #8E7F7F;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.property-address {
    font-weight: bold;
    font-size: 13px;
    color: #3A3238;
    margin-bottom: 0.25rem;
}

.property-location {
    font-size: 12px;
    color: #5F5449;
}

.property-status-badge {
    padding: 0.25rem 0.5rem;
    background: #3A3238;
    color: #D4C8BE;
    font-size: 10px;
    border-radius: 2px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.property-status-badge.owned {
    background: darkgreen;
}

/* Property content */
.property-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-price {
    font-size: 18px;
    font-weight: bold;
    color: #3A3238;
    margin-bottom: 1rem;
}

.property-scheme {
    background: #5F5449;
    aspect-ratio: 4/3;
    margin: 1rem 0;
    padding: 1rem;
    color: #D4C8BE;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-style: italic;
    font-size: 11px;
    line-height: 1.6;
    white-space: pre-line;
}

.property-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.property-detail-group {
    background: rgba(212,200,190,0.2);
    padding: 0.75rem;
    border: 1px solid #8E7F7F;
}

.property-detail-label {
    font-size: 10px;
    color: #5F5449;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.property-detail-value {
    font-weight: bold;
    color: #3A3238;
    font-size: 13px;
}

/* Features section */
.property-features-section {
    background: rgba(212,200,190,0.2);
    padding: 1rem;
    border: 1px solid #8E7F7F;
    margin-top: auto;
}

.property-features-title {
    font-weight: bold;
    font-size: 11px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.property-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 11px;
    color: #5F5449;
}

/* Footer */
.property-footer {
    background: #D4C8BE;
    padding: 1rem 2rem;
    border-top: 2px solid #8E7F7F;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.property-listing-count {
    font-size: 13px;
    color: #3A3238;
    font-weight: bold;
}

.property-action-button {
    background: #D4C8BE;
    border: 2px solid #8E7F7F;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: bold;
    color: #3A3238;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-action-button:hover:not(:disabled) {
    background: #8E7F7F;
    color: #D4C8BE;
}

.property-action-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Scrollbar styling */
.properties-container::-webkit-scrollbar {
    width: 8px;
}

.properties-container::-webkit-scrollbar-track {
    background: rgba(142, 127, 127, 0.1);
}

.properties-container::-webkit-scrollbar-thumb {
    background: #8E7F7F;
    border-radius: 4px;
}

.properties-container::-webkit-scrollbar-thumb:hover {
    background: #5F5449;
}

/* Empty state */
.property-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #8E7F7F;
    position: relative;
    z-index: 1;
}

.property-empty-icon {
    font-size: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.property-empty-text {
    font-size: 14px;
    line-height: 1.6;
}
