/* ─── Robsy Properties — Search Widget ───────────────────────────────────── */

.robsy-search-widget {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 32px rgba(0,0,0,.13);
    padding: 24px 24px 20px;
    max-width: 780px;
    width: 100%;
    font-family: inherit;
    position: relative;
}

/* ── Tabs ─────────────────────────────────────────────────────────────────── */
.robsy-tabs-row {
    margin-bottom: 18px;
}
.robsy-tabs {
    display: inline-flex;
    background: #f3f4f6;
    border-radius: 50px;
    padding: 4px;
    gap: 2px;
}
.robsy-tab {
    padding: 8px 24px;
    border-radius: 50px;
    border: none;
    background: transparent;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .6px;
    cursor: pointer;
    color: #3a7d44;
    transition: background .2s, color .2s;
    font-family: inherit;
}
.robsy-tab.active {
    background: #3a7d44;
    color: #fff;
    box-shadow: 0 2px 8px rgba(58,125,68,.35);
}

/* ── Fila principal (texto + botón) ──────────────────────────────────────── */
.robsy-main-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}
.robsy-text-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    padding: 0 18px;
    background: #fafafa;
    transition: border-color .15s;
}
.robsy-text-wrap:focus-within {
    border-color: #3a7d44;
    background: #fff;
}
.robsy-txt-icon {
    color: #3a7d44;
    flex-shrink: 0;
}
.robsy-search-input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    padding: 13px 0;
    font-size: .92rem;
    color: #333;
    font-family: inherit;
}
.robsy-search-input::placeholder { color: #aaa; }

.robsy-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #3a7d44;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 13px 26px;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
    font-family: inherit;
}
.robsy-search-btn:hover { background: #2e6336; }
.robsy-search-btn--wide {
    width: 100%;
    justify-content: center;
    border-radius: 10px;
    padding: 14px;
    font-size: .95rem;
    margin-top: 4px;
}

/* ── Filtros rápidos ─────────────────────────────────────────────────────── */
.robsy-quick-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.robsy-flt-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    padding: 0 14px;
    background: #fafafa;
    flex: 1;
    min-width: 130px;
    cursor: pointer;
    transition: border-color .15s;
}
.robsy-flt-wrap:focus-within { border-color: #3a7d44; background: #fff; }
.robsy-flt-icon { color: #3a7d44; flex-shrink: 0; }
.robsy-flt-select {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: .84rem;
    color: #444;
    padding: 11px 0;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}
.robsy-flt-chev { color: #999; flex-shrink: 0; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.robsy-search-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}
.robsy-footer-link {
    background: none;
    border: none;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .4px;
    color: #3a7d44;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 0;
    font-family: inherit;
    transition: color .15s;
}
.robsy-footer-link:hover { color: #2e6336; }
.robsy-adv-chev { transition: transform .2s; }
.robsy-adv-toggle.open .robsy-adv-chev { transform: rotate(180deg); }

/* ── Panel Avanzado ──────────────────────────────────────────────────────── */
.robsy-adv-panel {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1.5px solid #f0f0f5;
}
.robsy-adv-title {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 14px;
}
.robsy-adv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 16px;
    margin-bottom: 16px;
}
@media (max-width: 680px) {
    .robsy-adv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 440px) {
    .robsy-adv-grid { grid-template-columns: 1fr; }
    .robsy-quick-filters { flex-direction: column; }
    .robsy-main-row { flex-direction: column; }
    .robsy-search-btn { width: 100%; justify-content: center; }
}
.robsy-adv-field label {
    display: block;
    font-size: .74rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.robsy-adv-select,
.robsy-adv-text {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: .86rem;
    color: #333;
    background: #fafafa;
    outline: none;
    font-family: inherit;
    transition: border-color .15s;
    appearance: none;
    -webkit-appearance: none;
}
.robsy-adv-select:focus,
.robsy-adv-text:focus {
    border-color: #3a7d44;
    background: #fff;
}

/* Rango mín-máx */
.robsy-range-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.robsy-range-inp {
    flex: 1;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: .84rem;
    color: #333;
    background: #fafafa;
    outline: none;
    font-family: inherit;
    transition: border-color .15s;
    width: 100%;
    box-sizing: border-box;
}
.robsy-range-inp:focus { border-color: #3a7d44; background: #fff; }
.robsy-range-sep { color: #bbb; font-size: .85rem; flex-shrink: 0; }

/* Amenidades checkboxes */
.robsy-adv-amenidades { margin-bottom: 16px; }
.robsy-adv-am-title {
    display: block;
    font-size: .74rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 10px;
}
.robsy-adv-am-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}
.robsy-adv-am-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .83rem;
    color: #444;
    cursor: pointer;
    padding: 5px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    background: #fafafa;
    transition: all .15s;
    user-select: none;
}
.robsy-adv-am-item:hover { border-color: #3a7d44; color: #3a7d44; background: #f0faf1; }
.robsy-adv-am-item:has(input:checked) {
    border-color: #3a7d44;
    background: #3a7d44;
    color: #fff;
}
.robsy-adv-am-item input { display: none; }

/* Submit avanzado */
.robsy-adv-submit-row { margin-top: 4px; }

/* ── Panel Recientes ──────────────────────────────────────────────────────── */
.robsy-recent-panel {
    position: absolute;
    left: 24px;
    right: 24px;
    top: calc(100% - 8px);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    padding: 14px 16px;
    z-index: 999;
}
.robsy-recent-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: .82rem;
    color: #333;
}
.robsy-recent-clear {
    background: none;
    border: none;
    font-size: .75rem;
    color: #e05;
    cursor: pointer;
    font-family: inherit;
}
.robsy-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.robsy-recent-list li a {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .84rem;
    color: #555;
    text-decoration: none;
    padding: 5px 6px;
    border-radius: 6px;
    transition: background .15s;
}
.robsy-recent-list li a:hover { background: #f3f4f6; color: #3a7d44; }
.robsy-recent-empty { font-size: .82rem; color: #aaa; margin: 0; }
