/*
 * Styles pour les cartes d'annonce et l'icône de favori.
 * Utilisation de Flexbox pour un contrôle total de l'ordre et de l'alignement.
 */

.announcement-content {
    display: flex;
    flex-direction: column; /* Les enfants sont organisés en colonne */
    padding-top: 40px;
}

.favorite-icon { 
    order: 1;                 /* 1. Le coeur est le premier élément */
    align-self: flex-end;     /*    Il s'aligne à droite */
    margin-bottom: 15px;      /* 2. Espace vertical sous le coeur */
    
    font-size: 1.6rem;
    color: #ced4da;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0;
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 1.8em;
    color: #ced4da;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    z-index: 2;
}

.announcement-meta {
    order: 2;                 /* 3. Les informations (prix, date) viennent après */
    margin-bottom: 10px;
    margin-top: 50px; /* Ajoute un espace vertical important au-dessus du bloc prix/date */
}

.announcement-description {
    order: 3;                 /* 4. La description vient en dernier */
}

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

.announcement-price { 
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
}

.announcement-date { 
    font-size: 0.9em;
    color: #6c757d;
}

.favorite-icon.favori {
    color: #F7A73E;
}

.favorite-icon:hover {
    transform: scale(1.15);
} 

.announcement-price-date-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    margin-top: 50px;
}
.announcement-price-date-row .announcement-price {
    color: #F7A73E;
    font-weight: bold;
    font-size: 1.25em;
}
.announcement-price-date-row .announcement-date {
    color: #444;
    font-size: 1.08em;
} 

/*
 * Styles déplacés depuis AllAnnonces.cshtml
 */
.announcement-card {
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 24px 20px 18px 20px;
    margin-bottom: 32px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid #f7a73e22;
    position: relative;
}
.announcement-card:hover {
    box-shadow: 0 8px 32px rgba(247,167,62,0.10);
    transform: translateY(-4px) scale(1.01);
    border-color: #f7a73e55;
}
.badge-prix {
    background: #fff;
    color: #F7A73E;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 8px;
    padding: 6px 18px 6px 12px;
    display: flex;
    align-items: center;
    border: 1.5px solid #F7A73E;
    box-shadow: 0 2px 8px rgba(247,167,62,0.04);
    margin-bottom: 0;
    gap: 7px;
}
.badge-prix i {
    color: #F7A73E;
    font-size: 1.1em;
    margin-right: 2px;
    opacity: 0.8;
}
.badge-date {
    background: #f7f7fa;
    color: #222;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    border: 1px solid #e0e0e0;
    margin-left: 8px;
}
.badge-date i {
    color: #bdbdbd;
    font-size: 1.1em;
    margin-right: 2px;
}
.announcement-title {
    font-weight: bold;
    color: #01083B;
    font-size: 1.15em;
    text-align: center;
    margin-bottom: 10px;
    margin-top: 10px;
}
.announcement-description p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.8em;
    color: #444;
    margin: 0 0 12px 0;
    font-size: 1em;
    text-align: center;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    line-height: 1.5;
}
.announcement-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f2f2f2;
    font-size: 0.98em;
}
.announcement-footer span {
    color: #666;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.announcement-footer i {
    color: #F7A73E;
    font-size: 1.1em;
}
.modal-blur {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
}
.login-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.login-overlay.active {
    display: flex;
}
.btn-login-redirect {
    background: #F7A73E;
    color: #fff;
    border: none;
    font-weight: bold;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1.1em;
    box-shadow: 0 2px 8px rgba(247,167,62,0.12);
    transition: background 0.2s;
}
.btn-login-redirect:hover {
    background: #e28c1c;
    color: #fff;
}
.annonce-details-wrapper {
    padding: 10px 0 0 0;
    min-height: 120px;
    max-height: 350px;
    overflow-y: auto;
    font-size: 1.08em;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    color: #222;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    background: transparent;
}
.annonce-source.mb-3 {
    font-size: 1.1em;
    color: #F7A73E;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
    z-index: 2;
    position: relative;
}
.annonce-text {
    white-space: pre-line;
    word-break: break-word;
    text-align: center;
    padding: 0 8px;
    z-index: 2;
    position: relative;
    color: #222;
    background: transparent;
} 

/* --- Dropdown moderne pour Type et Ville dans AllAnnonces --- */
.custom-dropdown {
    appearance: none;
    background: #fff;
    border: 1.5px solid #e0e0f7;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1.08em;
    color: #5a4e7c;
    box-shadow: 0 4px 24px rgba(120, 80, 255, 0.07);
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='10' viewBox='0 0 16 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2L8 8L14 2' stroke='%237c5ae0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px 12px;
}
.custom-dropdown:focus {
    border-color: #a084f7;
    box-shadow: 0 8px 32px rgba(120, 80, 255, 0.12);
}
.custom-dropdown option {
    background: #fff;
    color: #5a4e7c;
    border-radius: 0;
    padding: 12px 16px;
    font-size: 1.08em;
    transition: background 0.2s, color 0.2s;
}
.custom-dropdown option:hover,
.custom-dropdown option:focus {
    background: #f3f0ff;
    color: #7c5ae0;
} 