/**
*   Overwrite Browser Default Fields
*/
* {
  -webkit-appearance: none;
  -webkit-border-radius: 0px;
}

input,
select,
button {
  box-shadow: none;
}
input:focus,
select:focus,
button:focus {
  outline: none !important;
  border-color: #d0696e !important;
  /* box-shadow: 0 0 5px  ; */
}

input:disabled,
select:disabled {
  background-color: transparent;
}

select {
  background-image: linear-gradient(45deg, transparent 50%, #d0696e 50%),
    linear-gradient(135deg, #d0696e 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
select:focus {
  background-image: linear-gradient(45deg, #d0696e 50%, transparent 50%),
    linear-gradient(135deg, transparent 50%, #d0696e 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 20px) 50%;
  border-color: #d0696e;
  outline: 0;
}

/**
 * Eatbook Header.php CSS Changes
 * 2019-03-14
 * REMOVED due to theme issues
*/
/*
#logo,
#logo a,
ul#menu-eatbook-menu {
    display: inline-block;
    vertical-align: middle;
}

#nav-wrapper .menu li {
    display: inline-block;
    margin-right: 28px;
    position: relative;
}
*/
/**
 * EatBook Loading Spinner CSS
 * 2019-02-12
 */
.eb-loading {
  background: url(/wp-admin/images/spinner-2x.gif) no-repeat;
  opacity: 0.7;
  width: 40px;
  height: 40px;
  z-index: 99999;
  position: fixed;
  left: 50%;
  top: 50%;
}

/**
 * EatBook Search Query div CSS
 * 2019-02-13
 */
div#filtered.posts table {
  display: block;
}

form#searchQuery {
  width: 100%;
  display: block;
  align-items: center;
  padding: 0.1em;
  margin: 2em auto;
}

p.extra,
a.extra {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 0.5em;
  float: left;
  user-select: none;

  -webkit-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  -ms-user-select: none;
  -khtml-user-select: none;
}

a.mobile-extra {
  cursor: pointer;
  user-select: none;

  -webkit-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  -ms-user-select: none;
  -khtml-user-select: none;
}
a.mobile-extra:hover {
  color: #000;
  text-decoration: underline;
}

a.reset_options {
  font-size: 0.8em;
  margin-left: 0.5em;
  cursor: pointer;
  letter-spacing: 0.1em;
  color: #a43a3d;
}
a.reset_options:hover {
  color: #fb6b6b;
}

form#searchQuery .fields,
form#searchQuery .field {
  color: #000;
  display: block;
  width: 100%;
  margin-bottom: 1em !important;
  margin: 0 auto;
}

form#searchQuery .inline.fields {
  width: 100%;
  display: flex;
}

form#searchQuery .inline.fields .field {
  display: inline-block;
  letter-spacing: 0.05em;
  width: 100%;
}

form#searchQuery .searchBar.field {
  height: 3em;
  display: inline-flex;
}

form#searchQuery input[type="text"] {
  width: 100%;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.25);
  padding: 0 0 0 1em;
  height: inherit;
  font-family: "Lato", sans-serif;
  font-size: 15px;
}

input[type="text"]::placeholder {
  font-style: italic;
}

form#searchQuery select {
  width: 100%;
  border-color: rgba(0, 0, 0, 0.15);
  color: #d0696e;
  padding: 0.4em;
  background-color: transparent;
}

form#searchQuery button {
  width: 5em;
  height: 100%;
  color: white;
  background-color: #d0696e;
  border: none;
  height: inherit;
  font-family: "Lato", sans-serif;
  font-size: 15px;
}

form#searchQuery button i.search-desktop {
  display: block;
}

form#searchQuery button:hover {
  background-color: #a43a3d;
}

form#searchQuery input[type="select"] {
  width: 100%;
  border-color: rgba(0, 0, 0, 0.15);
  padding: 0.4em;
  color: #d0696e;
  text-transform: capitalize;
}

form#searchQuery .addressField {
  top: -1em;
  position: relative;
  color: #999;
  display: inline-flex;

  user-select: none;

  -webkit-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  -ms-user-select: none;
  -khtml-user-select: none;
}

form#searchQuery #changeLocation p {
  margin-left: 0.5em;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: underline;
}
form#searchQuery #changeLocation p:hover,
form#searchQuery #changeLocation:hover {
  color: #000;
  text-decoration: none;
}

form#searchQuery .addressField p#selected_address {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.05em;
  word-break: break-word;
  margin-left: 0.5em;
}

/**
*   Eatbook Tabs
*   2019-03-18
*/
.eb-nav-tab-wrapper {
  width: 100%;
  padding-top: 9px;
  line-height: inherit;
  display: inline-flex;

  margin-bottom: 1em;

  user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.eb-nav-tab {
  padding: 5px 10px;
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
  color: #969696;
  text-align: center;
  width: 100%;
}

.eb-nav-tab:focus,
.eb-nav-tab:hover {
  color: #555;
  border-bottom: 2px solid #eee;
  cursor: pointer;
}

.eb-nav-tab-active,
.eb-nav-tab-active:focus,
.eb-nav-tab-active:focus:active,
.eb-nav-tab-active:hover {
  color: #d0696e;
  box-shadow: none;
  background: none !important;
  border-bottom: 2px solid #d0696e;
  cursor: default;
}

/**
 * Eatbook Error Message
 * 2019-03-08
 */

.show_posts .error {
  margin: 1em auto;
}
.show_posts .error h2 {
  font-size: 150%;
}

.show_posts h3 {
  font-size: 120%;
}

.linebreak {
  content: "";
  border-top: 1px solid #111;
  width: 100%;
  margin: 1em auto;
}

.posts_divider {
  margin-bottom: 2em;
}

.posts_divider h2 {
  font-size: 150%;
}

/**
 * EatBook Table/Card/Div CSS
 * 2019-02-21
 */
.show_posts {
  text-align: center;
}

.post-card {
  position: relative;
  width: 99%;
  display: inline-grid;
  overflow: hidden;
  background-color: #fbfbfb;
}

.post-card .image-wrap {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  overflow: hidden;
}
.post-card .image-wrap a {
  display: block;
  position: relative;
  aspect-ratio: 300/157;
}

.post-card .image-wrap .top50-badge {
  position: absolute;
  bottom: 0;
  padding: 0.4em;
}

.post-card .image-wrap a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card .image-wrap svg {
  position: absolute;
  bottom: 10px;
}

.post-card .info-wrap {
  height: 150px;
  display: block;
  position: relative;
  padding: 1em;
}

.post-card .info-wrap .top {
  margin-top: 1em;
  text-align: left;
}

.post-card .info-wrap .category {
  margin-top: unset !important;
  overflow: hidden;
  display: block;
  line-height: 0em;
}

.post-card .info-wrap .category .cat-wrap {
  background: none;
  padding: 7px 4px 7px 0;
}

.post-card .info-wrap .title .cost {
  position: relative;
  display: inline-block;
  float: right;
}

.post-card .info-wrap .cost span.temp {
  color: #e6e6e6;
}

.post-card .info-wrap .cost span.actual {
  color: #339933;
}

.post-card .info-wrap .title {
  margin: 0.5em 0;
  clear: both;
  text-align: left;
}

.post-card .info-wrap .title a {
  color: #000;
  font-weight: 700;
  letter-spacing: 0.2px;
  width: 80%;
  display: inline-block;
  min-height: 40px;
}

.post-card .footer-meta {
  /* height: 24px; */
  padding: 0.5em 1em 1em;
  position: static;
}

.post-card .footer-meta span {
  font-size: small;
  font-weight: 900;
}

.post-card .footer-meta .date {
  float: left;
}

.post-card .footer-meta .distance {
  float: right;
}

/* NEW 2019-04-22 */
.post-card .eb-review-score {
  border-radius: 0;
  bottom: 10px;
  color: #fff;
  background-color: #d0696e;
  position: relative;
  float: right;
  padding: 3px 8px;
  display: inline-block;
}

/* BEF 2019-04-22 */
.post-card .review-total-only {
  top: unset !important;
  bottom: 10px;
  color: #fff;
  background-color: #d0696e;

  position: relative !important;
  top: unset !important;
  right: unset !important;
  float: right;
}

/**
 * EatBook Pagination CSS
 * 2019-02-14
 */

.eb-pagination {
  width: 100%;
  margin: 0 auto;
  padding: 1em 0;
  vertical-align: middle;
}

.eb-pagination a {
  display: inline-block;
  cursor: pointer;
}

.eb-pagination .page-numbers {
  width: 89%;
  margin: 0 auto;
  text-align: center;
  align-items: center;
  display: inline-block;
}

.eb-pagination .page-numbers a.page {
  border: 1px solid;
  padding: 8px 16px;
  margin: 0;
  cursor: pointer;
}

.eb-pagination a.next {
  float: right;
}

.eb-pagination a.previous {
  float: left;
}

.eb-pagination .page-numbers span i {
  padding: 8px 16px;
  margin: 0;
}
.eb-pagination .page-numbers a.page:hover,
.eb-pagination .page-numbers a.page.currentlyOn {
  background-color: #f2f2f2;
}

/**
*   Eatbook Search Bar Map Modal
*   2019-03-20
*/
.hidden {
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
}
.locationModal {
  background-color: white;
  position: fixed;
  z-index: 999999;
  border-radius: 10px;
  overflow: hidden;

  left: 0;
  margin: unset;
  top: 10%;
  width: 100%;
}

.locationModal h1,
.locationModal h2,
.locationModal h3,
.locationModal h4,
.locationModal h5 {
  text-align: center;
  padding: 1em;
}

.locationModal .field {
  width: 80%;
  margin: 0 auto;
}

.locationModal #getCurrentLoc {
  color: #999;
  -moz-user-select: none;
  -khtml-user-select: none;
  -webkit-user-select: none;
}

.locationModal #getCurrentLoc:hover {
  color: rgb(0, 0, 0);
}

.locationModal #map {
  width: 600px;
  height: 400px;
  margin: 0 auto;
}

.locationModal .field .bar {
  display: inline-flex;
  width: 100%;
  margin-bottom: 1em;
}
.locationModal #postal_code {
  width: -webkit-fill-available;
  padding: 1.5em;
  border: 1px solid #d0696e;
  border-radius: 0.5em 0 0 0.5em;
  display: block;
  border-right: none;

  -webkit-border-radius: 0.5em 0 0 0.5em;
  -moz-border-radius: 0.5em 0 0 0.5em;
  -o-border-radius: 0.5em 0 0 0.5em;
  -ms-border-radius: 0.5em 0 0 0.5em;
  -khtml-border-radius: 0.5em 0 0 0.5em;
}

.field button.addrSearchButton {
  background-color: #d0696e;
  color: #fff;
  border: none;
  padding: 0.5em 1em;
  border-radius: 0 0.5em 0.5em 0;
  float: right;

  -webkit-border-radius: 0 0.5em 0.5em 0;
  -moz-border-radius: 0 0.5em 0.5em 0;
  -o-border-radius: 0 0.5em 0.5em 0;
  -ms-border-radius: 0 0.5em 0.5em 0;
  -khtml-border-radius: 0 0.5em 0.5em 0;
}
button.addrSearchButton:hover {
  background-color: rgb(141, 67, 71);
}

#location-modal .closeModal {
  color: #cacaca;
  z-index: 1;
  position: absolute;
  right: 0;
  padding: 0 0.3em;
}
#location-modal .closeModal:hover {
  color: #959595;
}

.backCover {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

#modalLive.backCover {
  background-color: #000000a2;
}

#loaderLive.backCover {
  background-color: #ffffffa2;
}

/**
*   ALL MEDIA ADJUSTMENTS
* https://www.w3schools.com/cssref/css3_pr_mediaquery.asp
*/

@media screen and (min-width: 1440px) {
  form#searchQuery {
    width: 25%;
  }

  .container form#searchQuery {
    width: 50%;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1439px) {
  form#searchQuery,
  .container form#searchQuery {
    width: 50%;
  }
}

@media screen and (min-width: 992px) and (max-width: 1023px) {
  form#searchQuery,
  .container form#searchQuery {
    width: 80%;
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  form#searchQuery,
  .container form#searchQuery {
    width: 90%;
  }
}

@media screen and (max-width: 768px) {
  form#searchQuery .inline.fields {
    display: none;
  }

  form#searchQuery .inline.fields .field {
    display: block !important;
    padding-bottom: 0.05em;
  }

  form#searchQuery select {
    border: none !important;
  }
}

@media screen and (min-width: 1024px) {
  /* 4 columns */
  .post-card {
    width: 33%;
    margin-bottom: 30px;
  }
}

@media screen and (min-width: 992px) and (max-width: 1023px) {
  /* 3 columns - Tablet */
  .post-card {
    width: 33%;
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  /* 2 columns - Tablet */
  .post-card {
    width: 49%;
    margin-bottom: unset !important;
  }
}

@media screen and (min-width: 768px) {
  /* Mobile Size */
  .locationModal {
    top: 20%;
    left: 50%;
    margin-left: -20em;
    width: auto;
  }
}

/**
* for iPad screen size Issue
*  2019-03-25
*/
@media screen and (min-width: 961px) and (max-width: 1170px) {
  #logo,
  #logo a,
  ul#menu-eatbook-menu {
    display: inline-flex;
  }
  #nav-wrapper .menu li {
    margin-right: 1em !important;
  }
  form#searchQuery,
  .container form#searchQuery {
    width: 50%;
  }
  .post-card {
    width: 32%;
  }
  .locationModal {
    width: 100%;
  }
}
