/*
Theme name: WUSC Map
Description: Custom Theme
Version: 9.0.1
*/

/*
naming convention:
BEM - BLOCK__ELEMENT--MODIFIER
name spacing:
u = utilities
l = layout
c = component
js = javascript hook
breakpoints:
mobile - 600px
*/


/* CSS vars */

:root {
  --clr-primary500: #004987;
  --clr-greyscale50: #F9FAFB;
  --clr-greyscale100: #F3F4F6;
  --clr-greyscale200: #E5E7EB;
  --clr-greyscale300: #D1D5DB;
  --clr-greyscale400: #9CA3AF;
  --clr-greyscale500: #6B7280;
  --clr-greyscale600: #4B5563;
  --clr-greyscale700: #374151;
  --clr-greyscale800: #1F2937;
  --clr-greyscale900: #111827;

  --clr-text: var(--clr-greyscale600);
  --clr-text-light: var(--clr-greyscale600);
  --clr-text-reverse: white;

  /* widths */
  --width-content: 1350px;
  --width-gutter: 60px;
  /* heights */
  --height-header: 80px;
  /* spacing */
  --b-space-lg: 180px;
  --b-space: 120px;
  --b-space-sm: 80px;
  /* font family */
  --ff-body: "Open Sans", sans-serif;
  --ff-heading: "Open Sans", sans-serif;
  /* font sizes */
  --fs-h1: 3rem;
  --fs-h2: 2rem;
  --fs-h3: 1.25rem;
  --fs-p: .9375rem;
  --fs-p-sm: .6875rem;
}

@media screen and (max-width:600px) {
  :root {
    --height-header: 60px;
    --width-gutter: 24px;
    /* font sizes */
    --fs-h1: 2.5rem;
    --fs-h2: 1.5rem;
    --fs-h3: 1rem;
    /* spacing */
    --b-space-lg: 80px;
    --b-space: 68px;
    --b-space-sm: 56px;
  }
}

@media screen and (max-width:480px) {
  :root {
    --fs-h1: 2rem;
  }
}

/* utilities */

.u-wc {
	width:100%;
	max-width: var(--width-content);
  padding: 0 var(--width-gutter);
	margin:0 auto;
	box-sizing:border-box;
	-moz-box-sizing:border-box;
	-webkit-box-sizing:border-box;
}

.u-wc--full {
  max-width: 100%;
  padding: 0;
}

.u-wc--md {
  max-width: 1120px;
}

.u-wc--sm {
  max-width: 980px;
}

.u-center{
  text-align: center;
}

.u-text-reverse {
  color: var(--clr-text-reverse);
}

/* base styles */

*, *:after, *:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
	background: white;
	font-family: var(--ff-body);
  font-weight: 400;
	font-size: var(--fs-p);
	margin: 0;
	color: var(--clr-text);
  position: relative;
  line-height: 1.5;
	-moz-osx-font-smoothing:grayscale;
	-webkit-font-smoothing:antialiased;
}

@media screen and (max-width: 600px) {
  body {
    line-height: 1.4;
  }
}

b, strong {
  font-weight: 600;
}

.content-wrap {
  overflow: clip;
}

p, h1, h2, h3, h4, h5, h6, ul{
	margin:0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  font-weight: 700;
}

h1 a, h2 a, h3 a, h4 a, h5 a {
  text-decoration: none;
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.1;
  margin: 0 0 24px;
}


h2 {
  font-size: var(--fs-h2);
  line-height: 1.15;
  margin: 32px 0 30px;
}

h2:first-child, .h2:first-child {
  margin-top: 0;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.35;
  margin: 32px 0 12px;
}

h3:first-child {
  margin-top: 0;
}

@media screen and (max-width: 600px) {

  h1 {
    margin-bottom: 24px;
  }

  h2 {
    margin-bottom: 20px;
  }

  h3 {
    margin-bottom: 12px;
  }


}

h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
  margin-top: 0;
}

h1:last-child, h2:last-child, h3:last-child, h4:last-child, h5:last-child, h6:last-child,
p:last-child {
  margin-bottom: 0;
}

p {
  margin-bottom: 1rem;
}


@media screen and (max-width: 600px) {

  p {
    margin-bottom: 12px;
  }
}

li:last-child {
  margin-bottom: 0;
}

ul {
  padding-left: 24px;
  margin: 0 0 16px;
}

ul.is-style-no-left-spacing {
  padding-left: 0;
}

ul:first-child {
  margin-top: 0;
}

ul:last-child {
  margin-bottom: 0;
}

ol {
  margin: 20px 0 16px;
}

ol:first-child {
  margin-top: 0;
}

ol:last-child {
  margin-bottom: 0;
}

li {
  padding-left: 4px;
  margin-bottom: 20px;
}

li:last-child {
  margin-bottom: 0;
}

a, a:focus{
   outline: 0;
}

a {
  text-decoration: none;
  color: var(--clr-primary500);
	transition: .3s color, .3s background;
	-webkit-transition:.3s color, .3s background;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-tap-highlight-color: transparent; /* For some Androids */
}

a:hover {
  color: var(--clr-greyscale900);
}


img, svg{
	max-width:100%;
	height:auto;
}

hr {
  display: block;
  padding: 0;
  height: 1px;
  background: #BFBFBF;
  margin: 60px 0;
  border: none !important;
}


@media screen and (max-width: 600px) {
  hr, .wp-block-separator {
    margin: 32px 0;
  }
}

.c-section {
  padding: var(--b-space) 0;
  position: relative;
  background-size: cover;
  background-position: center center;
}

.c-section--lg {
  padding: var(--b-space-lg) 0;
}

.c-section--sm {
  padding: var(--b-space-sm) 0;
}

.c-section--xsm {
  padding: var(--b-space-xsm) 0;
}

/*header styles*/

.c-mainHeader {
  height: var(--height-header);
  position: absolute;
  z-index: 999;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(2px);
  background: rgba(0,73,135, .8);
  transition: .3s background, .3s height, .3s box-shadow, .3s backdrop-filter, .3s transform, .3s opacity;
}

@media screen and (max-width: 1280px) {

  .c-mainHeader--mobileActive {
    background: rgba(0,0,0,.9) !important;
  }

}

.c-mainHeader > .u-wc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: .25rem;
  max-width: 100%;
}

.c-mainHeader__logo {
  display: block;
  text-decoration: none;
  transition: .3s width;
}

.c-mainHeader__logo img {
  display: block;
}

.c-mainHeader__btns {
  display: flex;
  align-items: center;
  grid-gap: 12px;
}

.c-mainHeader__menuWrap {
  display: flex;
  align-items: center;
  flex-grow: 1;
}


@media screen and (max-width:600px) {

    .c-mainHeader__logo {
      width: 140px;
    }

}


.c-mainMenu {
  margin: 0 0 0 auto;
}

.c-mainMenu ul {
  list-style-type: none;
  padding-left: 0;
  display: flex;
  align-items: center;
  margin: 0;
  gap: .5rem;
}

.c-mainMenu li {
  margin: 0 28px 0 0;
  padding: 0;
}

.c-mainMenu li:last-child {
  margin-right: 0;
}

.c-mainMenu li a {
  font-size: 1rem;
  color: white;
  position: relative;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  text-decoration: none;
  padding: 2px 0;
  transition: .3s border, .3s color;
}

.c-mainMenu .current-menu-item > a, .c-mainMenu a:hover {
  border-bottom: 1px solid white;
}

.c-mainMenu li.menu-item-has-children {
  position: relative;
}

.c-mainMenu li.menu-item-has-children > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.c-mainMenu .menu-item-drop-arrow {
  --icon-size-width: .6875rem;
  --icon-size-height: .375rem;
  width: var(--icon-size-width);
  height: var(--icon-size-height);
  background: url('imgs/icon-menu-drop-arrow.svg') center center / var(--icon-size-width) var(--icon-size-height);
  transition: .3s transform;
}

.c-mainMenu .menu-item-has-children:hover > a .menu-item-drop-arrow, .c-mainMenu .menu-item-has-children:focus-within > a .menu-item-drop-arrow {
  transform: rotate(180deg);
}

.c-mainMenu .sub-menu {
  padding: 1rem 0;
}

.c-mainMenu .sub-menu li {
  padding: .25rem 0;
  border-top: 1px solid #ececec;
  margin: 0;
}

.c-mainMenu .sub-menu li:first-child {
  border-top: 0;
  padding-top: 0;
}

.c-mainMenu .sub-menu li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.c-mainMenu .sub-menu a {
  padding: .375rem .5rem;
  font-size: .875rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  border-radius: .25rem;
  flex-wrap: nowrap;
  color: var(--clr-greyscale500);
  border: none;
  transition: .3s color, .3s background;
}

.c-mainMenu .sub-menu a:after {
  content: '';
  width: .5625rem;
  height: .5625rem;
  flex-shrink: 0;
  background: url('imgs/icon-link-arrow.svg') center center / cover;
}

.c-mainMenu .sub-menu a:hover:after, .c-mainMenu .sub-menu a:focus-within:after {
  mix-blend-mode: color-dodge;
}

.c-mainMenu .sub-menu a:hover,  .c-mainMenu .sub-menu .current-menu-item > a, .c-mainMenu .sub-menu a:focus-within  {
  background: var(--clr-primary500);
  color: white;
  border: none;
}

.c-mainMenu .sub-menu .menu-item-drop-arrow {
  display: none;
}

@media screen and (min-width: 1281px) {

  .c-mainMenu .menu-item-has-children {
    --dropdown-position-offset: 1rem;
    position: relative;
  }

  .c-mainMenu .menu-item-has-children:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: var(--dropdown-position-offset);
  }

  .c-mainMenu .sub-menu {
    width: 200px;
    display: block;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    border-radius: 6px;
    background: white;
    padding: 10px;
    left: 50%;
    top: calc(100% + var(--dropdown-position-offset));
    padding: 1rem;
    transform: translateY(-4px) translateX(-50%);
    box-shadow: 0px 2px 5px 0px #0000001A, 0px 9px 9px 0px #00000017, 0px 21px 12px 0px #0000000D, 0px 36px 15px 0px #00000003, 0px 57px 16px 0px #00000000;
    transition: .3s opacity, 0s visibility .3s, .3s transform;
  }

  .c-mainMenu .menu-item-has-children:hover > .sub-menu, .c-mainMenu .menu-item-has-children:focus-within > .sub-menu  {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
    transform: translateY(-1px) translateX(-50%);
  }

  .c-mainMenu .sub-menu .sub-menu {
    left: calc(100% + 1rem);
    transform: translateY(-4px);
    top: -1rem;
  }

  .c-mainMenu .menu-item-has-children:hover > .sub-menu .sub-menu, .c-mainMenu .menu-item-has-children:focus-within > .sub-menu .sub-menu  {
    transform: none;
  }

  .c-mainMenu .sub-menu {
    display: block !important;
  }

}

@media screen and (max-width: 1280px) {

  .c-mainHeader__menuWrap {
    margin-right: 0;
    background: rgba(0,0,0,.9);
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    position: fixed;
    top: var(--height-header);
    left: 0;
    right: 0;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    margin-left: 0;
    margin-right: 0;
    transition: .3s opacity, 0s visibility .3s;
    padding: 0 60px 30px;
  }

  .c-mainHeader__menuWrap--active {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
  }

  .c-mainMenu {
    width: 100%;
    margin: 0;
    height: 100%;
  }

  .c-mainMenu > ul {
    display: flex;
    flex-direction: column;
    align-items: start;
    height: 100%;
  }

  .c-mainMenu li {
    margin: 0;
    width: 100%;
  }

  .c-mainMenu > ul > li {
    margin: 0;
  }

  .c-mainMenu li a {
    justify-content: space-between;
  }

  .c-mainMenu .sub-menu {
    margin-left: 1rem;
    display: none;
  }

  .c-mainMenu .sub-menu a {
    font-size: 1rem;
  }

  .menu-item-has-children-active > a .menu-item-drop-arrow {
    transform: rotate(180deg);
  }


}

@media screen and (max-width: 600px) {

  .c-mainHeader__menuWrap{
    padding: 20px 25px;
  }

}

.c-navIcon {
  position: relative;
  padding: 0;
  width: 51px;
  height: 51px;
  background: none;
  /* background: var(--clr-primary500); */
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  margin-right: -12px;
  transition: .3s background;
  border-radius: 50%;
}

.c-navIcon:before,
.c-navIcon:after {
  content: "";
  width: 21px;
  height: 2px;
  position: absolute;
  left: 15px;
  background: white;
  transition: .3s transform, .3s top, .3s bottom, .3s width;
}

.c-navIcon:before {
  width: 14px;
}

.c-navIcon span {
  width: 21px;
  height: 2px;
  position: absolute;
  top: 25px;
  left: 15px;
  background: white;
  transition: .3s opacity;
}

.c-navIcon:before {
  top: 18px;
}

.c-navIcon:after {
  bottom: 17px;
}

@media (hover: hover) and (pointer: fine) {

  .c-navIcon:not(.c-navIcon--active):hover:before {
    top: 24px;
    width: 21px;
  }

  .c-navIcon:not(.c-navIcon--active):hover:after {
    bottom: 24px;
    transform: rotate(90deg);
  }

  .c-navIcon:hover span {
    opacity: 0;
  }
}

.c-navIcon--active:before {
  top: 24px;
  transform: rotate(45deg);
  width: 21px;
}

.c-navIcon--active:after {
  bottom: 25px;
  transform: rotate(135deg);
}

.c-navIcon--active span  {
  opacity: 0;
}


@media screen and (max-width: 1280px) {

  .c-navIcon {
    display: flex;
  }
}

.c-map {
  position: relative;
}


.c-map__canvas {
  height: 100svh;
  height: 80svh;
}

.c-locations {
  position: absolute;
  /* top: calc(20px + var(--height-header)); */
  top: 20px;
  right: 20px;
  bottom: 20px;
  width: 500px;
  max-width: calc(100% - 40px);
  background: rgba(255,252,221,.9);
  border-radius: 20px;
  box-shadow: 2px 2px 24px rgba(0,0,0,.1);
  padding: 8px;
  transition: .3s width;
}

.c-locations--active {
  width: 600px;
}

.c-locationsList {
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
}

.c-location__close {
  padding: 0;
  background: transparent;
  color: var(--clr-primary500);
  border: none;
  text-align: left;
}

.c-locationItem:not(:first-child) {
  margin-top: 4px;
}

.c-locationItem {
  color: var(--clr-text);
  display: block;
  transition: .3s background;
  border-radius: 8px;
  padding: 12px;
}

.c-locationItem:hover {
  background: var(--clr-greyscale100);
}

.c-locationItem__details {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.c-locationItem img {
  display: block;
  aspect-ratio: 1/1;
  flex-shrink: 0;
  display: block;
  width: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--clr-greyscale200);
}

.c-locationItem__cats {
  display: flex;
  grid: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--clr-greyscale500);
}



.c-locationItem__country {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: var(--fs-p-sm);
  color: #1d2327;
}

.c-locationItem__cat, .c-locationItem__partners, .c-location__partners, .c-location__cats {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: var(--fs-p-sm);
  color: #ff6c00;
}

.c-locationItem h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #004987;
}

.c-locationItem__link {
  color: var(--clr-primary500);
}

.c-location {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 12px;
  overflow: auto;
  scrollbar-width: thin;
  padding: 12px;
}

.c-location__close {
  margin-bottom: 12px;
  border: 1px solid var(--clr-greyscale200);
  padding: 8px;
  margin-left: auto;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 1;
  background: white;
  border-radius: 50%;
}

/* .c-location__details {
  flex-grow: 1;
  overflow: auto;
  scrollbar-width: thin;
} */

.c-location__details h2 {
  margin-top: 0;
  font-size: 20px;
  color: #004987;
}

.c-location__details img {
  display: block;
  margin: 0 0 12px 0;
  border-radius: 8px;
}

.c-location__cats {
  display: flex;
  grid: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--clr-greyscale500);
}

.c-location__cats span {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: var(--fs-p-sm);
  color: #ff6c00;
}

.c-location__share {
  display: flex;
  align-items: center;
  gap: 8px;
}

.c-location iframe {
  max-width: 100%;
}

.wp-embed-aspect-16-9 .wp-block-embed__wrapper {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  aspect-ratio: 16 / 9;
  position: relative;
}

.wp-embed-aspect-16-9 iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
}

@media screen and (max-width: 600px) {
  .c-locations {
    width: 100% !important;
    max-width: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: 50%;
    transition: .3s height;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
  }

  .c-locations--active {
    height: 75%;
  }

  .c-location__close {
    right: 0;
  }
}

.c-filters {
  margin-bottom: 12px;
}

.c-filters__header {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-bottom: 12px;
}

.c-filters__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  background: none;
  border: none;
  outline: none;
  flex-shrink: 0;
  color: var(--clr-text);
  border-radius: 50%;
  transition: .3s background, .3s color;
}

.c-filters__toggle:hover {
  background: var(--clr-greyscale100)
}

.c-filters__toggle--active {
  color: var(--clr-primary500);
  background: var(--clr-greyscale100)
}

.c-search {
  width: 100%;
  position: relative;
}

.c-search__icon {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-greyscale400);
  width: 40px;
}

.c-search .c-input {
  /* border-top-left-radius: 12px; */
  padding-left: 38px;
}

.c-filters__options {
  display: none;
  display: block;
}


.c-filters__options .c-select:not(:first-child) {
  margin-top: 6px;
}

.c-input {
  border: 1px solid #cccccc;
  border-radius: 12px;
  font-family: inherit;
  outline: none;
  padding: 8px 12px;
  display: block;
  width: 100%;
  margin: 0;
}

.c-select {
  border: 1px solid #cccccc;
  border-radius: 12px;
  font-family: inherit;
  outline: none;
  padding: 8px 12px;
  display: block;
  width: 100%;
  background: white;
}

span.country {
  font-weight: 600;
  padding-bottom: 10px;
  display: block;
  font-size: 18px;
}
