.component-company-map {
--component-company-map__nav-height: 6.5rem;
--component-company-map__form-height: 5rem;
--component-company-map__map-height: calc(
100dvh - var(--component-company-map__nav-height) -
var(--component-company-map__form-height)
);
--component-company-map__interface__padding: 1rem;
}
.component-company-map__intro {
display: grid;
gap: 1rem;
align-items: end;
margin-bottom: 2.5rem;
}
.component-company-map__interface {
border: 1px solid var(--tone-light);
}
.component-company-map__form {
position: sticky;
top: var(--component-company-map__nav-height);
z-index: 1;
border-bottom: 1px solid var(--tone-light);
background: var(--color-surface);
padding: var(--component-company-map__interface__padding);
height: var(--component-company-map__form-height);
display: flex;
flex-direction: row;
align-items: center;
gap: 0.75rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.component-company-map__interface__search {
margin-right: auto;
display: flex;
align-items: center;
gap: 0.5rem;
border: 1px solid var(--tone-light);
padding: 0.675rem 0.75rem;
outline: 0px solid transparent;
font-size: 1rem;
font-weight: 500;
cursor: text;
transition:
border-color 150ms ease,
outline 150ms ease;
}
.component-company-map__interface__search__icon {
width: 1.75rem;
height: 1.75rem;
fill: #666;
}
.component-company-map__interface__search__input[type] {
border: none;
padding: 0;
min-width: 15ch;
width: 100%;
font-size: 1rem;
font-weight: 500;
color: #000;
}
.component-company-map__interface__search__input::placeholder {
color: #7c7c7c;
font-size: 1rem;
font-weight: 500;
}
.component-company-map__interface__search__input:focus {
outline: none;
}
.component-company-map__interface__search:hover {
border-color: #666;
}
.component-company-map__interface__search:focus-within {
border-color: #3b82f6;
outline: 3px solid #3b82f63b;
}
.component-company-map__interface__search:focus-within
.component-company-map__interface__search__icon {
fill: #3b82f6;
}
.component-company-map__filter__wrapper {
position: relative;
border: 1px solid var(--tone-light);
outline: 0px solid transparent;
font-size: 1rem;
font-weight: 500;
border-radius: 10rem;
transition:
border-color 150ms ease,
outline 150ms ease;
}
.component-company-map__filter__wrapper:hover {
border-color: #666;
}
.component-company-map__filter__wrapper:focus-within {
border-color: #3b82f6;
outline: 3px solid #3b82f63b;
}
.component-company-map__filter {
border: 0;
padding: 0;
width: fit-content;
min-width: 0;
field-sizing: content;
-webkit-appearance: none;
appearance: none;
padding: 0.675rem 1rem;
padding-right: 3rem;
background: none;
cursor: pointer;
}
.component-company-map__filter:invalid {
color: #7c7c7c;
}
.component-company-map__filter:focus {
outline: none;
}
.component-company-map__filter__icon {
width: 1.5rem;
height: 1.5rem;
fill: #666;
position: absolute;
top: 50%;
right: 0.5rem;
translate: 0 -50%;
pointer-events: none;
}
.component-company-map__filter__option {
color: #000;
}
.component-company-map__results {
display: grid;
}
.component-company-map__results__list {
list-style: none;
margin: 0;
padding: 0;
padding: var(--component-company-map__interface__padding);
display: flex;
flex-direction: column;
gap: var(--component-company-map__interface__padding);
height: var(--component-company-map__map-height);
overflow-y: scroll;
}
.component-company-map__results__company {
background-color: var(--tone-off-white);
padding: 1.5rem;
cursor: pointer;
overflow-anchor: none;
}
.component-company-map__results__company[aria-selected="true"],
.component-company-map__results__company:hover {
background-color: #eef4ff;
}
.component-company-map__results__company__header {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1.25rem;
}
.component-company-map__results__company__logo {
height: 2.5rem;
width: auto;
}
.component-company-map__results__company__filters {
padding: 0;
margin: 0;
list-style: none;
display: flex;
gap: 0.675rem;
flex-wrap: wrap;
}
.component-company-map__results__company__filters__item {
display: block;
background: #fff;
border-radius: 10rem;
padding: 0.25rem 0.75rem;
font-size: 0.875rem;
font-weight: 400;
}
.component-company-map__results__company__name {
font-size: 1.2rem;
font-weight: 700;
margin-bottom: 0.5rem;
}
.component-company-map__results__company__description {
font-size: 1rem;
color: #505050;
margin-bottom: 1rem;
}
.component-company-map__results__company__website {
}
.component-company-map__results__map__wrapper {
background-color: #63cfe3;
height: 80vh;
order: -1;
display: flex;
align-items: center;
justify-content: center;
color: #3caabe;
}
.component-company-map__results__map {
}
@media (min-width: 768px) {
.component-company-map {
--component-company-map__interface__padding: 1.5rem;
}
}
@media (min-width: 992px) {
.component-company-map__intro {
grid-template-columns: 1fr 1fr;
}
.component-company-map__interface {
display: flex;
flex-direction: column;
}
.component-company-map__results {
grid-template-columns: 1fr 1fr;
flex-grow: 1;
}
.component-company-map__results__map__wrapper {
height: var(--component-company-map__map-height);
order: initial;
position: sticky;
top: calc(100dvh - var(--component-company-map__map-height));
}
}