.nearb-directory {
    display: flex;
    gap: 0;
    width: 100%;
    align-items: stretch;
    background: #f6f7fb;
    box-sizing: border-box;
    font-family: 'Manrope', 'Inter', sans-serif;
    min-height: 100vh;
}



.nearb-directory__column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nearb-directory__column--left,
.nearb-directory__column--right {
    flex: 1 1 calc(50% - 16px);
    max-width: calc(50% - 16px);
}

.nearb-directory__column--left {
    max-height: 100vh;
    overflow-y: auto;
    padding: 20px;
}

.nearb-directory__column--right {
    position: sticky;
    top: 0;
    height: 100vh;
}

.nearb-directory__map {
    width: 100%;
    min-height: 100%;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
    background: #f4f5f9;
}

.nearb-home-search {
    width: 100%;
}

.nearb-home-search__filters {
    width: 100%;
}

.nearb-directory__filter--submit {
    flex: 0 0 auto;
    min-width: 200px;
}

.nearb-directory__filter--submit .nearb-directory-filter-card {
    background: #fff;
    border-radius: 16px;
    padding: 8px;
    min-height: 76px;
    justify-content: center;
}

.nearb-directory__filter--submit .nearb-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    font-family: 'Manrope', 'Inter', sans-serif !important;
    padding: 16px !important;
}

.nearb-directory__filter--submit .nearb-search-btn svg {
    stroke: #fff !important;
}

.nearb-mobile-map-header {
    display: none;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 20px;
    background: transparent;
    border-bottom: none;
}

.nearb-mobile-back {
    border: none !important;
    background: transparent !important;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600 !important;
    color: #191923 !important;
    cursor: pointer;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    appearance: none;
}

.nearb-mobile-back-icon {
    width: 14px;
    height: 14px;
    border-left: 2px solid #191923;
    border-bottom: 2px solid #191923;
    transform: rotate(45deg);
    display: inline-block;
    margin-right: 2px;
}

.nearb-mobile-fab {
    position: fixed;
    bottom: 100px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border: none !important;
    background: #000 !important;
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 400 !important;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    display: none;
    z-index: 400;
    font-family: 'Manrope', 'Inter', sans-serif;
    appearance: none;
}

.nearb-mobile-fab-content {
    display: inline-flex;
    gap: 12px;
    align-items: center;
}

.nearb-mobile-fab-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nearb-mobile-fab-icon::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-size: contain;
}

.nearb-mobile-fab[data-state="list"] .nearb-mobile-fab-icon::before {
    background-image: url('../icons/map-pin.svg');
}

.nearb-mobile-fab[data-state="map"] .nearb-mobile-fab-icon::before {
    background-image: url('../icons/fi_list.svg');
}

.nearb-mobile-fab-label {
    font-size: 16px;
    letter-spacing: 0.3px;
    font-weight: 400 !important;
}

.nearb-directory__filters {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(23, 34, 75, 0.12);
    border: 1px solid #edeff6;
    position: relative;
    overflow: visible;
    z-index: 10;
}

.nearb-directory__filter {
    flex: 1 1 0;
    position: relative;
}

.nearb-directory__filter--location .nearb-directory-filter-card {
    cursor: text;
}

.nearb-directory__filter--location {
    overflow: visible;
    z-index: 60;
}

.nearb-directory__filter:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 14px;
    bottom: 14px;
    right: 0;
    width: 1px;
    background: #eceff5;
}

.nearb-directory-filter-card {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    min-height: 76px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    position: relative;
}

.nearb-directory-filter-card .nearb-icon {
    padding: 16px;
    box-sizing: content-box;
}

.nearb-directory-filter-card .nearb-icon:first-child {
    padding-left: 20px;
}

.nearb-directory-filter-card .nearb-icon:last-child {
    padding-right: 20px;
}

.nearb-directory-filter-card input[type="hidden"] {
    padding: 0;
}

.nearb-filter-field {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    width: 100%;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.nearb-directory__filter--location {
    position: relative;
    overflow: visible;
    z-index: 60;
}

.nearb-location-input {
    flex: 1 1 auto;
    border: none;
    font-size: 16px;
    outline: none;
    background: transparent;
    height: 100%;
    cursor: text;
    padding: 16px 0;
}

.nearb-distance-select,
.nearb-industry-select {
    border: none;
    font-size: 16px;
    background: transparent;
    outline: none;
    width: 100%;
    appearance: none;
    cursor: pointer;
    height: 100%;
}

.nearb-industry-select {
    padding: 0;
}

.nearb-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nearb-icon svg,
.nearb-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.nearb-filter-field {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 0;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.nearb-select {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 16px;
    line-height: 1.5;
    padding: 0;
    appearance: none;
    cursor: pointer;
    color: #191923;
    box-sizing: border-box;
    height: 100%;
    background-image: url('../icons/chevron-down.svg');
    background-repeat: no-repeat;
    background-position: calc(100% - 20px) center;
    background-size: 20px;
    padding-right: 48px;
}

.nearb-geo-btn {
    border: none;
    background: transparent !important;
    cursor: pointer;
    color: #191923;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: auto;
    height: auto;
    box-shadow: none;
    appearance: none;
}

.nearb-geo-btn:focus-visible {
    outline: 2px solid #327be5;
    outline-offset: 2px;
    border-radius: 8px;
}
.nearb-directory__filters select,
.nearb-directory__filters input {
    font-family: inherit;
}

.nearb-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    z-index: 200;
    max-height: 320px;
    overflow-y: auto;
    display: none;
    border: 1px solid #e2e6f0;
    border-top: none;
}

.nearb-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
}

.nearb-suggestion-item:last-child {
    border-bottom: none;
}

.nearb-suggestion-item:hover {
    background: #f8fafc;
}

.nearb-directory__list--loading {
    opacity: 0.6;
    pointer-events: none;
}

.nearb-directory__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    justify-content: stretch;
    width: 100%;
}

.nearb-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e6f0;
    box-shadow: 0 20px 35px rgba(20,28,58,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.nearb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.16);
}

.nearb-card--active {
    outline: 3px solid #327be5;
}

.nearb-card__link {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nearb-card__media {
    position: relative;
    height: 250px;
    padding: 16px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #dfe3ec;
}

.nearb-card__logo {
    position: absolute;
    bottom: 16px;
    left: 16px;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    z-index: 1;
}

.nearb-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nearb-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    z-index: 1;
}

.nearb-card__badge--featured {
    background: #f28a04;
    color: #191923;
}

.nearb-card__badge--standard {
    background: #fff;
    color: #191923;
    border: 1px solid #f0f0f0;
}

.nearb-card__badge-label,
.nearb-card__badge-meta {
    line-height: 1.5;
    letter-spacing: 0.3px;
}



.nearb-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}


.nearb-card__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #383c3f;
    font-size: 15px;
    padding: 0;
}

.nearb-card__rating-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nearb-card__rating-value {
    font-size: 16px;
    font-weight: 700;
}

.nearb-icon--star::before {
    content: '★';
    color: #f28a04;
    font-size: 18px;
}

.nearb-card__title {
    margin: 0;
    font-family: var(--Typography-Text-font, 'Manrope', 'Inter', sans-serif);
    font-size: 20px;
    line-height: 150%;
    letter-spacing: 0.3px;
    color: var(--Typography-Headers, #191923);
    font-weight: 700;
}

.nearb-card__location,
.nearb-card__distance {
    margin: 0;
    font-family: var(--Typography-Text-font, 'Manrope', 'Inter', sans-serif);
    color: var(--Typography-Text, #383c3f);
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 0.3px;
}

.nearb-directory__empty {
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    text-align: center;
    color: #6b7280;
    font-weight: 500;
}

.leaflet-popup-content {
    margin: 0;
}

.nearb-map-popup .leaflet-popup-close-button {
    display: none !important;
}

.nearb-map-popup .leaflet-popup-content-wrapper {
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 20px 30px rgba(0,0,0,0.15);
}

.nearb-map-popup .leaflet-popup-content {
    margin: 0;
}

.nearb-map-popup .nearb-card {
    box-shadow: none;
    border: none;
    width: 300px;
    padding: 0;
}

.nearb-map-popup .nearb-card__media {
    width: 300px;
    height: 180px;
    padding: 0;
    border-radius: 16px;
}

.nearb-map-popup .nearb-card__body {
    padding: 12px 16px 16px;
    gap: 4px;
}

.nearb-map-popup .nearb-card__title {
    font-size: 16px;
}

.nearb-map-popup .nearb-card__location,
.nearb-map-popup .nearb-card__rating,
.nearb-map-popup .nearb-card__distance,
.nearb-map-popup .nearb-card__logo {
    display: none;
}

.nearb-map-popup .nearb-card__badge {
    font-size: 14px;
    padding: 6px 10px;
}

@media (max-width: 900px) {
    .nearb-directory__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .nearb-directory__list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .nearb-directory {
        flex-direction: column;
        padding: 24px 16px;
        min-height: auto;
    }

    .nearb-home-search {
        flex-direction: column;
    }

    .nearb-home-search__actions {
        width: 100%;
        flex: 0 0 auto;
    }

    .nearb-directory__column--left,
    .nearb-directory__column--right {
        max-width: 100%;
        width: 100%;
        flex-basis: 100%;
        max-height: none;
        overflow: visible;
    }
    .nearb-directory__column--right {
        position: relative;
        width: 100%;
        height: auto;
        display: none;
    }
    .nearb-directory__map {
        min-height: 70vh;
        height: auto;
    }

    .nearb-directory__filters {
        flex-direction: column;
        padding: 20px;
        gap: 12px;
    }

    .nearb-directory__filter:not(:last-child)::after {
        display: none;
    }

    .nearb-directory-filter-card {
        border: 1px solid #e2e6f0;
        border-radius: 12px;
        min-height: 64px;
        padding: 0 14px;
        gap: 12px;
        cursor: text;
    }

    .nearb-directory-filter-card .nearb-icon {
        padding: 0;
    }

    .nearb-directory-filter-card .nearb-icon:first-child,
    .nearb-directory-filter-card .nearb-icon:last-child {
        padding: 0;
    }

    .nearb-filter-field,
    .nearb-select,
    .nearb-location-input {
        padding: 10px 0;
    }

    .nearb-directory__column--right .nearb-mobile-map-header {
        display: none;
    }

    .nearb-mobile-fab {
        display: inline-flex;
    }

    .nearb-directory--show-map .nearb-directory__column--right {
        display: flex;
        flex-direction: column;
    }

    .nearb-directory--show-map .nearb-directory__column--left {
        display: none;
    }

    .nearb-directory--show-map .nearb-mobile-map-header {
        display: flex;
    }
}

@media (min-width: 1025px) {
    .nearb-mobile-fab,
    .nearb-mobile-map-header,
    .nearb-mobile-back {
        display: none !important;
    }
}
