@import '_scope-reset'

.locations-contain
  margin: 0 auto
.locations-contain--body
  max-width: 1000px
  //padding: 0 4%
.locations-contain--map
  max-width: none
  margin-bottom: 4%
  //padding: 0
.locations-contain--details
  max-width: 1300px

.locations-module-list
  display: flex
  flex-wrap: wrap
  justify-content: space-between
  margin-left: -5%
  user-select: none
.locations-module-list_item
  width: 50%
  padding-left: 5%
  margin-bottom: 2.5em // Note: flex horizontal spacing breaks with % on FF
  transition: all .15s ease

  &:hover
    cursor: pointer
    transform: scale(1.02)

@keyframes location-item-beacon
  0%
    opacity: 0
    transform: scale(0)
  30%
    opacity: 0
    transform: scale(0)
  60%
    transform: scale(1)
  65%
    opacity: 1
  100%
    opacity: 0
    transform: scale(1.8)

.location-item
  position: relative
  h3
    font-size: 1.1em !important
    line-height: 1.2em !important
    border: none !important
    margin: 0 0 0.5em 0 !important
    padding: 0 !important

.location-item_beacon
  display: inline-block
  width: 20px
  height: 20px
  vertical-align: middle
  border-radius: 15px
  position: relative
  margin-right: 5px
  margin-left: -5px
  &:after
    content: ' '
    width: 8px
    height: 8px
    border-radius: 5px
    background: red
    position: absolute
    margin: auto
    top: 0
    left: 0
    bottom: 0
    right: 0
    animation: location-item-beacon .8s linear infinite

.location-item_beacon--neutral
  &:after
    background: yellow

.location-item_beacon--float
  position: absolute
  margin-left: -25px

@media (max-width: 730px)
  .locations-module-list
    max-width: 400px
    margin-left: auto
    margin-right: auto
  .locations-module-list_item
    width: 100%
    padding-left: 0

@keyframes location-detail-in
  0%
    opacity: 0
    transform: translateX(30px)
  100%
    opacity: 1
    transform: translateX(0px)

.locations-detail
  overflow: hidden
  margin-bottom: 30px
  user-select: none
.js-location-container
  display: none
.locations-detail_back
  width: 10%
  float: left
  padding-left: 10px
  font-size: 80px
  line-height: 40px
  font-weight: 200
  transition: all .15s ease
  animation: location-detail-in .3s .5s ease-out backwards
  &:hover
    cursor: pointer
    transform: translateX(-10px) scale(1.03)
.locations-detail_location
  width: 40%
  float: left
  margin-bottom: 20px
  animation: location-detail-in .3s .3s ease-out backwards
  padding-right: 15px
.locations-detail_map
  width: 50%
  float: left
  margin-bottom: 20px
  animation: location-detail-in .3s ease-out backwards

@media (max-width: 980px)
  .locations-detail_back
    width: 100%
    float: none
    text-align: center
    max-width: 60px
    margin: 0 auto
    margin-bottom: 30px
  .locations-detail_location
    width: 100%
    float: none
    text-align: center
  .locations-detail_map
    width: 100%
    float: none

.locations-map-container
  position: relative
  max-height: 50vh
  overflow: hidden
  &:after
    content: ''
    display: block
    padding-bottom: 40%
  > iframe
    position: absolute
    top: 0
    left: 0
    width: 100%
    height: 100%
    z-index: 1
.locations-map-container--detail
  padding-bottom: 52.45%;
.locations-map
  background: rgba(0,0,0,0.2)
  position: absolute
  top: 0
  left: 0
  width: 100%
  height: 100%

.locations-center
  text-align: center

.locations-summary-item + .locations-summary-item
  padding-top: 1em
  &:before
    content: ''
    display: block
    border-top: 1px solid currentcolor
    margin-bottom: 1em
    opacity: 0.2

.locations-summary-horizontal-list
  display: flex
  flex-wrap: wrap
  justify-content: space-between
  margin-bottom: -2em
  margin-left: -2em
  box-sizing: border-box
  *
    box-sizing: border-box

.locations-summary-horizontal-list > .locations-summary-item
  flex-basis: 1
  flex-grow: 1
  flex-shrink: 0
  margin-bottom: 2em
  padding-left: 2em

.locations-summary-horizontal-list > .locations-summary-item + .locations-summary-item
  padding-top: 0
  &:before
    content: none

//reset
body .locations-summary-item a
  &, &:hover, &:active
    color: inherit
    text-decoration: none
    box-shadow: none
    cursor: pointer
    background: transparent
    display: inline
    padding: 0
    margin: 0
.locations-summary-addr-link
  border-bottom: 1px dotted currentcolor
.locations-summary-addr-link:hover
  border-bottom-style: solid

/*
 * List Layout
 */

// reset
body .foodtruck-list-item-text,
body h3.foodtruck-list-item-text,
body .foodtruck-list-item-text a,
body .foodtruck-list-item-text a:hover,
body .foodtruck-list-item-text a:active
  &
    color: inherit
    text-decoration: none
    box-shadow: none
    background: transparent
    //display: inline
    padding: 0
    margin: 0
    line-height: inherit
  &
    font-size: 1em
body .foodtruck-list-item-text,
body h3.foodtruck-list-item-text
  &--lg
    font-size: 1.2em

//Found above being overrided by .content h3:not(:first-child)
.foodtruck-list-item .foodtruck-list-item-text
  padding: 0!important
  margin: 0!important

.foodtruck-list-container
  user-select: none
  cursor: default

.foodtruck-list-items
.foodtruck-list-items_row
  position: relative
  z-index: 1
  padding: 4%
.foodtruck-list-items_row_bg
  position: absolute
  top: 0
  right: 0
  left: 0
  bottom: 0
  pointer-events: none
  z-index: -1
.foodtruck-list-items_line
  height: 1px

.foodtruck-list-item
  display: flex
  flex-wrap: wrap
  max-width: 1200px
  margin: 0 auto
.foodtruck-list-item_date
  width: 15%
.foodtruck-list-item_name
  padding-left: 4%
  width: 45%
.foodtruck-list-item_address
  padding-left: 4%
  width: 40%

@media (max-width: 900px)
  .foodtruck-list-item_date
    width: 30%
  .foodtruck-list-item_name
    width: 70%
  .foodtruck-list-item_address
    padding-top: .5em
    padding-left: calc(30% + 4%)
    width: 100%

@media (max-width: 550px)
  .foodtruck-list-item_date
    width: 100%
  .foodtruck-list-item_name
    padding-top: .5em
    padding-left: 0
    width: 100%
  .foodtruck-list-item_address
    padding-left: 0
    width: 100%

.foodtruck-list-item-addr-layout
  display: flex
  align-items: center
.foodtruck-list-item-addr-layout_icon
.foodtruck-list-item-addr-layout_details
  flex-grow: 1
  padding-left: 5%
.foodtruck-list-item-addr-layout_details_actions
  margin-left: -8%
  > *
    margin-left: 8%
    display: inline-block

.foodtruck-list-item-link
  opacity: 0.8
  transition: opacity .2s ease
.foodtruck-list-item-link:hover
  opacity: 1

.foodtruck-list-item-now
  padding-bottom: .2em

.foodtruck-list-item-time
  padding-top: .2em
