.pirtek-location-map {
  --plm-blue: #204a94;
  --plm-blue-dark: #003087;
  --plm-yellow: #ffd200;
  --plm-red: #ed1c24;
  --plm-ink: #09245d;
  --plm-muted: #53647f;
  --plm-line: #d9e2f2;
  --plm-soft: #f5f8ff;
  color: var(--plm-ink);
  font-family: "Museo Sans", Arial, Helvetica, sans-serif;
}

.pirtek-location-map__search {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 28px;
  background: var(--plm-yellow);
}

.pirtek-location-map__search label {
  color: var(--plm-blue-dark);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: uppercase;
}

.pirtek-location-map__search-row {
  display: grid;
  grid-template-columns: minmax(220px, 380px) auto auto;
  gap: 10px;
  align-items: center;
}

.pirtek-location-map input {
  min-height: 48px;
  border: 1px solid rgba(0, 48, 135, 0.28);
  border-radius: 5px;
  padding: 10px 14px;
  background: #fff;
  color: var(--plm-ink);
  font: inherit;
  box-shadow: 0 2px 8px rgba(0, 48, 135, 0.12);
}

.pirtek-location-map input:focus {
  border-color: var(--plm-blue-dark);
  box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.16);
  outline: 0;
}

.pirtek-location-map button {
  min-height: 48px;
  border: 0;
  border-radius: 5px;
  padding: 11px 22px;
  background: var(--plm-blue-dark);
  color: #fff;
  cursor: pointer;
  font: 900 13px/1 "Museo Sans", Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pirtek-location-map button:hover,
.pirtek-location-map button:focus {
  background: #0b3d9a;
}

.pirtek-location-map__reset {
  background: var(--plm-red) !important;
}

.pirtek-location-map__reset:hover,
.pirtek-location-map__reset:focus {
  background: #c70f17 !important;
}

.pirtek-location-map__status {
  min-height: 18px;
  margin: 0;
  color: var(--plm-muted);
  font-size: 14px;
  font-weight: 700;
}

.pirtek-location-map__status.is-error {
  color: #b42318;
}

.pirtek-location-map__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 18px;
  align-items: stretch;
}

.pirtek-location-map__canvas {
  min-height: var(--plm-map-height, 560px);
  border: 2px solid var(--plm-blue);
  background: #e7edf4;
}

.pirtek-location-map__results {
  max-height: var(--plm-map-height, 560px);
  overflow: auto;
  border: 2px solid var(--plm-blue);
  background: var(--plm-blue);
}

.pirtek-location-map__result {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  padding: 16px;
  background: var(--plm-blue);
  color: #fff;
  text-align: left;
  text-transform: none;
}

.pirtek-location-map__result:hover,
.pirtek-location-map__result:focus {
  background: var(--plm-blue-dark);
  color: #fff;
}

.pirtek-location-map__result strong {
  color: var(--plm-yellow);
  font-size: 16px;
}

.pirtek-location-map__result span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.35;
}

.pirtek-location-map__result em {
  color: var(--plm-yellow);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.pirtek-location-map .gm-style,
.pirtek-location-map .gm-style-iw {
  font-family: "Museo Sans", Arial, Helvetica, sans-serif;
}

.pirtek-location-map .gm-style-iw-d {
  color: var(--plm-ink);
  font-family: "Museo Sans", Arial, Helvetica, sans-serif;
}

.pirtek-location-map .gm-style-iw-d strong {
  display: block;
  color: var(--plm-blue-dark);
  font-size: 16px;
  margin-bottom: 6px;
}

.pirtek-location-map .gm-style-iw-d p {
  margin: 0 0 8px;
}

.pirtek-location-map .gm-style-iw-d a {
  color: var(--plm-red);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 900px) {
  .pirtek-location-map__layout {
    grid-template-columns: 1fr;
  }

  .pirtek-location-map__results {
    max-height: 360px;
  }
}

@media (max-width: 620px) {
  .pirtek-location-map__search-row {
    grid-template-columns: 1fr;
  }

  .pirtek-location-map button {
    width: 100%;
  }
}

.pirtek-tab.pirtek-region-dropdown-ready > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading,
.pirtek-tab.pirtek-region-dropdown-ready > .e-n-tabs > .e-n-tabs-heading {
  display: none !important;
}

.pirtek-tab .pirtek-region-filter {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: 8px;
  width: 100%;
  margin-bottom: 22px;
  color: #003087;
  font: 700 16px/1.4 "Museo Sans", Arial, Helvetica, sans-serif;
}

.pirtek-tab .pirtek-region-filter select {
  width: 100%;
  max-width: 420px;
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid #204a94;
  border-radius: 5px;
  background: #fff;
  color: #003087;
  font: inherit;
}

.pirtek-tab .pirtek-region-filter select:focus-visible {
  outline: 3px solid #ffd200;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .pirtek-location-map__results {
    display: block;
    max-height: 320px;
  }

  .pirtek-location-map__layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pirtek-map-region { display: grid; gap: 8px; margin-bottom: 18px; font-weight: 700; }
.pirtek-map-region select { width: 100%; max-width: 420px; min-height: 48px; padding: 10px; color: #003087; background: white; border: 2px solid #204a94; }
a.pirtek-location-map__result { text-decoration: none; }

/* Replace the legacy Elementor controls only on pages with the map shortcode. */
.pirtek-tab.pirtek-region-unified > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading,
.pirtek-tab.pirtek-region-unified > .e-n-tabs > .e-n-tabs-heading,
.pirtek-tab.pirtek-region-unified .pirtek-region-filter {
  display: none !important;
}
