/* Compact Home search with an expandable country/city location panel. */
@layer home-navy-outline {
    html #main-app #home-content.home-tight-layout .home-search {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 16px !important;
        margin-inline: 0 !important;
        position: relative !important;
        top: auto !important;
        overflow: visible !important;
    }
    html #main-app #home-content.home-tight-layout .home-search-row {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        align-items: start !important;
    }
    html #main-app #home-content.home-tight-layout .home-search-row > .home-search-field {
        padding: 0 !important;
        border: 0 !important;
        min-height: 0 !important;
        display: block !important;
    }
    html #main-app #home-content.home-tight-layout .home-search-row > .home-search-field > label {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        clip-path: inset(50%) !important;
        white-space: nowrap !important;
    }
    html #main-app #home-content.home-tight-layout .home-search-field > :is(input, select) {
        height: 48px !important;
        min-height: 48px !important;
        margin: 0 !important;
        border: 1px solid #d6e1ef !important;
        border-radius: 14px !important;
        background: #fff !important;
        padding: 11px 32px 11px 44px !important;
        color: #13233d !important;
        font-size: 16px !important;
        line-height: 24px !important;
    }
    html #main-app #home-content.home-tight-layout .home-search-field-icon {
        display: block !important;
        top: 50% !important;
        left: 16px !important;
        color: #2061a8 !important;
        transform: translateY(-50%) !important;
    }
    html #main-app #home-content.home-tight-layout .home-search-field:has(#home-search-category)::after {
        top: 50% !important;
        right: 16px !important;
    }
    html #main-app #home-content.home-tight-layout .home-location-pair {
        position: relative;
        min-width: 0;
        width: 100%;
    }
    html #main-app #home-content.home-tight-layout #home-location-toggle {
        display: flex;
        align-items: center;
        gap: 13px;
        width: 100%;
        min-height: 48px;
        padding: 11px 16px !important;
        border: 1px solid #d6e1ef;
        border-radius: 14px;
        background: #fff;
        color: #13233d;
        font-family: inherit;
        font-size: 16px;
        line-height: 24px;
        text-align: left;
        cursor: pointer;
    }
    html #main-app #home-content.home-tight-layout #home-location-toggle > i:first-child { color: #2061a8; }
    html #main-app #home-content.home-tight-layout #home-location-toggle > i:last-child { margin-left: auto; font-size: 11px; }
    html #main-app #home-content.home-tight-layout #home-location-toggle[aria-expanded="true"] { background: #f1f6ff; border-color: #2061a8; }
    html #main-app #home-content.home-tight-layout #home-location-toggle[aria-expanded="true"] > i:last-child { transform: rotate(180deg); }
    html #main-app #home-content.home-tight-layout #home-location-summary { flex: 1; min-width: 0; overflow-wrap: anywhere; }
    html #main-app #home-content.home-tight-layout #home-location-panel {
        margin-top: 8px !important;
        padding: 16px !important;
        border: 1px solid #d6e1ef;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 6px 20px rgba(22, 50, 85, .07);
        color: #13233d;
        box-sizing: border-box;
    }
    html #main-app #home-content.home-tight-layout #home-location-panel[hidden],
    html #main-app #home-content.home-tight-layout #area-picker[hidden] { display: none !important; }
    html #main-app #home-content.home-tight-layout .home-location-toolbar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 4px 12px;
        margin-bottom: 12px;
        font-size: 15px;
        font-weight: 600;
    }
    html #main-app #home-content.home-tight-layout #home-use-location {
        position: static !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        width: auto !important;
        height: auto !important;
        min-height: 44px !important;
        padding: 5px 0 !important;
        margin: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: #2061a8 !important;
        font-family: inherit;
        font-size: 12px !important;
        line-height: 1.4 !important;
        transform: none !important;
        box-shadow: none !important;
        cursor: pointer;
    }
    html #main-app #home-content.home-tight-layout .home-location-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
    html #main-app #home-content.home-tight-layout .home-location-field { display: grid; gap: 7px; min-width: 0; margin: 0; color: #546e90; font-size: 13px; font-weight: 600; line-height: 18px; }
    html #main-app #home-content.home-tight-layout .home-location-label { display: flex; justify-content: space-between; gap: 6px; }
    html #main-app #home-content.home-tight-layout .home-location-label small { font-size: 12px; font-weight: 400; }
    html #main-app #home-content.home-tight-layout .home-location-field input {
        width: 100%; min-width: 0; min-height: 46px; box-sizing: border-box;
        padding: 10px 12px !important; border: 1px solid #d6e1ef !important; border-radius: 10px !important;
        background: #fff !important; color: #13233d !important;
        font-family: inherit; font-size: 16px; font-weight: 400; line-height: 24px;
    }
    html #main-app #home-content.home-tight-layout .home-location-field input::placeholder { color: #61728b; opacity: 1; }
    html #main-app #home-content.home-tight-layout :is(#home-location-toggle, .home-location-field input, .home-location-actions button):focus-visible { outline: 2px solid #2061a8; outline-offset: 2px; }
    html #main-app #home-content.home-tight-layout .home-location-field input[aria-invalid="true"] { border-color: #b43a30 !important; }
    html #main-app #home-content.home-tight-layout #home-search-location { display: none !important; }
    html #main-app #home-content.home-tight-layout #area-picker {
        position: static !important; inset: auto !important; width: 100% !important;
        max-width: none !important; max-height: none !important; margin: -6px 0 0 !important;
        border: 0 !important; border-radius: 8px !important; box-shadow: none !important; overflow: hidden !important;
    }
    html #main-app #home-content.home-tight-layout #area-picker-countries { overflow-y: auto; overscroll-behavior: contain; }
    html #main-app #home-content.home-tight-layout #area-picker-countries button { min-height: 44px; }
    html #main-app #home-content.home-tight-layout .home-location-actions { display: flex; gap: 10px; margin-top: 16px !important; }
    html #main-app #home-content.home-tight-layout .home-location-actions button {
        min-height: 44px; padding: 10px 14px !important; border: 1px solid #d6e1ef; border-radius: 10px;
        background: #fff; color: #13233d; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
    }
    html #main-app #home-content.home-tight-layout #home-location-apply { flex: 1; background: #2061a8; border-color: #2061a8; color: #fff; }
    html #main-app #home-content.home-tight-layout .home-search-actions { grid-column: 1 / -1 !important; width: 100% !important; }
    html #main-app #home-content.home-tight-layout #home-search-btn { width: 100% !important; min-height: 48px !important; height: auto !important; }
    @media (min-width: 1024px) {
        html #main-app #home-content.home-tight-layout .home-search { padding: 24px !important; }
        html #main-app #home-content.home-tight-layout .home-search-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1fr) 120px !important; align-items: start !important; gap: 12px !important; }
        html #main-app #home-content.home-tight-layout .home-search-actions { grid-column: auto !important; }
        html #main-app #home-content.home-tight-layout #home-location-panel { position: absolute; z-index: 100; top: 100%; left: 0; width: max(100%, 350px); max-width: calc(100vw - 40px); }
        html #main-app #home-content.home-tight-layout .home-location-pair:has(#home-location-panel:not([hidden])) { z-index: 100; }
    }
}
