.main-custom-form {
    display: grid;
    gap: 24px;
}

.custom-form-insider {
    padding: 20px;
    border: 1px solid #d9dde3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 0;
}

.form-area,
.form-row,
.form-col {
    width: 100%;
}

.input-row--filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}

.input-row--filters input,
.input-row--filters select,
.filter-dropdown__trigger,
.btn-custom-app-submit {
    min-height: 46px;
    border: 1px solid #c7d0db;
    border-radius: 10px;
    font-size: 14px;
}

.input-row--filters input,
.input-row--filters select {
    min-width: 160px;
    padding: 0 14px;
    background: #fff;
}

.input-row--filters input#map-search {
    flex: 1 1 260px;
}

.select-with-icon {
    position: relative;
    min-width: 160px;
}

.select-with-icon select {
    width: 100%;
    padding-right: 48px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.select-with-icon__icon {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 14px;
    height: 14px;
    display: inline-block;
    background-image: url("chev-down.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    transform: translateY(-50%);
    z-index: 1;
}

.filter-dropdown {
    position: relative;
    min-width: 220px;
}

.filter-dropdown__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 48px 0 14px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    text-transform: unset;
    letter-spacing: normal;
    font-weight: inherit;
    color: inherit;
    position: relative;
}

.filter-dropdown__meta {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
    padding-right: 18px;
}

.filter-dropdown__count {
    color: #0f6a57;
    font-weight: 600;
    line-height: 1;
    min-width: 22px;
    text-align: right;
}

.filter-dropdown__icon {
    width: 14px;
    height: 14px;
    position: absolute;
    right: 14px;
    top: 50%;
    display: inline-block;
    background-image: url("svg/chev-down.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.2s ease;
}

.filter-dropdown.is-open .filter-dropdown__icon {
    transform: translateY(-50%) rotate(180deg);
}

.filter-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 20;
    width: min(320px, 90vw);
    max-height: 320px;
    overflow: auto;
    padding: 12px;
    border: 1px solid #d9dde3;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.filter-dropdown__group + .filter-dropdown__group {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f6;
}

.filter-dropdown__group-label-wrap {
    position: sticky;
    top: -12px;
    margin: 0 -12px 8px;
    padding: 8px 12px;
    background: #fff;
}

.filter-dropdown__group-label {
    margin-bottom: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #607080;
}

.filter-dropdown__option {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.filter-dropdown__option:hover {
    background: #f8fafc;
}

.filter-dropdown__option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.filter-dropdown__checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid #c2ccd8;
    border-radius: 4px;
    background: #fff;
    position: relative;
    flex: 0 0 16px;
}

.filter-dropdown__checkbox::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}

.filter-dropdown__option input:checked + .filter-dropdown__checkbox {
    background: #0f6a57;
    border-color: #0f6a57;
}

.filter-dropdown__option input:checked + .filter-dropdown__checkbox::after {
    opacity: 1;
}

.filter-dropdown__option-text {
    color: #1f2937;
    line-height: 1.3;
}

.form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    justify-content: center;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #d9dde3;
    border-top-color: #0f6a57;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
    animation: custom-search-spin 0.8s linear infinite;
}

.spinner.is-visible {
    opacity: 1;
}

.btn-custom-app-submit {
    padding: 0 18px;
    font-weight: 600;
    cursor: pointer;
}

.btn-custom-app-clear {
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid #c7d0db;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-custom-app-clear:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-custom-app-submit:disabled {
    opacity: 0.65;
    cursor: progress;
}

.input-row--status {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.search-status {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.error-notf {
    display: none;
    color: #b91c1c;
    font-size: 14px;
}

.search-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px) ;
    gap: 20px;
    align-items: stretch;
    max-height: 1000px;
}

.results-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #d9dde3;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.results-panel__header {
    padding: 18px 20px;
    border-bottom: 1px solid #eef2f6;
}

.results-panel__header h3 {
    margin: 0;
    font-size: 18px;
}

.results-panel__list {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 16px;
}

.results-panel__empty {
    padding: 18px;
    border: 1px dashed #c7d0db;
    border-radius: 12px;
    color: #607080;
    text-align: center;
}

.result-card {
    padding: 16px;
    border: 1px solid #d9dde3;
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.result-card + .result-card {
    margin-top: 12px;
}

.result-card.is-active,
.result-card:hover {
    border-color: #0f6a57;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.result-card__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.result-card__header h4 {
    margin: 0;
    font-size: 16px;
}

.result-card__distance {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    color: #0f6a57;
}

.result-card__meta,
.result-card__address,
.result-card__services {
    margin: 10px 0 0;
    font-size: 14px;
    color: #334155;
}

.result-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.result-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #1C0D0A;
    color: var(--ast-global-color-2);
    font-size: 12px;
    font-weight: 600;
}

.result-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.result-card__button,
.result-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.result-card__button {
    border: 1px solid var(--ast-global-color-2);
    background: transparent;
    color: var(--ast-global-color-2);
    cursor: pointer;
}

/* .result-card__link {
    background: #0f6a57;
    color: #fff;
} */

a.social {
    padding: 0 12px;
}

a.social::before {
  content: "";
  width: 2em;
  height: 2em;
  display: inline-block;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
/*  background: #000;
  mask-size: contain;
*/
}
/*
 * a.social:hover {
	filter: invert(56%) sepia(67%) saturate(5013%) hue-rotate(353deg) brightness(100%) contrast(101%);
}
*/
a.phone::before {
  background-image: url("svg/phone.svg");
}
a.website::before {
  background-image: url("svg/website.svg");
  /*mask: url("svg/website.svg");*/
}
a.email::before {
  background-image: url("svg/email.svg");
}
a.instagram::before {
  background-image: url("svg/instagram.svg");
}
a.facebook::before {
  background-image: url("svg/facebook.svg");
}
a.youtube::before {
  background-image: url("svg/youtube.svg");
}
a.linkedin::before {
  background-image: url("svg/linkedin.svg");
}

.map-section {
    height: 100%;
    min-height: 640px;
}

.gmap {
    height: 100%;
    min-height: 640px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.map-info-window h4 {
    margin: 0 0 12px;
    font-size: 16px;
}

.list-mapstyle {
    margin: 0;
    padding-left: 18px;
}

@keyframes custom-search-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1024px) {
    .search-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .results-panel,
    .map-section,
    .gmap {
        min-height: 500px;
    }

    .results-panel__list {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .custom-form-insider {
        padding: 16px;
    }

    .input-row--filters > * {
        width: 100%;
    }

    .form-actions {
        width: 100%;
        justify-content: space-between;
    }

    .filter-dropdown,
    .filter-dropdown__menu {
        width: 100%;
    }
}
