:root {
    --ocean: #0077A8;
    --ocean-dark: #005a82;
    --ocean-light: #E8F7FC;
    --sand: #E8D8B9;
    --sand-dark: #d4c4a5;
    --green: #3A8F5C;
    --green-dark: #2e724a;
    --white: #FFFFFF;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --gray-900: #212529;
    --font: 'Lato', sans-serif;
    --header-height: 70px;
    --transition: 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--gray-800);
    background: var(--white);
    padding-top: var(--header-height);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--ocean);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--ocean-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.site-header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    height: var(--header-height);
    transition: box-shadow var(--transition);
}

.navbar {
    padding: 0;
    height: var(--header-height);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--gray-900);
    padding: 0;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

.navbar-brand:hover {
    color: var(--ocean);
}

.brand-icon {
    font-size: 1.6rem;
    color: var(--ocean);
}

.brand-text strong {
    font-weight: 900;
    color: var(--ocean);
}

.navbar-nav .nav-link {
    font-weight: 400;
    color: var(--gray-800);
    padding: 0.5rem 1rem;
    position: relative;
    font-size: 0.95rem;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--ocean);
    transition: width var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.navbar-nav .nav-link.active {
    color: var(--ocean);
    font-weight: 700;
}

.btn-anuncie {
    background: var(--green);
    color: var(--white);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all var(--transition);
    border: 2px solid var(--green);
}

.btn-anuncie:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(58, 143, 92, 0.3);
}

.breadcrumb-wrapper {
    background: var(--ocean-light);
    padding: 0.75rem 0;
    margin-top: 0;
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--ocean);
}

.breadcrumb-item.active {
    color: var(--gray-600);
}

.site-footer {
    background: var(--gray-900);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 0;
    margin-top: 4rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-brand .brand-icon {
    font-size: 1.4rem;
}

.footer-brand .brand-text {
    color: var(--white);
}

.footer-slogan {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-location {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

.footer-title {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--sand);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-contact i {
    width: 20px;
    color: var(--sand);
    margin-right: 8px;
}

.footer-social {
    margin-top: 1rem;
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--ocean);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    margin-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.6;
}

.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ocean) 0%, #005a82 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,119,168,0.85) 0%, rgba(0,90,130,0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    margin-bottom: 2rem;
}

.hero-search {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.hero-search .form-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gray-800);
    margin-bottom: 0.3rem;
}

.hero-search .form-control,
.hero-search .form-select {
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: border-color var(--transition);
}

.hero-search .form-control:focus,
.hero-search .form-select:focus {
    border-color: var(--ocean);
    box-shadow: 0 0 0 3px rgba(0,119,168,0.15);
}

.btn-search {
    background: var(--ocean);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 0.7rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    transition: all var(--transition);
}

.btn-search:hover {
    background: var(--ocean-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,119,168,0.3);
}

.section-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-600);
    font-weight: 300;
    margin-bottom: 2.5rem;
}

.property-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all var(--transition);
    background: var(--white);
    height: 100%;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

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

.property-card .card-body {
    padding: 1.25rem;
}

.property-price {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--ocean);
    margin-bottom: 0.3rem;
}

.property-type {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-location {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0.8rem;
}

.property-location i {
    color: var(--ocean);
    width: 16px;
    margin-right: 4px;
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--gray-600);
    padding: 0.8rem 0;
    border-top: 1px solid var(--gray-200);
    margin-top: 0.8rem;
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-features i {
    color: var(--ocean);
}

.btn-details {
    background: transparent;
    color: var(--ocean);
    border: 2px solid var(--ocean);
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.btn-details:hover {
    background: var(--ocean);
    color: var(--white);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 0.8rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition);
}

.btn-whatsapp:hover {
    background: #1da851;
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.about-card {
    background: var(--ocean-light);
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
}

.about-card h3 {
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--gray-600);
    line-height: 1.8;
}

.faq-section {
    background: var(--gray-100);
    padding: 4rem 0;
}

.accordion-button {
    font-weight: 700;
    color: var(--gray-800);
    background: var(--white);
    border: none;
    box-shadow: none;
    padding: 1.2rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    color: var(--ocean);
    background: var(--white);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-body {
    padding: 1rem 1.5rem 1.5rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.accordion-item {
    border: none;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.property-gallery {
    border-radius: 12px;
    overflow: hidden;
}

.property-gallery img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.property-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.property-gallery-thumbs img {
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.property-gallery-thumbs img:hover,
.property-gallery-thumbs img.active {
    opacity: 1;
}

.property-detail-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gray-900);
}

.property-detail-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--ocean);
}

.property-detail-code {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.property-detail-desc {
    color: var(--gray-600);
    line-height: 1.8;
}

.property-detail-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1rem;
    background: var(--ocean-light);
    border-radius: 8px;
    font-size: 0.95rem;
}

.feature-item i {
    color: var(--ocean);
    font-size: 1.1rem;
    width: 20px;
}

.pagination-nav {
    display: flex;
    justify-content: center;
}

.pagination-custom {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-custom li a,
.pagination-custom li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-800);
    background: var(--white);
    border: 2px solid var(--gray-200);
    transition: all var(--transition);
    text-decoration: none;
}

.pagination-custom li a:hover {
    border-color: var(--ocean);
    color: var(--ocean);
    background: var(--ocean-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,119,168,0.15);
}

.pagination-custom li.active a {
    background: var(--ocean);
    border-color: var(--ocean);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0,119,168,0.25);
}

.pagination-custom li.disabled a {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-custom li.dots span {
    border: none;
    background: transparent;
    min-width: 20px;
    color: var(--gray-600);
}

.pagination-custom li a i {
    font-size: 0.8rem;
}

.sort-select {
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.page-section {
    padding: 4rem 0;
}

.page-section h1 {
    font-weight: 900;
    color: var(--gray-900);
}

.sand-divider {
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--sand), transparent);
    border: none;
    margin: 0;
    opacity: 0.5;
}

.card-form {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.card-form .form-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gray-800);
}

.card-form .form-control,
.card-form .form-select {
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: border-color var(--transition);
}

.card-form .form-control:focus,
.card-form .form-select:focus {
    border-color: var(--ocean);
    box-shadow: 0 0 0 3px rgba(0,119,168,0.15);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1rem;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-search {
        padding: 1.5rem;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .btn-anuncie {
        margin-top: 0.5rem;
        text-align: center;
    }

    .property-gallery img {
        height: 250px;
    }

    .property-gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }

    .property-gallery-thumbs img {
        height: 70px;
    }

    .property-detail-title {
        font-size: 1.4rem;
    }

    .property-detail-price {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    :root {
        --header-height: 60px;
    }

    .navbar-brand img {
        max-height: 38px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .property-detail-features {
        grid-template-columns: repeat(2, 1fr);
    }
}
