/* ============================================================
   Lovasok Keresősáv — [lovasok_search_bar] shortcode stílusa
   ============================================================ */

.lmk-searchbar-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Force border-box on all children so padding never breaks out of the flex row on mobile. */
.lmk-searchbar-wrap,
.lmk-searchbar-wrap *,
.lmk-searchbar-wrap *::before,
.lmk-searchbar-wrap *::after {
    box-sizing: border-box;
}

/* ── Fő kereső kártya ── */
.lmk-searchbar {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 10px 10px 10px 10px;
    overflow: visible;
}

/* ── Mezők közös stílus ── */
.lmk-searchbar__field {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
    min-width: 0;
}

/* Elválasztó vonalak a mezők között */
.lmk-searchbar__field + .lmk-searchbar__field::before {
    content: '';
    display: block;
    width: 1px;
    height: 28px;
    background: #e5e7eb;
    flex-shrink: 0;
    margin-right: 4px;
}

/* ── Szöveges keresőmező ── */
.lmk-searchbar__field--text {
    flex: 1.4;
    padding: 0 8px 0 12px;
}

.lmk-searchbar__icon {
    width: 18px;
    height: 18px;
    color: #9ca3af;
    flex-shrink: 0;
    margin-right: 10px;
}

.lmk-searchbar__icon--pin {
    color: #9ca3af;
}

.lmk-searchbar__input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 0;
    font-size: 0.9375rem;
    color: #111827;
    padding: 10px 0;
    font-family: inherit;
}

.lmk-searchbar__input::placeholder {
    color: #9ca3af;
}

/* ── Dropdown mezők (fajta, megye) ── */
.lmk-searchbar__field--select {
    flex: 1;
    padding: 0 8px 0 8px;
}

.lmk-searchbar__field--county {
    padding-left: 4px;
}

.lmk-searchbar__select {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 0;
    font-size: 0.9375rem;
    color: #374151;
    padding: 10px 28px 10px 4px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-family: inherit;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.lmk-searchbar__select--county {
    padding-left: 0;
}

.lmk-searchbar__chevron {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #6b7280;
    pointer-events: none;
    flex-shrink: 0;
}

/* ── Keresés gomb ── */
.lmk-searchbar__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a5c3e;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    flex-shrink: 0;
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
    box-shadow: 0 2px 8px rgba(26, 92, 62, 0.25);
    margin-left: 4px;
}

.lmk-searchbar__btn svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.lmk-searchbar__btn:hover {
    background: #144d33;
    box-shadow: 0 4px 14px rgba(26, 92, 62, 0.35);
    transform: translateY(-1px);
}

.lmk-searchbar__btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(26, 92, 62, 0.2);
}

/* ── Gyorslinkek ── */
.lmk-searchbar__quicklinks {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding: 0 2px;
}

.lmk-searchbar__tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.lmk-searchbar__tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.3;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.lmk-searchbar__tag:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    text-decoration: none;
}

/* Prémium tag */
.lmk-searchbar__tag--premium {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.6);
    color: #fbbf24;
}

.lmk-searchbar__tag--premium svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.lmk-searchbar__tag--premium:hover {
    background: rgba(245, 158, 11, 0.28);
    border-color: #fbbf24;
    color: #fbbf24;
}

/* Részletes szűrés link */
.lmk-searchbar__advanced {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.lmk-searchbar__advanced svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.lmk-searchbar__advanced:hover {
    color: #ffffff;
    text-decoration: none;
}

/* ── Reszponzív ── */
@media (max-width: 900px) {
    .lmk-searchbar {
        flex-wrap: wrap;
        gap: 0;
        width: 100%;
        max-width: 100%;
    }

    .lmk-searchbar__field--text {
        flex: 1 1 100%;
        max-width: 100%;
        border-bottom: 1px solid #f3f4f6;
        padding: 4px 12px;
    }

    .lmk-searchbar__field--breed {
        flex: 1 1 45%;
        max-width: 100%;
        border-bottom: 1px solid #f3f4f6;
    }

    .lmk-searchbar__field--county {
        flex: 1 1 45%;
        max-width: 100%;
        border-bottom: 1px solid #f3f4f6;
    }

    .lmk-searchbar__field + .lmk-searchbar__field::before {
        display: none;
    }

    .lmk-searchbar__btn {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        justify-content: center;
        margin-left: 0;
        border-radius: 8px;
        margin-top: 4px;
    }
}

@media (max-width: 600px) {
    .lmk-searchbar {
        padding: 8px;
        overflow: hidden;
    }

    .lmk-searchbar__field--text,
    .lmk-searchbar__field--breed,
    .lmk-searchbar__field--county {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
        padding: 4px 10px;
    }

    .lmk-searchbar__icon {
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }

    .lmk-searchbar__input,
    .lmk-searchbar__select {
        font-size: 16px; /* iOS zoom megelőzése */
    }

    .lmk-searchbar__select {
        padding: 10px 24px 10px 4px;
    }

    .lmk-searchbar__quicklinks {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
