/* style.css - استایل کامل سیستم املاک شمال */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tahoma', 'IRANSans', system-ui, -apple-system, sans-serif;
    background: linear-gradient(145deg, #f0f4f8 0%, #e2e8ed 100%);
    color: #1a2a3a;
    line-height: 1.7;
    min-height: 100vh;
}

.wrapper {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 0 0 32px 32px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* Header */
.main-header {
    background: linear-gradient(135deg, #0b3b2f 0%, #1b5e3f 100%);
    color: white;
    padding: 20px 40px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.logo p {
    font-size: 0.85rem;
    opacity: 0.85;
}

.main-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 30px;
    transition: 0.2s;
    font-weight: 500;
}

.main-nav a:hover {
    background: rgba(255,255,255,0.2);
}

.user-badge {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
}

/* Container */
.container {
    padding: 40px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(120deg, #e8f3ef, #d4eae3);
    border-radius: 32px;
    padding: 50px;
    text-align: center;
    margin-bottom: 50px;
}

.hero-section h2 {
    font-size: 2.2rem;
    color: #0a2e24;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    color: #2c5a48;
    margin-bottom: 25px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hero-badges .badge {
    background: #2e7d64;
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: bold;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-detail {
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
    display: inline-block;
}

.btn-primary {
    background: #1b5e3f;
    color: white;
}

.btn-primary:hover {
    background: #0d4a33;
    transform: scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: #1b5e3f;
    border: 2px solid #1b5e3f;
}

.btn-secondary:hover {
    background: #1b5e3f;
    color: white;
}

/* Section Titles */
.section-title {
    margin: 50px 0 30px 0;
}

.section-title h2 {
    font-size: 1.8rem;
    border-right: 8px solid #2e7d64;
    padding-right: 20px;
    color: #0a2e24;
}

/* Locations Grid */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.location-card {
    background: #f9fbfd;
    border-radius: 28px;
    padding: 28px;
    border: 1px solid #e2edf2;
    transition: 0.3s;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.location-card h3 {
    color: #1b5e3f;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.location-card p {
    margin-bottom: 12px;
    line-height: 1.8;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.feature-box {
    background: #eef5f0;
    border-radius: 24px;
    padding: 22px;
    text-align: center;
}

.feature-box h3 {
    color: #1b5e3f;
    margin-bottom: 10px;
}

/* Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.listing-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
    border: 1px solid #e0e8e5;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.listing-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.listing-img-placeholder {
    width: 100%;
    height: 220px;
    background: #2e7d64;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.listing-content {
    padding: 20px;
}

.listing-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1b5e3f;
}

.listing-content p {
    margin-bottom: 8px;
    color: #5a6e66;
}

.price {
    font-weight: bold;
    color: #1b5e3f !important;
    font-size: 1.1rem;
}

.btn-detail {
    background: #eef2f5;
    color: #1b5e3f;
    padding: 8px 20px;
    margin-top: 12px;
    display: inline-block;
}

.btn-detail:hover {
    background: #1b5e3f;
    color: white;
}

/* Single Listing */
.single-listing {
    max-width: 900px;
    margin: 0 auto;
}

.main-image {
    width: 100%;
    border-radius: 28px;
    margin-bottom: 25px;
}

.listing-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    background: #eef5f0;
    padding: 15px 20px;
    border-radius: 20px;
    margin: 20px 0;
}

.listing-description {
    background: #f9fbfd;
    padding: 25px;
    border-radius: 24px;
    margin: 20px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 16px;
}

.contact-info {
    background: linear-gradient(120deg, #1a3f32, #0e2f24);
    color: white;
    padding: 30px;
    border-radius: 28px;
    margin-top: 30px;
    text-align: center;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    padding: 10px 25px;
    border-radius: 40px;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
}

/* Form Container */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: #f9fbfd;
    padding: 35px;
    border-radius: 32px;
}

.form-container h2 {
    color: #1b5e3f;
    margin-bottom: 20px;
}

.form-container label {
    display: block;
    margin-top: 18px;
    margin-bottom: 6px;
    font-weight: bold;
    color: #2c5a48;
}

.form-container input, .form-container select, .form-container textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e8e5;
    border-radius: 16px;
    font-size: 1rem;
    transition: 0.2s;
}

.form-container input:focus, .form-container select:focus, .form-container textarea:focus {
    border-color: #2e7d64;
    outline: none;
}

/* Admin Panel */
.admin-panel {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e8e5;
    padding-bottom: 15px;
}

.admin-tabs a {
    padding: 10px 20px;
    background: #eef2f5;
    text-decoration: none;
    color: #1b5e3f;
    border-radius: 30px;
}

.admin-listing {
    background: #f9fbfd;
    border: 1px solid #e0e8e5;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.btn-approve {
    background: #1b5e3f;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
}

.btn-reject {
    background: #c53434;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
}

.btn-delete {
    background: #999;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: #f9fbfd;
    border-radius: 24px;
    padding: 25px;
    border: 1px solid #e0e8e5;
}

.article-card h3 {
    color: #1b5e3f;
    margin-bottom: 10px;
}

.article-meta {
    color: #8a9e94;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.article-excerpt {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Keywords Cloud */
.keywords-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 50px 0 30px;
    justify-content: center;
}

.keyword {
    background: #eef2f5;
    padding: 8px 22px;
    border-radius: 45px;
    font-size: 0.85rem;
    color: #1e4a3b;
    font-weight: 500;
    transition: 0.2s;
}

.keyword:hover {
    background: #2e7d64;
    color: white;
    transform: translateY(-2px);
}

/* Alert */
.alert {
    padding: 15px 20px;
    border-radius: 20px;
    margin-bottom: 25px;
}

.alert-success {
    background: #e6f4ea;
    color: #1b5e3f;
    border-right: 4px solid #1b5e3f;
}

.alert-error {
    background: #fee;
    color: #c00;
    border-right: 4px solid #c00;
}

/* Footer */
.main-footer {
    background: #0c241d;
    color: #adc7bc;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 25px 20px;
    }
    
    .hero-section {
        padding: 30px 20px;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 1.4rem;
    }
    
    .location-card h3 {
        font-size: 1.3rem;
    }
    
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav {
        justify-content: center;
    }
}