/**
Theme Name: Astra Child
Author: Jose Feria
Author URI: https://onez.com/
Description: José Féria real estate agency 
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* ========================
   GRID LAYOUTS
======================== */
.dark-blue {
  background: #144A68;
}

.lp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 991px) {
  .lp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .lp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lp-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 991px) {
  .lp-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .lp-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================
   LP CARD
======================== */
.lp-card img {
  width: 100%;
  height: auto;
  display: block;
}

.lp-card h3 {
  margin: 12px 0 8px;
  font-size: 1.1rem;
}

.lp-card time {
  display: block;
  font-size: .9rem;
  opacity: .8;
}

.lp-card-link {
  display: block;
  height: 100%;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.lp-card-link:hover article {
  background: #0f3a52;
}

/* ========================
   HERO SECTION
======================== */
.phero {
  color: #fff !important;
  text-align: center;
}

.hero-text {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.are-home-p {
  padding: 0 10px 30px 0;
}

/* ========================
   PHONE BUTTON
======================== */
.lisbonproperty-phone {
  border: 2px solid #4c7288;
  padding: 10px 3px 10px 10px;
  font-size: 18px;
  margin-left: 15px;
  border-radius: 25px;
  background: #144a68;
  color: #fff;
}

.lisbonproperty-phone-number {
  background: #fff;
  border: 1px solid #144a68;
  border-radius: 25px;
  padding: 6px 28px;
  text-underline-offset: 2px;
  color: #144a68;
  font-weight: 500;
  letter-spacing: 1px;
}

/* ========================
   WHATSAPP SECTION
======================== */
.are-home-whatsapp-h2 {
  font-size: 40px;
  font-weight: bold;
  line-height: 1;
  margin-top: 0;
  color: #fff !important;
  text-align: center;
}

.are-home-whatsapp-subtitle,
.are-home-whatsapp-subtitle-mobile {
  border: 1px solid #e4cd90;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #c8a95a;
  color: #fff;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3), 0 2px 4px rgba(255, 255, 255, 0.2);
  width: fit-content;
}

.are-home-whatsapp-subtitle {
  text-align: center;
  margin: 20px auto 0;
  padding: 0 30px;
}

.are-home-whatsapp-subtitle-mobile {
  text-align: left;
  margin: 0;
  padding: 0 20px;
}

.are-home-whatsapp-subtitle:hover,
.are-home-whatsapp-subtitle-mobile:hover {
  background: #b08b48;
  cursor: pointer;
}

.are-home-whatsapp-subtitle a,
.are-home-whatsapp-subtitle-mobile a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 20px;
}

.are-home-whatsapp-subtitle a {
  line-height: 3em;
}

.are-home-whatsapp-subtitle-mobile a {
  line-height: 1em;
  padding: 15px 0;
}

/* ========================
   PROPERTIES BUTTON
======================== */
.span-round-numbers {
  border-radius: 50px;
  background: #144a68;
  color: #fff;
  padding: 0 10px;
}

.are-button-properties,
.are-button-properties-mobile {
  border: 1px solid #e4cd90;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #c8a95a;
  color: #fff;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3), 0 2px 4px rgba(255, 255, 255, 0.2);
  width: fit-content;
}

.are-button-properties {
  font-size: 26px;
  margin: 50px 10px 0 auto;
  padding: 0 30px;
}

.are-button-properties-mobile {
  font-size: 20px;
  margin: 0;
  padding: 0 20px;
}

.are-button-properties:hover,
.are-button-properties-mobile:hover {
  background: #b08b48;
  cursor: pointer;
}

.are-button-properties a,
.are-button-properties-mobile a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 20px;
}

.are-button-properties a {
  line-height: 2em;
}

.are-button-properties-mobile a {
  line-height: 1em;
  padding: 15px 0;
}

/* ========================
   HEADINGS
======================== */
.are-home-h2 {
  font-size: 30px;
  text-align: center;
  font-weight: bold;
  line-height: 1.5em;
  margin-top: 0;
}

@media (max-width: 600px) {
  .are-home-h2 {
    font-size: 26px;
  }
}

.are-home-h1 {
  font-size: 30px;
  font-weight: normal;
  line-height: 1.5em;
  text-align: center;
  margin-top: 30px;
}

@media (min-width: 768px) and (max-width: 980px) {
  .are-home-h1 {
    font-size: 22px;
    text-transform: none;
  }
}

/* ========================
   SCROLL TEXT
======================== */
.scroll-text-wrapper {
  background: #144a68;
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 5px;
}

.scroll-text {
  display: inline-block;
  color: #fff;
  white-space: nowrap;
  animation: scroll 50s linear infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(50%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* ========================
   FOOTER
======================== */
.are-footer {
  background: #144a68;
  text-align: center;
  color: #fff;
}

.are-footer-ul {
  list-style: none !important;
}

.are-footer-h2 {
  color: #fff;
  font-size: 44px;
  font-weight: bold;
  line-height: 1;
}

@media (max-width: 768px) {
  .are-footer-h2 {
    font-size: 27px;
  }
}

.are-footer-h3,
.are-footer-h4 {
  color: #fff;
}

.are-footer-h4 {
  text-decoration: none;
  text-underline-offset: 4px;
  text-transform: uppercase;
  font-weight: bold;
}

#footer-bottom>div.are-footer h2,
#footer-bottom>div.are-footer h3,
#footer-bottom>div.are-footer h4 {
  color: #fff;
}

.are-footer-whatsapp {
  text-align: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.are-footer-whatsapp a {
  display: flex;
  align-items: center;
  color: #fff;
}

.are-footer-whatsapp img {
  margin-right: 8px;
}

.are-footer-websites {
  font-size: 12px;
  width: 80%;
  display: block;
  margin: auto;
}

/* ========================
   HEADER MOBILE NAV
======================== */
#mobile-link {
  display: block;
  background: #144a68;
  padding: 10px;
}

#mobile-link ul.nav {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 0;
  margin: 0 0 12px;
  list-style: none;
  gap: 10px;
}

#mobile-link li {
  flex: 1;
  text-align: center;
  padding: 10px 5px;
  width: 33%;
}

#mobile-link a {
  display: block;
  padding: 12px 8px;
  border-radius: 6px;
  background: #fff;
  color: #144a68;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.3;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  min-height: 60px;
  height: calc(2em * 2);
}

#mobile-link a:hover,
#mobile-link a:focus {
  background: #0e4664;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

#mobile-link li.main a {
  font-weight: 700;
  text-transform: uppercase;
  background: #c8a95a;
  color: #fff;
}

#mobile-link li.main a:hover {
  background: #b08b48;
}

#mobile-link li.son a {
  background: #f9f9f9;
  color: #144a68;
}

#mobile-link .active-condominiums a {
  background: #0e4664;
  color: #fff !important;
}

@media (max-width: 768px) {
  #mobile-link ul.nav {
    flex-direction: column;
    gap: 8px;
  }

  #mobile-link li {
    width: 100%;
  }
}

/* ========================
   VARIATIONS
======================== */
#mobile-link-condo li {
  padding: 10px 5px;
  width: 33%;
}

#mobile-link-condo a {
  font-size: 18px;
  color: #144a68;
  height: calc(1.3em * 2);
}

#mobile-link-2 li {
  padding: 10px 5px;
}

#mobile-link-2 a {
  font-size: 16px;
  color: #144a68;
  height: calc(1.3em * 2);
  width: 17vw;
}

#mobile-link-condo-2 li {
  padding: 10px 5px;
  width: 50%;
}

#mobile-link-condo-2 a {
  font-size: 16px;
  color: #144a68;
  height: calc(1.5em * 2);
}

#mobile-link-condo-4 li {
  padding: 10px 5px;
  width: 25%;
}

#mobile-link-condo-4 a {
  font-size: 16px;
  color: #144a68;
  padding: 35px 5px;
  height: calc(1.3em * 2);
}

/* ========================
   FOOTER NAV (mobile-link-4)
======================== */
#mobile-link-4 {
  display: block;
  margin-top: 20px;
}

#mobile-link-4 ul.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  margin: 0;
  list-style: none;
  align-items: stretch;
}

#mobile-link-4 ul.nav li {
  display: flex;
}

#mobile-link-4 ul.nav li a {
  display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 56px;
    width: 100%;
    line-height: 1.3;
    white-space: normal;
    padding: 10px 16px;
    border-radius: 4px;
    background: #c8a95a;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: all 0.25s ease-in-out;
}

#mobile-link-4 .son {
  text-transform: none;
  flex: 0 0 calc((100% - 60px)/4);
  max-width: calc((100% - 60px)/4);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  #mobile-link-4 .son {
    flex-basis: calc((100% - 20px)/2);
    max-width: calc((100% - 20px)/2);
  }
}

#mobile-link-4 ul.nav li a:hover,
#mobile-link-4 ul.nav li a:focus {
  background: #0e4664;
  color: #fff;
}

@media (max-width: 768px) {
  #mobile-link-4 ul.nav {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  #mobile-link-4 ul.nav li a {
    width: 100%;
    max-width: 280px;
  }
}

/* ========================
   PROPERTY BUTTONS
======================== */
.button-container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.property-button-city {
  font-size: 3em;
  color: #fecc00;
}

.property-button {
  flex: 1;
  background: #144a68;
  color: white;
  text-align: center;
  padding: 15px 15px 36px;
  border-radius: 5px;
  margin: 10px;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.3s ease;
}

.property-button:hover {
  background: #1b77b8;
}

.property-button.active {
  background: #2ea3f2;
}

/* ========================
   SINGLE HOMES TEMPLATE
======================== */
.lp-single-home {
  background: #fff;
  padding: 20px;
  margin: 0 auto;
  max-width: 960px;
  border: 1px solid #eee;
  border-radius: 8px;
}

.lp-single-home__image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.lp-single-home__title {
  font-size: 2rem;
  font-weight: bold;
  color: #144a68;
  margin-bottom: 20px;
  text-align: center;
}

.lp-single-home__content {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

.lp-single-home__footer {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
  color: #666;
}

.footer-disclaimer {
  margin: 0px;
  background: #144a68;
  padding: 10px;
}

.footer-disclaimer a, .are-footer a, .scroll-text-wrapper a{
  color: #93bdff;
}

/* ========================
     TABELA DE IMÓVEIS
======================== */
/* force a 3:2 visual crop */
.lp-thumb-32 {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.lp-thumb-32 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.table-intro {
  width: 100%;
  color: #2b739b;
  vertical-align: top;
  border-color: #dee2e6;
  border-collapse: collapse;
  border: 0 !important;
  padding-bottom: 40px;
  table-layout: fixed;
  font-size: 18px;
  line-height: 1.3em;
}

.table-intro td,
.table-intro th {
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom: 0;
}

.table-intro tbody tr:not(:last-child) td,
.table-intro tbody tr:not(:last-child) th {
  border-bottom: 1px solid #eee !important;
}

.table-striped>tbody>tr:nth-of-type(odd)>* {
  background: #fff;
  padding: 0.5rem 0.5rem;
}

.table-striped>tbody>tr:nth-of-type(even)>* {
  background: #fff;
  padding: 0.5rem 0.5rem;
}

td.text-end {
  text-align: right;
}

.latest-price {
  display: inline-block;
  float: right;
  color: #bd020a;
  font-weight: bold;
  white-space: nowrap;
  text-align: right;
}


.my-product-meta {
  width: 100%;
  color: #2b739b;
  font-size: 18px;
  line-height: 1.3em;
  border-collapse: collapse;
}

.my-product-meta span {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding: 0.5rem 0;
}

.my-product-meta .meta-ref::before {
  content: "Reference: ";
  font-weight: normal;
}

.my-product-meta .meta-area::before {
  content: "Interior area: ";
  font-weight: normal;
}

ul.products.columns-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

ul.products.columns-3 li.product {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

ul.products.columns-3 li.product img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}


ul.products.columns-3 li.product h3,
ul.products.columns-3 li.product .woocommerce-loop-product__title {
  margin: .5rem 0 .75rem;
}



/* Pagination container */
.products-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
  font-family: Arial, sans-serif;
  font-size: 15px;
}

/* Links style */
.products-pagination a,
.products-pagination span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  background-color: #f9f9f9;
  transition: all 0.2s ease-in-out;
}

/* Hover state */
.products-pagination a:hover {
  background-color: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

/* Current page */
.products-pagination .current {
  background-color: #0073aa;
  color: #fff;
  border-color: #0073aa;
  font-weight: bold;
  cursor: default;
}

/* Previous/Next arrows */
.products-pagination .prev,
.products-pagination .next {
  font-weight: bold;
}

/* Disabled arrows (when not clickable) */
.products-pagination .disabled {
  color: #aaa;
  border-color: #eee;
  background-color: #f5f5f5;
  cursor: not-allowed;
}



/* HOMES */

.products-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.product-item {
  flex: 1 1 calc(33.33% - 20px);
  /* 3 items per row */
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

}

.product-item a {
  text-decoration: none;
}

.product-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.product-item h3 {
  font-size: 16px;
  color: #333;
  min-height: 59px;
}


.products-list img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}


/* CSS FOR WOOCOMMERCE */

ul.products.columns-4 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.products.columns-4 li.product {
  flex: 1 1 calc(25% - 20px);
  box-sizing: border-box;
  border: 1px solid #eee;
  padding: 10px;
  background: #fff;
}

ul.products.columns-4 li.product a {
  display: block;
  text-decoration: none;
  color: inherit;
}

ul.products.columns-4 li.product img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

ul.products.columns-4 li.product h2,
ul.products.columns-4 li.product h3 {
  font-size: 1rem;
  margin: 0 0 10px;
  text-align: center;
}




/* DEVELOPMENTS */
.developments-list ul.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 20px 0;
  list-style: none;
}

.developments-list ul.nav li.son {
  flex: 1 1 auto;
  text-align: center;
}

.developments-list ul.nav li.son a {
  display: block;
  padding: 10px 15px;
  border-radius: 6px;
  background: #f8f8f8;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.developments-list ul.nav li.son a:hover {
  background: #e2e2e2;
  color: #000;
}

.developments-list ul.nav li.son.active a {
  background: #2c3e50;
  /* dark elegant background */
  color: #fff;
  /* white text */
  font-weight: 600;
}


/* Only apply on Development Page template */
.page-template-page-development .site-content .ast-container {
  display: block !important;
  width: 100%;
}