* {
  box-sizing: border-box;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
/*  height: 100vh;*/
  font-family: "Montserrat", sans-serif;
}

.wrapper {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
	max-width: 1024px;
}

/*
.card {
  width: 420px;
  height: 340px;
  margin: 1em;
  perspective: 1500px;
}*/

.sbtitle {
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0px;
  color: #dd322c;
  font-weight: 500;
  font-size: 16px;
}

.card {
  width: 322px;
  height: 300px;
  margin: .6em;
  perspective: 1500px;
}

.card .content {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.75, 0, 0.85, 1);
}

.more {
  display: none;
}
.more:checked ~ .content {
  transform: rotateY(180deg);
}

.front,
.back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  border-radius: 6px;
}
.front .inner,
.back .inner {
  height: 100%;
  display: grid;
  padding: 1.1em;
  transform: translateZ(80px) scale(0.94);
}

.front {
  background-color: #fff;
  background-size: cover;
  background-position: center center;
}
.front:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 6px;
  backface-visibility: hidden;
  background: linear-gradient(30deg, rgba(220, 204, 194, 0.3), rgba(220, 204, 200, 0.3));
 /* background: linear-gradient(40deg, rgba(236, 236, 236, 0.7), rgba(236, 236, 236, 0.7));*/
}
.front .inner {
  grid-template-rows: 5fr 1fr 1fr 2fr 1fr;
  justify-items: center;
}
.front h2 {
    grid-row: 2;
    margin-bottom: 0.3em;
    /*text-transform: uppercase;*/
    letter-spacing: 0px;
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    text-shadow: 0 0 6px rgba(56,63,69,0.60);
}

.front .rating {
  grid-row: 3;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  display: flex;
  flex-flow: row nowrap;
}
.front .rating i {
  margin: 0 1px;
}

.back {
  transform: rotateY(180deg);
  background-color: #fff;
  border: 2px solid #f0f0f0;
}
.back .inner {
  grid-template-rows: 1fr 2fr 1fr 2fr 14fr 1fr 1fr;
  grid-template-columns: repeat(4, auto);
  grid-column-gap: 0.8em;
  justify-items: center;
}
.back .info {
  position: relative;
  display: flex;
  align-items: center;
  color: #355cc9;
  grid-row: 3;
}
.back .info:not(:first-of-type):before {
  content: "";
  position: absolute;
  left: -0.9em;
  height: 18px;
  width: 1px;
  background-color: #ccc;
}
.back .info span {
  font-size: 2em;
  font-weight: 700;
}
.back .info i {
  font-size: 1.2em;
}
.back .info i:before {
  background: linear-gradient(40deg, #355cc9, #438af3);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
}
.back .info .icon {
  margin-left: 0.3em;
}
.back .info .icon span {
  display: block;
  margin-top: -0.25em;
  font-size: 0.8em;
  font-weight: 600;
  white-space: nowrap;
}
.back .description {
  font-family: "Montserrat", sans-serif!important;
  grid-row: 5;
  grid-column: 1/-1;
  font-size: 1.3em;
  border-radius: 5px;
  font-weight: 200;
  line-height: 1.2em;
  overflow: auto;
  color: #a85c4b;
  padding-right: 15px;
  padding-top: 20px;
	margin-top: -60px;
  height: 160px;
}

/*.back .description {
  font-size: 0.86em;
  font-weight: 400;
  line-height: 1.4em;
  color: #3f3f40;
  height: 218px;
}
*/


.price {
    font-size: 0.75em!important;
	font-weight: 400!important;
  color: #ea6060!important;
}

.back .location,
.back .price {
    font-weight: 300;
    color: #6E8E97;
    grid-row: 1;
    font-size: 1.4em;
}
.back .location {
  grid-column: 1/5;
  justify-self: left;
}
.back .price {
  grid-column: 4/-1;
  justify-self: right;
}
.back .button {
  grid-column: 1/-1;
  justify-self: center;
}

/*.button {
  grid-row: -1;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  cursor: pointer;
  display: block;
  padding: 0 1.5em;
  height: 3em;
  line-height: 2.9em;
  min-width: 3em;
  background-color: transparent;
  border: solid 2px #fff;
  color: #fff;
  border-radius: 4px;
  text-align: center;
  left: 50%;
  backface-visibility: hidden;
  transition: 0.3s ease-in-out;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}*/

.button {
    grid-row: -1;
    letter-spacing: 0px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    padding: 0 1.5em;
    height: 3em;
    line-height: 2.9em;
    min-width: 3em;
    background-color: rgba(245,244,242,0.80);
    /*  background-color: transparent;*/
    border: solid 2px #8dafb9;
    color: #72939D;
    border-radius: 60px;
    text-align: center;
    left: 50%;
    backface-visibility: hidden;
    transition: 0.3s ease-in-out;
    /*  text-shadow: 0 0 6px rgba(0, 0, 0, 0.3);*/
    margin-bottom: 0px;
}


.button:hover {
  background-color: #fff;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  text-shadow: none;
  color: #43485b;
}
.button.return {
  line-height: 3em;
  color: #8dafb9;
  border-color: #8dafb9;
  text-shadow: none;
	margin-bottom: 20px;
}
.button.return:hover {
  background-color: #6f86b1;
  color: #fff;
  box-shadow: none;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #859ddf;
}

::-webkit-scrollbar-thumb:hover {
  background: #355cc9;
}


/*---------------- CHECKBOXES -------------------- */


/* The container */
.container {
  display: block;
  position: relative;
  padding-left: 32px;
  margin-right: 12px;
  cursor: pointer;
  font-size: 15px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
	line-height: 2em;
	font-weight: 600;
	color: #3a4f70;
	display: inline-block;
}

/* Hide the browser's default checkbox */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
}

/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
  background-color: #e08686;
}

/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark {
  background-color: #DF6C6C;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}


/* The container B */
.containerb {
  display: block;
  position: relative;
  padding-left: 32px;
  cursor: pointer;
  font-size: 15px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
	line-height: 2em;
	font-weight: 600;
	color: #3a4f70;
	display: inline-block;
}

/* Hide the browser's default checkbox */
.containerb input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmarkb {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
}

/* On mouse-over, add a grey background color */
.containerb:hover input ~ .checkmarkb {
  background-color: #5B82BF;
}

/* When the checkbox is checked, add a blue background */
.containerb input:checked ~ .checkmarkb {
  background-color: #5B82BF;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmarkb:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.containerb input:checked ~ .checkmarkb:after {
  display: block;
}

/* Style the checkmark/indicator */
.containerb .checkmarkb:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}






