/*###################### infinite scroll*/
/*###################### inizio css post infinite in index */

/* contenitore dove vengono inserite le card, si trova nelle pagine principali */
#posts-container {
    width: 100%;
    max-width: 602px;/*680*/
    height: 100%;
    margin: 0 auto;
    /*padding: 10px;*/
}

.no-more {
    width: 100%;
    max-width: 602px;
    height: auto;
	background-color: #fff;
    text-align: center;
    margin: 0 auto 0;
	padding: 10px;
    border-radius: 8px;
    border: 1px solid #111;/*e5e5e5*/
    display: none; /* Nascondi inizialmente */
}

/**/

.load-more {
    text-align: center;
    margin: 20px 0;
    display: none; /* Nascondi inizialmente */
}

.load-more button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.load-more button:hover {
    background-color: #0056b3;
}

/* ############################################################ */
/* BLOCCO HEADER */
/* ############################################################ */

/* singola card prodotto */
.feed-card {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #111;/*ddd*/
    border-radius: 8px;/*14*/
    margin-bottom: 8px;/*15*/
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/**/

.feed-header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px;
}

/**/

.feed-avatar {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f1f1f1;
    margin-right: 10px;
}

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

/**/

.feed-header-text { 
    flex: 1; 
    min-width: 0; 
} 
 
.feed-header-text h3 { 
    margin: 0; 
    padding: 0; 
    font-size: 1rem; 
    line-height: 20px; 
    font-weight: 700; 
    color: #111111; 
} 
 
.feed-header-text > a { 
    text-decoration: none; 
    font-size: 1rem;
    line-height: 20px;
    font-weight: 700;
    color: #111111;
} 
 
.feed-header-text > a:hover { 
    text-decoration: underline; 
} 

/**/
 
.feed-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.feed-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    line-height: 15px;
    color: #000;
    background-color: #d9fdd3;
    padding: 4px 8px;
    border-radius: 20px;
    font-weight: normal;
}

.feed-meta span.proposta-non-visibile {
    background-color: #ffdddd;
    color: #b00000;
}

.feed-meta span img {
    display: block;
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.feed-meta > a {
    display: flex;
    align-items: center;
    color: inherit;
    /*text-decoration: none;*/
}

/**/
/*
.feed-menu {
    width: 50px;
    height: 55px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #ddd;
    cursor: pointer;
}

.feed-menu-dots {
    color: #555;
    font-size: 20px;
    font-weight: 700;
}

.login-required-button,
.share-button {
    width: 100%;
    height: 100%;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0;
    border: 0;
    background: transparent;
}

.share-button {
    cursor: pointer;
}

.login-required-button {
    opacity: 0.5;
    cursor: not-allowed;
}

.share-button img,
.login-required-button img {
    display: block;
}
*/
.feed-menu {
    width: 50px;
    height: 55px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #ddd;
}

/* Tre pallini per modificare la propria proposta */
.feed-menu .feed-menu-dots {
    color: #555;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

/* Form per inviare l'approvazione */
.feed-menu .form-approva {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Stile comune dei quattro bottoni */
.feed-menu .login-required-button,
.feed-menu .approva-non-disponibile,
.feed-menu .approva-gia-fatta,
.feed-menu .approva-neutra {
    appearance: none;
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;

    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;

    font: inherit;
    color: #333;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
}

/* Non loggato: attenuato, cliccabile per mostrare l'avviso */
.feed-menu .login-required-button {
    opacity: 0.5;
    cursor: pointer;
}

/* ISTAT o CAP diversi: apre l'avviso */
.feed-menu .approva-non-disponibile {
    opacity: 0.5;
    cursor: pointer;
}

/* Già approvata: colorata, apre l'avviso */
.feed-menu .approva-gia-fatta {
    color: #1877f2;
    background-color: #e7f0ff;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* Può ancora approvare: neutro e cliccabile */
.feed-menu .approva-neutra {
    cursor: pointer;
}

.feed-menu .approva-neutra:hover {
    color: #333;
    background-color: #f2f2f2;
    opacity: 1;
}

/* Icone */
.feed-menu button img {
    display: block;
    width: 25px;
    height: 25px;
    object-fit: contain;
}

/* Contatore */
.feed-menu .approva-count {
    color: inherit;
    font-size: 0.75rem;
    line-height: 1;
}

/* Evidenzia i bottoni selezionati da tastiera */
.feed-menu button:focus-visible {
    outline: 2px solid #1877f2;
    outline-offset: -2px;
}

/* ############################################################ */
/* BLOCCO TESTO */
/* ############################################################ */

.feed-body {
    width: 100%;
    padding: 0 12px 12px 12px;
}

/**/

.feed-body p {
    padding: 0;
    color: #222222;
    white-space: pre-wrap;
}

.feed-price {
    display: inline-block;
    margin-top: 8px;
    font-size: 1rem;
    line-height: 22px;
    font-weight: 700;
    color: #111111;
}

/**/

.feed-residenza {
    display: flex;
    align-items: center;
    gap: 6px;
}

.feed-residenza img {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/**/

.vedi-altro-pubblica {
    cursor: pointer;
    color: blue;/*#5786e4*/
    text-decoration: none;
}

.vedi-altro-pubblica:active {
    text-decoration: underline;
}

/* ############################################################ */
/* BLOCCO FOTO - UNA SOLA IMMAGINE */
/* ############################################################ */

.feed-photo-box {
    position: relative;
    width: 100%;
    background-color: pink; /* #f5f5f5 */
    border-top: 1px solid #eeeeee;
}

/**/

/* overlay sopra il carosello */
.cont-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    width: 100%;
    height: 100%;
    padding: 8px;

    pointer-events: none;
}

/* ############################################################ */
/* OVERLAY SINISTRA - CONTATORE FOTO */
/* ############################################################ */

.cont-icone-overlay-left {
    display: flex;
    flex-direction: column;
    gap: 15px;

    pointer-events: auto;
    z-index: 10;
}

.cont-icone-overlay-left > div {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 80px;
    height: 36px;

    /*background-color: #111111;*/
    background-color: rgba(0, 0, 0, 0.65);
    padding: 6px 10px;
    border-radius: 20px;

    cursor: default;
    overflow: hidden;
}

.cont-text-left {
    width: 100%;
    display: grid;
    justify-content: center;
    align-items: center;
}

.cont-text-left p {
    margin: 0;
    font-size: 0.85rem;
    color: #ffffff;
    text-align: center;
}

/* ############################################################ */
/* OVERLAY DESTRA - ICONE AZIONI */
/* ############################################################ */

.cont-icone-overlay-right {
    flex: 0 0 auto;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;

    max-height: 100%;

    pointer-events: none;
    z-index: 10;
}

.cont-icone-overlay-right > .feed-icon-link {
    flex: 0 0 auto;

    width: 50px;
    min-width: 50px;
    min-height: 55px;

    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;

    background-color: yellow;
    padding: 6px;
    border: 1px solid #eeeeee;
    border-radius: 10px;

    color: inherit;
    font: inherit;
    text-decoration: none;

    appearance: none;
    cursor: pointer;
    pointer-events: auto;
}

.cont-icone-overlay-right > .feed-icon-link img {
    display: block;
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    object-fit: contain;
    border: 0;
}

.cont-icone-overlay-right > .feed-icon-link span {
    display: block;
    margin: 0;
    color: #333333;
    font-size: 0.75rem;
    line-height: 1;
    text-align: center;
}

.feed-icon-link .icona-link {
    transform: rotate(-45deg);
}

/**/

/* contenitore esterno foto + overlay */
.cont-foto-post {
    width: 100%;
    min-height: 300px;
    max-height: 450px;

    display: grid;
    justify-content: center;
    align-items: center;

    overflow: hidden;
    cursor: pointer;
}

/* ############################################################ */
/* IMMAGINE SINGOLA NEL FEED */
/* ############################################################ */

.feed-single-image-link {
    width: 100%;
    /*min-height: 300px;*/

    display: flex;
    justify-content: center;
    align-items: center;

    text-decoration: none;
}

.feed-single-image {
    display: block;

    width: auto;
    max-width: 100%;

    height: auto;
    max-height: 450px;

    object-fit: contain;
    margin: 0 auto;
}

.feed-single-image-fallback {
    max-width: 160px;
    opacity: 0.6;
}

/* ############################################################ */
/* SE NON CI SONO FOTO */
/* ############################################################ */

.feed-photo-empty {
    width: 100%;
    min-height: 260px;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #eeeeee;
}

.feed-photo-empty img {
    display: block;
    max-width: 160px;
    height: auto;
    opacity: 0.6;
}

/* ############################################################ */
/* PULSANTI SOTTO FOTO */
/* ############################################################ */

.feed-actions {
    display: flex;
    width: 100%;
    gap: 8px;
    padding: 8px;
    border-top: 1px solid #eeeeee;
}

.feed-action-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 38px;

    text-decoration: none;
    text-align: center;

    background-color: #f5f5f5;
    color: #222222;

    font-size: 1rem;
    font-weight: 600;

    border-radius: 8px;
}

.feed-action-btn span {
    display: inline-block;
}

.feed-action-main {
    background-color: #111111;
    color: #ffffff;
}

.feed-action-btn:hover {
    background-color: #e9e9e9;
}

.feed-action-main:hover {
    background-color: #333333;
}

/*###################### fine css post infinite in index */