// COMMON

.clearfix {
  .clearfix();
}

#dp-container {
  z-index: 100;
}

.align{
  &-center{
    text-align: center;
  }
  &-left{
    text-align: left;
  }
  &-right{
    text-align: right;
  }
}
.pull {
  &-left {
    float: left;
  }
  &-right {
    float: right;
  }
}

.link_hover(@hover: @tm-hover) {
	position: relative;
	&:before {
		.transition();
		content: '';
		display: block;
		height: 1px;
		width: 0;
		background: @hover;
		position: absolute;
		left: 0;
		bottom: 0;
	}
	&:hover {
		&:before {
			width: 100%;
			background: @hover;
		}
	}
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	border: 0;
}


/* Text align
--------------------------*/
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.text-center {
  text-align: center;
}
.text-justif {
  text-align: justify;
}
.text-nowrap {
  white-space: nowrap;
}


/* Button
--------------------------*/
.tm-button-solid(@border-radius: 3px) {
  height: 44px;
  line-height: 46px;
  padding: 0 30px;
  font-size: 11px;
  display: inline-block;
  margin-bottom: 4px;
  border: transparent;
  .border_radius(@border-radius);
  .transition();
}

.tm-button-border(@border-radius: 3px) {
  height: 44px;
  line-height: 42px;
  padding: 0 30px;
  font-size: 11px;
  background: transparent;
  display: inline-block;
  margin-bottom: 4px;
  border: 1px solid;
  .transition();
  &:hover {
    .opacity(.7);
  }
}

.tm-button {
  text-transform: uppercase;
  letter-spacing: 1px;
  &.round {
    .border_radius(100px);
  }
  &.solid {
    .tm-button-solid();
    &.danger {
      background-color: @tm-danger;
      &:hover {
        background-color: darken(@tm-danger, 15%);
      }
    }
    &.warning {
      background-color: @tm-warning;
      &:hover {
        background-color: darken(@tm-warning, 15%);
      }
    }
    &.white {
      background: #fff !important;
      color: #333;
    }
    &.orange {
      background: #CA8162 !important;
      color: #fff;
    }
    &.red {
      background: #ce2226 !important;
      color: #fff;
    }
    &.green {
      background: #607351 !important;
      color: #fff;
    }
  }
  &.border {
    .tm-button-border();
    &.danger {
      color: @tm-danger;
      &:hover {
        color: darken(@tm-danger, 15%);
      }
    }
    &.warning {
      color: @tm-warning;
      &:hover {
        color: darken(@tm-warning, 15%);
      }
    }
  }
  &.round {
    .border_radius(100px);
  }
  &:hover {
    .opacity(.8);
  }
}

.tm-map {
  img {
    max-width: none;
  }
}

/* Form
--------------------------*/
select,
textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"] {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid;
  .border_radius(3px);
  .transition();
  &::-webkit-input-placeholder {
    &:extend(.primary-color);
  }
  &:-moz-placeholder {
    &:extend(.primary-color);
  }
  &::-moz-placeholder {
    &:extend(.primary-color);
  }
  &:-ms-input-placeholder {
    &:extend(.primary-color);
  }
  &:focus {
    outline: none;
    &:extend(.secondary-border-color);
  }
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}
textarea {
  resize: none;
  padding: 10px;
  height: auto;
}
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
input[type="submit"],
button {
  .tm-button-solid();
  cursor: pointer;
}
p {
  &.one-half {
    @media (min-width: @screen-sm-min) {
      float: left;
      width: 50%;
    }
  }
  &.one-third {
    @media (min-width: @screen-sm-min) {
      float: left;
      width: 33.33334%;
    }
  }
  &.select {
    .wpcf7-form-control-wrap {
      position: relative;
      &:before {
        position: absolute;
        right: 0;
        top: 0;
        .font-awesome("\f107");
        line-height: 40px;
        z-index: 2;
        padding: 0 10px;
      }
    }
  }
}
.wpcf7-form-control-wrap {
  margin-bottom: 10px;
  display: block;
}
.wpcf7-response-output {
  margin: 15px 0 15px !important;
}
span[role="alert"] {
  font-size: 13px;
  margin-top: 5px;
}

.tiny-subtitle {
  margin-bottom: 15px;
  span {
    padding: 0 5px;
    border-top: 1px solid;
    border-bottom: 1px solid;
    line-height: 34px;
    font-size: 12px;
    letter-spacing: 2px;
    display: inline-block;
  }
}

.tm-inner-border {
  position: absolute;
  width: 94%;
  height: 94%;
  top: 3%;
  left: 3%;
  border: 1px solid #fff;
  z-index: 1;
}

.tm-posted-on {
  color: fade(#000, 50%);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: bold;
  line-height: 38px;
  a {
    color: fade(#000, 50%);
    &:hover {
      color: @tm-hover;
    }
  }
  > span {
    margin-right: 20px;
    a {
      margin-right: 2px;
    }
  }
  i {
    margin-right: 3px;
  }
}