.realestate-pro-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.form-row .form-group {
    flex: 1;
    min-width: 200px;
}
.form-row .form-group.large-field {
    flex: 2;
    min-width: 250px;
}
.realestate-pro-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}
.realestate-pro-form input,
.realestate-pro-form select,
.realestate-pro-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}
.realestate-pro-form input:focus,
.realestate-pro-form select:focus,
.realestate-pro-form textarea:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}
.realestate-pro-form input[type='number'] {
    min-width: 120px;
}
.submit-btn {
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}
.submit-btn:hover {
    background: linear-gradient(135deg, #005a87, #004670);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 124, 186, 0.3);
}
.button {
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}
.button:hover {
    background: #545b62;
    color: white;
    text-decoration: none;
}
.button.primary {
    background: #007cba;
}
.button.primary:hover {
    background: #005a87;
}
.button.small {
    padding: 6px 12px;
    font-size: 12px;
}
.button.secondary {
    background: #6c757d;
}
.button.secondary:hover {
    background: #545b62;
}

/* Messages */
.realestate-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 4px solid;
}
.realestate-message.success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}
.realestate-message.error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}
.realestate-message.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* Filtres */
.properties-filters {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #ccd0d4;
}
.filter-form .filter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.filter-group {
    flex: 1;
    min-width: 200px;
}
.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
.filter-group input,
.filter-group select {
    min-width: 200px;
    padding: 8px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}
.filter-actions {
    display: flex;
    gap: 10px;
}

/* Styles pour les cartes propriétés */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding: 20px 0;
}
.property-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}
.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.property-image {
    height: 200px;
    overflow: hidden;
}
.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.property-card:hover .property-image img {
    transform: scale(1.05);
}
.property-info {
    padding: 20px;
}
.property-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #333;
}
.property-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.property-type, .transaction-type {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    color: #666;
}
.property-price {
    font-size: 1.5em;
    font-weight: bold;
    color: #007cba;
    margin-bottom: 10px;
}
.property-details {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    color: #666;
    font-size: 0.9em;
}
.property-location {
    color: #888;
    margin-bottom: 15px;
}
.view-details {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}
.view-details:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

/* Détails propriété */
.property-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}
.property-gallery {
    margin-bottom: 30px;
}
.property-gallery img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
}
.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}
.property-header h1 {
    margin: 0;
    flex: 1;
    color: #333;
}
.property-price {
    font-size: 2em;
    font-weight: bold;
    color: #007cba;
}
.property-meta-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}
.meta-item {
    display: flex;
    flex-direction: column;
}
.meta-item strong {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}
.property-description,
.property-amenities,
.property-location-detail,
.property-map {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
}
.property-amenities ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}
.property-amenities li {
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #007cba;
}

/* Tableau de bord vendeur */
.vendor-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.dashboard-actions {
    margin-bottom: 30px;
}
.vendor-properties {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e1e1e1;
}
.properties-table {
    overflow-x: auto;
}
.properties-table table {
    width: 100%;
    border-collapse: collapse;
}
.properties-table th,
.properties-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e1e1e1;
}
.properties-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}
.view-link {
    font-size: 0.8em;
    color: #007cba;
    text-decoration: none;
}
.view-link:hover {
    text-decoration: underline;
}
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    display: inline-block;
}
.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}
.status-approved {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #b8daff;
}
.status-rejected {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.actions {
    white-space: nowrap;
}
.no-properties {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Modal */
.realestate-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}
.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
}
.close-modal:hover {
    color: #000;
}

/* Formulaire de contact */
.contact-form-wrapper {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
}
.contact-form {
    max-width: 600px;
}

/* Responsive */
@media (max-width: 768px) {
    .realestate-pro-form {
        padding: 10px;
    }
    .form-row {
        gap: 10px;
    }
    .form-row .form-group {
        flex: 100%;
        min-width: 100%;
    }
    .realestate-pro-form input,
    .realestate-pro-form select,
    .realestate-pro-form textarea {
        padding: 10px;
        font-size: 16px;
    }
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }
    .property-header {
        flex-direction: column;
        gap: 15px;
    }
    .property-price {
        font-size: 1.5em;
    }
    .property-meta-detail {
        grid-template-columns: 1fr;
    }
    .vendor-dashboard {
        padding: 10px;
    }
    .vendor-properties {
        padding: 20px;
    }
    .properties-table {
        font-size: 0.9em;
    }
    .modal-content {
        padding: 20px;
        margin: 10px;
        width: calc(100% - 20px);
    }
}

/* Landing Page Styles */
.realestate-landing {
    max-width: 1200px;
    margin: 0 auto;
}

.landing-hero {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 60px;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: white;
    color: #007cba;
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #007cba;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #007cba;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #007cba;
    border-color: #007cba;
}

.btn-outline:hover {
    background: #007cba;
    color: white;
}

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

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

/* Statistiques */
.landing-stats {
    background: #f8f9fa;
    padding: 60px 20px;
    margin-bottom: 60px;
    border-radius: 12px;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3em;
    font-weight: bold;
    color: #007cba;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1em;
    color: #666;
}

/* Inscription */
.landing-registration {
    padding: 60px 20px;
    margin-bottom: 60px;
}

.registration-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.registration-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.registration-option {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    border: 2px solid #e1e1e1;
    transition: all 0.3s ease;
}

.registration-option.featured {
    border-color: #007cba;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 124, 186, 0.2);
}

.registration-option h3 {
    margin-bottom: 20px;
    color: #333;
}

.registration-option ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.registration-option li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.registration-option li:last-child {
    border-bottom: none;
}

.registration-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e1e1e1;
    margin-top: 40px;
    text-align: left;
}

/* Profil utilisateur */
.user-profile-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e1e1e1;
}

.profile-form {
    max-width: 500px;
}

.account-action {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.account-action.danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

.account-action h4 {
    margin-bottom: 10px;
    color: #333;
}

/* Détails vendeur dans l'admin */
.vendor-details {
    max-width: 600px;
}

.info-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e1e1;
}

.info-section:last-child {
    border-bottom: none;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item strong {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.vendor-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2em;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .registration-options {
        grid-template-columns: 1fr;
    }
    
    .registration-option.featured {
        transform: none;
    }
    
    .registration-form {
        padding: 20px;
    }
    
    .profile-section {
        padding: 20px;
    }
}

/* Styles pour le partage natif */
.property-share-section {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #007cba;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    background: white;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.share-btn.native-share {
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    border-color: #007cba;
}

.share-btn.whatsapp {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.share-btn.facebook {
    background: #1877F2;
    color: white;
    border-color: #1877F2;
}

.share-btn.email {
    background: #EA4335;
    color: white;
    border-color: #EA4335;
}

.share-btn.copy-link {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.share-btn i {
    font-size: 1.2em;
}

/* Responsive */
@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
}

/* Badge en vedette */
.featured-card {
    position: relative;
    border: 2px solid #ff9800;
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 5px 15px rgba(255, 152, 0, 0.2); }
    50% { box-shadow: 0 5px 25px rgba(255, 152, 0, 0.4); }
    100% { box-shadow: 0 5px 15px rgba(255, 152, 0, 0.2); }
}

.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Compteur d'images */
.property-image {
    position: relative;
}

.image-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* Section annonces en vedette */
#featured-properties h2 {
    color: #ff9800;
    border-bottom: 2px solid #ff9800;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .featured-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .image-count {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .featured-card {
        border-width: 1px;
    }
}