@import "./core";

.pctrip-list-container .clearfix { clear:both; }
.pctrip-list-container .clearfix:before,
.pctrip-list-container .clearfix:after {
  content: " ";
  display: table;
}
.pctrip-list-container .clearfix:after {
  clear: both;
}

.fr-filtering button {
  border: none;
  color: #FFF;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 6px;
  margin: 0 10px;
  float: left;

}
.fr-filtering a {
  margin-top: 3px;
  float:left;
}

.pctrip-container {
  float: left;
  border: 1px solid #e0e0e0;
  padding-bottom: 30px;
}

.pctrip-container iframe,
.pctrip-container img {
  max-width: 100%;
}

.pctrip-header {
  width: 100%;
  display: block;
  float: left;
}

.pctrip-header img {
  width: 100%;
  height: auto;
}

.pctrip-avatar-container {
  width: 15%;
  height: auto;
  float: left;
}

.pctrip-avatar {
  width: 125px;
  height: 125px;
  display: block;
  margin-top: -60px;
  margin-left: 20px;
  border-radius: 100%;
  background-size: 100%;
}

.pctrip-list-body-container {
  float: left;
  width: 80%;
}

.pctrip-name {
  float: left;
  padding-bottom: 10px;
}

.pctrip-name h3 {
  margin: 10px 0 0 0;
}

p.pctrip-date {
  margin-top: 0;
}

.pctrip-grid-list-content p.pctrip-date {
  float: left;
  text-align: center;
}

a.pctrip-pure-button {
  background: #CA663A; /* we should set this as the main color in the admin */
  color: #fff !important; /* overrides any theme colors */
  display: inline-block;
  text-align: center;
  font-weight: bold;
  padding: 15px 20px;
  margin-top: 10px;
  border-radius: 2px;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  -khtml-border-radius: 3px;
  border-radius: 3px;
  width: 100%;
}

.pctrip-ticket a.pctrip-pure-button {
  padding: 3px;
}

a.pctrip-pure-button:hover {
  color: #ccc !important;
}

.pctrip-register {
  float: right;
  padding-top: 10px;
  padding-right: 20px;
}

.pctrip-register a {
  display: block;
  font-size: 1.4em;
}

.pctrip-content {
  float: left;
  padding: 40px;
  border-top: 1px solid #e0e0e0;
}

.pctrip-body {
  float: left;
  margin-right: 5%;
}

.pctrip-map {
  float: left;
  margin-bottom: 30px;
}

.pctrip-map iframe {
  max-width: 100%;
  max-height: 300px;
}

.pctrip-sidebar {
  float: left;
}

.pctrip-ticket-price {
  background: #F1F1F1;
  border-radius: 5px;
  padding:10px;
  margin:10px 0;
  font-size:12px;
  font-weight:bold;
}

.pctrip-sidebarsection {
  width: 100%;
  float: left;
  margin-bottom: 30px;
}

.pctrip-sidebarsection h4 {
  border-top: 1px solid #e0e0e0;
  margin-top: 0;
  padding-top: 20px;
}

ul.pctrip-costs {
  list-style: none;
  width: 100%;
  padding:0;margin: 0;
}

ul.pctrip-costs li {
  float: left;
  list-style: none;
  width: 50%;
}

ul.pctrip-costs li:last-child {
  float: right;
  text-align: right;
}

.pctrip-list-container {
  width:100%;
  float: left;
}

.pctrip-list-item {
  float: left;
  width: 100%;
  padding: 30px 0;
  border-top: 1px solid #f0f0f0;
}

.pctrip-listing-avatar-container {
  float: left;
  margin: 20px 20px 20px 0;
}

.pctrip-listing-avatar {
  width: 125px;
  height: 125px;
  background-size: 100%;
  margin-right: 20px;
  float: left;
}

.pctrip-grid-lower-content {
  min-height: 200px;
}

.pctrip-grid-lower-content p,
.pctrip-grid-lower-content h4 {
  padding: 5px 10px !important;
  border-top: 1px solid #EEE !important;
  border-bottom: none;
  margin: 0;
}

.pctrip-grid-lower-content h4 {
  font-size: 18px;
}

.pctrip-grid-lower-content p {
  font-size: 14px;
  float: left;
}
.pctrip-grid-location {
  width: 100%;
  font-style: italic;
  font-size: .9em;
}

.pctrip-grid-list-content .pctrip-listing-avatar {
  float: none;
}

.pctrips-location-pin {
  width: 12px;
  opacity: .5;
}


h3.pctrip-title  {
  margin: 0 !important;
  width: 100%;
}

.pctrip-date {
  font-size: .9em;
  font-style: italic;
  width: 100%;
}

.pctrip-list-item ul.pctrip-list-actions {
  float: right;
  list-style: none;
  padding: 0;
}

.pctrip-list-item ul.pctrip-list-actions li {
  list-style: none;
  margin: 10px 0px 0 0;
  display: inline-block;
}

.pctrip-list-item ul.pctrip-list-actions li a {
  padding: 5px 10px;
  background: #CA663A;
  display: inline-block;
  color: #fff !important; /* overrides any theme colors */
  font-weight: bold;
  font-size: .8em;
}

.pctrip-list-item ul.pctrip-list-actions li:first-child a {
  background: none;
  color: #CA663A;
}

.pctrip-list-item ul.pctrip-list-actions li a:hover {
  text-decoration: underline;
}
.pctrip-filtering {
  float: left;
  width: 100%;
  text-align: right;
  padding: 20px;
}

.pctrip-livefilter label {
  font-weight: bold;
  margin-bottom: 5px;
}

.pctrip-livefilter-input {
  margin-top: 10px;
}

.pctrip-grid-list-item {
  border: 1px solid #EEE;
  padding: 0px;
  margin-right: 20px;
  margin-bottom: 20px;
  float: left;
}

.pctrip-grid-list-content {
  padding: 0px ;
  float: left;
  text-align: center;
  overflow: hidden;
}

.pctrip-grid-listing-avatar {
  height: 120px;
  background-size: cover;
}

.pctrip-listing-avatar-container {
  margin: 0 auto;
}

.pctrip-listing-avatar {
  margin: 0 auto;
  width: 95px;
  height: 95px;
  border-radius: 100%;
  background-size: 100%;
  border: 1px solid #f0f0f0;
}
.pctrip-grid-list-item p.pctrip-grid-title {
  float: left;
  width: 100%;
  font-weight: bold;
  margin-top: 10px 0 !important; /* override theme css to keep sizing of box */
}
.pctrip-grid-list-item p.pctrip-grid-intro { font-size:12px; }

.pctrip-date {
  font-size: .8em;
}

.pctrip-grid-list-item ul.pctrip-list-actions {
  float: left;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  border-top: 1px solid #EEE;
}

.pctrip-grid-list-item ul.pctrip-list-actions li {
  list-style: none;
  width: 100%;
  margin: 0;
  float: left;
  font-size: .9em;
  text-align: center;
  font-weight: bold;
}

.pctrip-grid-list-item ul.pctrip-list-actions li a {
  padding: 15px 5px;
  display: block;
}

.pctrip-grid-list-item ul.pctrip-list-actions li a:hover {
  background: #ccc;
  color: #fff !important; /* overrides any theme colors */
}

.pctrip-grid-list-item ul.pctrip-list-actions li a {
  padding: 15px 5px;
  display: block;
}


/* Grid */

/* SELF CLEARING FLOATS - CLEARFIX METHOD */
.pure_row:after, .pure_col:after, .pure_clr:after, .pure_group:after {
  content: "";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden; }


/* DEFAULT ROW STYLES */
.pure_row { padding-top: 1em; padding-bottom: 1em; } /* set according to preference*/
.pure_row.nopadrow { padding-top: 0; padding-bottom: 0; } /* set according to preference*/
.pure_row.nopadbottom {padding-bottom:0;}
.pure_row.nopadtop {padding-top: 0;}

/* DEFAULT COLUMN STYLES */
.pure_col {
  display: block;
  float:left;
  width: 100%;
}

@media ( min-width : 768px ) {
  .pure_col {
    margin-right: 1%;
  }
}

/* RESET MARGINS */
.pure_col:first-child { margin-left: 0; } /* all browsers except IE6 and lower */

/* COLUMN WIDTH ON DISPLAYS +768px */
@media ( min-width : 768px ) {
  .pure_span_1 { width: 1.25%; }
  .pure_span_2 { width: 5.5%; }
  .pure_span_3 { width: 9.75%; }
  .pure_span_4 { width: 14.0%; }
  .pure_span_5 { width: 18.25%; }
  .pure_span_6 { width: 22.5%; }
  .pure_span_7 { width: 26.75%; }
  .pure_span_8 { width: 31.0%; }
  .pure_span_9 { width: 35.25%; }
  .pure_span_10 { width: 39.5%; }
  .pure_span_11 { width: 43.75%; }
  .pure_span_12 { width: 48.0%; }
  .pure_span_13 { width: 52.25%; }
  .pure_span_14 { width: 56.5%; }
  .pure_span_15 { width: 60.75%; }
  .pure_span_16 { width: 65.0%; }
  .pure_span_17 { width: 69.25%; }
  .pure_span_18 { width: 73.5%; }
  .pure_span_19 { width: 77.75%; }
  .pure_span_20 { width: 82.0%; }
  .pure_span_21 { width: 86.25%; }
  .pure_span_22 { width: 90.5%; }
  .pure_span_23 { width: 94.75%; }
  .pure_span_24 { width: 100%; }
}

@media only screen and (max-device-width : 768px) {

  .pctrip-join {
    width: 98%;
    padding-left: 4%;
    padding-right: 4%;
  }

}

@media only screen and (max-width: 568px) {

  .pctrip-avatar {
    margin-right: auto;
    margin-left: auto;
  }

  .pctrip-name {
    padding: 0 40px;
    text-align: center;
  }

  .pctrip-register {
    padding: 0 40px;
    margin-bottom: 20px;
  }

  .pctrip-header.pure_col.pure_span_24 {
    margin-left: 0px !important;
    }
}

.pc-filter {

  &:first-of-type {

    .pc-filter-button {
      margin-top: 0 !important;
    }
  }
}

.pc-filter-button,
.pc-submit-filters,
.pc-reset-filters {
  display: block;
  border: none;
  cursor: pointer;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background-color: $actionBackgroundColor;
  margin-top: 12px;

  &.for-mobile {
    margin-top: 0 !important;

    @media (min-width: $md) {
      display: none;
    }
  }
}

.pc-trips-form-container input {
  box-sizing: border-box;
}

.pc-trips-form-container label strong,
.pc-trips-form-container input,
.pc-option-container > label > span,
.pc-filter-button,
.pc-submit-filters,
.pc-reset-filters {
  min-width: 150px;
  font-size: 14px;
  font-weight: bold;
  color: $textColor;
  text-transform: capitalize;

  &:not(span):not(strong) {
    padding: 6px;
  }
}

.pc-filters-mobile {
  display: none;
  margin-top: 12px;

  @media (min-width: $md) {
    display: block;
    margin-top: 0px;
  }
}

.pctrip-list-container.is-grid {
  display: flex;
  flex-direction: row;
  align-items: normal;
  flex-wrap: wrap;
  width: 100%;
  float: none !important;

  .pctrip-grid {

    &-column-container {
      display: flex;
      align-items: flex-start;
      justify-content: flex-start;
      flex-direction: column;
      width: 100%;
      max-width: 100%;

      &:not(:first-child):not(:last-child) {
        margin-top: 12px;
      }

      &:not(:nth-of-type(4)):not(:last-child) {
        border-bottom: 1px solid #eee;
        padding-bottom: 12px;
      }

      @media (min-width: $md) {
        max-width: 50%;
        border-bottom: none !important;

        &:nth-child(2) {
          margin-top: 0 !important;
        }

        &:nth-of-type(odd) {
          padding-right: 6px;
          border-right: 1px solid #eee;
        }

        &:nth-of-type(even) {
          padding-left: 6px;
        }

        &:nth-child(3),
        &:nth-child(4) {
          padding-bottom: 0 !important;
        }
      }

      @media (min-width: $lg) {
        max-width: 25%;
        margin-top: 0 !important;
        border-right: 1px solid #eee;
        padding-bottom: 0 !important;

        &:nth-of-type(2),
        &:nth-of-type(3) {
          padding-left: 6px !important;
          padding-right: 6px !important;
        }

        &:nth-of-type(4),
        &:last-child {
          border-right: none !important;
        }
      }
    }

    &-item {
      display: block;
      width: 100%;
      margin-bottom: 12px;

      &:last-child {
        margin-bottom: 0 !important;
      }
    }
  }
}