/* NEOLIF Feed V1 — Instagram-style, scoped */

.neolif-feed-v1 {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 0 80px;
    background: #fff;
    color: #171717;
}

.neolif-feed-v1,
.neolif-feed-v1 * {
    box-sizing: border-box;
}

.neolif-feed-v1__filters {
    position: sticky;
    top: var(--neolif-feed-sticky-top, 0px);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    padding: 0 16px;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    background: transparent;
    border-bottom: 0;
}

.neolif-feed-v1__filters.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.neolif-feed-v1__filters::-webkit-scrollbar {
    display: none;
}

.neolif-feed-v1__filters a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 52px;
    padding: 12px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #1F2937;
    font-family: var(--neolif-font);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    text-decoration: none;
}

.neolif-feed-v1__filters a.is-active {
    background: transparent;
    color: #1F2937;
    font-weight: 500;
}

.neolif-feed-v1__filters a.is-active::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    border-radius: 3px;
    background: #0B4F9F;
}

.neolif-feed-v1__post {
    width: 100%;
    margin: 0 0 18px;
    padding: 0 0 18px;
    border-bottom: 1px solid #efefef;
    background: #fff;
}

.neolif-feed-v1__author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
}

.neolif-feed-v1__author img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.neolif-feed-v1__author-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.neolif-feed-v1__author-info strong {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.neolif-feed-v1__author-info span {
    font-size: 11px;
    color: #737373;
}

.neolif-feed-v1__gallery {
    display: flex;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    background: #f3f4f6;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.neolif-feed-v1__gallery::-webkit-scrollbar {
    display: none;
}

.neolif-feed-v1__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    overflow: hidden;
}

.neolif-feed-v1__slide img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border-radius: 0;
}

.neolif-feed-v1__placeholder {
    display: flex;
    flex: 0 0 100%;
    align-items: center;
    justify-content: center;
    background: #eef3f9;
    color: #64748b;
}

.neolif-feed-v1__details {
    padding: 10px 16px 0;
}

.neolif-feed-v1__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.neolif-feed-v1__actions button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #171717;
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
}

.neolif-feed-v1__price {
    margin-bottom: 6px;
    color: #0B4F9F;
    font-size: 20px;
    font-weight: 700;
}

.neolif-feed-v1__price small {
    color: #525252;
    font-size: 13px;
    font-weight: 400;
}

.neolif-feed-v1__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.neolif-feed-v1__location {
    margin: 0 0 10px;
    color: #737373;
    font-size: 12px;
}

.neolif-feed-v1__specs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    list-style: none;
    margin: 8px 0 14px;
    padding: 0;
}

.neolif-feed-v1__specs li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    color: #6B7280;
    font-size: 12px;
    line-height: 18px;
}

.neolif-feed-v1__specs li > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    padding: 0;
    border-radius: 50%;
    background: #E8F4FF;
    color: #0B4F9F;
    box-sizing: border-box;
    font-size: 15px;
    line-height: 1;
}

.neolif-feed-v1__detail-button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: 9px;
    background: #0B4F9F;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.neolif-feed-v1__detail-button:hover {
    background: #083F80;
    color: #fff;
}

.neolif-feed-v1__pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
}

.neolif-feed-v1__pagination .page-numbers {
    padding: 7px 12px;
    border-radius: 7px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
}

.neolif-feed-v1__pagination .current {
    background: #0B4F9F;
    color: #fff;
}

.neolif-feed-v1__empty {
    padding: 40px 16px;
    text-align: center;
    color: #737373;
}


.neolif-feed-v1__gallery-wrap {
    position: relative;
    width: 100%;
}

.neolif-feed-v1__gallery-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    pointer-events: none;
}

.neolif-feed-v1__actions .neolif-feed-v1__like {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    cursor: pointer;
    font-size: 26px;
}

.neolif-feed-v1__like .text-danger {
    color: #dc2626;
}

@media (max-width: 767px) {
    .neolif-feed-v1 {
        max-width: none;
        padding-top: 0;
        padding-bottom: 100px;
    }

    .neolif-feed-v1__post {
        border-radius: 0;
        box-shadow: none;
    }

    .neolif-feed-v1__gallery {
        border-radius: 0;
    }
}

@media (min-width: 768px) {
    .neolif-feed-v1 {
        margin-top: 20px;
        margin-bottom: 40px;
        border: 1px solid #efefef;
    }
}


/* NEOLIF Feed V1 share button only */
.neolif-feed-v1__actions .neolif-feed-v1__share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #171717;
    cursor: pointer;
    box-shadow: none;
}

.neolif-feed-v1__actions .neolif-feed-v1__share svg {
    display: block;
    width: 26px;
    height: 26px;
}

.neolif-feed-v1__actions .neolif-feed-v1__share:hover,
.neolif-feed-v1__actions .neolif-feed-v1__share:focus {
    background: transparent;
    color: #171717;
}


/* NEOLIF Feed — Infinite Scroll V1 */
.neolif-feed-v1__pagination.is-infinite-enabled {
    display: none;
}

.neolif-feed-v1__load-status {
    min-height: 48px;
    padding: 16px;
    text-align: center;
    font-family: Prompt, sans-serif;
    font-size: 13px;
    color: #64748b;
}

/* BEGIN NEOLIF FEED STEP 25 — navigation and location */
.neolif-feed-v1__author-avatar { display: inline-flex; flex: 0 0 38px; }
.neolif-feed-v1__author-info strong a,
.neolif-feed-v1__price a,
.neolif-feed-v1__title a {
    color: inherit;
    text-decoration: none;
}
.neolif-feed-v1__author-info strong a:hover,
.neolif-feed-v1__price a:hover,
.neolif-feed-v1__title a:hover { color: #0B4F9F; }
.neolif-feed-v1__gallery { cursor: pointer; }
.neolif-feed-v1__location {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    line-height: 18px;
}
.neolif-feed-v1__location-place,
.neolif-feed-v1__station {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}
.neolif-feed-v1__location-place { flex: 0 1 auto; }
.neolif-feed-v1__station { flex: 0 1 auto; gap: 4px; }
.neolif-feed-v1__location a { color: inherit; text-decoration: none; }
.neolif-feed-v1__location a:hover { color: #0B4F9F; }
.neolif-feed-v1__location a:focus-visible { outline: 2px solid #0B4F9F; outline-offset: 2px; }
.neolif-feed-v1__location-place > span,
.neolif-feed-v1__station > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.neolif-feed-v1__location-place > i {
    flex: 0 0 auto;
    margin-right: 4px;
    color: #737373;
}
.neolif-feed-v1__train-icon { flex: 0 0 16px; color: #0B4F9F; }
.neolif-feed-v1__station.neolif-line-bts-sukhumvit .neolif-feed-v1__train-icon { color: #78BE20; }
.neolif-feed-v1__station.neolif-line-bts-silom .neolif-feed-v1__train-icon { color: #00843D; }
.neolif-feed-v1__station.neolif-line-mrt-blue .neolif-feed-v1__train-icon { color: #1D3A8A; }
.neolif-feed-v1__station.neolif-line-mrt-purple .neolif-feed-v1__train-icon { color: #7B2D8D; }
.neolif-feed-v1__station.neolif-line-mrt-yellow .neolif-feed-v1__train-icon { color: #D4A900; }
.neolif-feed-v1__station.neolif-line-arl .neolif-feed-v1__train-icon { color: #D71920; }
.neolif-feed-v1__gallery-wrap .neolif-feed-v1__heart-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.6);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    color: #fff;
    font-size: 96px;
    line-height: 1;
    text-shadow: 0 3px 16px rgba(0,0,0,.3);
}
.neolif-feed-v1__gallery-wrap .neolif-feed-v1__heart-burst.is-active {
    animation: neolif-feed-heart-burst .75s ease-out;
}
@keyframes neolif-feed-heart-burst {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(.5); }
    25% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
    65% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.2); }
}
/* END NEOLIF FEED STEP 25 */
