/* Hero Section */
.hero {
    background-image: url('images/fondo_home.jpg');
    background-size: cover;
    background-position: bottom center;
    height: 450px;
    display: flex;
    align-items: end;
    justify-content: center;
    position: relative;
    padding-bottom: 80px;
  }

.logo{
    width:280px;
}
.hero.busqueda {
    background-image: url('images/fondo_home.jpg');
    background-size: cover;
    background-position: center center;
    height: 150px;
    display: block;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top:0px;
}
.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    padding-top:10px;
    color:#D2CBB1;
    padding-bottom:10px;
}
.hero h1 span{
  font-size: 3rem;
  font-weight: bold;
  color:#93722D;
}
@media (max-width: 1000px) {
    .hero h1 {
      padding-bottom:0;
      font-size: 2rem !important;
    }
    .hero h1 span{
      font-size: 2rem;
      font-weight: bold;
      color:#93722D;
  }
  }

.servicios strong{
    color:#93722D;
    font-size: 1.2rem;
line-height: 50px;
}
.hero img {
    width: 200px;
    position: absolute;
    bottom: -60px;
    margin: 0 0 0 -100px !important;
    padding: 0;
    height: 130px;
    left: 50%;

  }
/* Search Form */
.search-form{
    margin-top:40px;
}

.search-form .form-select,
.search-form .form-control,
.search-form .btn {
    margin-bottom: 10px;
    border: 1px solid black;
    line-height: 1.8rem;
}

/* Featured Properties */
.featured-properties .card {
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: #000 !important;
    color: #fff;
    padding: 20px 0;
}

/* Navbar */
.navbar-dark {
    width: 100vw;
    position: absolute;
    top: 60px;
    z-index: 400;
    background-color: black !important;
    padding: 0;
    text-transform: uppercase;
    font-weight: 600;
    width: 99vw;
}

.navbar-nav .nav-item {
    flex: 1;
    position: relative; /* Ensures dropdowns stay within their parent */
}

.navbar-nav .nav-link {
    color: #93722D;
}

.navbar-nav .nav-link:hover {
    color: #fff;
}
@media (min-width: 992px) {
    .navbar-nav .nav-item:nth-child(6) {
        background: #93722D;
    }

    .navbar-nav .nav-item:nth-child(6) .nav-link{
        color: #000000;
    }
}

/* Dropdown Menu */
.dropdown-menu {
    background-color: rgb(26 23 27) !important;
    border-radius: 0px;
    padding: 0;
    display: none;
    position: absolute;
    left: 0;
    top: 100%; /* Adjusted to align directly under the parent */
}

.dropdown-menu a.dropdown-item {
    color: #93722d;
    padding: 0.5rem 1rem;
    --bs-dropdown-link-active-bg: #5d6049 !important;
}

.dropdown-menu a:hover, .dropdown-item:focus, .dropdown-item:hover {
    color: #fff;
    background:#000 !important;
    padding: 0.5rem 1rem;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

/* Responsive Adjustments */
@media (min-width: 992px) {
    .navbar-nav {
        width: 100%;
    }

    .navbar-nav .nav-item:nth-child(-n+4) {
        flex: 0 0 13%; /* 25% of 50% = 12.5% each */
    }

    .navbar-nav .nav-item:nth-child(4) {
        flex: 0 0 13%; /* 60% of 50% = 30% */
    }
    .navbar-nav .nav-item:nth-child(5) {
        flex: 0 0 26%; /* 60% of 50% = 30% */
    }

    .navbar-nav .nav-item:nth-child(6) {
        flex: 0 0 13%; /* 40% */
    }
}

@media (max-width: 1023px) {
    .navbar-nav .nav-item {
        flex: 1;
    }
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: var(--bs-navbar-nav-link-padding-x);
        padding-left: 20%;
    }
}

@media (min-width: 1200px) {
    .navbar-expand-lg .navbar-nav .dropdown-menu {
      position: absolute;
      width:80%;
      margin-left: 14%;
    }
    .navbar-expand-lg .navbar-nav .dropdown-menu a{
        padding-left:10%;
    }
  }



@media (min-width: 992px) and (max-width: 1399px) {

        .navbar-expand-lg .navbar-nav .nav-link {

        font-size:12px !important;    
        
        }
        
        .logo{
            width:170px !important
            
        }
        
            .navbar-nav .nav-item:nth-child(-n+4) {
        flex: 0 0 16%; /* 25% of 50% = 12.5% each */
    }

    .navbar-nav .nav-item:nth-child(4) {
        flex: 0 0 20%; /* 60% of 50% = 30% */
    }
    .navbar-nav .nav-item:nth-child(5) {
        flex: 0 0 22%; /* 60% of 50% = 30% */
    }

    .navbar-nav .nav-item:nth-child(6) {
        flex: 0 0 15%; /* 40% */
    }
    
}

  /*************************/

  .property-card {
    position: relative;
    margin-bottom: 5px;
}

.property-status {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #93722D;
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    z-index: 2;
    border-radius: 5px;
}

.property-details {
    padding: 15px;
    background-color: #fff;
}

.property-details h5 {
    font-size: 1.2em;
    margin: 0;
    color: #2e2e17;
    font-weight: bold;
  }

  .property-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-weight: 600;
}

.carousel-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

@media (max-width: 576px) {
    .carousel-item img {
        height: 200px;
    }
}

.bg-dark {
  --bs-bg-opacity: 1;
  background-color: rgb(26 23 27) !important;
}

  .contacto .bi{
    color:#93722D;
    font-size:1.4em;
    padding:0 10px 0 0;
  }

  .contacto p{
    margin:0;
  }


  .form-floating > label {
    position: absolute;
    top: 0;
    left: 10px;
    z-index: 2;
    height: 100%;
    padding: 1rem .75rem;
    overflow: hidden;
    text-align: start;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    border: var(--bs-border-width) solid transparent;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out,transform .1s ease-in-out;
  }

  .query-busqueda{
    background-color: rgb(211, 211, 179);
    border-radius: 5px;
    display: inline-block;
  }

.query-busqueda h6{
    font-size: 16px;
    font-weight: bold;
}

.query-busqueda h6 span{
    margin: 0 8px;
}
  .query-busqueda h6,.query-busqueda input,.search-form .btn{
    display: inline-flex;
    margin:0 !important;
    line-height:2.7rem;
  }



.slogan {
    text-align: center;
    position: relative;
    margin: 40px auto 0;
}

.titulo-b{
    text-align: center;
    position: relative;
    margin: 40px auto 0;
}

.slogan:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 2px;
    background-color: #a67c00; /* Color dorado */
    z-index: 1;
}

.titulohome .slogan h2 {
    display: inline-block;
    position: relative;
    padding: 0 20px;
    background-color: #a67c00; /* Fondo blanco detrás del texto */
    z-index: 2;
    font-size: 1.8rem;
    color: #000; /* Color dorado */
    font-weight: bold;
    border-radius: 8px;
}

@media (max-width: 768px) {
.titulohome .slogan h2 {
  display: inline-block;
  position: relative;
  padding: 0 20px;
  background-color: #a67c00;
  z-index: 2;
  font-size: 1.8rem;
  color: #000;
  font-weight: bold;
  border-radius: 8px;
  font-size: 20px;
}
}

.slogan h2 {
  display: inline-block;
  position: relative;
  padding: 0 20px;
  background-color: #fff; /* Fondo blanco detrás del texto */
  z-index: 2;
  font-size: 1.8rem;
  color: #a67c00; /* Color dorado */
  font-weight: bold;
}

.titulo-b:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 2px;
    background-color: #111; /* Color dorado */
    z-index: 1;
}

.titulo-b h2 {
    display: inline-block;
    position: relative;
    padding: 0 20px;
    background-color: #fff; /* Fondo blanco detrás del texto */
    z-index: 2;
    font-size: 1.8rem;
    color: #111; /* Color dorado */
    font-weight: bold;
}

.hero .slogan h2 {
    display: inline-block;
    position: relative;
    padding: 10px 20px;
    background-color: #a67c00; /* Fondo blanco detrás del texto */
    z-index: 2;
    font-size: 1.8rem;
    color: #000; /* Color dorado */
    font-weight: bold;
    border-radius:8px;
}

@media (max-width: 768px) {
    .slogan:before {
        left: 10%;
        right: 10%;
    }

    .slogan h2 {
        padding: 0 10px;
        font-size: 1.5rem;
    }
}


.text-bg-dark {
    color: #fff !important;
    background-color: RGB(6, 6, 6) !important;
  }

  .servicios hr{
    width:60%;
    margin:30px auto 0;
    color:#a67c00;
    opacity: 0.8;
  }

  .form-floating > .form-control, .form-floating > .form-control-plaintext, .form-floating > .form-select {
    height: calc(3.5rem + calc(var(--bs-border-width) * 2));
    min-height: calc(3.5rem + calc(var(--bs-border-width) * 2));
    line-height: 1.25;
    BORDER: 1px solid black;
    font-weight: bold;
  }

  .detalle hr {
    margin: 40px auto 25px auto !important;
}

   .precio {
    color: #9e7221;
    font-weight: bold;
  }

  
   .tipo  {
    background: #9e7221;
    display: inline-block;
    padding: 4px 14px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
  }

  .titulo{
    font-weight: bold;
  }

  #descripcion {
    line-height: 2.1em;
  }

  .text-justify{
    line-height:1.5em;
  }

  .detalle .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 500px;
}

  a{
    color: #111;
    text-decoration: none;
  }
  a:hover{
    color: #9e7221;
    text-decoration: none;
  }

  /* Basic sticky style for the form container */
.sticky-form {
    position: sticky;
    top: 20px; /* This will be the distance from the top when it becomes sticky */
  }
  .fixed-form {
    width: 100%; /* Maintain the container width */
    z-index: 1000;
}

  
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #93722d;
    --bs-btn-border-color: #9f9209;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #9f9209;
    --bs-btn-hover-border-color: #9f9209;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #9f9209;
    --bs-btn-active-border-color: #9f9209;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #878677;
    --bs-btn-disabled-border-color: #878677;
}

/* clear fix */
.grid:after {
    content: '';
    display: block;
    clear: both;
  }
  
  /* ---- .grid-item ---- */
  
  .property-card-out {
    float: left;
    width: 33%;
    height: auto;

  }

  @media (max-width: 1000px) {
    .property-card-out {
        float: left;
        width: 50%;
        height: auto;
    
      }

  }

  @media (max-width: 800px) {
    .property-card-out {
        float: left;
        width: 100%;
        height: auto;
    
      }

  }

  @media (max-width: 768px) {
    .container, .container-md, .container-sm {
        max-width: 98% !important;
        width: 98% !important;
    }
    .sticky-form{
      margin-top:100px
    }
}

@media (min-width: 900px) {

.perfil .carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 500px !important;
}
}

#descripcion h2.titulo {
  font-size: 1.6em;
}

.sticky-contenedor{
  line-height: 1.5em;
}

.sticky-contenedor h3{
  font-size:1.5em;
  margin-top:5px;
}

.detalle h4{
  font-size:1.2em;

}

.sin-prop.text-center.mt-4 {
  min-height: 500px;
  font-size: 2.2em;
  padding: 150px 20px;
}

footer a{
  color:white !important
}