:root {
  --color-primary: var(--e-global-color-primary, #1b1834);
  --color-secondary: var(--e-global-color-secondary, #de2722);
  --color-tertiary: #B3979B;
  --color-accent: var(--e-global-color-primary, #00205B);
  --bg-color: #F6F2EE;
  --box-shadow: 0 12px 32px -12px rgba(0, 32, 91, 0.25);
}

.no-results {
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bleed {
  clip-path: inset(0 -100vmax);
}

.bleed.bleed--primary-bg {
  box-shadow: 0 0 0 100vmax var(--color-primary);
}

.bleed.bleed--gray-bg {
  box-shadow: 0 0 0 100vmax var(--bg-color);
}

.archive__title {
  margin-block: 1em;
}

.search-filters {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-block: 3rem;
  background-color: var(--bg-color);
}

.search-content {
  padding-block: 5rem;
}

.search__fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.search__field {
  flex: 1 1 100%;
}

.search__field .search__field__select {
  padding: 0;
  position: relative;
}

.search__field__select::after {
  content: "";
  position: absolute;
  top: 48%;
  right: 20px;
  display: block;
  width: 8px;
  height: 8px;
  margin: -5px -5px 0 0;
  border-right: 1px solid var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
  transform-origin: right bottom;
  transform: translateX(-5px) rotate(45deg);
  pointer-events: none;
}

.search__field select.form__select {
  width: 100%;
  min-width: 250px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 0;
  color: #000;
  background: #fff;
}

.cards {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 40px;
  padding: 2rem 0;
}

.card {
  width: 100%;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
  padding: 0;
  box-shadow: var(--box-shadow);
}

.card__inner {
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0;
  background-color: white;
}

.card__photo {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 10px;
}

.card__image {
  width: 100%;
  max-width: none;
  height: auto;
  max-height: 350px;
  margin: 0;
  padding: 0;
  object-fit: cover;
  transition: all 0.3s;
  aspect-ratio: 4/3;
  box-shadow: var(--box-shadow);
}

.card__detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

.card__status,
.card__price {
  font-family: var(--e-global-typography-primary-font-family), Sans-serif;
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
}

.card__title {
  font-family: var(--e-global-typography-primary-font-family), Sans-serif;
  color: var(--color-secondary);
  font-size: 20px;
  font-weight: 700;
}

.details {
  display: flex;
  flex-direction: column;
  margin-block: 1rem;
  gap: 8px;
}

.details__item {
  display: flex;
  align-items: center;
  font-size: 18px;
}

.details__item svg {
  fill: var(--color-tertiary);
  color: var(--color-tertiary);
  width: 30px;
  height: 30px;
}

.details__value {
  font-weight: 700;
  padding: 0 0.25rem 0 1rem;
}

.card__detail .card__button,
.contact__button {
  align-self: flex-start;
  font-weight: 800;
  font-size: 20px;
}

.vem-button {
  display: flex;
  align-items: center;
  padding: 0.25rem 1.75rem;
  background-color: transparent;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

a.vem-button--primary {
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

a.vem-button--secondary {
  color: #fff;
  border: 1px solid #fff;
}

a.vem-button--secondary:hover {
  color: var(--color-primary);
  background-color: #fff;
}

.pagination.infinite-results {
  display: flex;
  justify-content: center;
  padding-top: 5rem;
}

.pagination.infinite-results a {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
}

@media (min-width: 768px) {
  .search-filters {
    flex-direction: row;
  }

  .search__fields {
    flex: 1;
    flex-wrap: initial;
    justify-content: space-around;
  }

  .search__field {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: initial;
  }

  .card__inner {
    flex-direction: row;
  }

  .card__photo {
    flex: 0 1 50%;
  }
}

@media (min-width: 1024px) {
  .cards {
    gap: 80px;
  }

  .card {
    box-shadow: none;
  }

  .card__inner {
    align-items: center;
  }

  .card__photo {
    padding: 0;
    margin: -25px 0px -25px 0px;
  }

  .card__detail {
    padding-inline: 4rem;
    box-shadow: var(--box-shadow);
  }
}

.single__block {
  padding-block: 4rem;
}

.single__block .single__block__title {
  font-weight: 700;
}

.single__row {
  display: flex;
  flex-direction: column;
}

.single__row + .single__row {
  padding-top: 1em;
}

.single__column {
  flex: 49%;
}

.single__column + .single__column {
  padding-left: 2%;
  padding-top: 5%;
  align-self: flex-start;
}

.photos {
  position: relative;
  padding: 0;
  margin: 0 auto;
  max-width: 1400px;
}

.photos__grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 18px 18px;
}

@media (min-width:768px) {
	.photos__grid {
	  display: grid;
	  grid-template-columns: repeat(1, minmax(0, 1fr));
	  gap: 40px 18px;
	}
}

.photos__grid__item {
  display: grid;
  position: relative;
}

.photos__grid__item .photos__image,
.photos__grid__item .single__heading {
  grid-row: 1;
  grid-column: 1;
}

.photos__image,
.single__video {
  position: relative;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  cursor: pointer;
  aspect-ratio: 16 / 11;
}

.single__video {
  box-shadow: var(--box-shadow);
}

.photos .photos__grid__item:first-child {
  height: 65vh;
}

@media (min-width:768px) {
	.photos .photos__grid__item:first-child {
  		height: 85vh;
	}
}

.photos .photos__grid__item:not(:first-child) {
  display: none;
}

.single__heading {
  position: absolute;
  bottom: 2rem;
  left: 1rem;
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  z-index: 10;
}

.single__heading h1 {
	font-size:2rem;
}

@media (min-width:768px) {
	.single__heading {
		bottom: 4rem;
		left: 4rem;
	}
	
	.single__heading h1 {
		font-size:2.5rem;
	}
}

.single__heading .single__title,
.single__heading .single__price {
  font-weight: 800;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.single__heading .single__price {
  margin-top: 1rem;
  text-transform: uppercase;
}

.single__heading .single__status {
  align-self: flex-start;
  font-weight: 700;
  color: #fff;
  background-color: var(--color-secondary);
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.description {
  margin-bottom: 40px;
}

.description__content:not(.toggler) p:nth-child(n + 3) {
  display: none;
}

.single__block__more {
  font-weight: 600;
  color: var(--color-accent);
  display: inline-block;
  margin-top: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease-out, border 0.3s ease-out,
    color 0.3s ease-out, fill 0.3s ease-out;
}

.description .single__block__more {
  padding-top: 4px;
  border-top: 1px solid var(--color-accent);
}

.single__block__more__text {
  position: relative;
  padding-right: 1.25rem;
  pointer-events: none;
}

.single__block__more__text::after {
  content: "\f078";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  padding-left: 4px;
}

.single__block__more__text.active::after {
  content: "\f077";
}

.single__block.characteristics {
  background-color: var(--color-primary);
  padding-block: 1rem;
}

.characteristics__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2em;
  padding-bottom: 3em;
}

.characteristics__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.characteristics__item img {
  height: 2rem;
  width: auto;
}

.characteristics__logo {
  position: relative;
  padding-inline: 1rem;
}

.characteristics__logo::before {
  content: "";
  position: absolute;
  inset: 0;
  margin-top: -5rem;
  background-color: var(--color-primary);
  -webkit-clip-path: polygon(
    38.42% 4.94%,
    61.22% 4.96%,
    115.8% 48.68%,
    100% 70%,
    70% 100%,
    30% 100%,
    -24.63% 78.79%,
    -28.54% 59.66%
  );
  clip-path: polygon(
    38.42% 4.94%,
    61.22% 4.96%,
    115.8% 48.68%,
    100% 70%,
    70% 100%,
    30% 100%,
    -24.63% 78.79%,
    -28.54% 59.66%
  );
  z-index: 10;
}

.characteristics__logo img {
  position: relative;
  z-index: 20;
  height: 10rem;
  margin-top: -4rem;
}

.characteristics__value {
  margin-top: 1rem;
  color: #fff;
}

.table__grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 3em;
}

.table {
  display: table;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0;
}

.table__title {
  font-weight: 700;
  color: #fff;
  margin-bottom: 1em;
  text-transform: uppercase;
}

.table__row {
  display: table-row;
  border-bottom: 1px solid #fff;
}

.table__row:not(:first-child) {
  border-top: 1px solid #fff;
}

.table__cell {
  color: #fff;
  display: table-cell;
  padding: 11px 0;
}

.table__cell + .table__cell {
  text-align: right;
}

.table__grid:not(.toggler) .table__group {
  display: none;
}

.characteristics .single__block__more {
  width: 100%;
  text-align: center;
  color: #fff;
  border-top: 1px solid #fff;
  padding-top: 1rem;
}

.location__subtitle {
  font-weight: 700;
  color: var(--color-secondary);
  text-align: center;
  margin-bottom: 1rem;
}

.location__subtitle::before {
  content: "\f3c5";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  padding-right: 4px;
}

.single__block.contact {
  background-color: var(--bg-color);
  padding: 0;
  margin-block: 3em 5em;
}

.contact__card {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.contact__details,
.contact__photo {
  grid-row: 1/2;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  grid-column: 2/6;
  align-self: center;
  padding-inline: 2rem;
  padding-block: 4rem;
  background-color: var(--color-primary);
  color: #fff;
  z-index: 20;
}

.contact__details h3 {
  color: #fff;
  font-weight: 800;
}

.contact__details .contact__button {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  padding: 0.5rem 4rem;
}

.contact__photo {
  grid-column: 1/-1;
  box-shadow: var(--box-shadow);
  margin: -25px 0px -25px 0px;
}

@media (min-width: 480px) {
  .photos__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .photos .photos__grid__item {
    grid-column: span 6;
  }

  .photos .photos__grid__item {
    overflow: hidden;
  }

  .photos .photos__grid__item:first-child {
    grid-column: span 12;
  }

  .photos .photos__grid__item:nth-of-type(n + 2) {
    display: unset;
  }

  .photos .photos__grid__item:nth-of-type(n + 5) {
    display: none;
  }

  .media {
    padding: 20px 0;
    gap: 50px;
  }
}

@media (min-width: 640px) {
  .table__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .photos .photos__grid__item {
    grid-column: span 3;
    
  }

  .photos .photos__grid__item:nth-of-type(n + 5) {
    display: unset;
  }

  .photos .photos__grid__item:nth-of-type(n + 6) {
    display: none;
  }
	
  .single__row {
    flex-direction: row;
  }

  .single__column + .single__column {
    padding-top: 0;
  }

  .contact__details {
    grid-column: 1/4;
  }

  .contact__photo {
    grid-column: 3/-1;
  }
}

@media (max-width:767px) {
	.photos__grid .photos__grid__item:nth-of-type(2),
	.photos__grid .photos__grid__item:nth-of-type(3) {
		display:none;
	}
}

.photos__all-media {
    position: relative;
    grid-area: stack;
    display: grid;
    justify-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    max-width: 200px;
    text-align: center;
    pointer-events: none;
}

.photos__grid .photos__grid__item {
	background-color: #000 !important;
}
.photos__grid .photos__grid__item:nth-of-type(4),
.photos__grid .photos__grid__item:nth-of-type(5) {
    display: grid;
    grid-template-areas: "stack";
    place-items: center;
}
  
.photos__grid__item:nth-of-type(4) > img,
.photos__grid__item:nth-of-type(5) > img {
    grid-area: stack;
    opacity: 0.6;
    transition: all 0.2s ease-out;
}
  
.photos__grid__item:nth-of-type(4) > img:hover,
.photos__grid__item:nth-of-type(5) > img:hover {
    opacity: 0.8;
}

/* Google Maps */

.search-map {
  margin: 0 0.5em 2em 0.5em;
  padding: 69px 0;
}

#google-map,
#google-streetview {
  width: 100%;
  height: 600px;
  box-shadow: var(--box-shadow);
}

/* Info Windows */
#google-map .gm-style-iw a {
  font-size: 120%;
  font-weight: bold;
  text-decoration: none;
}

#google-map .gm-style-iw img {
  float: left;
}

#google-map .gm-style-iw .address {
  float: left;
  margin-left: 1em;
  min-width: 200px;
  line-height: 1.5;
}

/* View helpers */

.search-content .visible-map,
.search-content.map .hidden-map {
  display: none;
}

.search-content.map .visible-map {
  display: block;
}

/* Loading View styles */

.search-load-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.8);
  display: none;
}

.search-loading .search-load-overlay {
  display: block;
}

.search-loading .results-container {
  -webkit-filter: blur(2px);
  filter: blur(2px);
}

.fancybox__container .carousel__button {
  color: #fff;
  border-color: transparent;
  background-color: transparent;
  padding: 0;
}

.fancybox__container .carousel__button:hover,
.fancybox__container .carousel__button:focus {
  color: var(--color-primary);
  border-color: transparent;
  background-color: transparent;
}

.photos__all-media.photos__floorplan img {
	padding:23px;
}