/* Wanted Page Styles */

/* Hero Section */
.wanted-hero {
    position: relative;
    background: linear-gradient(rgba(111, 167, 215, 0.85), rgba(117, 170, 213, 0.85)), 
                url('/images/home1.jpg') no-repeat center center/cover;
    height: 450px;
    color: #fff;
    overflow: visible !important;
}

.wanted-hero .hero-text {
    position: absolute;
    top: 50%;
    left: 80px;
    transform: translateY(-50%);
    text-align: left;
    max-width: 600px;
}

.wanted-hero .hero-text h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.wanted-hero .hero-text p {
    font-size: 18px;
    margin-top: 15px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Post Wanted Section */
.post-wanted-section {
    margin-top: -60px;
    padding-bottom: 40px;
    position: relative;
    z-index: 10;
}

.post-wanted-card {
    background: linear-gradient(135deg, #1167B1 0%, #0d4e8a 100%);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.post-wanted-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.post-wanted-content > i {
    font-size: 48px;
    color: #ffd700;
}

.post-wanted-text {
    flex: 1;
    color: white;
}

.post-wanted-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.post-wanted-text p {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
}

.btn-post-wanted {
    background: #ffd700;
    color: #1167B1;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.btn-post-wanted:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

/* Filter Section */
.filter-section {
    padding: 40px 0 20px;
}

.filter-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.filter-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #1167B1;
}

.filter-card h3 i {
    margin-right: 8px;
}

.filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    transition: border-color 0.3s;
}

.filter-input:focus {
    outline: none;
    border-color: #1167B1;
}

.btn-filter,
.btn-clear {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-filter {
    background: #1167B1;
    color: white;
}

.btn-filter:hover {
    background: #0d4e8a;
    transform: translateY(-2px);
}

.btn-clear {
    background: #e0e0e0;
    color: #333;
}

.btn-clear:hover {
    background: #d0d0d0;
}

/* Wanted Ads Grid */
.wanted-ads-section {
    padding: 40px 0;
}

.wanted-ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.wanted-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.wanted-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #1167B1;
}

.wanted-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
}

.wanted-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.wanted-badge-sale {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.wanted-badge-rent {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.wanted-badge-land {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: white;
}

.wanted-date {
    font-size: 13px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wanted-card-body {
    padding: 20px;
}

.wanted-title {
    font-size: 20px;
    font-weight: 700;
    color: #1167B1;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wanted-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.wanted-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
}

.wanted-detail-item i {
    color: #1167B1;
    width: 20px;
}

.wanted-requirements {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.wanted-requirements strong {
    display: block;
    margin-bottom: 8px;
    color: #1167B1;
    font-size: 14px;
}

.wanted-requirements strong i {
    margin-right: 5px;
}

.wanted-requirements p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.wanted-card-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    display: flex;
    gap: 10px;
    border-top: 1px solid #e0e0e0;
}

.btn-contact,
.btn-view-more {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-contact {
    background: #28a745;
    color: white;
}

.btn-contact:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-view-more {
    background: white;
    color: #1167B1;
    border: 2px solid #1167B1;
}

.btn-view-more:hover {
    background: #1167B1;
    color: white;
}

/* No Ads Message */
.no-ads-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.no-ads-message i {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.no-ads-message h3 {
    font-size: 24px;
    color: #333;
    margin: 0 0 10px 0;
}

.no-ads-message p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin-top: 40px;
}

.btn-load-more {
    padding: 15px 40px;
    background: white;
    color: #1167B1;
    border: 2px solid #1167B1;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-load-more:hover {
    background: #1167B1;
    color: white;
    transform: translateY(-2px);
}

/* Post Wanted Form Section */
.post-wanted-form-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.form-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1167B1;
    margin: 0;
}

.form-header h2 i {
    margin-right: 10px;
}

.btn-close-form {
    width: 40px;
    height: 40px;
    background: #e0e0e0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    transition: all 0.3s ease;
}

.btn-close-form:hover {
    background: #dc3545;
    color: white;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #1167B1;
}

.form-control {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #1167B1;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-submit,
.btn-reset {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit {
    background: #28a745;
    color: white;
}

.btn-submit:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-reset {
    background: #6c757d;
    color: white;
}

.btn-reset:hover {
    background: #5a6268;
}

/* Why Wanted Section */
.why-wanted-section {
    padding: 60px 0;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1167B1, #0d4e8a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.benefit-icon i {
    font-size: 36px;
    color: white;
}

.benefit-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1167B1;
    margin: 0 0 10px 0;
}

.benefit-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wanted-hero {
        height: 350px;
    }
    
    .wanted-hero .hero-text {
        left: 20px;
        right: 20px;
        max-width: calc(100% - 40px);
    }
    
    .wanted-hero .hero-text h1 {
        font-size: 24px;
    }
    
    .wanted-hero .hero-text p {
        font-size: 14px;
    }
    
    .post-wanted-section {
        margin-top: -40px;
    }
    
    .post-wanted-content {
        flex-direction: column;
        text-align: center;
    }
    
    .post-wanted-content > i {
        font-size: 36px;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-input {
        width: 100%;
    }
    
    .wanted-ads-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-card {
        padding: 25px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .wanted-hero .hero-text h1 {
        font-size: 20px;
    }
    
    .post-wanted-text h3 {
        font-size: 20px;
    }
    
    .btn-post-wanted {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .wanted-card-footer {
        flex-direction: column;
    }
}