/* Local custom fonts */
@font-face {
  font-family: 'SangBleuSans';
  src: url('/static/fonts/MGO/SangBleu_Sans_Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TTNorms';
  src: url('/static/fonts/MGO/TTCommons-Regular.ttf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  background-color: #cfe7ed;
  font-family: 'SangBleuSans';
  color: #141b4d;
  /* Base font scales a bit with viewport but stays readable */
  font-size: clamp(14px, 2.8vw, 16px);
}

#header {
  padding: clamp(8px, 2vw, 12px);
  margin-left: 15%;
  margin-right: 15%;
}

h1 {
  font-size: clamp(16px, 3.6vw, 22px);
  margin-bottom: clamp(6px, 1.8vw, 12px);
}

h2 {
  font-size: clamp(12px, 2.2vw, 16px);
  margin-bottom: clamp(4px, 1.2vw, 8px);
}

#title {
  font-size: clamp(13px, 2.2vw, 18px);
  font-weight: 700;
}

.mdi-star {
  color: #141b4d!important;
}

div.post {
  margin-top: clamp(14px, 6vw, 25px) !important;
  padding: 0 0 clamp(6px, 2.2vw, 12px);
  margin: 0;
  background: #0000 url('line.png') no-repeat scroll center top 23px;
  /* background: #0000 url('feed.jpg') no-repeat scroll center top 23px; */
}

div.post>div.active span {
  background-color: #141b4d;
}

div.post>div span {
  --step-size: clamp(36px, 12vw, 60px);
  background: #c8c8c8 none repeat scroll 0 0;
  border-radius: 100%;
  color: #fff;
  display: inline-block;
  height: var(--step-size);
  width: var(--step-size);
  font-size: calc(var(--step-size) * 0.27);
  padding-top: calc(var(--step-size) * 0.30);
  margin-bottom: clamp(4px, 2vw, 9px);
}

div.post>div {
  display: inline-block;
  list-style: outside none none;
  text-align: center;
  width: 24%;
}

/* Autocomplete address input styling */
#autocomplete,
#refCad {
  font-family: 'TTNorms';
  background: #ffffff !important;
  color: #141b4d !important;
  font-weight: 600;
  letter-spacing: .02em;
  border-top: 3px solid #141b4d;
  border-bottom: 3px solid #141b4d;
  border-left: 0;
  border-right: 0;
  padding: clamp(8px, 2vw, 12px) clamp(6px, 2vw, 10px);
  border-radius: 0;
  outline: none;
  box-shadow: none;
}

#autocomplete::placeholder,
#refCad::placeholder {
  color: #141b4d;
  opacity: .65;
  text-transform: none;
  font-family: 'TTNorms';
}

#auto_icon,
#search_icon {
  color: white;
  background-color: #05c3dd;
  height: clamp(40px, 10vw, 58px);
  width: clamp(40px, 10vw, 58px);
  border-radius: 100%;
  font-size: clamp(20px, 6vw, 34px);
  padding-left: clamp(6px, 2vw, 11px);
  margin-top: clamp(-12px, -2vw, -6px);
}

#center {
  /* color: white; */
  background-color: #05c3dd;
  /* font-size: 24px; */
  height: clamp(40px, 10vw, 58px);
  width: clamp(40px, 10vw, 58px);
  border-radius: 100%;
  border-color: #05c3dd;
  font-size: clamp(20px, 6vw, 34px);
  padding-left: clamp(6px, 2vw, 11px);
  /* margin-top: -9px; */
  padding-top: clamp(1px, 0.4vw, 4px);
}

#prev,
#next {
  background-color: #05c3dd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: none;
  border-radius: 999px; /* pill shape */
  padding: clamp(6px, 1.6vw, 8px) clamp(14px, 3.8vw, 20px);
  font-size: clamp(11px, 2.4vw, 16px);
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.15;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
  transition: background-color .18s ease, box-shadow .18s ease;
  min-height: clamp(34px, 6.5vw, 46px);
}

#coordinatesRC_dist button,
#calculate {
  background-color: #141b4d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: none;
  border-radius: 999px; /* pill shape */
  padding: clamp(6px, 1.6vw, 8px) clamp(14px, 3.8vw, 20px);
  font-size: clamp(11px, 2.4vw, 16px);
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.15;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
  transition: background-color .18s ease, box-shadow .18s ease;
  min-height: clamp(34px, 6.5vw, 46px);
}

#prev:hover,
#next:hover {
  background-color: #04b2ca;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
}

#prev:active,
#next:active {
  background-color: #0398ab;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .18);
}

article {
  background-color: white;
  border: none;
  border-radius: clamp(14px, 5vw, 29px);
  padding: clamp(10px, 3vw, 18px);
  margin-left: 15%;
  margin-right: 15%;
}

/********************************************
 * PILL CHECKBOXES (RADIO-LIKE STYLE)
 ********************************************/

/* Amaguem el checkbox nadiu, però que segueixi sent accessible */
input[type="checkbox"] {
  font-family: 'TTNorms';
  -moz-appearance: none;
  appearance: none;
  width: clamp(12px, 2.5vw, 15px);
  height: clamp(12px, 2.5vw, 15px);
  background: #c8c8c8;
  border-radius: 50%;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
}

/* Estat checked: semblen botons actius (com radios seleccionats) */
[type="checkbox"]:checked {
  border: none;
  background-color: #141b4d;
  color: #ffffff;
}

.bg-dark {
  background-color: #05c3dd !important;
  color: white !important;
  border-radius: clamp(18px, 6vw, 35px);
  margin-left: 10%;
  margin-right: 10%;
}

span.mdi.mdi-clock-check-outline.display-2 {
  display: none;
  display: inline-block;
  width: 75%;
  height: 0;
  border-bottom: 2px dotted rgba(20,27,77,0.6);
  background: transparent;
  font-size: 0; /* hide icon glyph */
  vertical-align: middle;
  margin: 0 clamp(4px, 2vw, 8px);
}

span.mdi.mdi-clock-out.display-2 {
  display: none;
  display: inline-block;
  width: 75%;
  height: 0;
  border-bottom: 2px dotted rgba(20,27,77,0.6);
  background: transparent;
  font-size: 0; /* hide icon glyph */
  vertical-align: middle;
  margin: 0 clamp(4px, 2vw, 8px);
}

span.mdi.mdi-clock-fast.display-2 {
  display: inline-block;
  width: 75%;
  height: 0;
  border-bottom: 2px dotted rgba(20,27,77,0.6);
  background: transparent;
  font-size: 0; /* hide icon glyph */
  vertical-align: middle;
  margin: 0 clamp(4px, 2vw, 8px);

}

.col-sm-12.col-lg-4 {
  -ms-flex: 0 0 100% !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

.price_name, .repercusion {
  color: #141b4d;
  text-transform: uppercase;
  font-size: clamp(12px, 2.6vw, 15px);
  font-family: 'TTNorms'!important;
  font-weight: 700;
}

.price_value {
  color: white;
  font-size: clamp(16px, 3.2vw, 20px);
  font-family: 'SangBleuSans'!important;
  font-weight: 700;
}

#modal-content {
  font-family: 'TTNorms'!important;
}

/* Responsive fine-tuning for very narrow screens */
@media (max-width: 420px) {
  div.post>div span {
    --step-size: clamp(32px, 18vw, 44px);
  }
  /* Mobile: show only arrows in circular buttons */
  #prev, #next {
    padding: 0;
    width: clamp(36px, 10vw, 44px);
    height: clamp(36px, 10vw, 44px);
    min-height: 0;
    font-size: 0; /* hide text label */
    letter-spacing: 0;
  }
  #prev::before, #next::before {
    display: inline-block;
    font-size: clamp(16px, 6vw, 20px);
    line-height: 1;
    color: #ffffff;
  }
  #prev::before { content: "\2190"; }  /* ← */
  #next::before { content: "\2192"; }  /* → */
  #coordinatesRC_dist button, #calculate {
    padding: 8px 16px;
    font-size: 13px;
    min-height: 42px;
    letter-spacing: .03em;
  }
}

@media (max-width: 340px) {
  #prev, #next {
    width: 34px;
    height: 34px;
  }
  #coordinatesRC_dist button, #calculate {
    width: 34px;
    height: 34px;
    padding: 6px 14px;
    font-size: 12px;
    min-height: 40px;
  }
}

.help {
  font-size: small;
  font-family: 'TTNorms';
}

#accept, #id_features {
  font-family: 'TTNorms';
}

/* Apply TTNorms to form controls and their text */
input,
button,
select,
textarea,
option,
optgroup,
datalist {
  font-family: 'TTNorms';
  color: inherit;
  font-weight: 600;
}

/* Placeholder text styling */
input::placeholder,
textarea::placeholder {
  color: #141b4d;
  opacity: .65;
  font-family: 'TTNorms';
}

/* Vendor-prefixed placeholders for broader support */
::-webkit-input-placeholder { font-family: 'TTNorms'; color: #141b4d; opacity: .65; }
:-ms-input-placeholder { font-family: 'TTNorms'; color: #141b4d; opacity: .65; }
::-ms-input-placeholder { font-family: 'TTNorms'; color: #141b4d; opacity: .65; }
::-moz-placeholder { font-family: 'TTNorms'; color: #141b4d; opacity: .65; }
:-moz-placeholder { font-family: 'TTNorms'; color: #141b4d; opacity: .65; }