/*
 * Homepage tour search bar — replaces the old value-props/stats strip.
 * Self-contained styles under the etc-search-bar-* namespace so nothing
 * here can collide with existing selectors elsewhere in the theme.
 */

.etc-search-bar-section {
    position: relative;
    z-index: 10;
    margin-top: -108px;
    padding-block: 26px 6px;
}

/* Soft glow behind the bar so it reads as a bright, lit-up panel against
   whatever sits above it (hero image, dark overlays, etc). */
.etc-search-bar-section::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(1100px, 92vw);
    height: 220px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.35) 45%, rgba(255, 255, 255, 0) 72%);
    filter: blur(6px);
    pointer-events: none;
    z-index: -1;
}

.etc-search-bar {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 100px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 30px 70px rgba(6, 30, 20, 0.22),
        0 0 0 8px rgba(255, 255, 255, 0.25);
    padding: 8px;
    max-width: 980px;
    margin-inline: auto;
    overflow: hidden;
}

/* Thin bright accent line along the top edge for a little extra polish */
.etc-search-bar::after {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary, #A8D87A), var(--color-accent, #E8543A), var(--color-secondary, #A8D87A));
    opacity: 0.9;
}

.etc-search-bar__field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 18px;
    color: var(--color-text-secondary, #5A5A5A);
    border-radius: 60px;
    transition: background-color 0.2s ease;
}

.etc-search-bar__field:hover,
.etc-search-bar__field:focus-within {
    background-color: rgba(7, 141, 64, 0.06);
}

.etc-search-bar__field > svg {
    flex-shrink: 0;
    color: var(--color-accent, #E8543A);
}

.etc-search-bar__field-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: left;
}

.etc-search-bar__field-body label {
    font-family: var(--font-heading, sans-serif);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted, #6E6E6E);
    margin-bottom: 2px;
}

.etc-search-bar__field-body input {
    border: 0;
    padding: 0;
    font-family: var(--font-body, sans-serif);
    font-size: 15px;
    color: var(--color-text, #242424);
    background: transparent;
    width: 100%;
}

.etc-search-bar__field-body input:focus {
    outline: 0;
    box-shadow: none;
}

.etc-search-bar__field-body input::placeholder {
    color: var(--color-text-muted, #999);
}

.etc-search-bar__field-body #etc-search-travelers-summary {
    font-family: var(--font-body, sans-serif);
    font-size: 15px;
    color: var(--color-text, #242424);
}

.etc-search-bar__divider {
    width: 1px;
    align-self: center;
    height: 34px;
    background: var(--color-border, #E6E6E6);
    flex-shrink: 0;
}

.etc-search-bar__field--travelers {
    padding: 0;
}

.etc-search-bar__travelers-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 18px;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
}

.etc-search-bar__travelers-toggle svg {
    flex-shrink: 0;
    color: var(--color-accent, #E8543A);
}

.etc-search-bar__travelers-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 30;
    width: 260px;
    background: var(--color-bg-card, #fff);
    border: 1px solid var(--color-border, #E6E6E6);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
    padding: 18px;
}

.etc-search-bar__counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 10px;
}

.etc-search-bar__counter + .etc-search-bar__counter {
    border-top: 1px solid var(--color-border, #E6E6E6);
}

.etc-search-bar__counter > span:first-child {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text, #242424);
}

.etc-search-bar__counter-btns {
    display: flex;
    align-items: center;
    gap: 12px;
}

.etc-search-bar__counter-btns span {
    min-width: 18px;
    text-align: center;
    font-weight: 700;
}

.etc-search-bar__counter-btn {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--color-border, #E6E6E6);
    background: var(--color-bg-alt, #F5F6F5);
    color: var(--color-text, #242424);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.etc-search-bar__counter-btn:hover {
    background: var(--color-primary, #078D40);
    border-color: var(--color-primary, #078D40);
    color: #fff;
}

.etc-search-bar__travelers-done {
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    border: 0;
    border-radius: 8px;
    background: var(--color-primary, #078D40);
    color: #fff;
    font-family: var(--font-heading, sans-serif);
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.etc-search-bar__submit {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 28px;
    border: 0;
    border-radius: 100px;
    background: linear-gradient(135deg, #f0704f 0%, var(--color-accent, #E8543A) 55%, var(--color-accent-hover, #C7402A) 100%);
    color: #fff;
    font-family: var(--font-heading, sans-serif);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 10px 26px rgba(232, 84, 58, 0.38);
    transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.etc-search-bar__submit:hover {
    background: linear-gradient(135deg, #f4805f 0%, var(--color-accent-hover, #C7402A) 100%);
    box-shadow: 0 14px 32px rgba(232, 84, 58, 0.48);
    transform: translateY(-2px);
}

.etc-search-bar__submit svg {
    flex-shrink: 0;
}

/* Mobile: stack fields, full-width pill card instead of horizontal capsule */
@media (max-width: 900px) {
    .etc-search-bar-section {
        margin-top: -36px;
        padding-inline: var(--container-pad, 16px);
        padding-block: 18px 4px;
    }

    .etc-search-bar {
        flex-direction: column;
        border-radius: 20px;
        padding: 14px;
        gap: 4px;
    }

    .etc-search-bar__field {
        width: 100%;
        padding: 12px 8px;
    }

    .etc-search-bar__divider {
        width: 100%;
        height: 1px;
    }

    .etc-search-bar__travelers-panel {
        left: 50%;
        transform: translateX(-50%);
        width: min(280px, 90vw);
    }

    .etc-search-bar__submit {
        width: 100%;
        justify-content: center;
        padding: 16px;
        margin-top: 6px;
    }
}
