/* ======================
   MAYOR GRID
====================== */

.mayor-grid{

    display:grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(320px,1fr)
        );

    gap:24px;
}

/* ======================
   MAYOR CARD
====================== */

.mayor-card{

    background:white;

    border-radius:18px;

    overflow:hidden;

    box-shadow:
        0 5px 20px rgba(0,0,0,.08);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.mayor-card:hover{

    transform:
        translateY(-4px);

    box-shadow:
        0 12px 28px rgba(0,0,0,.12);
}

.mayor-favorite-btn{

    position:relative;
}

.mayor-favorite-btn::after{

    content:attr(data-tooltip);

    position:absolute;

    bottom:calc(100% + 8px);

    right:0;

    background:#333;

    color:white;

    padding:6px 10px;

    border-radius:6px;

    font-size:12px;

    white-space:nowrap;

    opacity:0;

    pointer-events:none;

    transition:opacity .2s ease;
}

.mayor-favorite-btn:hover::after{

    opacity:1;
}

/* ======================
   PHOTO
====================== */

.mayor-photo{

    height:260px;

    overflow:hidden;
}

.mayor-photo img{

    width:100%;
    height:100%;

    object-fit:cover;
}

.mayor-avatar{

    height:260px;

    display:flex;

    align-items:center;
    justify-content:center;

    background:
        linear-gradient(
            135deg,
            #0f6ccf,
            #63a7ff
        );

    color:white;

    font-size:48px;

    font-weight:700;
}

/* ======================
   CARD CONTENT
====================== */

.mayor-content{

    padding:20px;

    display:flex;

    flex-direction:column;
}

/* ======================
   NAME
====================== */

.mayor-name{

    color:#005aa7;

    font-size:24px;

    font-weight:700;

    margin-bottom:12px;
}

/* ======================
   BADGE
====================== */

.mayor-badge{

    display:inline-block;

    padding:6px 14px;

    border-radius:999px;

    background:#e7f1ff;

    color:#005aa7;

    font-size:13px;

    font-weight:600;

    margin-bottom:15px;
}

/* ======================
   INFO
====================== */

.mayor-info{

    margin-bottom:8px;

    color:#555;
}

/* ======================
   ACTIONS
====================== */

.mayor-actions{

    display:flex;

    gap:10px;

    margin-top:20px;
}

.mayor-favorite-btn{

    width:56px;

    min-width:56px;

    border:none;

    border-radius:10px;

    background:none;

    color:#999;

    cursor:pointer;

    font-size:24px;
}

.mayor-favorite-btn:hover{

    background:none;

    color:#ffc107;

    transform:scale(1.1);
}

.favorite-btn.active{

    background:none;

    color:#ffc107;
}

.mayor-detail-btn{

    flex:1;

    border:none;

    border-radius:10px;

    background:#005aa7;

    color:white;

    padding:12px;

    cursor:pointer;

    font-weight:600;
}

.mayor-detail-btn:hover{

    background:#003d73;
}

/* ======================
   MODAL
====================== */

.mayor-modal-photo{

    width:140px;
    height:140px;

    border-radius:50%;

    object-fit:cover;

    margin-bottom:15px;
}

/* ======================
   MOBILE
====================== */

@media(max-width:768px){

    .mayor-grid{

        grid-template-columns:1fr;
    }

    .mayor-actions{

        flex-direction:column;
    }

    .mayor-favorite-btn,
    .mayor-detail-btn{

        width:100%;
    }

    .mayor-name{

        font-size:20px;
    }
}