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

    Themes Bootstrap - Real Estate Template v1.0.0 (https://themesbootstrap.com.mx/templates/real-estate-template.html)
    Copyright 2019 Themes Bootstrap
    Licensed under MIT (https://github.com/diegovr7/real-estate/blob/master/LICENSE)

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Titillium Web', sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: .05em;
    background-color: #ffffff;
    color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 200;
    margin-bottom: 0px;
}

a {
    color: #ffffff;
}

a:hover {
    color: #ffffff;
    text-decoration: none;
    opacity: .9;
}

section {
    padding: 80px 0;
}

.block-title {
    max-width: 700px;
    margin: 0 auto;
}

.topmargin-sm {
    margin-top: 30px !important; 
}

.topmargin-lg {
    margin-top: 60px !important;
}

.primary-btn {
    background: #ffffff;
    color: #222729;
    border: 2px solid #ffffff;
    padding: 15px 40px;
    display: inline-block;
    margin-top: 20px;
}

.primary-btn:hover {
    color: #222729;
    opacity: .9;
}

.secondary-btn {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 15px 40px;
    display: inline-block;
    margin: 20px 5px 0 5px;
}

.secondary-btn:hover {
    background-color: #ffffff;
    color: #2d3234;
}

/*/////////////////////////////////////////
Navbar
////////////////////////////////////////*/

.navbar {
    background-color: #ffffff;
    z-index: 9999;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: #222729;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.nav-link:hover {
    color: #222729;
    opacity: .9;
}

.nav-item i {
    font-size: 20px;
    margin-left: 20px;
    color: #222729;
}

.navbar-toggler {
    font-size: 30px;
    color: #000000;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.header-logo {
    max-width: 180px;
    min-width: 180px;
}

/*/////////////////////////////////////////
Hero
////////////////////////////////////////*/

/* Updated Hero Section */

#hero {
    padding: 0;
    position: relative;
}

.hero-background {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.mobile-hero {
    display: none;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 100px 20px 60px;
}

.min-vh-100 {
    min-height: 100vh;
}

.hero-content {
    color: #ffffff;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 3rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Investment Widget */
.investment-widget {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.investment-widget h3 {
    color: #222729;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.investment-widget .form-group {
    margin-bottom: 25px;
}

.investment-widget label {
    color: #222729;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    text-align: left;
}

.investment-widget .form-control {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    height: auto;
}

.investment-widget .form-control:focus {
    border-color: #82a8ce;
    box-shadow: 0 0 0 0.2rem rgba(130, 168, 206, 0.25);
}

.investment-widget .input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: none;
    color: #222729;
    font-weight: 600;
    padding: 15px;
}

.investment-widget .form-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 8px;
    text-align: left;
}

/* Enhanced Button Styles */
.investment-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #044688 0%, #5c8bb8 100%);
    color: #ffffff;
    border: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(4, 69, 133, 0.115);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 25px !important;
}

.investment-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(130, 168, 206, 0.4);
    background: linear-gradient(135deg, #015119 0%, #82cea0 100%);
    color: #ffffff;
}

.investment-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(130, 168, 206, 0.3);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.investment-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Button loading state */
.investment-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.investment-btn.loading .btn-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments for hero image */
@media (max-width: 991.98px) {
    .hero-image {
        object-position: 65% center;
    }
}

@media (max-width: 767.98px) {
    .hero-content-wrapper {
        padding: 80px 15px 40px;
    }
    
    .investment-btn {
        padding: 16px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .investment-btn {
        padding: 8px 25px;
        font-size: 0.95rem;
        gap: 8px;
    }
    
    .btn-icon {
        transform: none !important;
    }
}

.widget-features {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.widget-features span {
    color: #222729;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.widget-features i {
    color: #28a745;
    margin-right: 8px;
    font-size: 18px;
}

/* Responsive Design for Hero */
@media (max-width: 1199.98px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
    }
    
    .investment-widget {
        padding: 30px;

    }
    
    .hero-background {
        background-image: url('/assets/images/mobile-hero.jpg');
    }
}

@media (max-width: 767.98px) {
    .hero-container {
        padding: 80px 15px 40px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .investment-widget {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .investment-widget h3 {
        font-size: 1.5rem;
    }
    
    .widget-features {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .investment-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .investment-widget {
        padding: 20px 15px;
    }
    
    .investment-widget h3 {
        font-size: 1.3rem;
    }
    
    .investment-widget .form-control {
        padding: 12px;
    }
    
    .investment-widget .input-group-text {
        padding: 12px;
    }
}

/*/////////////////////////////////////////
Properties
////////////////////////////////////////*/

#properties {
   color: #222729; 
}

#properties h2 {
    font-size: 46px;
    font-weight: 400;
    letter-spacing: .1em;
}

#properties p {
    font-size: 20px;
    font-weight: 200;
    line-height: 1.8;
}

.property-container {
    position: relative;
    overflow: hidden;
    margin: 18px 0;
}

.property-container img {
    max-width: 100%;
    -moz-transition: all 0.8s;
    -webkit-transition: all 0.8s;
    transition: all 0.8s;
}

.property-container:hover img {
    -moz-transform: scale(1.2);
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
}

.property-title, .property-title-sm {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #ffffff;
    z-index: 9000;
}

.property-title h3 {
    font-size: 36px;
}

.property-title-sm h3 {
    font-size: 20px;
}

.property-title-sm span {
    font-size: 12px;
}

.property-button, .property-button-sm {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 9000;
}

.property-button-sm a {
    font-size: 12px;
}

.property-icon {
    position: absolute;
    bottom: 16px;
    right: 30px;
    z-index: 9000;
}

.property-icon i {
    font-size: 22px;
    color: #ffffff;
}

/*/////////////////////////////////////////
Call to Action
////////////////////////////////////////*/

#call-to-action {
    background-color: #2d3234;
    border-bottom: 1px solid hsla(0,0%,100%,.05);
    font-size: 200;
    text-align: center;
}

#call-to-action h3 {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 20px;
}

#call-to-action p {
    font-size: 20px;
    font-weight: 200;
    line-height: 1.8;
}

/*/////////////////////////////////////////
Footer
////////////////////////////////////////*/

#footer {
    background-color: #2d3234;
    color: #ffffff;
    padding: 20px 0;
}

#footer ul {
    margin-bottom: 0px;
}

#footer li {
    margin: 0 15px;
}

/*/////////////////////////////////////////
Copyright
////////////////////////////////////////*/

#copyright {
    background-color: #222729;
    color: #919394;
    padding: 15px 0;
    letter-spacing: .1em;
    text-align: center;
}

#copyright small {
    font-weight: 200;
}

#copyright a {
    color: #ffffff;
}

/*/////////////////////////////////////////
Media Queries
////////////////////////////////////////*/

@media (max-width: 575.98px) { 
    /*//////////// hero ////////////*/
    .hero-container-desktop {
        display: none;
    }
    /*//////////// properties ////////////*/
    .property-title h3 {
        font-size: 20px;
    }
    .property-title span {
        font-size: 12px;
    }
    .property-button a {
        font-size: 12px;
    }
    /*//////////// Footer ////////////*/
    .list-inline-item {
        display: block;
        margin: 25px 0 !important;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) { 
    /*//////////// hero ////////////*/
    .hero-container-desktop {
        display: none;
    }
    /*//////////// properties ////////////*/
    .property-title-sm h3 {
        font-size: 36px;
    }
    .property-button-sm a {
        font-size: 16px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) { 
    /*//////////// hero ////////////*/
    .hero-container-mobile, .mobile-hero {
        display: none;
    }
    .hero-details {
        max-width: 350px;
        top: 70px;
    }
    .hero-details h1 {
        font-size: 26px;
    }
    .hero-details p {
        font-size: 14px;
    }
    /*//////////// properties ////////////*/
    .property-title h3 {
        font-size: 20px;
    }
    .property-title span {
        font-size: 12px;
    }
    .property-button a {
        font-size: 12px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) { 
    /*//////////// hero ////////////*/
    .hero-container-mobile, .mobile-hero {
        display: none;
    }
    .hero-details {
        max-width: 400px;
        top: 100px;
    }
    .hero-details h1 {
        font-size: 36px;
    }
    .hero-details p {
        font-size: 16px;
    }
}

@media (min-width: 1200px) { 
    .hero-container-mobile, .mobile-hero {
        display: none;
    }
}
