@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

:root {
    --gradient-primary: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    --color-primary: #2c5364;
    --color-secondary: #203a43;
    --color-accent: #ff6b6b;
    --text-dark: #2d3436;
    --text-medium: #636e72;
    --text-light: #f5f6fa;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Estilos Gerais */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: #f8f9fa;
    line-height: 1.6;
}

/* Header */
.header {
    box-shadow: var(--shadow-md);
}

.navbar {
    background: var(--gradient-primary);
    padding: 0.8rem 1rem;
}

.brand-logo {
    height: 100px;
    transition: var(--transition);
}

.brand-logo:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
    background: url('../img/hero-imoveis.jpg') no-repeat center center;
    background-size: cover;
    padding: 6rem 0;
    text-align: center;
    color: white;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-title {
    font-size: 23px;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Property Types Section */
.property-types-section {
    background: white;
    padding: 1.5rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.property-types-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.property-types-scroll::-webkit-scrollbar {
    display: none;
}

.property-types-container {
    display: inline-flex;
    gap: 1rem;
    padding: 0 1.5rem;
    min-width: 100%;
}

.property-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    min-width: 100px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.property-type i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    transition: var(--transition);
}

.property-type span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.property-type:hover,
.property-type.active {
    background: var(--gradient-primary);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.property-type:hover i,
.property-type.active i,
.property-type:hover span,
.property-type.active span {
    color: white;
}

/* Filters Section */
.filters-section {
    background: white;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.filters-container {
    max-width: 1200px;
    margin: 0 auto;
}

.form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    font-weight: 500;
    transition: var(--transition);
}

.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.25rem rgba(44, 83, 100, 0.25);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Listings Section */
.listings-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.property-card {
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    background: white;
    box-shadow: var(--shadow-sm);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

/* Efeito de Brilho para Destaques */
.property-card.highlighted::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.3) 100%
    );
    transform: rotate(30deg);
    z-index: 1;
    opacity: 0;
    transition: var(--transition);
}

.property-card.highlighted:hover::before {
    opacity: 1;
    animation: propertyShine 3s infinite;
}

@keyframes propertyShine {
    0% { transform: rotate(30deg) translate(-30%, -30%); }
    100% { transform: rotate(30deg) translate(30%, 30%); }
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.card-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .card-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    opacity: 0.3;
    transition: var(--transition);
}

.property-card:hover .image-overlay {
    opacity: 0.5;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.card-price {
    font-size: 1.5rem; /* 24px equivalente (usando rem para melhor escalabilidade) */
    font-weight: 700; /* Mais negrito para destacar */
    color: #2c3e50; /* Azul escuro sofisticado */
    margin: 0.5rem 0; /* Espaçamento adequado */
    letter-spacing: 0.5px; /* Espaçamento sutil entre letras */
    font-family: 'Montserrat', sans-serif; /* Fonte moderna (certifique-se de importar a fonte) */
    position: relative;
    display: inline-block;
}

/* Efeito de destaque opcional */
.card-price::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #3498db, transparent);
    border-radius: 2px;
}

/* Se quiser adicionar um símbolo de moeda mais elegante */
.card-price::before {
    content: 'R$';
    font-size: 0.8em;
    margin-right: 4px;
    opacity: 0.8;
}

/* Para valores altos que podem quebrar linha */
.card-price span {
    white-space: nowrap;
}

.card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
}

.card-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
        font-size: 18px;
    color: var(--text-medium);
}

.card-details i {
    color: var(--color-primary);
}

.card-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.property-card:hover .card-hover-effect {
    opacity: 1;
}

.btn-view-more {
    background: white;
    color: var(--color-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-view-more:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Pagination */
.pagination .page-item .page-link {
    color: var(--color-primary);
    border: 1px solid #e0e0e0;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: var(--transition);
}

.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--color-primary);
    color: white;
}

.pagination .page-item:not(.active) .page-link:hover {
    background: rgba(44, 83, 100, 0.1);
}

/* Footer */
.footer {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-slogan {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

.link-group {
    margin-bottom: 1.5rem;
}

.link-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.link-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.8rem;
    transition: var(--transition);
    text-decoration: none;
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.contact-info i {
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

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

.social-link:hover {
    background: white;
    color: var(--color-primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}


/* Responsividade */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .property-types-container {
        gap: 0.75rem;
        padding: 0 1rem;
    }
    
    .property-type {
        min-width: 90px;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .filters-container .row > div {
        margin-bottom: 1rem;
    }
    
    .card-image-container {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .property-type {
        min-width: 80px;
        padding: 0.5rem;
    }
    
    .property-type i {
        font-size: 1.25rem;
    }
    
    .property-type span {
        font-size: 0.75rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
   
}
/* Para imóveis de aluguel */
.card-price.aluguel {
    color: #27ae60; /* Verde para aluguel */
}

/* Para imóveis de venda */
.card-price.venda {
    color: #e74c3c; /* Vermelho para venda */
}

.property-card:hover .card-price {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

.card-price.sob-consulta {
    font-style: italic;
    font-weight: 500;
    color: #7f8c8d;
}

@media (max-width: 768px) {
    .card-price {
        font-size: 1.2rem;
    }
}
