/* Hero header */
.home-banner-logo .site-header.site-header-transparent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
}

.home-banner-logo .site-header .top-header {
    padding: 12px 0;
}

.home-banner-logo .header-schedule-info {
    margin: 0 !important;
}

.home-banner-logo .header-schedule-info a img {
    height: 28px;
    width: auto;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

.home-banner-logo .h_box {
    min-height: 48px;
}

.home-banner-logo .header-social ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-banner-logo .header-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.home-banner-logo .header-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
}

.home-banner-logo {
    background-color: rgba(0, 0, 0, 0.38) !important;
}

/* Hero search — upgraded visual, preserves legacy selectors */
.home-banner .banner-left-detail #search_form {
    width: 100%;
    max-width: 880px;
    margin: 8px auto 0;
}

.home-banner .nmx-search.search_ipt {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    align-content: center !important;
    max-width: 880px;
    width: 100% !important;
    height: auto !important;
    min-height: 56px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    overflow: visible;
    padding: 5px 5px 5px 8px;
    gap: 0;
    position: relative;
}

.home-banner .nmx-search .search_list {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    height: auto !important;
}

.home-banner .nmx-search #search_ipt {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto;
    min-width: 0;
    text-indent: 0 !important;
    padding: 0 14px !important;
}

.home-banner .nmx-search .search_loc {
    display: flex !important;
    align-items: center !important;
    gap: 6px;
    flex: 0 0 188px !important;
    width: 188px !important;
    max-width: 188px !important;
    height: auto !important;
    padding: 0 10px !important;
    border-left: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 0 !important;
    position: relative !important;
}

.home-banner .nmx-search .search_loc .getNominatim {
    position: absolute;
    top: calc(100% + 8px);
    left: -10px;
    right: auto;
    width: min(320px, calc(100vw - 32px));
    z-index: 120;
}

.home-banner .nmx-search .search_loc:after {
    display: none !important;
}

.home-banner .nmx-search .loc_item {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.9);
}

.home-banner .nmx-search .loc_item path {
    fill: currentColor;
}

.home-banner .nmx-search #search_loc {
    width: 100% !important;
    height: 44px !important;
    text-indent: 0 !important;
    padding: 0 !important;
}

.home-banner .nmx-search #search_ipt,
.home-banner .nmx-search #search_loc {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-weight: 500;
    box-shadow: none !important;
}

.home-banner .nmx-search #search_ipt::placeholder,
.home-banner .nmx-search #search_loc::placeholder {
    color: rgba(255, 255, 255, 0.62);
    font-weight: 400;
}

.home-banner .nmx-search .search_btn {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0;
}

.home-banner .nmx-search .search_btn #btn_search {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--nmx-accent), var(--nmx-primary)) !important;
    padding: 0 22px !important;
    height: 46px !important;
    min-height: 46px !important;
    border: 0 !important;
    border-bottom: 0 !important;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-banner .nmx-search .search_btn #btn_search:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.35);
}

.home-banner .nmx-search__btn-text {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.home-banner .nmx-search .search_list {
    position: relative;
}

.home-banner .nmx-search .__search_sug_box {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 110;
    background: #fff;
    border: 1px solid var(--nmx-border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.home-banner .nmx-search .__search_sug_item {
    padding: 10px 14px;
    font-size: 14px;
    color: var(--nmx-text);
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
}

.home-banner .nmx-search .__search_sug_item:hover {
    background: #f0f7fc;
    color: var(--nmx-primary);
}

.home-banner .nmx-search .getNominatim .suggestions {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0;
    padding: 6px 0;
    background: #fff;
    border: 1px solid var(--nmx-border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14);
    overflow: hidden;
    list-style: none;
}

.home-banner .nmx-search .getNominatim .suggestions li {
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #f1f5f9;
}

.home-banner .nmx-search .getNominatim .suggestions li:last-child {
    border-bottom: 0;
}

.home-banner .nmx-search .getNominatim .suggestions li a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
}

.home-banner .nmx-search .getNominatim .suggestions li a::before {
    content: '';
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    background-color: var(--nmx-primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 7.25c0 3.248 4.342 7.756 5.23 8.825l.769.925.769-.926c.888-1.068 5.234-5.553 5.234-8.824C15 4.145 13 1 9 1 5 1 1 4.145 1 7.25zm2 0C3 5.135 4.175 3 6 3s3 2.135 3 4.25c0 1.777-2.177 4.248-4 6.59C3.1 11.4 1 9.021 1 7.25zM6 5.5a1.5 1.5 0 100 3 1.5 1.5 0 000-3z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 7.25c0 3.248 4.342 7.756 5.23 8.825l.769.925.769-.926c.888-1.068 5.234-5.553 5.234-8.824C15 4.145 13 1 9 1 5 1 1 4.145 1 7.25zm2 0C3 5.135 4.175 3 6 3s3 2.135 3 4.25c0 1.777-2.177 4.248-4 6.59C3.1 11.4 1 9.021 1 7.25zM6 5.5a1.5 1.5 0 100 3 1.5 1.5 0 000-3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.home-banner .nmx-search .getNominatim .suggestions li:hover a {
    background: #f0f7fc;
}

.home-banner .nmx-search .mapboxgl-ctrl-geocoder--suggestion-title {
    color: #0f172a;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.35;
}

.home-banner .nmx-search .mapboxgl-ctrl-geocoder--suggestion-address {
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 2px;
}

/* Shared buttons */
.nmx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nmx-btn--primary {
    background: linear-gradient(135deg, var(--nmx-accent), var(--nmx-primary));
    color: #fff;
}

.nmx-btn--primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(18, 150, 219, 0.3);
}

.nmx-btn--sm {
    padding: 8px 16px;
    font-size: 14px;
    background: var(--nmx-primary);
    color: #fff;
}

.nmx-btn--sm:hover {
    color: #fff;
    background: var(--nmx-primary-dark);
}

@media (max-width: 991px) {
    .home-banner .nmx-search.search_ipt {
        flex-wrap: wrap !important;
        border-radius: 18px;
        padding: 10px;
        gap: 8px;
    }

    .home-banner .nmx-search .search_list {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    .home-banner .nmx-search .search_loc {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        border-left: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 8px !important;
    }

    .home-banner .nmx-search .search_loc .getNominatim {
        left: 0;
        width: 100%;
    }

    .home-banner .nmx-search .search_btn {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    .home-banner .nmx-search .search_btn #btn_search {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .home-banner .nmx-search.search_ipt {
        flex-direction: column !important;
        border-radius: 16px;
    }

    .home-banner-logo .header-schedule-info a img {
        height: 24px;
    }

    .home-banner-logo .header-social a {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 575px) {
    .home-banner .nmx-search__btn-text {
        font-size: 13px;
    }
}
