/* =========================================================
   VELORA — PROPERTY LIST PAGE
   Page-specific styles only.
   Main explore/search/card styles remain in explore.css.
   ========================================================= */

.property-results {
    position: relative;
}

/* ---------------------------------------------------------
   MORE FILTERS
   --------------------------------------------------------- */

.more-filters {
    width: 100%;
    margin-top: 0.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 0.85rem;
}

.more-filters > summary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    cursor: pointer;
    list-style: none;
    font-size: 0.9rem;
    font-weight: 700;
    color: inherit;
    user-select: none;
}

.more-filters > summary::-webkit-details-marker {
    display: none;
}

.more-filters > summary::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
}

.more-filters[open] > summary::before {
    content: "−";
}

.more-filters > summary:hover {
    opacity: 0.8;
}

.more-filters-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 0, 0, 0.07);
}

.more-filters-grid .search-field {
    min-width: 0;
}

.more-filters-grid .search-field label {
    display: block;
}

/* ---------------------------------------------------------
   AMENITIES
   --------------------------------------------------------- */

.amenity-set {
    min-width: 0;
    margin: 0;
    padding: 0.8rem 0.9rem 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
}

.amenity-set legend {
    padding: 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.amenity-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.45rem 0;
    font-size: 0.85rem;
    line-height: 1.3;
    cursor: pointer;
}

.amenity-check input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    margin: 0;
    accent-color: currentColor;
}

.amenity-check:hover {
    opacity: 0.82;
}

/* ---------------------------------------------------------
   SEARCH NOTES
   --------------------------------------------------------- */

.search-notes {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.search-notes .velora-alert {
    margin-bottom: 0.5rem;
}

.search-notes .velora-alert:last-child {
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   RESULTS HEADER / TOOLS
   --------------------------------------------------------- */

.results-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
}

.results-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sort-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.sort-form label {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.sort-form select {
    min-width: 160px;
}

.results-tools .btn-secondary {
    white-space: nowrap;
}

/* ---------------------------------------------------------
   MAP
   --------------------------------------------------------- */

#resultsMap.results-map {
    width: 100%;
    min-height: 360px;
    margin: 1.25rem 0;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

#resultsMap.results-map[hidden] {
    display: none;
}

/* ---------------------------------------------------------
   SPONSORED PROPERTIES
   --------------------------------------------------------- */

.sponsored-strip {
    margin: 1.5rem 0 2rem;
    padding: 1.25rem;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.55);
}

.sponsored-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.3;
}

.sponsored-title .property-badge {
    flex: 0 0 auto;
}

.sponsored-strip .property-grid {
    margin-top: 0;
}

/* ---------------------------------------------------------
   PAGINATION
   --------------------------------------------------------- */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 2rem 0 0.5rem;
}

.page-link,
.page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
}

.page-link {
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.page-link:hover {
    transform: translateY(-1px);
}

.page-current {
    border: 1px solid transparent;
    opacity: 0.8;
}

/* ---------------------------------------------------------
   EMPTY STATE
   --------------------------------------------------------- */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    margin-top: 1.5rem;
    padding: 2rem 1.25rem;
    text-align: center;
    border-radius: 18px;
    border: 1px dashed rgba(0, 0, 0, 0.15);
}

.empty-state-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 0.85rem;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 800;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.empty-state h3 {
    margin: 0 0 0.45rem;
}

.empty-state p {
    margin: 0 0 1rem;
    opacity: 0.72;
}

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {
    .more-filters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .results-header {
        align-items: flex-start;
    }

    .results-tools {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 640px) {
    .more-filters-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        padding: 0.85rem;
    }

    .results-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .results-tools {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }

    .sort-form {
        min-width: 0;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
    }

    .sort-form select {
        min-width: 0;
        width: 100%;
    }

    .results-tools > .btn-secondary {
        width: 100%;
    }

    .sponsored-strip {
        padding: 1rem;
        border-radius: 14px;
    }

    .sponsored-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.45rem;
    }

    #resultsMap.results-map {
        min-height: 280px;
        border-radius: 14px;
    }

    .pagination {
        gap: 0.5rem;
    }

    .page-link,
    .page-current {
        min-height: 38px;
        padding: 0.5rem 0.7rem;
        font-size: 0.82rem;
    }
}

/* ---------------------------------------------------------
   SMALL MOBILE
   --------------------------------------------------------- */

@media (max-width: 420px) {
    .results-tools {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .sort-form {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .sort-form select {
        width: 100%;
    }

    .results-tools > .btn-secondary {
        width: 100%;
    }

    .pagination {
        justify-content: stretch;
    }

    .page-link,
    .page-current {
        flex: 1 1 auto;
        text-align: center;
    }

    .empty-state {
        min-height: 220px;
        padding: 1.5rem 1rem;
    }
}

/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .page-link:hover {
        transform: none;
    }
}