/* Real Estate Management System - Main Styles */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
}

.navbar-menu {
    display: flex;
    gap: 1.5rem;
}

.navbar-menu a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 500;
}

.navbar-menu a:hover, .navbar-menu a.active {
    color: white;
    background: rgba(255,255,255,0.15);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>') repeat;
    background-size: 200px 200px;
    animation: float 20s linear infinite;
}

@keyframes float {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Filters */
.filters {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.filter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #0f3460;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(15, 52, 96, 0.3);
}

.btn-secondary {
    background: #e9ecef;
    color: #495057;
}

.btn-secondary:hover {
    background: #dee2e6;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #219a52;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-warning:hover {
    background: #d68910;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Results Info */
.results-info {
    margin-bottom: 1.5rem;
    color: #6c757d;
}

/* Property Grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.property-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-type {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-sale {
    background: #27ae60;
    color: white;
}

.badge-rent {
    background: #3498db;
    color: white;
}

.property-content {
    padding: 1.5rem;
}

.property-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.property-location {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.property-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0f3460;
    margin-bottom: 1rem;
}

.property-price span {
    font-size: 0.9rem;
    font-weight: normal;
    color: #6c757d;
}

.property-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.property-features span {
    font-size: 0.85rem;
    color: #495057;
    background: #f8f9fa;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

/* Property Detail */
.back-link {
    display: inline-block;
    color: #0f3460;
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link:hover {
    color: #1a1a2e;
}

.property-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.property-detail-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
}

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

.property-detail-image .property-type {
    top: 1.5rem;
    left: 1.5rem;
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
}

.property-detail-info {
    padding: 1rem 0;
}

.property-detail-info h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.property-detail-info .location {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.property-detail-info .address {
    color: #495057;
    margin-bottom: 1rem;
}

.property-detail-info .price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0f3460;
    margin-bottom: 1.5rem;
}

.property-detail-info .price span {
    font-size: 1rem;
    font-weight: normal;
}

.property-features-grid {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.feature {
    text-align: center;
}

.feature-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.3rem;
}

.feature-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a1a2e;
    display: block;
}

.feature-label {
    font-size: 0.85rem;
    color: #6c757d;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.status-available {
    background: #d4edda;
    color: #155724;
}

.status-sold, .status-rented {
    background: #f8d7da;
    color: #721c24;
}

.description {
    margin-bottom: 1.5rem;
}

.description h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.description p {
    color: #495057;
    line-height: 1.8;
}

.contact-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.contact-section h2 {
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.contact-section p {
    color: #6c757d;
    margin-bottom: 1rem;
}

/* Similar Properties */
.similar-properties {
    margin-top: 3rem;
}

.similar-properties h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer p {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .property-detail {
        grid-template-columns: 1fr;
    }
    
    .property-detail-image {
        height: 300px;
    }
    
    .property-features-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
}
