/*********************/
/* Widgets : general */
/*********************/

.GPwidget {
  position: absolute;
  pointer-events: auto;
  font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;
  font-size: 13px;
  color: #333;
}

.GPwidget input[type='text'],
.GPwidget input[type='button'] {
  -webkit-appearance: none;
  appearance: none;
  color: #333333;
}

.GPwidget input[type="checkbox"] {
  display: none;
}

.GPwidget select {
  padding-left: 3px;
  border-radius: 3px;
}

.GPwidget form {
  margin-bottom: 0;
}

.GPwidget * {
  box-sizing: border-box;
  background-repeat: no-repeat;
}

/************/
/* position */
/************/
:root {
  --size-per-row: 32px;
}
#position-container-top-left,
#position-container-top-right,
#position-container-bottom-left,
#position-container-bottom-right {
  border-style: solid;
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* crée un décalage sur le searchEngine */
  /* align-items: center; */
  width: var(--size-per-row);
  min-height: var(--size-per-row);
  /* padding: 5px; */
}

#position-container-top-left,
#position-container-top-right {
  top: 0;
}

#position-container-top-left {
  float: left;
  left: 0;
}
#position-container-top-right {
  float: right;
  right: 0;
}

#position-container-bottom-left,
#position-container-bottom-right {
  bottom: 0px;
}

#position-container-bottom-right {
  float: right;
  right: 0px;
}
#position-container-bottom-left {
  float: left;
  left: 0px;
}

/******************/
/* General panels */
/******************/

.GPpanel {
  box-shadow: 0 0 6px #000;
  border-radius: 4px;
  padding: unset;
  border: unset;
  background-color: #FFF;
}

.GPpanel {
}

.GPpanelHeader {
  position: relative;
  width: 100%;
  height: 32px;
  padding: 3px;
  background-color: #9DB1BD;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.GPpanelTitle {
  width: 100%;
  height: 100%;
  text-align: center;
  font-weight: bold;
  line-height: 26px;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  background-color: #366291;
  color: #FFF;
}

.GPpanelFooter {}

.GPpanelIcon,
.GPresetPicto,
.GPreturnPicto,
.GPpanelClose,
.GPpanelReduce,
.GPpanelInfo {
  position: absolute;
  width: 26px;
  height: 26px;
  cursor: pointer;
  border: none;
  background-color: #366291;
}

.GPpanelClose {
  top: 3px;
  right: 3px;
  background-position: -27px 0;
}

.GPreturnPicto {
  top: 3px;
  left: 3px;
}

.GPpanelInfo {
  top: 3px;
  left: 3px;
}

.GPpanelReduce {
  top: 3px;
  right: 32px;
}

.GPresetPicto,
.GPreturnPicto {
  border-radius: 3px;
  opacity: 1;
}

/**********************************/
/* Showing/hiding advanced panels */
/**********************************/

.GPshowAdvancedToolPicto {
  position: relative;
  box-sizing: border-box;
  cursor: pointer;
  width: 32px;
  height: 32px;
  padding: 2px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.4) ;
}

.GPshowAdvancedToolPicto:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.GPshowAdvancedToolOpen {
  position: absolute;
  display: block;
  box-sizing: border-box;
  width: 26px;
  height: 26px;
  background-color: rgba(0,60,136,0.5);
  border-radius: 2px;
}

.GPshowAdvancedToolPicto:hover .GPshowAdvancedToolOpen {
  background-color: rgba(0,60,136,0.7);
}

.GPshowOpen {
  background-color: rgba(0,60,136,0.5);
}

.GPshowOpen:hover {
  background-color: rgba(0,60,136,0.7);
}

/****************/
/* Calc waiting */
/****************/

.GPwaitingContainer {
  position: absolute;
  top: 32px;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255,255,255,0.9);
  font-size: 1.5em;
  font-weight: bold;
  border-radius: 4px;
  overflow: hidden;
}

.GPwaitingContainerVisible {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: -webkit-box;
  display: flex;
}

.GPwaitingContainerHidden {
  display: none;
}

.GPwaitingContainerInfo {
  margin: auto;
}

.GPwaitingContainerVisible,
.GPwaitingContainerHidden {}

/***************/
/* Flex inputs */
/***************/

.GPflexInput {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: -webkit-box;
  display: flex;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

/* FIXME tempory hack with :not(.GPlocationOriginHidden) !
.GPflexInput > *:not(.GPlocationOriginHidden) */
.GPflexInput > * {
  display: block;
  height: 28px;
  line-height: 26px;
  border: 1px solid #999;
  border-radius: 0;
}

.GPflexInput *:not(:last-child) {
  border-right:none;
}

.GPflexInput *:first-child {
  border-radius: 3px 0 0 3px;
}

.GPflexInput *:last-child {
  border-radius: 0 3px 3px 0;
}

.GPflexInput > *:not(input) {
  /* width: 28px; */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.GPflexInput > input {
  -webkit-flex: 1;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 0 5px;
  min-width: 0;
}

.GPflexInput > select {
  -webkit-flex: 1;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding-right: 7px;
}

.GPflexInput > label {
  background-color:  #F2F2F2;
  color: #666;
  padding-left: 7px;
  padding-right: 9px;
  cursor: pointer;
}

/****************/
/* Submit input */
/****************/

button.GPsubmit,
input.GPsubmit {
  display: block;
  width: 80px;
  margin: auto;
  height: 28px;
  line-height: 26px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 3px;
  font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;
  color: #FFF;
  background-color: #366291;
  font-weight: bold;
  opacity: 0.8;
  transition: opacity 0.2s ease-out;
  cursor: pointer;
}

button.GPsubmit:hover,
input.GPsubmit:hover {
  opacity: 1;
}

/************/
/* elements */
/************/

.GPselect {
  display: block;
  height: 28px;
  line-height: 26px;
  margin: auto;
  border: 1px solid #999;
  color: #333;
  cursor: pointer;
}

.GPlabel {

}

.GPinput {

}

.GPform {
  padding: 15px;
}

.GPelementInvisible,
.GPelementHidden {
  display: none;
  visibility: hidden;
  opacity: 0%;
}

.GPelementVisible,
.GPelementShow {
  display: block;
  visibility: visible;
  opacity: 100%;
}

.GPflex {
  display: flex;
}

/********************************/
/* Autocomplete/geocode results */
/********************************/

.GPautoCompleteList,
.GPadvancedAutoCompleteList {
  z-index: 2;
  /* display: none; */
  /* position: absolute;
  max-height: 140px;
  background-color: #FFF;
  border: 1px solid #999;
  overflow-y: hidden; */
}

.GPadvancedAutoCompleteList {
  width: calc(100% - 28px);
  border-top: none;
  font-size: 0.9em;
}

.GPautoCompleteProposal {
  width: 100%;
  height: 28px;
  line-height: 16px;
  padding: 6px 10px;
  color: #5E5E5E;
  font-size: 1.0em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow:ellipsis;
  cursor: pointer;
  margin-bottom: 0;
}

.GPautoCompleteProposal:hover {
  color: #000000;
  background-color: #CEDBEF
}

/*************************************/
/* Showing additional hidden options */
/*************************************/

.GPshowMoreOptionsImage {
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAA7ElEQVRIx+3UvUoDQRSG4ffMLhbaLIEFvQSxtN1ALiGymkswpZVoupS6Vt6BYBMWf+s0Kaa1FG9BEBYbDQRnj4UKqTRgtjtPeWaYb4YPBowxpmmyyKbs6PpJVCfVan3wOOzN5te2huVK692dq0jHn+abf53lFrqWMlKRfjKNxu1Bmf6M24MyTabRWEX6KKOlvRAgO77ZQ/UCqBDXdSqzmnAPbKDs+yK/XGrgV+jtNlrfAcn36BVxXX+y89BYh+kbrQ+JrgBiDbsva1SNdhhigi/yzBd5FmKCdfivQIDOYbk+3+HkrPds35kx5lef+y50/JHC/FoAAAAASUVORK5CYII=');
}

.GPshowMoreOptions {
  display: block;
  position: absolute;
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: all 0.5s ease-out 0s;
}

button[aria-pressed="true"].GPshowMoreOptions,
input[type="checkbox"]:checked + .GPshowMoreOptions {
  -webkit-transform: rotateX(180deg);
  transform: rotateX(180deg);
  /* bottom: 90px; */
}

/**********************/
/* Feature info popup */
/**********************/

.gp-feature-info-div {
  bottom: 17px ;
  position: relative;
  max-width: calc(100vw - 80px);
  padding: 10px;
  border-radius: 10px;
  font-size: 0.75em;
  font-family: "Open Sans", sans-serif;
  color: #002A50;
  background-color: #FFF;
  box-shadow: 0 0 5px #000;
}

.gp-feature-info-div::before {
  content: "";
  position: absolute;
  border-top: 15px solid #FFF;
  border-right: 14px solid transparent;
  border-left: 14px solid transparent;
  bottom: -15px;
  margin-left: -14px;
  left: 50%;
}

.gp-feature-info-div .closer {
  position: absolute;
  display: block;
  width: 30px;
  height: 30px;
  top: 0;
  right: 0;
  border: none;
  cursor: pointer;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  background-color: #FFF;
  background-repeat: no-repeat;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBkPSJNMCA4NDEuOWg1OTUuM1YwSDB2ODQxLjl6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIiB0cmFuc2Zvcm09Im1hdHJpeCguMDIzNTIgMCAwIC0uMDIzNTIgMSAxOCkiIGZpbGw9IiMwMGI3OTgiPjxwYXRoIGQ9Ik0zNjguNCA0MjAuOWwyMTIuMiAyMTIuMmMxOS41NCAxOS41NCAxOS41NCA1MS4yMSAwIDcwLjc1cy01MS4yMSAxOS41NC03MC43NSAwbC0yMTIuMi0yMTIuMy0yMTIuMiAyMTIuM2MtMTkuNTQgMTkuNTQtNTEuMjEgMTkuNTQtNzAuNzUgMC0xOS41My0xOS41NC0xOS41My01MS4yMSAwLTcwLjc1TDIyNyA0MjAuOSAxNC44IDIwOC43Yy0xOS41My0xOS41NC0xOS41My01MS4yMSAwLTcwLjc1IDE5LjU0LTE5LjU0IDUxLjIxLTE5LjU0IDcwLjc1IDBsMjEyLjIgMjEyLjIgMjEyLjItMjEyLjJjMTkuNTMtMTkuNTQgNTEuMjEtMTkuNTQgNzAuNzUgMHMxOS41NCA1MS4yMSAwIDcwLjc1TDM2OC41IDQyMC45eiIvPjwvZz48L3N2Zz4=');
  background-size: 14px 14px;
  background-position: center;
}

.gp-features-content-div {
  max-width: 420px;
  min-width: 260px;
  max-height: 340px;
  overflow: auto;
}

.gp-features-content-div h5,
.gp-features-content-div h6,
.gp-features-content-div p,
.gp-features-content-div ul {
  margin: 0;
}

.gp-features-content-div ul {
  padding: 0;
  list-style-type: none;
}

.geoportail-popup-content h5,
.geoportail-popup-content h6,
.geoportail-popup-content p,
.gp-att-name-div,
.gp-att-description-div,
.gp-att-others-div {
  padding: 0 10px;
}

.geoportail-popup-content h5:not(:last-child),
.geoportail-popup-content h6:not(:last-child),
.geoportail-popup-content p:not(:last-child),
.gp-att-description-div:not(:last-child),
.gp-att-others-div:not(:last-child) {
  margin-bottom: 15px;
}

.geoportail-popup-content h5:last-child,
.geoportail-popup-content h6:last-child,
.geoportail-popup-content p:last-child,
.gp-att-description-div:last-child,
.gp-att-others-div:last-child,
.gp-att-name-div {
  margin-bottom: 10px;
}

.geoportail-popup-content h5:first-child,
.geoportail-popup-content h6:first-child,
.geoportail-popup-content p:first-child,
.gp-att-name-div:first-child,
.gp-att-description-div:first-child,
.gp-att-others-div:first-child {
  margin-top: 10px;
}

.gp-att-name-div,
.gp-features-content-div h5 {
  padding-right: 35px;
  font-weight: bold;
  font-size: 1.2em;
  text-transform: uppercase;
  color: #0B6BA7;
}

.gp-features-content-div h6 {
  font-size: 1.1em;
}

.gp-att-description-div:not(:last-child),
.gp-att-others-div:not(:last-child) {
  padding-bottom: 10px;
  border-bottom: 1px dotted #666;
}

.gpf-radio-btn-group {
  display: flex;
  gap: 1em;
}

.gpf-btn-icon {
  caret-color: transparent;
}

