/* -------------------------------- 

File#: _3_advanced-search
Title: Advanced Search
Descr: A modal window containing a search input with filtering options
Usage: codyhouse.co/license

-------------------------------- */
/* reset */
*, *::after, *::before {
  box-sizing: border-box;
}

* {
  font: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}

body {
  background-color: hsl(0, 0%, 100%);
  font-family: system-ui, sans-serif;
  color: hsl(230, 7%, 23%);
  font-size: 1rem;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: hsl(230, 13%, 9%);
  font-weight: 700;
}

h1 {
  font-size: 2.0736rem;
}

h2 {
  font-size: 1.728rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.2rem;
}

ol, ul, menu {
  list-style: none;
}

button, input, textarea, select {
  background-color: transparent;
  border-radius: 0;
  color: inherit;
  line-height: inherit;
  appearance: none;
}

textarea {
  resize: vertical;
  overflow: auto;
  vertical-align: top;
}

a {
  color: hsl(250, 84%, 54%);
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

@media (min-width: 64rem) {
  body {
    font-size: 1.25rem;
  }

  h1 {
    font-size: 3.051rem;
  }

    h2 {
    font-size: 2.44rem;
  }

    h3 {
    font-size: 1.75rem;
  }

    h4 {
    font-size: 1.5625rem;
  }
}

/* variables */
:root {
  /* colors */
  --an8-color-primary-hsl: 250, 84%, 54%;
  --an8-color-bg-hsl: 0, 0%, 100%;
  --an8-color-contrast-high-hsl: 230, 7%, 23%;
  --an8-color-contrast-higher-hsl: 230, 13%, 9%;
  --an8-color-warning-dark-hsl: 35, 79%, 56%;
  --an8-color-contrast-medium-hsl: 225, 4%, 47%;
  --an8-color-bg-light-hsl: 0, 0%, 100%;
  --an8-color-bg-lighter-hsl: 0, 0%, 100%;
  --an8-color-bg-dark-hsl: 240, 4%, 95%;
  --an8-color-white-hsl: 0, 0%, 100%;
  --an8-color-primary-darker-hsl: 250, 84%, 38%;
  --an8-color-primary-light-hsl: 250, 84%, 60%;
  --an8-color-contrast-lower-hsl: 240, 4%, 85%;
  --an8-color-contrast-low-hsl: 240, 4%, 65%;
  --an8-color-accent-hsl: 342, 89%, 48%;

  /* spacing */
  --an8-space-3xs: 0.25rem;
  --an8-space-2xs: 0.375rem;
  --an8-space-xs: 0.5rem;
  --an8-space-sm: 0.75rem;
  --an8-space-md: 1.25rem;
  --an8-space-lg: 2rem;

  /* typography */
  --an8-text-md: 1.2rem;
  --an8-text-base: 1rem;
  --an8-text-sm: 0.833rem;
  --an8-text-xs: 0.694rem;
  --an8-text-sm: 0.833rem;
}

@media(min-width: 64rem){
  :root {
    /* spacing */
    --an8-space-3xs: 0.375rem;
    --an8-space-2xs: 0.5625rem;
    --an8-space-xs: 0.75rem;
    --an8-space-sm: 1.125rem;
    --an8-space-md: 2rem;
    --an8-space-lg: 3.125rem;

    /* typography */
    --an8-text-md: 1.5625rem;
    --an8-text-base: 1.25rem;
    --an8-text-sm: 1rem;
    --an8-text-xs: 0.8rem;
    --an8-text-sm: 1rem;
  }
}

/* buttons */
.an8-btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 1em;
  white-space: nowrap;
  text-decoration: none;
  background: hsl(var(--an8-color-bg-dark-hsl));
  color: hsl(var(--an8-color-contrast-higher-hsl));
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: all 0.2s ease;
  will-change: transform;
  padding: var(--an8-space-2xs) var(--an8-space-sm);
  border-radius: 0.25em;
}

.an8-btn:focus-visible {
  box-shadow: 0px 0px 0px 2px hsl(var(--an8-color-bg-hsl)), 0px 0px 0px 4px hsla(var(--an8-color-contrast-higher-hsl), 0.15);
  outline: none;
}

.an8-btn:active {
  transform: translateY(2px);
}

.an8-btn--primary {
  background: hsl(var(--an8-color-primary-hsl));
  color: hsl(var(--an8-color-white-hsl));
  box-shadow: inset 0px 1px 0px hsla(var(--an8-color-white-hsl), 0.15), 0px 1px 3px hsla(var(--an8-color-primary-darker-hsl), 0.25), 0px 2px 6px hsla(var(--an8-color-primary-darker-hsl), 0.1), 0px 6px 10px -2px hsla(var(--an8-color-primary-darker-hsl), 0.25);
}

.an8-btn--primary:hover {
  background: hsl(var(--an8-color-primary-light-hsl));
  box-shadow: inset 0px 1px 0px hsla(var(--an8-color-white-hsl), 0.15), 0px 1px 2px hsla(var(--an8-color-primary-darker-hsl), 0.25), 0px 1px 4px hsla(var(--an8-color-primary-darker-hsl), 0.1), 0px 3px 6px -2px hsla(var(--an8-color-primary-darker-hsl), 0.25);
}

.an8-btn--primary:focus {
  box-shadow: inset 0px 1px 0px hsla(var(--an8-color-white-hsl), 0.15), 0px 1px 2px hsla(var(--an8-color-primary-darker-hsl), 0.25), 0px 1px 4px hsla(var(--an8-color-primary-darker-hsl), 0.1), 0px 3px 6px -2px hsla(var(--an8-color-primary-darker-hsl), 0.25), 0px 0px 0px 2px hsl(var(--an8-color-bg-hsl)), 0px 0px 0px 4px hsl(var(--an8-color-primary-hsl));
}

/* form elements */
.an8-form-control {
  font-size: 1em;
  padding: var(--an8-space-2xs) var(--an8-space-xs);
  background: hsl(var(--an8-color-bg-dark-hsl));
  line-height: 1.2;
  box-shadow: inset 0px 0px 0px 1px hsl(var(--an8-color-contrast-lower-hsl));
  transition: all 0.2s ease;
  border-radius: 1.5em;
}

.an8-form-control::placeholder {
  opacity: 1;
  color: hsl(var(--an8-color-contrast-low-hsl));
}

.an8-form-control:focus, .an8-form-control:focus-within {
  background: hsl(var(--an8-color-bg-hsl));
  box-shadow: inset 0px 0px 0px 1px hsla(var(--an8-color-contrast-lower-hsl), 0), 0px 0px 0px 2px hsl(var(--an8-color-primary-hsl)), 0 0.3px 0.4px rgba(0, 0, 0, 0.025),0 0.9px 1.5px rgba(0, 0, 0, 0.05), 0 3.5px 6px rgba(0, 0, 0, 0.1);
  outline: none;
}

/* icons */
.an8-icon {
  height: var(--an8-size, 1em);
  width: var(--an8-size, 1em);
  display: inline-block;
  color: inherit;
  fill: currentColor;
  line-height: 1;
  flex-shrink: 0;
  max-width: initial;
}

.an8-icon--xs {
  --an8-size: 16px;
}

.an8-icon--lg {
  --an8-size: 48px;
}

/* component */
.adv-search {
  /* search input component */
  --search-input-btn-width: 46px;
  --search-input-icon-size: 20px;
}

.adv-search__close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.adv-search__close-btn:hover {
  background-color: hsla(var(--an8-color-contrast-higher-hsl), 0.1);
}
.adv-search__close-btn svg {
  display: block;
  height: 20px;
  width: 20px;
}

.adv-search__category-icon {
  height: 40px;
  width: 40px;
}

.adv-search__result-v1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: hsl(var(--an8-color-bg-light-hsl));
  border-radius: 0.25em;
  padding: var(--an8-space-2xs);
  box-shadow: inset 0 0 0.5px 1px hsla(0, 0%, 100%, 0.075), 0 0.1px 0.3px rgba(0, 0, 0, 0.06),0 1px 2px rgba(0, 0, 0, 0.12);
  color: hsl(var(--an8-color-contrast-higher-hsl));
  text-decoration: none;
  font-size: var(--an8-text-sm);
  transition: 0.2s;
}
.adv-search__result-v1:hover {
  background-color: hsl(var(--an8-color-bg-lighter-hsl));
  box-shadow: inset 0 0 0.5px 1px hsla(0, 0%, 100%, 0.075), 0 0.3px 0.4px rgba(0, 0, 0, 0.025),0 0.9px 1.5px rgba(0, 0, 0, 0.05), 0 3.5px 6px rgba(0, 0, 0, 0.1);
}

.adv-search__result-v2 {
  display: block;
  overflow: hidden;
  height: 100%;
  background-color: hsl(var(--an8-color-bg-light-hsl));
  border-radius: 0.25em;
  box-shadow: inset 0 0 0.5px 1px hsla(0, 0%, 100%, 0.075), 0 0.1px 0.3px rgba(0, 0, 0, 0.06),0 1px 2px rgba(0, 0, 0, 0.12);
  color: hsl(var(--an8-color-contrast-higher-hsl));
  text-decoration: none;
  transition: 0.2s;
}
.adv-search__result-v2 footer p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.adv-search__result-v2:hover {
  background-color: hsl(var(--an8-color-bg-lighter-hsl));
  box-shadow: inset 0 0 0.5px 1px hsla(0, 0%, 100%, 0.075), 0 0.3px 0.4px rgba(0, 0, 0, 0.025),0 0.9px 1.5px rgba(0, 0, 0, 0.05), 0 3.5px 6px rgba(0, 0, 0, 0.1);
}

.adv-search__item--is-hidden {
  display: none;
}

/* utility classes */
.an8-color-contrast-medium {
  --an8-color-o: 1;
  color: hsla(var(--an8-color-contrast-medium-hsl), var(--an8-color-o, 1));
}

.an8-text-sm {
  font-size: var(--an8-text-sm);
}

.an8-text-base {
  font-size: var(--an8-text-base);
}

.an8-text-component :where(h1, h2, h3, h4) {
  line-height: var(--an8-heading-line-height, 1.2);
  margin-top: calc(var(--an8-space-md) * var(--an8-space-multiplier, 1));
  margin-bottom: calc(var(--an8-space-sm) * var(--an8-space-multiplier, 1));
}

.an8-text-component :where(p, blockquote, ul li, ol li) {
  line-height: var(--an8-body-line-height, 1.4);
}

.an8-text-component :where(ul, ol, p, blockquote, .an8-text-component__block) {
  margin-bottom: calc(var(--an8-space-sm) * var(--an8-space-multiplier, 1));
}

.an8-text-component :where(ul, ol) {
  padding-left: 1.25em;
}

.an8-text-component ul :where(ul, ol), .an8-text-component ol :where(ul, ol) {
  padding-left: 1em;
  margin-bottom: 0;
}

.an8-text-component ul {
  list-style-type: disc;
}

.an8-text-component ol {
  list-style-type: decimal;
}

.an8-text-component img {
  display: block;
  margin: 0 auto;
}

.an8-text-component figcaption {
  margin-top: calc(var(--an8-space-xs) * var(--an8-space-multiplier, 1));
  font-size: var(--an8-text-sm);
  text-align: center;}

.an8-text-component em {
  font-style: italic;
}

.an8-text-component strong {
  font-weight: bold;
}

.an8-text-component s {
  text-decoration: line-through;
}

.an8-text-component u {
  text-decoration: underline;
}

.an8-text-component mark {
  background-color: hsla(var(--an8-color-accent-hsl), 0.2);
  color: inherit;
}

.an8-text-component blockquote {
  padding-left: 1em;
  border-left: 4px solid hsl(var(--an8-color-contrast-lower-hsl));
  font-style: italic;
}

.an8-text-component hr {
  margin: calc(var(--an8-space-md) * var(--an8-space-multiplier, 1)) auto;
  background: hsl(var(--an8-color-contrast-lower-hsl));
  height: 1px;
}

.an8-text-component > *:first-child {
  margin-top: 0;
}

.an8-text-component > *:last-child {
  margin-bottom: 0;
}

.an8-text-component.an8-line-height-xs {
  --an8-heading-line-height: 1;
  --an8-body-line-height: 1.1;
}

.an8-text-component.an8-line-height-sm {
  --an8-heading-line-height: 1.1;
  --an8-body-line-height: 1.2;
}

.an8-text-component.an8-line-height-md {
  --an8-heading-line-height: 1.15;
  --an8-body-line-height: 1.4;
}

.an8-text-component.an8-line-height-lg {
  --an8-heading-line-height: 1.22;
  --an8-body-line-height: 1.58;
}

.an8-text-component.an8-line-height-xl {
  --an8-heading-line-height: 1.3;
  --an8-body-line-height: 1.72;
}

.an8-margin-right-3xs {
  margin-right: var(--an8-space-3xs);
}

.an8-margin-right-xs {
  margin-right: var(--an8-space-xs);
}

.an8-color-primary {
  --an8-color-o: 1;
  color: hsla(var(--an8-color-primary-hsl), var(--an8-color-o, 1));
}

.an8-items-center {
  align-items: center;
}

.an8-flex {
  display: flex;
}

.an8-gap-2xs {
  gap: var(--an8-space-2xs);
}

.an8-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

.an8-grid > * {
  min-width: 0;
  grid-column-end: span 12;
}

.an8-margin-bottom-sm {
  margin-bottom: var(--an8-space-sm);
}

.an8-margin-bottom-3xs {
  margin-bottom: var(--an8-space-3xs);
}

.an8-text-xs {
  font-size: var(--an8-text-xs);
}

.an8-line-height-md {
  line-height: 1.4;
}

.an8-padding-xs {
  padding: var(--an8-space-xs);
}

.an8-width-100\% {
  width: 100%;
}

.an8-block {
  display: block;
}

:where(.an8-media-wrapper-16\:9) {
  position: relative;
  height: 0;
}

.an8-media-wrapper-16\:9 {
  padding-bottom: 56.25%;
}

.an8-media-wrapper-16\:9 > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.an8-media-wrapper-16\:9 > *:not(iframe) {
  object-fit: cover;
}

.an8-gap-sm {
  gap: var(--an8-space-sm);
}

.an8-color-warning-dark {
  --an8-color-o: 1;
  color: hsla(var(--an8-color-warning-dark-hsl), var(--an8-color-o, 1));
}

.an8-gap-md {
  gap: var(--an8-space-md);
}

.an8-padding-y-sm {
  padding-top: var(--an8-space-sm);
  padding-bottom: var(--an8-space-sm);
}

.an8-height-100\% {
  height: 100%;
}

.an8-padding-right-sm {
  padding-right: var(--an8-space-sm);
}

.an8-right-0 {
  right: 0;
}

.an8-top-0 {
  top: 0;
}

.an8-position-absolute {
  position: absolute;
}

.an8-position-relative {
  position: relative;
}

.an8-margin-bottom-md {
  margin-bottom: var(--an8-space-md);
}

.an8-gap-xs {
  gap: var(--an8-space-xs);
}

.an8-flex-wrap {
  flex-wrap: wrap;
}

.an8-margin-bottom-xs {
  margin-bottom: var(--an8-space-xs);
}

.an8-max-width-sm {
  max-width: 48rem;
}

.an8-container {
  width: calc(100% - 2*var(--an8-space-md));
  margin-left: auto;
  margin-right: auto;
}

.an8-text-md {
  font-size: var(--an8-text-md);
}

.an8-justify-between {
  justify-content: space-between;
}

.an8-margin-top-lg {
  margin-top: var(--an8-space-lg);
}

.an8-padding-y-2xs {
  padding-top: var(--an8-space-2xs);
  padding-bottom: var(--an8-space-2xs);
}

.an8-z-index-3 {
  z-index: 3;
}

.an8-position-sticky {
  position: sticky;
}

.an8-backdrop-blur-10 {
 // backdrop-filter: blur(10px);
}

.an8-bg {
//  --an8-bg-o: 1;
//  background-color: hsla(var(--an8-color-bg-hsl), var(--an8-bg-o, 1));
}

.an8-overflow-auto {
  overflow: auto;
}

.an8-pointer-events-auto {
  pointer-events: auto;
}

.an8-max-height-100\% {
  max-height: 100%;
}

.an8-pointer-events-none {
  pointer-events: none;
}

.an8-flex-center {
  justify-content: center;
  align-items: center;
}

.an8-bg-opacity-90\% {
  --an8-bg-o: 0.9;
}

@media(min-width: 48rem){
  .an8-col-6\@sm {
    grid-column-end: span 6;
  }
}

@media(min-width: 64rem){
  .an8-text-md\@md {
    font-size: var(--an8-text-md);
  }

  .an8-col-4\@md {
    grid-column-end: span 4;
  }
}