/*
 Theme Name:   Divi Child Theme
 Theme URI:    https://laumayo.com/
 Description:  Divi Child Theme
 Author:       Lau Mayo
 Author URI:   https://laumayo.com/
 Template:     Divi
*/
:root {
  --primary-color: #600000;
  --dark-gray: #595959;
  --light-gray: #eeeeee;
  --white: #ffffff;
  /* Select elements */
  --select-border: var(--dark-gray);
  --select-focus: #393939;
  --select-arrow: var(--select-border);

  --shadow: 0px 2px 8px rgba(0, 0, 0, 0.2);
}

/* Helper classes */
.capitalize {
  text-transform: uppercase;
}
.bold {
  font-weight: 600;
}
.bolder {
  font-weight: 800;
}
.text-undelined {
  text-decoration: underline;
}

.background-lightGray {
  background-color: #eee !important;
}

.colored-bullets li::marker {
  color: var(--primary-color) !important;
  margin-top: 1rem;
}

.object-fit img {
	object-fit: cover;
}

/* Menu */
.et_pb_menu--without-logo .et_pb_menu__menu > nav > ul > li {
  margin-top: 0px !important;
}
.et-menu .menu-item-has-children > a:first-child::after {
  top: 1rem !important;
}

.et_pb_menu .et-menu > li {
  padding-left: 0px !important;
  padding-right: 0px !important;
}

.et_pb_menu .et-menu-nav > ul ul {
  padding: 0.5rem 0 !important;
}
.nav li ul {
	width: 200px
}

.nav li li {
  line-height: 1.6em;
  padding: 0;
}
.et_pb_menu .et-menu-nav > ul ul > li a {
  padding: 0.5rem 0.8rem !important;
}
.et_pb_menu .et-menu-nav > ul ul > li a:hover {
  background-color: rgba(89, 89, 89, 0.3);
}

.main-menu a {
	transition: background .5s ease !important;
}
.main-menu a:hover {
  background-color: rgba(108,11,0,.1);
}

/* GENERAL FIXES ON SMALLER SCREENS */
@media only screen and (max-width: 980px) {
  .et_pb_menu__wrap {
    justify-content: flex-end !important;
  }
}

/* 
 * GLOSARIO 
 * 
 * 
 */
.container-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  margin: 1rem 0;
  min-height: 350px;
  column-gap: 1rem;
}
.container-grid .col-20 {
  grid-column-start: 1;
  overflow-y: scroll;
  height: 440px;
}
.container-grid .col-80 {
  grid-column: span 3;
}

.glosario-nav a,
.glosario-nav li {
  text-transform: uppercase;
  color: var(--primary-color);
}

.glosario-nav li {
  padding: 0.1rem 0.5rem 0;
}

.glosario-nav li.active {
  background-color: rgba(108, 11, 1, 0.2);
  font-weight: bold;
  line-height: 1.2;
}

.glosario-img {
  margin: 1rem 0;
  text-align: center;
}
.glosario-img img {
  width: 400px;
}
/* 
 * CPT ARCHIVE CARDS 
 * 
 * Todo: Mobile Styles
 * */

h4.widgettitle {
  color: var(--primary-color);
  font-size: 1.5rem;
  padding-bottom: 0;
}

.lau_cards {
  display: grid;
  grid-template-columns: 180px 1fr;
  grid-template-rows: auto;
  grid-gap: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: var(--white);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
	transition: filter .3s ease-in-out;
}
.lau_cards:hover {
	filter: brightness(90%);
}
.lau_img-container {
  height: auto;
}
.lau_img-container a {
  height: auto;
}
.lau_info-container {
  display: grid;
  grid-template-columns: 75% 1fr;
  grid-template-rows: auto 1fr;
  grid-gap: 0.25rem;
}
.lau_info-container h3 {
  font-size: 1.25rem;
  text-transform: uppercase;
}
.lau_info-container .location-text {
  font-size: 0.8rem;
  font-weight: 700;
}
.lau_info-container a {
  color: var(--primary-color);
}
.lau_info-container p {
  line-height: 1.2;
}
.lau_info-tags {
  padding: 0.5rem 0;
  grid-column: span 2;
  border-top: 1px solid #bbb;
  font-size: 0.8rem;
  line-height: 1.4;
}
sup {
  font-size: 0.7em;
}
@media only screen and (max-width: 930px) {
  .lau_info-container {
    grid-template-rows: auto auto 1fr;
  }
  .lau_info-title {
    grid-column: span 2;
  }
}

@media only screen and (max-width: 720px) {
  .lau_img-container {
    grid-column: span 2;
    height: auto;
  }
  .lau_img-container img {
    width: 100%;
    display: block;
    height: auto;
  }
  .lau_info-container {
    grid-column: span 2;
  }
  .lau_info-title {
    grid-column: span 1;
  }
}
@media only screen and (max-width: 540px) {
  .container {
    width: 90%;
  }

  .lau_info-title {
    grid-column: span 2;
  }
}

/* SINGLE CSS */
/* Divi Tabs */
.et_pb_tabs {
  border: none !important;
}
.et_pb_all_tabs {
  background-color: transparent !important;
}
ul.et_pb_tabs_controls {
  border: 1px solid #d9d9d9 !important;
}

ul.et_pb_tabs_controls::after {
  top: 1px !important;
}
.et_pb_tab {
  padding: 0 !important;
}

.container::before {
  content: none !important;
}

.container#inmueble {
  display: grid;
  grid-template-columns: 70% 1fr;
  gap: 1rem;
}

.post-title h1 {
  text-transform: uppercase;
  font-size: 1.5rem;
  font-weight: bold;
}
.post-title h2 {
  font-size: 1.24rem;
}

.post-title_pills {
  margin-bottom: 1rem;
}

.post-title_pills ul li {
  background-color: var(--white);
  padding: 0 0.5rem;
  margin-right: 0.5rem;
  border-radius: 4px;
  display: inline-block;
}

.post-price {
  align-self: center;
  justify-self: center;
}

.post-price h3 {
  font-size: 1.5rem;
}

.post-price h3 .price-text {
  font-size: 1.75rem;
}

.post-gallery {
  width: 100%;
}

.lau_gallery img {
  display: block;
  height: auto;
  width: 100%;
}

.post-form-container {
  grid-row: span 2;
}

.post-formulario {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 0.25rem;
  box-shadow: var(--shadow);
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 40px;
}
.post-formulario h3 {
  text-align: center;
  margin-bottom: 1rem;
}

.post-formulario .form-logo {
  display: block;
  width: 70%;
  margin: 0 auto;
  margin-bottom: 0.5rem;
}
.post-formulario .form-business-name {
  text-align: center;
  color: #000;
  font-size: 1.25rem;
}
.post-formulario .form-phone {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.post-formulario .cf7 p {
  padding-bottom: 0 !important;
}

.post-formulario input,
.post-formulario textarea {
  font-size: inherit;
  font-family: inherit;
  padding: 0.5rem 1rem;
  display: block;
  width: 100%;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
}
.post-formulario textarea {
  font-size: 0.85em;
  height: 6rem;
}
.post-formulario input[type='submit'] {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

#inmueble_contenido {
  display: grid;
  grid-template-columns: 65% 1fr;
  gap: 1rem;
  line-height: 1.2;
}

.post-table table {
  width: 100%;
  border: 1px solid #aaa;
  font-size: 0.8em;
}
.post-table table td {
  border-right: 1px solid #aaa;
  padding: 0.5rem;
}

.post-table table tr:nth-child(even) {
  background-color: var(--light-gray);
}

.post-table table td:first-child {
  font-weight: bold;
  color: var(--primary-color);
}

.extra_content {
  margin: 2rem 0;
}
.print-btn {
  display: block;
  width: 100%;
  background-color: var(--dark-gray);
  color: var(--white);
  margin: 1rem 0;
  padding: 0.5rem 2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0.25rem;
  line-height: 1.2;
}

@media only screen and (max-width: 980px) {
  .post-title,
  .post-price,
  .post-gallery,
  .post-form-container {
    grid-column: span 2;
  }
  #inmueble_contenido {
    grid-column: span 2;
  }
}

@media only screen and (max-width: 720px) {
  .container {
    width: 90%;
  }
  #inmueble_contenido .post-content,
  #inmueble_contenido .post-table {
    grid-column: span 2;
  }
  .post-title_pills li {
    margin-bottom: 1rem;
  }
}

/* SLICK STYLES SINGLE */
.lau_gallery .slick-slide {
  height: 400px;
  margin-bottom: 1rem;
}

.lau_gallery .slick-slide img {
  background-color: #222;
  height: 400px;
  object-fit: contain;
}

.lau-gallery .slick-next:hover,
.lau-gallery .slick-prev:hover {
  background-color: var(--white);
  border-radius: 50%;
  z-index: 1;
}

.lau_gallery .slick-prev {
  left: -10px;
  background-color: var(--white);
  border-radius: 50%;
  z-index: 1;
}
.lau_gallery .slick-next {
  right: -10px;
  background-color: var(--white);
  border-radius: 50%;
  z-index: 1;
}
.lau_gallery_nav .slick-slide {
  height: 62px;
  cursor: pointer;
}

.lau_gallery_nav .slick-slide img {
  height: 60px;
  /* object-fit: contain; */
}
.lau_gallery_nav .slick-current {
  border: 1px solid var(--primary-color);
}
.lau_gallery_nav .slick-slide {
  margin: 0 0.5rem;
}
@media only screen and (max-width: 720px) {
  .lau_gallery .slick-slide {
    height: auto;
    margin-bottom: 1rem;
  }

  .lau_gallery .slick-slide img {
    height: auto;
    object-fit: none;
  }
}

/* Styles from feature shortcode */
/* SLICK STYLES the slides */
.lau-featured_card-container .slick-slide {
  margin: 0 0.75rem;
}

.slick-dots {
  bottom: -48px;
}
.slick-prev::before,
.slick-next::before {
  color: var(--primary-color);
}
/* CARD STYLES */
.lau-featured_card-container {
  text-align: center;
}

.lau-featured_card {
  background-color: var(--white);
  border-radius: 0.5rem;
	transition: filter .3s ease-in-out;
	box-shadow: var(--shadow);
}
.lau-featured_card:hover {
  filter: brightness(90%);
}

.lau-featured_cat {
  color: var(--white);
  background-color: var(--dark-gray);
  text-transform: uppercase;
  padding: 0.5rem 0;
  border-radius: 0.5rem 0.5rem 0 0;
  letter-spacing: 1px;
  font-size: 1.2rem;
}

.lau-featured_card img {
  display: block;
  height: auto;
  width: 100%;
}
.lau-featured_info {
  padding: 1rem;
  min-height: 10rem;
}
.lau-featured_info h3 {
  text-transform: uppercase;
  font-size: 1.5rem;
}
.lau-featured_info .prop-type {
  font-size: 1.25rem;
}
.lau-featured_info .price {
  font-size: 1.75rem;
}

.lau-button {
  display: block;
  padding: 0.5rem;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 0 0 0.5rem 0.5rem;
}

/* Search in frontpage */
#search_container {
  text-align: center;
}

#search_container form {
  display: inline-flex;
  padding: 0.75rem 1.5rem;
  background-color: rgba(108, 11, 1, 0.4);
  border-radius: 0.5rem;
  justify-content: center;
  align-items: center;
}

#search_container select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  border: none;
  padding: 0 1em 0 0;
  margin: 0;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  cursor: inherit;
  line-height: inherit;
  z-index: 1;
  outline: none;
}

#search_container select::-ms-expand {
  display: none;
}

#search_container .select {
  display: grid;
  grid-template-areas: 'select';
  align-items: center;
  position: relative;
  min-width: 15ch;
  max-width: 30ch;
  border: 1px solid var(--select-border);
  border-radius: 0.25em;
  padding: 0.25em 0.5em;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1.1;
  background-color: #fff;
  background-image: linear-gradient(to top, #f9f9f9, #fff 33%);
  margin-right: 1rem;
}

#search_container .select select,
#search_container .select::after {
  grid-area: select;
}

#search_container .select::after {
  content: '';
  justify-self: end;
  width: 0.6em;
  height: 0.35em;
  background-color: var(--select-arrow);
  clip-path: polygon(100% 0%, 0 0%, 50% 100%);
}

#search_container select:focus + .focus {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border: 2px solid var(--select-focus);
  border-radius: inherit;
}
#search_container option:hover {
  background: #00aaff;
  color: var(--white);
}

#search_container input[type='submit'] {
  font-size: 1rem;
  border: none;
  letter-spacing: 0.5px;
  padding: 0.5rem 1.25rem;
  border-radius: 0.25rem;
  color: var(--white);
  text-transform: uppercase;
  background-color: var(--primary-color);
  cursor: pointer;
}
#search_container input[type='submit']:hover {
  background-color: #960e00;
}
@media only screen and (max-width: 880px) {
  #search_container form {
    display: flex;
    flex-wrap: wrap;
  }
  #search_container .select {
    margin-bottom: 1rem;
    min-width: 12ch;
    max-width: 48%;
    width: 100%;
  }
  #search_container .select#category {
    margin-right: 0;
  }

  #search_container input {
    width: 100%;
  }
}

@media only screen and (max-width: 650px) {
  #search_container .select,
  #search_container input {
    max-width: 100%;
  }
  #search_container .select {
    margin-bottom: 1rem;
    margin-right: 0;
  }
}

.print {
  display: none;
}

/* Top Controls */
.archive_controls {
  display: flex;
  align-items: center;
}

#sortby {
  width: 50%;
  text-align: right;
  margin-bottom: 30px;
}

/* Page Navigation */
.top-pagination {
  width: 50%;
}

.top-pagination .wp-pagenavi {
  text-align: left;
}

.wp-pagenavi {
  border-top: none;
}
.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink {
  color: var(--primary-color) !important;
}

.wp-pagenavi a,
.wp-pagenavi span {
  text-decoration: none;
  border: 1px solid var(--primary-color) !important;
  padding: 5px 8px;
  margin: 0;
  margin-right: -1px;
  color: var(--primary-color);
}

.wp-pagenavi a:hover {
  color: var(--dark-gray) !important;
}

.wp-pagenavi span.current {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  font-weight: bold !important;
}
