﻿
.top-right-icon.svg-icon svg.category-carousel-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Replaces common inline SVG mask style="mask-type: alpha" removed for CSP */
.category-carousel-svg mask {
  mask-type: alpha;
}

.mastec-hidden {
  display: none !important;
}

/* Pipeline project cards (was backgroundImage on .custom-card-unique) */
.custom-card-unique {
  position: relative;
  overflow: hidden;
}

.custom-card-unique__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.custom-card-unique .overlay-unique {
  position: relative;
  z-index: 1;
}

/* Carousel category icon container */
.svg-icon svg {
  width: 100%;
  height: 100%;
}

/* Leaflet map container (was mapEl.style) */
.mastec-map-el {
  position: relative;
  background-color: #000;
}

/* Map filter UI */
.map-filter-category-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  padding: 5px;
  width: 100px;
  height: 60px;
  border: 1px solid #fff;
  border-radius: 0;
  cursor: pointer;
  background: #fff;
  position: relative;
}

.map-filter-category-btn.is-active {
  background: #def2fc;
}

.map-filter-category-icon {
  width: 30px;
  height: 30px;
}

.map-filter-tooltip {
  position: absolute;
  left: 94%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 5px;
  background: #fff;
  padding: 16px 8px;
  border-radius: 0;
  white-space: nowrap;
  min-width: 160px;
  height: 55px;
  color: #0057b8;
  display: none;
  font-size: 17px;
  z-index: 1001;
  text-align: center;
  font-weight: 600;
}

.map-filter-category-btn:hover .map-filter-tooltip {
  display: block;
}

.map-show-all-btn {
  margin-top: 10px;
  padding: 5px;
  width: 60px;
  height: 60px;
  border: 1px solid #000;
  border-radius: 3px;
  cursor: pointer;
  background: #000;
  position: relative;
  font-size: 40px;
  display: none;
}

.map-show-all-tooltip {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 5px;
  background: rgba(255, 255, 255, 1);
  padding: 2px 8px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  font-size: 14px;
  z-index: 1001;
  width: 140px;
  height: 40px;
  color: #333;
  display: none;
}

.map-show-all-btn:hover .map-show-all-tooltip {
  display: block;
}

.map-filter-container.filters-all-mode .map-filter-category-btn,
.map-filter-container.filters-all-mode .map-show-all-btn {
  background: #000;
}

.map-filter-container.filters-all-mode .map-filter-category-btn {
  border-color: #000;
}

/* Leaflet marker popups (was inline styles in bindPopup HTML) */
.leaflet-popup-link {
  text-decoration: none;
  color: inherit;
}

.leaflet-popup-card {
  max-width: 648px;
  max-height: 1017px;
  text-align: left;
  font-family: "Figtree", sans-serif;
}

.leaflet-popup-category {
  margin-top: 40px;
  font-weight: 700;
  font-size: 18px;
  line-height: 20px;
  color: rgb(0, 86, 184);
  margin-bottom: 10px;
}

.leaflet-popup-line-before {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 14px;
  line-height: 15px;
  letter-spacing: 0.5px;
  color: #495860;
  margin-bottom: 4px;
}

.leaflet-popup-title {
  font-weight: 300;
  font-size: 13px;
   line-height: normal;
  color: #495860;
  margin: 5px 0;
}

.leaflet-popup-line-after {
  font-weight: 700;
  font-size: 14px;
  line-height: 15px;
  color: rgb(73, 88, 96);
}
.clean-energy-infrastructure-experties .expertise-bg .expertise-bg__img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Site search results list items (replaces inline border/padding on anchors) */
.mastec-search-list-item {
  border: 0;
  padding: 10px 0;
}

/* News lists (script_news.js — CSP: no inline style on hr) */
.news-hr--paginated {
  border-top: 1px dotted #ccc;
  clear: both;
  margin: 1.5rem 0;
}

.news-hr--sidebar {
  padding-top: 20px;
  padding-bottom: 0;
  margin: 0;
}
