.custom-details-annonce {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    background: #fff;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 1rem;
    margin: 0 auto;
}
@media (min-width: 448px) {
    .custom-details-annonce {
        max-width: 94%;
        margin-right: 1.5rem;
        margin-left: 0;
        padding: 1.5rem;
    }
}

.corner-ribbon {
    width: 150px;
    background: #7c3aed;
    position: absolute;
    top: 25px;
    right: -42px;
    text-align: center;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    height: 30px;
    line-height: 30px;
    border-radius: 4px;
    z-index: 20;
    box-shadow: 0 1px 4px rgba(80,0,100,.12);
    letter-spacing: 0.3px;
    pointer-events: none;
    transform: rotate(45deg);
}

.corner-ribbon.top-right {
    right: -42px;
    top: 25px;
    transform: rotate(45deg);
}

.custom-message-container { margin-bottom: 1rem; }

.custom-to-top-div {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: #f3e8ff;
    border: 1px solid #e9d5ff;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}
.custom-to-top-div.hiddenn { display: none; }
.custom-to-top-svg {
    width: 1rem;
    height: 1rem;
    color: #a21caf;
}
.custom-to-top-text {
    margin-left: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #7c3aed;
}

.custom-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: capitalize;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (min-width: 448px) {
    .custom-title { font-size: 1.25rem; }
}

.custom-slider-image {
    border-radius: 0.5rem;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.custom-splide-thumbs { margin-top: 1rem; }
.custom-thumb-image {
    border-radius: 0.5rem;
    height: 5rem;
    width: 5rem;
    object-fit: cover;
}

.custom-section { margin-bottom: 1.5rem; }

.custom-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.custom-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #16a34a;
    margin: 1rem 0;
    text-transform: capitalize;
}
.custom-report-btn {
    background: #fef08a;
    border: 1px solid #f3f4f6;
    padding: 0.05rem 0.05rem;
    border-radius: 0.375rem;
    color: #1a1918;
    font-size: 0.8rem;
    text-decoration: none;
}

.custom-fields-container {
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    padding: 1rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.custom-fields-column { display: flex; flex-direction: column; gap: 1rem; }
.custom-field-label {
    color: #6b7280;
    font-size: 0.875rem;
    display: block;
    text-transform: capitalize;
}
.custom-field-value {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    text-transform: capitalize;
}

.custom-desc-title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.custom-desc-content { color: #6b7280; }
.custom-description { font-size: 1rem; margin-bottom: 1rem; line-height: 1.6; }
.custom-description-buyable { font-size: 1rem; margin-bottom: 1rem; border-bottom: 1px solid #e5e7eb; padding-bottom: 1.25rem; }

.custom-delivery-section {
    margin-top: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
    border-radius: 0.375rem;
}
.custom-delivery-title { font-size: 1.25rem; }
.custom-delivery-error { color: #ef4444; margin-top: 0.75rem; }
.custom-delivery-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
}
.custom-delivery-info { flex: 1; }
.custom-delivery-company {
    font-size: 1rem;
    display: flex;
    align-items: center;
}
.custom-delivery-logo {
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 1rem;
    border-radius: 9999px;
    object-fit: cover;
}
.custom-delivery-text {
    margin-top: 0.25rem;
    font-size: 1rem;
    color: #6b7280;
}
.custom-delivery-price { width: 33%; display: flex; justify-content: flex-end; }
.custom-delivery-price-value { font-size: 1.125rem; }

.custom-map-title {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.75rem;
    font-size: 1.125rem;
    text-transform: capitalize;
    margin-bottom: 1rem;
}
.custom-map { margin-top: 1.5rem; height: 300px; }
.custom-sidebar {
    margin-top: 1.5rem;
    width: auto;
    background: #fdfdfd;
    border-left: 1px solid #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
@media (min-width: 448px) {
    .custom-sidebar {
        margin-top: 0;
        width: 30%;
        min-width: 220px;
        padding: 1.5rem;
    }
}

.custom-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.custom-profile-img-wrapper {
    margin-bottom: 1rem;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
}
.custom-profile-img {
    border: 2px solid #e5e7eb;
    width: 6rem;
    height: 6rem;
    border-radius: 9999px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}
.custom-profile-img-default {
    padding: 0.75rem;
    background: #f3f4f6;
}
.custom-profile-username {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    text-transform: lowercase;
}
.custom-profile-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.custom-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.80rem;
    width: 100%;
}

.custom-sidebar-actions a.custom-btn,
.custom-sidebar-actions button.custom-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    box-sizing: border-box;
}

/* Details page specific button styles */
.custom-sidebar-actions .custom-btn {
    width: 100%;
    padding: 0.75rem 0.75rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.custom-btn-icon {
    margin-right: 0.5rem;
}

/* Gradient variants for details page */
.custom-sidebar-actions .custom-btn-orange {
    background: linear-gradient(to right, #f97316, #ea580c);
}
.custom-sidebar-actions .custom-btn-orange:hover {
    background: linear-gradient(to right, #ea580c, #c2410c);
}
.custom-sidebar-actions .custom-btn-green {
    background: linear-gradient(to right, #22c55e, #16a34a);
}
.custom-sidebar-actions .custom-btn-green:hover {
    background: linear-gradient(to right, #16a34a, #15803d);
}
.custom-sidebar-actions .custom-btn-red {
    background: linear-gradient(to right, #ef4444, #dc2626);
}
.custom-sidebar-actions .custom-btn-red:hover {
    background: linear-gradient(to right, #dc2626, #b91c1c);
}
.custom-btn-indigo {
    background: linear-gradient(to right, #6366f1, #4338ca);
    color: #fff;
}
.custom-btn-indigo:hover {
    background: linear-gradient(to right, #4338ca, #312e81);
}

.custom-stripe-text {
    color: #376a52;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}
.custom-main-wrapper {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    display: block;
}
@media (min-width: 448px) {
    .custom-main-wrapper {
        display: flex;
    }
}


.custom-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    padding: 0.18em 0.75em;
    background: #f1f5f9;
    margin-left: 0.5rem;
    margin-top: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-badge-pro {
    color: #059669;
    background: #e0f2f1;
}
.custom-badge-particulier {
    color: #2563eb;
    background: #e0e7ff;
}
.custom-badge-icon {
    width: 1em;
    height: 1em;
    margin-left: 0.35em;
    color: inherit;
    display: inline-block;
    vertical-align: middle;
}

.hub-tag-cloud a {
    
    margin: 0 3px 5px 0;
    padding: 3px 8px;
    border: 1px solid #eee;
    background: #fafafa;
    border-radius: 3px;
    color: #776b6b;
}