/* ==========================================
   XZIT — favorites.css
   Styles pour le système Saved Places
   ========================================== */

/* ── Bouton PIN sur les cards ── */
.xzit-pin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(5, 16, 54, 0.15);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
    color: #697488;
    flex-shrink: 0;
    padding: 0;
    position: relative;
    z-index: 5;
}

.xzit-pin-btn:hover {
    transform: scale(1.12);
    background: #fff8f0;
    color: #FF6900;
}

.xzit-pin-btn.is-faved {
    background: linear-gradient(135deg, #FF6900, #CA0B09);
    color: #fff;
    box-shadow: 0 2px 12px rgba(202, 11, 9, 0.35);
}

.xzit-pin-btn.is-faved:hover {
    background: linear-gradient(135deg, #e55a00, #a80808);
    color: #fff;
    transform: scale(1.08);
}

.xzit-pin-btn svg {
    pointer-events: none;
    width: 16px;
    height: 16px;
}

/* ── Bouton PIN page détail (Share / Save) ── */
.xzit-pin-btn-detail {
    border: 2px solid #FF6900;
    color: #FF6900;
    background: #fff;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.xzit-pin-btn-detail svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.xzit-pin-btn-detail:hover {
    background: linear-gradient(135deg, #FF6900, #CA0B09);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(202, 11, 9, 0.3);
}

.xzit-pin-btn-detail.is-faved {
    background: linear-gradient(135deg, #FF6900, #CA0B09);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(202, 11, 9, 0.3);
}

.xzit-pin-btn-detail.is-faved:hover {
    background: linear-gradient(135deg, #e55a00, #a80808);
    box-shadow: 0 4px 20px rgba(202, 11, 9, 0.4);
}

/* ── Nav link Favorites ── */
.xzit-nav__link--favorites {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    position: relative;
}

.xzit-fav-icon {
    display: inline-flex;
    align-items: center;
    color: inherit;
}

.xzit-fav-label {
    font-size: inherit;
}

/* Badge compteur */
.xzit-fav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    background: #FF6900;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    margin-left: 2px;
}

.xzit-fav-badge--mobile {
    margin-left: 8px;
}

/* Mobile drawer favorites link */
.xzit-mobile-fav {
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    padding: 10px 0;
    font-size: 15px;
}

/* ── Page favorites.html ── */
.fav-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.fav-filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1.5px solid #d0d5dd;
    background: #fff;
    color: #051036;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.fav-filter-btn:hover {
    border-color: #FF6900;
    color: #FF6900;
}

.fav-filter-btn.active {
    background: #FF6900;
    border-color: #FF6900;
    color: #fff;
    font-weight: 600;
}

.fav-empty {
    text-align: center;
    padding: 80px 20px;
}

.fav-empty__icon {
    font-size: 56px;
    margin-bottom: 20px;
    opacity: 0.4;
}

.fav-empty__title {
    font-size: 22px;
    font-weight: 600;
    color: #051036;
    margin-bottom: 10px;
}

.fav-empty__text {
    font-size: 15px;
    color: #697488;
    margin-bottom: 30px;
}

/* ── Card favoris ── */
.fav-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(5, 16, 54, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.fav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(5, 16, 54, 0.12);
}

.fav-card__image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f0f2f5;
}

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

.fav-card__type {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(5, 16, 54, 0.75);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.fav-card__remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #FF6900;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.15s;
    backdrop-filter: blur(4px);
}

.fav-card__remove:hover {
    background: #FF6900;
    color: #fff;
    transform: scale(1.1);
}

.fav-card__body {
    padding: 16px;
}

.fav-card__category {
    font-size: 12px;
    color: #697488;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.fav-card__name {
    font-size: 16px;
    font-weight: 600;
    color: #051036;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fav-card__area {
    font-size: 13px;
    color: #697488;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.fav-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fav-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #051036;
}

.fav-card__rating i {
    color: #FFB800;
    font-size: 12px;
}

.fav-card__cta {
    font-size: 13px;
    font-weight: 600;
    color: #FF6900;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.15s;
}

.fav-card__cta:hover {
    gap: 8px;
    color: #e55a00;
}