:root {
    --primary: #4A89DC;
    --secondary: #e9b778;
    --dark: #333;
    --light: #f8f9fa;
    --surface-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #555;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.5rem;
}

.navbar-brand span {
    color: var(--secondary);
}

.nav-link {
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    margin-left: 15px;
}

.nav-link:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/img/portada.jpg') center/cover no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    padding-top: 70px;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
}

/* Hero section styles */
.hero-section-palmas {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/img/real_de_palmas_04.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    position: relative;
}

.hero-section-campestre {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/img/real_campestre_8.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    position: relative;
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-title {
    margin-bottom: 3rem;
    position: relative;
    text-align: center;
}

.section-title h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
    color: var(--dark);
    font-weight: 600;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.card-img-top {
    height: 240px;
    object-fit: cover;
}

/* House Details */
.house-specs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.spec {
    display: flex;
    align-items: center;
    color: #777;
}

.spec i {
    margin-right: 5px;
    color: var(--primary);
}

/* Amenities */
.amenity-card {
    text-align: center;
    padding: 30px 15px;
    height: 100%;
}

.amenity-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Gallery */
.gallery-item {
    margin-bottom: 30px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Contact Form */
.contact-info i {
    color: var(--primary);
    width: 25px;
    margin-right: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: transform 0.3s, background-color 0.3s;
}

.social-links a:hover {
    background-color: #3a75c5;
    transform: translateY(-5px);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 4rem 0 1rem;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    margin-top: 40px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #3a75c5;
    border-color: #3a75c5;
    transform: translateY(-2px);
}

/* Location Features */
.location-features {
    list-style: none;
    padding-left: 0;
}

.location-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.location-features i {
    color: var(--primary);
    margin-right: 10px;
    margin-top: 5px;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #3a75c5;
    color: white;
    transform: translateY(-5px);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

.property-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #0d6efd;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
}

.breadcrumb-custom {
    background-color: transparent;
}

.breadcrumb-custom a {
    color: #ffc107;
    text-decoration: none;
}

/* Thumbnail grid */
.thumbnail-grid img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
}

.thumbnail-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Property details */
.property-details h2 {
    font-weight: bold;
    margin-bottom: 20px;
}

.amenities-item {
    margin-bottom: 15px;
}

.amenities-item i {
    width: 25px;
    color: #0d6efd;
}

/* Video section */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.contact-form .error-message {
    display: none;
    background: #df1529;
    color: #ffffff;
    text-align: left;
    padding: 15px;
    margin-bottom: 24px;
    font-weight: 600;
}

.contact-form .sent-message {
    display: none;
    color: #ffffff;
    background: #059652;
    text-align: center;
    padding: 15px;
    margin-bottom: 24px;
    font-weight: 600;
}

.contact-form .loading {
    display: none;
    background: var(--surface-color);
    text-align: center;
    padding: 15px;
    margin-bottom: 24px;
}

.contact-form .loading:before {
    content: "";
    display: inline-block;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin: 0 10px -6px 0;
    border: 3px solid var(--accent-color);
    border-top-color: var(--surface-color);
    animation: contact-form-loading 1s linear infinite;
}

@keyframes contact-form-loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}