/* ── Search Stays: filter bar ─────────────────────────────────────────────── */

.ecsc-search__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
    margin: 0 0 2.5rem;
    padding: 1.75rem;
    background: #f7f6f3;
    border-radius: 10px;
    border: none;
    align-items: flex-start;
    justify-content: center;
}

.ecsc-search__filter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ecsc-search__filter > label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
}

.ecsc-search__filter select {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    transition: border-color 0.15s;
    min-width: 180px;
}

.ecsc-search__filter select:hover,
.ecsc-search__filter select:focus {
    border-color: #aaa;
    outline: none;
}

.ecsc-search__filter--full {
    flex-basis: 100%;
    align-items: center;
}

.ecsc-search__checkboxes {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
}

.ecsc-search__checkboxes label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: normal;
    letter-spacing: normal;
    text-transform: none;
    color: #444;
    cursor: pointer;
    line-height: 1.3;
}

.ecsc-search__checkboxes input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: #555;
    cursor: pointer;
}

/* ── Results grid ─────────────────────────────────────────────────────────── */

.ecsc-search__results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    transition: opacity 0.2s;
}

.ecsc-search__results.is-loading {
    opacity: 0.4;
    pointer-events: none;
}

.ecsc-stay-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ecsc-stay-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.ecsc-stay-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.ecsc-stay-card__image--placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #ece9e4;
}

.ecsc-stay-card__title {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
}

.ecsc-search__no-results {
    grid-column: 1 / -1;
    padding: 3rem 1rem;
    text-align: center;
    color: #999;
    font-size: 0.95rem;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .ecsc-search__results {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ecsc-search__results {
        grid-template-columns: 1fr;
    }
}
