/* Set colours and fonts etc in :root if style changes are needed! */

.offshore-block {
  --navy: #002a3a;
  --green: #64a70b;
  --font: "droid-sans", "Droid Sans", "Open Sans", Helvetica, Arial, sans-serif;
}
.offshore-block *,
.offshore-block *::before,
.offshore-block *::after {
  box-sizing: border-box;
}
.offshore-block body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  background: #fff;
}
.offshore-block .container {
  max-width: 1080px;
  width: 92%;
  margin: 0 auto;
}

.offshore-block .page-title {
  padding: 20px 0 28px;
}
.offshore-block .page-title h1 {
  margin: 0;
  padding-bottom: 10px;
  font-size: 50px;
  font-weight: 300;
  line-height: 1;
  color: #333;
}
.offshore-block .page-title h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin-top: 22px;
  background: var(--green);
}

/* Map stage wave background svg */
.offshore-block .map-stage {
  position: relative;
  min-height: 800px;
  border-radius: 15px;
  overflow: hidden;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg fill=%22rgba(0,147,158,0.11)%22 height=%2226px%22 width=%22200px%22 viewBox=%220 0 200 26%22 preserveAspectRatio=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cpath d=%22M33.77,0C25.09,3.81,14.57,6.5,0,6.5V0ZM200,6.5V0H166.23C174.91,3.81,185.43,6.5,200,6.5ZM133.77,0H100c24,0,35.79,7.64,48.23,15.73a125,125,0,0,0,18,10.27H200c-24,0-35.79-7.64-48.23-15.73A125,125,0,0,0,133.77,0ZM100,0H66.23a125,125,0,0,0-18,10.27C35.79,18.36,24,26,0,26H33.77a125,125,0,0,0,18-10.27C64.21,7.64,76,0,100,0ZM66.23,26h67.54c-8.68-3.81-19.2-6.5-33.77-6.5S74.91,22.19,66.23,26Z%22/%3E%3C/svg%3E");
  background-size: 100px auto;
  background-position: left top 1%;
  background-repeat: repeat;
}
.offshore-block .map {
  position: relative;
  width: 580px;
  height: 800px;
  margin: 0 auto;
  background: url("img/ireland-ports-map.png") center / contain no-repeat;
}

/* Info panels */
.offshore-block .panel {
  position: absolute;
  z-index: 1;
  top: 20px;
  left: 20px;
  width: 350px;
  padding: 30px;
  background: var(--navy);
  color: #fff;
  border-radius: 15px;
  overflow: hidden;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s;
}
.offshore-block .panel.is-active {
  opacity: 1;
  pointer-events: auto;
}
.offshore-block .panel h2 {
  margin: 0;
  padding-bottom: 10px;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--green);
}
.offshore-block .panel p {
  margin: 0;
  padding: 0;
  color: #fff;
}

/* Hotspots */
.offshore-block .sc-hotspot {
  position: absolute;
  z-index: 2;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.offshore-block .sc-hotspot img {
  display: block;
  height: 100%;
  width: auto;
  pointer-events: none;
}
.offshore-block .sc-hotspot:hover {
  opacity: 1;
}
.offshore-block .sc-hotspot:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 50%;
  opacity: 1;
}
.offshore-block .sc-hotspot-operating {
  opacity: 1;
}
.offshore-block .sc-hotspot.is-active img {
  filter: invert();
}
.offshore-block .hs01 {
  height: 15px;
  top: 515px;
  right: 60px;
}
.offshore-block .hs02 {
  height: 40px;
  top: 483px;
  right: 69px;
}
.offshore-block .hs03 {
  height: 60px;
  top: 430px;
  right: 30px;
}
.offshore-block .hs04 {
  height: 41px;
  top: 415px;
  right: 65px;
}
.offshore-block .hs05 {
  height: 25px;
  top: 380px;
  right: 80px;
}
.offshore-block .hs06 {
  height: 20px;
  top: 320px;
  right: 95px;
}
.offshore-block .hs07 {
  height: 25px;
  top: 400px;
  left: 65px;
}

.offshore-block .source {
  margin: 14px 0 40px;
  font-size: 14px;
  color: #666;
}

/* Scroll-in animation */
.offshore-block .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.offshore-block .reveal.in-view {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .offshore-block .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .offshore-block .panel {
    transition: none;
  }
}

@media (max-width: 980px) {
  .offshore-block .page-title h1 {
    font-size: 40px;
  }
  .offshore-block .map {
    width: 390px;
  }
  .offshore-block .sc-hotspot {
    transform: scale(0.67);
  }
  .offshore-block .hs01 {
    top: 475px;
    right: 30px;
  }
  .offshore-block .hs02 {
    top: 448px;
    right: 34px;
  }
  .offshore-block .hs03 {
    top: 410px;
    right: 5px;
  }
  .offshore-block .hs04 {
    top: 390px;
    right: 30px;
  }
  .offshore-block .hs05 {
    top: 380px;
    right: 50px;
  }
  .offshore-block .hs06 {
    top: 345px;
    right: 60px;
  }
  .offshore-block .hs07 {
    top: 395px;
    left: 35px;
  }
}
@media (max-width: 767px) {
  .offshore-block .page-title h1 {
    font-size: 30px;
  }
  .offshore-block .panel {
    width: 300px;
    font-size: 15px;
  }
  .offshore-block .panel h2 {
    font-size: 20px;
  }
}

.offshore-block .map button:hover,
.offshore-block .map button:focus-visible,
.offshore-block .map button:focus {
  background: transparent;
}

.offshore-block .site-and-port-facilities-title {
  margin-top: 140px;
}

.guide__copyright {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--anrt-color-grey-dark-bb);
  margin-block-start: var(--anrt-spacing-100);
  padding-block-start: var(--anrt-spacing-100);
  text-align: center;
  justify-content: center;
}

.guide__copyright svg {
  max-width: 250px;
  height: auto;
}

.guide__copyright p {
  width: 100%;
}
