/* metro-mobile-nav-and-footer4-3-1-css.css */

#metroMenu {
  display: none;
}

footer {
  position: relative;
}

/* Styles for Metro fade in menu panel for mobile devices only */
.metro-menu {
  display: block;
  border-left: 2px solid var(--primary);
  /*padding: 0 0 100px 20px;*/
  padding: 0 0 10px 20px;
}

@media (max-width: 991px) {
  body * {
    position: relative;
  }
  /* CSS to prevent scrolling when the menu is open */
  body.menu-open {
    overflow: hidden;
  }

  .local-nav,
  #local-nav {
    display: none;
  }

  .metro-crumbs {
    margin-top: 2rem !important;
  }

  .global-header {
    margin-bottom: 0 !important;
    position: relative;
    z-index: auto;
  }

  .metro-menu.show {
    display: block;
    padding: 43px;
  }

  .metro-menu-items,
  .metro-sub-menu-items {
    display: flex;
    flex-direction: column;
  }

  /* fade in the submenu items */
  .metro-menu-items,
  .metro-sub-menu-items {
    opacity: 0;
    /* transition: opacity 0.1s ease-in-out; reduce the transition duration */
  }

  .metro-menu .metro-menu-items a {
    padding: 6px 0 10px 20px;
  }

  .metro-menu .metro-sub-menu-items a {
    padding: 6px 0 10px 40px;
  }

  .metro-menu .metro-link {
    padding: 6px 0 10px 0;
  }

  .metro-menu .metro-menu-items a:hover,
  .metro-menu .metro-menu-items a:visited:hover,
  .metro-menu .metro-sub-menu-items a:hover,
  .metro-menu .metro-sub-menu-items a:visited:hover {
    text-decoration: underline;
    color: black;
  }

  /* #site-nav.is-active .metro-menu-items {
    display: none;
  }*/

  #site-nav.is-active {
    padding: 2rem 0;
  }

  #site-nav.is-active .metro-menu-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 0;
    opacity: 0;
    transition: opacity 0.1s linear;
  }

  .metro-menu-items,
  .metro-sub-menu-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
  }

  .metro-menu-items.show,
  .metro-sub-menu-items.show {
    display: flex;
    flex-direction: column;
    width: 100%;
    opacity: 1;
    height: auto;
    max-height: 800px !important;
  }

  .metro-category[aria-expanded="true"] .metro-menu-items,
  .metro-subcategory[aria-expanded="true"] .metro-sub-menu-items {
    opacity: 1;
  }

  #site-nav.is-active .metro-menu.show a:hover {
    color: #000;
  }

  #site-nav.is-active .active {
    font-weight: bold;
    color: #000;
  }

  #site-nav.is-active .metro-menu-link {
    height: auto;
    opacity: 1;
  }

  #site-nav.is-active .metro-menu-link a {
    padding: 6px 0;
    max-height: 36px;
  }

  #site-nav.is-active .metro-menu-items.show a {
    height: auto;
    padding: 6px 0 6px 20px;
  }

  #site-nav.is-active .metro-sub-menu-items.show a {
    height: auto;
    padding: 6px 0 6px 40px;
  }

  /* fade in menu panel */

  #maincontent {
    /*margin-top: 28px;*/
    margin-top: 0;
    position: relative;
    z-index: 1;
  }

  #metroMenu {
    display: block;
    padding: 0.3rem 0 1rem;
    margin: 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgb(255, 255, 255);
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(244, 244, 244, 1) 100%
    );
    border-top: 1px solid #e1e1e1;
    border-bottom: 1px solid #e1e1e1;
  }

  #metroMenu:not(.sticky) {
    box-shadow: none;
  }

  #metroMenu.is-active {
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.15);
    background: #fff;
  }

  #metroMenu .container {
    position: relative;
  }

  #metro-menu {
    overflow-y: auto; /* Add this line to enable vertical scrolling */
    max-height: calc(100vh - 100px);
  }

  /* quick link icons */
  .quick-link-icons {
    display: flex;
    gap: 30px;
    margin: 1rem 0 0 auto;
    float: right;
    z-index: 16;
  }

  .quick-link-icons a {
    color: var(--primary);
    font-size: 24px;
  }

  .favorites-link.active {
    color: var(--yellow);
  }

  .quick-link-icons a:hover {
    text-decoration: none;
    color: var(--primary-hover);
  }

  #site-nav {
    clear: both;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 0;
    overflow: hidden;
  }

  #site-nav.is-active {
    height: auto;
    overflow: visible;
    z-index: 10;
  }
}

#metroMenu .col {
  opacity: 0;
}

#metroMenu .metro-menu {
  opacity: 0;
}

#metroMenu.is-active .metro-menu {
  transform: translateY(40px);
  transition: opacity 0.2s ease;
  animation: fade-in-stagger 0.6s ease forwards;
}

@keyframes fade-in-stagger {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*
Using this method because browsers can transition opacity very cheaply as opposed to using background: rgba
https://www.html5rocks.com/en/tutorials/speed/high-performance-animations/
*/
#metroMenu:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#metroMenu.is-active:after {
  opacity: 1;
}

.metro-menu-container {
  width: 100%;
  margin: 0;
  padding: 0;
}

/*!
 * Hamburgers
 * @description Tasty CSS-animated hamburgers
 * @author Jonathan Suh @jonsuh
 * @site https://jonsuh.com/hamburgers
 * @link https://github.com/jonsuh/hamburgers
 */
.hamburger {
  background-color: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-block;
  /*float: left;*/
  font: inherit;
  margin: 18px 0 0;
  overflow: visible;
  outline: none;
  padding: 0;
  text-transform: none;
  transition: opacity 0.15s;
  /*-webkit-appearance: none;*/
  z-index: 15;
}

.hamburger:hover {
  opacity: 0.7;
}

.hamburger-box {
  width: 30px;
  height: 26px;
  display: inline-block;
  position: relative;
}

.hamburger-box::after {
  content: "";
  height: 18px;
  width: 200px;
  position: absolute;
  margin-top: 2px;
  margin-left: 1.5rem;
  background-image: url("/en/-/media/king-county/depts/metro/logo-art/metro/metro_logotype_492x103.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left bottom;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -3px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 30px;
  height: 2px;
  background-color: #333;
  border-radius: 4px;
  position: absolute;
  transition-property: -webkit-transform;
  transition-property: transform;
  transition-property: transform, -webkit-transform;
  transition-duration: 0.15s;
  transition-timing-function: ease;
}

#metroMenu.is-active .hamburger-inner,
#metroMenu.is-active .hamburger-inner::before,
#metroMenu.is-active .hamburger-inner::after {
  background-color: #000;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  top: -7px;
}

.hamburger-inner::after {
  bottom: -7px;
}

/*
 * Metro hamburger menu
 */
.hamburger--metro .hamburger-inner,
.hamburger--metro .hamburger-inner::before,
.hamburger--metro .hamburger-inner::after {
  transition-property: none;
}

.hamburger--metro.is-active .hamburger-inner {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.hamburger--metro.is-active .hamburger-inner::before {
  top: 0;
  opacity: 0;
}

.hamburger--metro.is-active .hamburger-inner::after {
  bottom: 0;
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg);
}

.hamburger-label {
  color: #333;
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-left: 0.3125em;
  text-transform: uppercase;
}

#metroMenu.is-active .hamburger-label {
  color: #000;
}

.hamburger-box,
.hamburger-label {
  display: inline-block;
  vertical-align: middle;
}

/* Footer styles start here */

.metro-footer {
  background-color: #333;
  color: #fff;
  line-height: 32px;
  font-size: 16px;
}

.metro-footer-nav {
  width: 100%;
  padding: 40px 15px;
  margin-right: auto;
  margin-left: auto;
  color: #fff;
  line-height: 32px;
  font-size: 16px;
}

.metro-footer-nav a,
.footer-legal-links a {
  color: #fff;
  /*text-decoration: none;*/
}

.metro-footer-nav a:hover,
.footer-legal-links a:hover {
  color: #fff;
  /*text-decoration: underline;*/
}

@media (min-width: 576px) {
  .metro-footer-nav,
  .metro-footer-legal-content {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .metro-footer-nav,
  .metro-footer-legal-content {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .metro-footer-nav,
  .metro-footer-legal-content {
    max-width: 960px;
  }
}
@media (min-width: 1280px) {
  .metro-footer-nav,
  .metro-footer-legal-content {
    max-width: 1200px;
  }
}

/* Metro logo */
.metro-brand a {
  background-image: url(https://cdn.kingcounty.gov/-/media/king-county/depts/metro/logo-art/metro/metro-logo-reversed-200x75);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
  width: 155px;
  height: 50px;
  margin-bottom: 20px;
  padding: 0;
  align-self: flex-start;
  display: block;
  text-indent: -9000px;
  text-decoration: none;
}

/* Social links and icons */
.metro-social-links {
  margin-left: 0;
  display: flex;
  flex-flow: row wrap;
  gap: 12px;
}

.metro-social-links a {
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.metro-social-links a {
  width: 33px;
  height: 33px;
  background-size: contain;
  opacity: 0.75;
  text-indent: -9000px;
}

.metro-social-links a.facebook {
  background-image: url(https://cdn.kingcounty.gov/en/-/media/king-county/depts/metro/icons/social/facebook_icon_white_100x100.png);
}

.metro-social-links a.twitter-x {
  background-image: url(https://cdn.kingcounty.gov/en/-/media/king-county/depts/metro/icons/social/twitter_x_icon_white_100x100.png);
}

.metro-social-links a.instagram {
  background-image: url(https://cdn.kingcounty.gov/en/-/media/king-county/depts/metro/icons/social/instagram_icon_white_100x100.png);
}

.metro-social-links a.youtube {
  background-image: url(https://cdn.kingcounty.gov/en/-/media/king-county/depts/metro/icons/social/youtube_icon_white_100x100.png);
}

.metro-social-links a:hover {
  opacity: 1;
}

.metro-footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 40px; /* Adjust the gap as needed */
  margin: 0;
}

/* footer links */
.footer-link-list {
  border-left: 1px solid var(--primary);
  padding: 0 0 0 10px;
  text-align: left;
}

.metro-footer-legal .footer-legal-links a,
.metro-footer-nav a {
  text-decoration: underline!important;

}
.footer-link-list ul li a {
  height: 28px;
  margin: 2px 0;
  display: block;
}

.footer-link-list ul,
.footer-legal-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.metro-footer-container address {
  margin: 0;
  font-style: normal;
}

.metro-footer-container address,
.metro-contact-group,
.footer-link-list li {
  line-height: 32px;
}

.footer-link-list .link-list-title {
  font-family: Cabin;
  font-size: 0.95rem !important;
  line-height: 1.938rem;
  margin-top: 0;
  margin-bottom: 10px;
  color: #fff;
  text-transform: uppercase;
}

@media (max-width: 992px) {
  .metro-footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .metro-footer-nav {
    padding-right: 0;
    padding-left: 0;
  }
  .metro-footer-container {
    grid-template-columns: 1fr;
    grid-gap: 0;
    margin-left: 0;
  }
  .footer-link-list:nth-child(2),
  .footer-link-list:nth-child(3),
  .footer-link-list:nth-child(4) {
    padding-top: 30px;
  }
  .metro-brand a {
    margin-bottom: 30px;
  }
}

/* bottom black bar */
.metro-footer-legal {
  background-color: #000;
  padding: 30px 0;
  color: #fff;
  text-align: left;
}

.metro-footer-legal-content {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  line-height: 32px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-legal-links ul {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.metro-footer-legal-content {
  color: #999;
}

.footer-legal-links a {
  color: #999;
}

.footer-legal-links a:hover {
  color: #fff;
}

/* Footer button */
.all-county-btn {
  display: flex;
  justify-content: center;
  align-content: center;
  font-size: 18px;
  text-transform: uppercase;
  /*color: #6c757d;
  border: 1px solid #6c757d;*/
  color: #999;
  border: 1px solid #999;
  min-width: calc(25% - 30px);
  margin: 0;
  padding: 8px 20px;
  text-decoration: none!important;
  box-sizing: border-box;
}
.all-county-btn:hover {
  color: #fff;
  /* background-color: #6c757d;
  border-color: #6c757d; */
  background-color: #333;
  border-color: #333;
}

@media (max-width: 576px) {
  .metro-footer-nav,
  .metro-footer-legal-content {
    padding-left: 40px;
    padding-right: 40px;
  }
  .metro-footer-legal-content {
    flex-direction: column;
    gap: 40px;
  }
}

@media (max-width: 400px) {
  .footer-legal-links ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
  }
}
