/*
	Abstracts are helpers, variables and functions
	for scss compliation.
*/
/*
	@TODO: Add to theme: new division fix for updated sass package.
*/
/**==================================================================================================================================
BREAKPOINT
@TODO: remove? What is use case?? either use simple global points or write custom line. why does first breakpoint have to be 0?
 ==================================================================================================================================*/
/**==================================================================================================================================
BREAKPOINT ENDS
==================================================================================================================================*/
span.edit-link {
  display: inline-block;
  background-color: yellow;
  font-weight: 700;
  position: fixed;
  left: 0;
  bottom: 3.125rem;
  transform: translateX(-45px);
  transition: all 0.2s;
}

span.edit-link a {
  display: block;
  padding: 0.9375rem;
}

span.edit-link:hover {
  transform: translateX(0);
}

/*
	Variables for compliation
	NB! Colors should be added to base/config file as css root variable.
*/
/**
 * Block section background colors.
 * Include the background options ACF fields group to use these.
 */
/*
 * makes ul/ol as a dropdown select (normaly in mobile)
 * Structure: div > title > list > li > a
*/
/*
	Variables for legacy dc plugins
*/
.offices-map {
  /* padding: var(--spacing-block) 0; */
}

.offices-map .header-container {
  margin-bottom: 3rem;
}

@media screen and (min-width: 1000px) {
  .offices-map .offices-map-container {
    display: flex;
    flex-wrap: wrap;
  }
}
.offices-map .offices-tabs {
  width: 100%;
}

.offices-map .offices-tabs__nav-wrapper {
  position: relative;
  margin-bottom: 2.5rem;
}

@media screen and (max-width: 850px) {
  .offices-map .offices-tabs__nav-wrapper {
    margin-bottom: 1.25rem;
  }
  .offices-map .offices-tabs__nav-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 3.75rem;
    background: linear-gradient(to right, rgba(245, 243, 244, 0), rgb(245, 243, 244));
    pointer-events: none;
    z-index: 1;
  }
}
.offices-map .offices-tabs__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 850px) {
  .offices-map .offices-tabs__nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.625rem;
    border-bottom: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .offices-map .offices-tabs__nav::-webkit-scrollbar {
    display: none;
  }
}
.offices-map .offices-tabs__item {
  margin-right: 2.5rem;
  flex-shrink: 0;
}

.offices-map .offices-tabs__item:last-child {
  margin-right: 0;
}

@media screen and (max-width: 850px) {
  .offices-map .offices-tabs__item {
    margin-right: 1.25rem;
    margin-bottom: 0;
    border-bottom: none;
  }
  .offices-map .offices-tabs__item:last-child {
    margin-right: 1.25rem;
  }
}
.offices-map .offices-tabs__item.is-active .offices-tabs__link {
  opacity: 1;
  border-bottom: 2px solid var(--color__brand-copper);
}

@media screen and (max-width: 850px) {
  .offices-map .offices-tabs__item.is-active .offices-tabs__link {
    border-bottom: 2px solid var(--color__brand-copper);
  }
}
.offices-map .offices-tabs__link {
  background: none;
  border: none;
  color: var(--color__teal-dark);
  cursor: pointer;
  padding: 0.625rem 0;
  font-family: var(--font-family);
  text-align: left;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
}

.offices-map .offices-tabs__link:hover {
  opacity: 1;
}

.offices-map .offices-tabs__link:focus {
  outline: none;
}

.offices-map .offices-tabs__city {
  font-size: 1.25rem;
  display: block;
}

.offices-map .offices-tabs__country {
  font-size: 0.875rem;
  display: block;
  text-transform: uppercase;
  min-height: 1.3125rem;
}

.offices-map .offices-tabs__content {
  position: relative;
}

.offices-map .offices-tabs__panel {
  display: none;
}

.offices-map .offices-tabs__panel.is-active {
  display: block;
}

@media screen and (min-width: 1000px) {
  .offices-map .offices-tabs__panel.is-active {
    display: flex;
    justify-content: space-between;
  }
}
@media screen and (min-width: 1000px) {
  .offices-map .offices-tabs__details {
    width: 25%;
    min-width: 20rem;
    padding-right: 2.5rem;
    flex-shrink: 0;
  }
}
.offices-map .offices-tabs__details h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.offices-map .offices-tabs__contact {
  margin-bottom: 1.875rem;
  font-size: 1.125rem;
}

.offices-map .offices-tabs__contact a {
  color: var(--color__teal-dark);
  text-decoration: none;
}

.offices-map .offices-tabs__contact a:hover {
  text-decoration: underline;
}

.offices-map .offices-tabs__cta {
  display: flex;
}

.offices-map .offices-tabs__meta {
  font-size: 1rem;
}

.offices-map .offices-tabs__meta dt {
  margin-top: 0.625rem;
  opacity: 0.7;
}

.offices-map .offices-tabs__meta dd {
  margin: 0;
}

.offices-map .offices-tabs__map {
  margin-top: 1.875rem;
  height: 25rem;
  background-color: #f0f0f0;
  -webkit-clip-path: polygon(2.5rem 0, 100% 0, 100% calc(100% - 3.845rem), calc(100% - 2.5rem) 100%, 0 100%, 0 3.845rem);
          clip-path: polygon(2.5rem 0, 100% 0, 100% calc(100% - 3.845rem), calc(100% - 2.5rem) 100%, 0 100%, 0 3.845rem);
}

@media screen and (min-width: 1000px) {
  .offices-map .offices-tabs__map {
    margin-top: 0;
    width: auto;
    flex: 1;
    height: 31.25rem;
  }
}
.offices-map .offices-tabs__map .google-map-container {
  width: 100%;
  height: 100%;
}
