/* Nearby Places (POI) block — houzez-clean 1.0.22+
   Renders the points of interest EstateAssistant Sync stored on the property.
   Category columns collapse 4 -> 2 -> 1 as the viewport narrows. */

.property-poi {
    display: grid;
    gap: 26px 32px;
    grid-template-columns: repeat(3, 1fr);
}

.property-poi-cols-1 { grid-template-columns: 1fr; }
.property-poi-cols-2 { grid-template-columns: repeat(2, 1fr); }
.property-poi-cols-3 { grid-template-columns: repeat(3, 1fr); }
.property-poi-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Category heading ---- */

.property-poi-cat-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ececec;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.property-poi-cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, .04);
    color: var(--houzez-color-primary, #00aeff);
}

.property-poi-cat-icon .poi-icon-svg {
    display: block;
}

.property-poi-cat-label {
    min-width: 0;
}

/* ---- Place list ---- */

.property-poi-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.property-poi-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    font-size: 14px;
    line-height: 1.4;
}

.property-poi-item + .property-poi-item {
    border-top: 1px solid #f4f4f4;
}

.property-poi-name {
    min-width: 0; /* let long names ellipsize instead of pushing the meta out */
}

.property-poi-name a {
    color: inherit;
    text-decoration: none;
}

.property-poi-name a:hover,
.property-poi-name a:focus {
    color: var(--houzez-color-primary, #00aeff);
    text-decoration: underline;
}

.property-poi-type {
    display: block;
    font-size: 12px;
    color: #8b8b8b;
}

/* ---- Distance / walk time ---- */

.property-poi-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 13px;
    color: #6d6d6d;
}

.property-poi-walk {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.property-poi-walk .poi-icon-svg {
    width: 14px;
    height: 14px;
    opacity: .7;
}

/* ---- Responsive ---- */

@media (max-width: 991px) {
    .property-poi-cols-3,
    .property-poi-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .property-poi {
        gap: 22px;
    }

    .property-poi-cols-2,
    .property-poi-cols-3,
    .property-poi-cols-4 {
        grid-template-columns: 1fr;
    }
}
