/* ==========================================================================
 * ADDRESSES PREMIUM - establishment listing cards and sidebar.
 *
 * Same family as the event cards (event-premium.css): dominant 4:3 image, a
 * glass chip on the photo, name > location > category hierarchy, quiet
 * secondary text, one violet accent. Scoped to .address-card / .address-filters.
 * ========================================================================== */

/* Sidebar: same density as the Events / Search sidebars. */
.address-filters .feature-filters-header-mobile {
    padding: .75rem .75rem 0;
    text-align: right;
}

.address-filters .card-body {
    padding: .75rem;
}

.address-filters .form-label {
    margin-bottom: .25rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted, #6b7280);
}

.address-filters .address-filter-field {
    margin-bottom: .6rem;
}

.address-filters .input-group-text,
.address-filters .form-control,
.address-filters .form-select {
    font-size: .85rem;
}

.address-filters .address-filter-actions {
    margin-top: .75rem;
}

/* Results header: a quiet count instead of a "Résultats" band inside a card. */
.address-results-count {
    margin: 0;
    font-size: .85rem;
    color: var(--text-muted, #6b7280);
}

/* Card */
.address-card {
    overflow: hidden;
    border-radius: 12px;
    text-align: left;
    transition: transform .2s ease, box-shadow .2s ease;
}

.address-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12) !important;
}

.address-image-wrapper {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f3f5;
}

.address-image-link {
    position: absolute;
    inset: 0;
    display: block;
}

.address-image-wrapper img,
.address-img-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.address-image-wrapper img {
    object-fit: cover;
    transition: transform .3s ease;
}

.address-card:hover .address-image-wrapper img {
    transform: scale(1.04);
}

/* Phones: a single full-width card would otherwise fill the screen (same rule as the event cards). */
@media (max-width: 575.98px) {
    .address-image-wrapper {
        aspect-ratio: 16 / 10;
    }
}

/* Placeholder (no screenshot): same violet gradient as the event cards. */
.address-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #581c87, #7e22ce);
    color: rgba(255, 255, 255, .85);
    font-size: 2.75rem;
}

/* Category badge over the photo (glass), still a real link to the category page. */
.address-category-chip {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: calc(100% - 20px);
    padding: 3px 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(17, 24, 39, .62);
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.address-category-chip:hover {
    background: var(--primary, #6D28D9);
    color: #fff;
}

.address-category-more {
    flex: none;
    opacity: .8;
}

.address-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px 12px;
}

/* Name: 2 lines reserved so every card has the same height. */
.address-card .address-card-title {
    margin: 0;
    min-height: 2.5em;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.25;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.address-card .address-card-title a {
    color: var(--bs-body-color, #1f2937);
}

.address-where {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
    font-size: .82rem;
    color: var(--text-muted, #6b7280);
    white-space: nowrap;
}

.address-where i {
    flex: none;
    color: var(--primary, #6D28D9);
}

.address-where span {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer: discreet popularity on the left, quiet action on the right. */
.address-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 22px;
    margin-top: 2px;
    font-size: .76rem;
    color: var(--text-muted, #6b7280);
}

.address-likes i {
    color: #e11d48;
}

.address-discover {
    margin-left: auto;
    color: var(--primary, #6D28D9);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.address-discover:hover {
    color: var(--primary-dark, #4C1D95);
}

.address-discover i {
    transition: transform .15s ease;
}

.address-card:hover .address-discover i {
    transform: translateX(3px);
}
