/* ==========================================================================
   Rover Club de France — Frontend Styles
   Base partagée : rcf-common.css (variables, boutons, inputs, notices, etc.)
   ========================================================================== */

/* ==========================================================================
   Tags (car-specific modifiers — base .rcf-tag is in rcf-common.css)
   ========================================================================== */

.rcf-tag--condition {
    background: var(--rcf-blue-pale);
    color: var(--rcf-blue);
}

/* ==========================================================================
   Directory
   ========================================================================== */

.rcf-directory {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.rcf-directory__header {
    text-align: center;
    margin-bottom: 30px;
}

.rcf-directory__title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}


.rcf-export-btn {
    margin-left: auto;
    white-space: nowrap;
}

.rcf-directory__subtitle {
    font-size: 16px;
    color: var(--rcf-text-light);
    margin: 0;
}

/* Filters — style aligné sur l'annuaire des membres */

.rcf-filters {
    margin-bottom: 1em;
}

.rcf-filters__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    align-items: end;
    margin-bottom: 0.7em;
}

.rcf-filters__field {
    flex: 1;
    min-width: 140px;
    max-width: 220px;
}

.rcf-filters__field:first-child {
    flex: 2;
    max-width: 320px;
}

.rcf-filters__field label {
    display: block;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--rcf-text);
    margin-bottom: 2px;
}

.rcf-filters__field input,
.rcf-filters__field select {
    width: 100%;
    height: 34px;
    padding: 0 0.8em;
    font-size: 0.9em;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: var(--rcf-text);
    transition: border-color 0.2s;
}

.rcf-filters__field input:focus,
.rcf-filters__field select:focus {
    outline: none;
    border-color: var(--rcf-blue);
}


.rcf-filters__actions {
    display: flex;
    gap: 0.4em;
    align-items: center;
}

.rcf-filters__actions .rcf-btn {
    box-sizing: border-box;
    height: 34px;
    padding: 0 0.8em;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: inherit;
    font-size: 0.9em;
    font-weight: normal;
    line-height: 32px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s, border-color 0.2s;
    margin: 0;
}

.rcf-filters__actions .rcf-btn:hover {
    background-color: var(--rcf-border-light);
}

.rcf-filters__actions .rcf-btn--primary {
    background: var(--rcf-blue);
    color: #fff;
    border-color: var(--rcf-blue);
}

.rcf-filters__actions .rcf-btn--primary:hover {
    background: var(--rcf-blue-hover-dark);
    border-color: var(--rcf-blue-hover-dark);
    color: #fff;
}

/* Grille flexible pour les filtres annonces */
#rcf-cl-filters .rcf-filters__row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}

#rcf-cl-filters .rcf-filters__field {
    min-width: 160px;
    flex: 1;
    max-width: 250px;
}

/* Largeur fixe du champ type d'annonce (~1/3 du conteneur) */
#rcf-cl-filters .rcf-filters__field:first-child {
    flex: 0 0 33%;
    max-width: 33%;
}

/* Barre recherche annonces — input strictement aligné avec les boutons */
#rcf-cl-filters .rcf-filters__actions .rcf-input {
    height: 34px;
    padding: 0 0.8em;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-size: 0.9em;
    font-family: inherit;
    line-height: 32px;
    box-sizing: border-box;
    width: 260px;
    flex: 0 0 260px;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

/* Results info */

.rcf-results-info {
    font-size: 14px;
    color: var(--rcf-text-light);
    margin-bottom: 16px;
}

/* Car Grid */

.rcf-car-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rcf-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--rcf-text-light);
    font-size: 16px;
}

.rcf-search-info__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.rcf-search-info__row .rcf-info-line {
    text-align: left;
    margin: 0;
    padding: 0;
}

.rcf-per-page-select {
    min-width: 130px;
    flex-shrink: 0;
}

#rcf-directory p.rcf-info-line {
    text-align: center;
    color: var(--rcf-text-light);
    font-size: 14px;
    margin: 0 !important;
    padding: 0;
    line-height: 1.6;
}

#rcf-search-info {
    margin-bottom: 1em;
}

/* ==========================================================================
   Car Card
   ========================================================================== */

.rcf-car-card {
    display: flex;
    flex-direction: column;
    background: var(--rcf-white);
    border: 1px solid var(--rcf-border);
    border-radius: var(--rcf-radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--rcf-shadow);
}

.rcf-car-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.rcf-car-card__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.rcf-car-card__link:hover {
    text-decoration: none;
    color: inherit;
}

.rcf-car-card__image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--rcf-bg);
}

.rcf-car-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rcf-car-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rcf-bg);
    color: var(--rcf-border);
}

.rcf-car-card__placeholder svg {
    width: 48px;
    height: 48px;
    will-change: transform;
    backface-visibility: hidden;
}

.rcf-car-card__placeholder--small {
    width: 60px;
    height: 60px;
    border-radius: var(--rcf-radius);
}

.rcf-car-card__placeholder--small svg {
    width: 24px;
    height: 24px;
    will-change: transform;
    backface-visibility: hidden;
}

.rcf-car-card__body {
    padding: 0 16px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

h3.rcf-car-card__title {
    font-size: 18px !important;
    font-weight: 700;
    margin: 6px 0 6px !important;
    color: var(--rcf-text);
    line-height: 1.4 !important;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

p.rcf-car-card__model {
    font-size: 13px;
    color: var(--rcf-blue);
    font-weight: 600;
    margin: 0 0 8px !important;
}

.rcf-car-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.rcf-car-card__meta .rcf-tag {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

p.rcf-car-card__owner {
    font-size: 12px;
    color: var(--rcf-text-light);
    margin: 0 !important;
    margin-top: auto !important;
}

/* ==========================================================================
   Single Car Page
   ========================================================================== */

.rcf-single {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0 40px;
}

.rcf-single__image {
    border-radius: var(--rcf-radius);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--rcf-shadow);
}

.rcf-single__image img {
    width: 100%;
    height: auto;
    display: block;
}

.rcf-single__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rcf-bg);
    aspect-ratio: 16 / 9;
    color: var(--rcf-border);
}

.rcf-single__placeholder svg {
    width: 80px;
    height: 80px;
    will-change: transform;
    backface-visibility: hidden;
}

.rcf-single__header {
    margin-bottom: 24px;
}

.rcf-single__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--rcf-blue);
    margin: 0 0 6px;
}

.rcf-single__model {
    font-size: 18px;
    color: var(--rcf-text-light);
    margin: 0;
}

.rcf-single__description {
    margin-bottom: 24px;
}

.rcf-single__description h2 {
    font-size: 20px;
    color: var(--rcf-blue);
    margin: 0 0 12px;
}

.rcf-single__back {
    margin-top: 30px;
}

/* ==========================================================================
   My Cars (Frontend Manager)
   ========================================================================== */

.rcf-my-cars {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.rcf-my-cars__header {
    margin-bottom: 24px;
}

.rcf-my-cars__header h2 {
    font-size: 24px;
    color: var(--rcf-blue);
    margin: 0 0 6px;
}

.rcf-my-cars__header p {
    color: var(--rcf-text-light);
    font-size: 15px;
    margin: 0;
}

/* My car rows */

.rcf-my-cars__list {
    margin-bottom: 30px;
}

.rcf-my-car-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border: 1px solid var(--rcf-border);
    border-radius: var(--rcf-radius);
    margin-bottom: 8px;
    background: var(--rcf-white);
    transition: background-color 0.2s, border-color 0.2s;
}

.rcf-my-car-row:hover {
    background: var(--rcf-bg);
}

.rcf-my-car-row__thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--rcf-radius);
    overflow: hidden;
}

.rcf-my-car-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rcf-my-car-row__info {
    flex: 1;
    min-width: 0;
}

.rcf-my-car-row__info strong {
    display: block;
    font-size: 15px;
    color: var(--rcf-text);
}

.rcf-my-car-row__year {
    font-size: 13px;
    color: var(--rcf-text-light);
}

.rcf-my-car-row__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ==========================================================================
   Car Form
   ========================================================================== */

.rcf-car-form-wrapper {
    background: var(--rcf-white);
    border: 1px solid var(--rcf-border);
    border-radius: var(--rcf-radius);
    padding: 24px;
    box-shadow: var(--rcf-shadow);
}

.rcf-car-form-wrapper h3 {
    font-size: 20px;
    color: var(--rcf-blue);
    margin: 0 0 20px;
}

.rcf-car-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.rcf-form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rcf-form-field--full {
    grid-column: 1 / -1;
}

.rcf-form-hint {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--rcf-text-light);
    font-style: italic;
}

.rcf-char-count-wrap {
    display: flex;
}

.rcf-char-count-wrap input[type="text"] {
    flex: 1;
    min-width: 0;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: none !important;
    margin: 0;
}

.rcf-char-count {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    padding: 0 10px;
    font-size: 11px;
    color: var(--rcf-text-light);
    line-height: 1;
    white-space: nowrap;
    border-top: 1px solid var(--rcf-border);
    border-right: 1px solid var(--rcf-border);
    border-bottom: 1px solid var(--rcf-border);
    border-left: 1px solid var(--rcf-border);
    border-radius: 0 var(--rcf-radius) var(--rcf-radius) 0;
    background: var(--rcf-bg, #f5f5f5);
    box-sizing: border-box;
    margin: 0;
}

.rcf-char-count--warn {
    color: #b71c1c;
    font-weight: 600;
}

.rcf-form-field--with-note {
    grid-column: 1 / -1;
}

.rcf-input-with-note {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rcf-input-with-note input {
    flex: 0 0 250px;
}

.rcf-field-note {
    font-size: 11px;
    color: var(--rcf-text-light);
    white-space: nowrap;
    font-style: italic;
}

.rcf-form-fieldset {
    border: 1px solid var(--rcf-border);
    border-radius: var(--rcf-radius);
    padding: 16px 20px;
    background: var(--rcf-bg);
}

.rcf-form-fieldset__legend {
    font-size: 13px;
    color: var(--rcf-text-light);
    font-style: italic;
    margin: 0 0 14px;
}

.rcf-form-fieldset__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .rcf-form-fieldset__fields {
        grid-template-columns: 1fr;
    }
}

/* Preview photos (partagé véhicules + annonces) */

.rcf-photos-preview,
.rcf-cl-photos-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.rcf-photo-item {
    position: relative;
    width: 80px;
    height: 80px;
}

.rcf-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--rcf-border);
}

.rcf-photo-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--rcf-danger);
    color: var(--rcf-white);
    border: none;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.rcf-photo-primary {
    position: absolute;
    bottom: -6px;
    left: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s;
}

.rcf-photo-primary.active {
    color: #f0c040;
    background: #fff8e0;
    border-color: #f0c040;
}

.rcf-field-hint {
    font-size: 12px;
    color: var(--rcf-text-light);
    font-style: italic;
    margin-top: 4px;
}

.rcf-form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--rcf-text);
}

.rcf-form-field input,
.rcf-form-field select,
.rcf-form-field textarea {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid var(--rcf-border);
    border-radius: var(--rcf-radius);
    background: var(--rcf-white);
    color: var(--rcf-text);
    font-family: inherit;
    transition: border-color 0.2s;
}

.rcf-form-field input:focus,
.rcf-form-field select:focus,
.rcf-form-field textarea:focus {
    outline: none;
    border-color: var(--rcf-blue);
    box-shadow: 0 0 0 2px rgba(3, 70, 113, 0.1);
}

.rcf-form-field input[type="file"] {
    padding: 6px;
    border-style: dashed;
}

.rcf-chassis-block {
    border: 1px solid var(--rcf-border);
    border-radius: var(--rcf-radius);
    background: var(--rcf-bg, #f5f5f5);
    padding: 14px 16px;
}

.rcf-chassis-row {
    display: flex;
    gap: 8px;
}

.rcf-form-field .rcf-chassis-row input {
    flex: 1;
    margin: 0;
}

#rcf-decode-chassis-btn,
#rcf-cl-decode-btn,
#rcf-v-decode-btn {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid var(--rcf-border);
    border-radius: var(--rcf-radius);
    background: var(--rcf-white);
    color: var(--rcf-blue);
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    min-height: 0;
}

#rcf-decode-chassis-btn:hover,
#rcf-cl-decode-btn:hover,
#rcf-v-decode-btn:hover {
    border-color: var(--rcf-blue);
    background: var(--rcf-blue-pale);
}

.rcf-car-form__actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.rcf-form-message {
    margin-top: 12px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
    .rcf-car-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rcf-filters__field {
        min-width: 120px;
    }
}

@media (max-width: 600px) {
    .rcf-car-grid {
        grid-template-columns: 1fr;
    }

    .rcf-filters__row {
        flex-direction: column;
    }

    .rcf-filters__field {
        flex: none;
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .rcf-filters__field:first-child,
    #rcf-cl-filters .rcf-filters__field,
    #rcf-cl-filters .rcf-filters__field:first-child {
        flex: none;
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .rcf-filters__actions {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 0.4em;
    }

    #rcf-cl-filters .rcf-filters__actions .rcf-input {
        flex: 1 1 100%;
        min-width: 0;
    }

    #rcf-cl-filters .rcf-filters__actions .rcf-btn {
        flex: 1 1 0;
    }

    .rcf-car-form__grid {
        grid-template-columns: 1fr;
    }

    .rcf-my-car-row {
        flex-wrap: wrap;
    }

    .rcf-my-car-row__actions {
        width: 100%;
        justify-content: flex-end;
    }

    .rcf-single__title {
        font-size: 20px;
    }
}

/* Badge "En vente" */

.rcf-tag--for-sale {
    background: #e65100;
    color: #fff;
    font-weight: 600;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.rcf-tag--for-sale-link {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s;
}

.rcf-tag--for-sale-link:hover {
    background: #bf360c;
    color: #fff;
    text-decoration: none;
}

/* Modale "Vendu" — transfert de propriété */

.rcf-sold-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rcf-sold-modal {
    background: var(--rcf-white, #fff);
    border-radius: var(--rcf-radius, 6px);
    padding: 28px 24px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.rcf-sold-modal h3 {
    margin: 0 0 12px;
    font-size: 20px;
    color: var(--rcf-blue, #034671);
}

.rcf-sold-modal p {
    margin: 0 0 16px;
    font-size: 15px;
}

.rcf-sold-modal__choices {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rcf-sold-modal select {
    width: 100%;
    font-size: 14px;
    border: 1px solid var(--rcf-border, #ddd);
    border-radius: var(--rcf-radius, 6px);
    font-family: inherit;
}

.rcf-sold-modal input[type="text"] {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid var(--rcf-border, #ddd);
    border-radius: var(--rcf-radius, 6px);
    font-family: inherit;
}

/* ==========================================================================
   Classifieds — Petites annonces
   ========================================================================== */

.rcf-classifieds {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Grid annonces */

.rcf-classified-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Carte annonce */

.rcf-classified-card {
    background: var(--rcf-white);
    border: 1px solid var(--rcf-border);
    border-radius: var(--rcf-radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--rcf-shadow);
}

.rcf-classified-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.rcf-classified-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.rcf-classified-card__link:hover {
    text-decoration: none;
    color: inherit;
}

.rcf-classified-card__image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--rcf-bg);
    position: relative;
}

.rcf-classified-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rcf-classified-card__price {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #b71c1c;
    color: var(--rcf-white);
    font-weight: 700;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.rcf-classified-card__sold-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #555;
    color: var(--rcf-white);
    font-weight: 700;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 4px;
    z-index: 1;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.rcf-classified-card__body {
    padding: 0 16px 10px;
}

h3.rcf-classified-card__title {
    font-size: 18px !important;
    font-weight: 700;
    margin: 6px 0 6px !important;
    color: var(--rcf-text);
    line-height: 1.4 !important;
    min-height: 4.2em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rcf-classified-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

p.rcf-classified-card__location {
    font-size: 12px;
    color: var(--rcf-text-light);
    margin: 0 !important;
}

/* Single annonce — prix grand */

.rcf-classified-price-big {
    font-size: 20px;
    font-weight: 700;
    color: #b71c1c;
}

.rcf-classified-price-big--sold {
    text-decoration: line-through;
    color: var(--rcf-text-light);
}

.rcf-classified-sold-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--rcf-text-light);
    margin: 4px 0 0;
    margin: 4px 0 0;
}

/* Galerie photos véhicule */

/* Coverflow 3D — galerie photos véhicules et annonces */

.rcf-coverflow {
    position: relative;
    margin-bottom: 24px;
    user-select: none;
    -webkit-user-select: none;
}

.rcf-coverflow__stage {
    position: relative;
    height: 400px;
    background: linear-gradient(to bottom, var(--rcf-bg) 0%, #e8e8e8 100%);
    border-radius: var(--rcf-radius);
    overflow: hidden;
}

.rcf-coverflow__item {
    position: absolute;
    top: 0;
    left: 0;
    width: 420px;
    max-width: 65%;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(.25,.8,.25,1);
    cursor: pointer;
}

.rcf-coverflow__item img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    background: var(--rcf-bg);
}

.rcf-coverflow__item--active {
    cursor: zoom-in;
}

.rcf-coverflow__item--active img {
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.rcf-coverflow__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rcf-text);
}

.rcf-coverflow__nav:hover {
    background: #fff;
}

.rcf-coverflow__nav--prev { left: 10px; }
.rcf-coverflow__nav--next { right: 10px; }

.rcf-coverflow__nav[disabled] {
    opacity: 0.3;
    pointer-events: none;
}

.rcf-coverflow__counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(0,0,0,0.5);
    padding: 3px 12px;
    border-radius: 12px;
    z-index: 15;
    pointer-events: none;
}

/* Image unique : pas de coverflow, affichage simple */
.rcf-coverflow--single .rcf-coverflow__stage {
    height: auto;
    perspective: none;
    background: none;
}

.rcf-coverflow--single .rcf-coverflow__item {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto;
}

.rcf-coverflow--single .rcf-coverflow__item img {
    max-height: 500px;
    border-radius: var(--rcf-radius);
}

/* Lightbox */
.rcf-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.rcf-lightbox--visible {
    opacity: 1;
}

.rcf-lightbox__img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
}

.rcf-lightbox__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.rcf-lightbox__close:hover {
    opacity: 1;
}

.rcf-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.rcf-lightbox__nav:hover {
    background: rgba(255,255,255,0.3);
}

.rcf-lightbox__nav--prev { left: 16px; }
.rcf-lightbox__nav--next { right: 16px; }

/* Description section (annonce) */

.rcf-classified-description {
    background: var(--rcf-bg);
    border: 1px solid var(--rcf-border);
    border-radius: var(--rcf-radius);
    padding: 20px 24px;
    margin: 24px 0;
}

.rcf-classified-description h2 {
    display: block;
    margin: 0 0 8px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rcf-blue);
}

.rcf-classified-description__text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--rcf-text);
    white-space: pre-line;
}

/* Contact section */

.rcf-classified-contact {
    background: var(--rcf-bg);
    border: 1px solid var(--rcf-border);
    border-radius: var(--rcf-radius);
    padding: 20px 24px;
    margin: 24px 0;
}

.rcf-classified-contact h2 {
    display: block;
    margin: 0 0 8px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rcf-blue);
}

.rcf-classified-contact__name {
    font-size: 16px;
    font-weight: 600;
    color: var(--rcf-text);
    margin: 0 0 10px;
}

.rcf-classified-contact__row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
    font-size: 15px;
}

.rcf-classified-contact__row svg {
    flex-shrink: 0;
    color: var(--rcf-blue);
}

.rcf-classified-contact__info a {
    color: var(--rcf-blue);
}

/* Bouton doré (vendu) */

.rcf-btn--gold {
    border-color: var(--rcf-gold);
    color: var(--rcf-gold);
    background: transparent;
}

.rcf-btn--gold:hover {
    background: var(--rcf-gold);
    color: var(--rcf-white);
}

/* Section titles dans mes annonces */

.rcf-cl-section-title {
    font-size: 18px;
    color: var(--rcf-blue);
    margin: 24px 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--rcf-blue-pale);
}

.rcf-cl-row--expired {
    opacity: 0.7;
    border-style: dashed;
}

.rcf-cl-row--sold {
    opacity: 0.5;
}

.rcf-cl-row--pending {
    border-color: #ffc107;
    background: #fffdf5;
}

/* Notice modération admin (single classified) */

.rcf-cl-pending-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.rcf-cl-pending-actions {
    display: flex;
    gap: 8px;
}

.rcf-cl-section-title--pending {
    color: var(--rcf-warning-text);
    border-bottom-color: #ffc107;
}

/* Photos preview dans le formulaire (classes legacy) */

.rcf-cl-photo-item {
    position: relative;
    width: 80px;
    height: 80px;
}

.rcf-cl-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--rcf-border);
}

.rcf-cl-photo-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--rcf-danger);
    color: var(--rcf-white);
    border: none;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Widget dernières annonces */

.rcf-cw {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rcf-cw__item {
    position: relative;
    border-radius: var(--rcf-radius);
    overflow: hidden;
    border: 1px solid var(--rcf-border);
    background: var(--rcf-white);
    transition: transform 0.15s, box-shadow 0.15s;
}

.rcf-cw__item:hover {
    transform: translateY(-1px);
    box-shadow: var(--rcf-shadow-hover, 0 4px 12px rgba(0,0,0,0.1));
}

.rcf-cw__card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.rcf-cw__card:hover {
    color: inherit;
}

.rcf-cw__image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--rcf-bg);
}

.rcf-cw__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rcf-cw__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rcf-border);
}

.rcf-cw__placeholder svg {
    width: 36px;
    height: 36px;
    will-change: transform;
    backface-visibility: hidden;
}

.rcf-cw__price {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: #b71c1c;
    color: var(--rcf-white);
    font-weight: 700;
    font-size: 13px;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.rcf-cw__price--inline {
    position: absolute;
    bottom: 8px;
    right: 8px;
    pointer-events: none;
}

.rcf-cw__card .rcf-cw__price,
.rcf-cw__card:hover .rcf-cw__price,
.rcf-cw__card:focus .rcf-cw__price {
    text-decoration: none !important;
    color: var(--rcf-white);
}

.rcf-cw__body {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rcf-cw__body--with-badge {
    padding-bottom: 36px;
}

.rcf-cw__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--rcf-text);
    line-height: 1.3;
}

.rcf-cw__meta {
    font-size: 12px;
    color: var(--rcf-text-light);
}

.rcf-cw__all {
    display: block;
    text-align: center;
    margin-top: 4px;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rcf-blue);
    background: var(--rcf-bg);
    border-radius: var(--rcf-radius);
    text-decoration: none;
    transition: background 0.15s;
}

.rcf-cw__all:hover {
    background: var(--rcf-blue-pale);
    color: var(--rcf-blue);
    text-decoration: none;
}

/* Responsive annonces */

@media (max-width: 900px) {
    .rcf-classified-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .rcf-classified-grid {
        grid-template-columns: 1fr;
    }

    .rcf-classified-price-big {
        font-size: 18px;
    }

    .rcf-coverflow__stage {
        height: 280px;
    }

    .rcf-coverflow__item {
        width: 240px;
        max-width: 60%;
    }

    .rcf-coverflow--single .rcf-coverflow__stage {
        height: auto;
    }

    .rcf-coverflow--single .rcf-coverflow__item img {
        max-height: 300px;
        object-fit: contain;
    }
}
