/* Hero search shortcode styles */
.sa-hero-search {
    position: relative;
    z-index: 9999;
    width: 100%;
}

.sa-hero-search__result-image img {
    border-radius: 0px;
}

.sa-hero-search__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.64);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.sa-hero-search__field {
    flex: 1;
    position: relative;
}

.sa-hero-search__input {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    padding: 12px 96px 12px 14px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.88);
    color: #111;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.sa-hero-search__input::placeholder {
    color: #666;
    opacity: 1;
}

.sa-hero-search__filters {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sa-hero-search__select {
    min-width: 160px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    padding: 10px 36px 10px 12px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.88);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.sa-hero-search__input:focus,
.sa-hero-search__select:focus {
    outline: none;
    border-color: rgba(74, 124, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(74, 124, 255, 0.18);
    background: #fff;
}

.sa-hero-search__clear {
    border: none;
    background: rgba(255, 255, 255, 0.8);
    color: #4b5563;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 10px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sa-hero-search__clear.is-hidden {
    display: none;
}

.sa-hero-search__clear:hover {
    color: #111;
}

.sa-hero-search__results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
    z-index: 60;
}

.sa-hero-search__results.is-open {
    display: block;
}

.sa-hero-search__results-inner {
    padding: 12px;
}

.sa-hero-search__status {
    padding: 16px;
    text-align: center;
    color: #666;
}

.sa-hero-search__results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sa-hero-search__result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.sa-hero-search__result:hover {
    background: rgba(248, 250, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(74, 124, 255, 0.08);
}

.sa-hero-search__result-image {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    border: none;
}

.sa-hero-search__result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}

.sa-hero-search__result-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.sa-hero-search__result-title {
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

.sa-hero-search__result-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: #666;
    align-items: center;
}

.sa-hero-search__result-meta-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sa-hero-search__result-location-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4b5563;
}

.sa-hero-search__location-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: currentColor;
    opacity: 0.7;
}

.sa-hero-search__result-extras {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.sa-hero-search__result-tag {
    font-size: var(--text-xs);
    padding-top: 1px;
    padding-right: 5px;
    padding-bottom: 1px;
    padding-left: 5px;
    background-color: var(--primary-semi-light);
    color: var(--base-ultra-dark);
    border-radius: 8px;
}

.sa-hero-search__result-days {
    font-size: 13px;
    color: #5b6470;
}

.sa-hero-search__result-price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

.sa-hero-search__result-flight {
    font-size: 12px;
    color: #4b5563;
}

.sa-hero-search__result-price span {
    font-weight: 600;
    color: #111;
}

.sa-hero-search__mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.sa-hero-search__mobile-title {
    font-size: 18px;
    font-weight: 600;
}

.sa-hero-search__close {
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

body.sa-hero-search--locked {
    overflow: hidden;
}

@media (max-width: 768px) {
    .sa-hero-search__result {
        gap: 10px;
        padding: 8px;
        align-items: flex-start;
    }

    .sa-hero-search__result-image {
        width: 56px;
        height: 56px;
    }

    .sa-hero-search__result-title {
        font-size: 15px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .sa-hero-search__result-meta {
        gap: 8px;
        margin-top: 2px;
    }

    .sa-hero-search__result-tag {
        font-size: 11px;
        padding-top: 1px;
        padding-right: 4px;
        padding-bottom: 1px;
        padding-left: 4px;
        border-radius: 6px;
    }

    .sa-hero-search__result-days,
    .sa-hero-search__result-location {
        font-size: 13px;
    }

    .sa-hero-search__result-flight {
        font-size: 12px;
        line-height: 1.4;
    }

    .sa-hero-search__bar {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 10px;
    }

    .sa-hero-search__filters {
        flex-direction: column;
        width: 100%;
    }

    .sa-hero-search__select {
        width: 100%;
        min-width: auto;
    }


    .sa-hero-search--mobile-open {
        position: fixed;
        inset: 0;
        background: #f8fafc;
        padding: 16px;
        z-index: 2147483647;
        overflow-y: auto;
    }

    .sa-hero-search--mobile-open .sa-hero-search__mobile-header {
        display: flex;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 2;
        padding-bottom: 12px;
    }

    .sa-hero-search--mobile-open .sa-hero-search__bar {
        flex-direction: column;
        align-items: stretch;
        box-shadow: none;
        border: 1px solid rgba(15, 23, 42, 0.12);
        gap: 12px;
        background: rgba(255, 255, 255, 0.88);
    }

    .sa-hero-search__result-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .sa-hero-search__result-price-wrap {
        align-items: flex-start;
        text-align: left;
    }

    .sa-hero-search--mobile-open .sa-hero-search__results {
        position: static;
        margin-top: 12px;
        box-shadow: none;
    }
}

@media (max-width: 478px) {
    .sa-hero-search__filters {
        display: none;
    }

    .sa-hero-search__bar {
        gap: 0;
    }

    .sa-hero-search--mobile-open .sa-hero-search__filters {
        display: flex;
    }

    .sa-hero-search--mobile-open .sa-hero-search__clear {
        display: inline-flex;
    }
}
