: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;
}

/* Navbar e Logo */
.navbar {
        background: var(--gradient-primary);

    box-shadow: var(--shadow-md);
    padding: 0.8rem 1rem;
}

.navbar-brand img {
    height: 100px;
    width: 120px;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.navbar-brand img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Galeria de Imagens */
.gallery-container {
    position: relative;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.gallery-container:hover {
    box-shadow: var(--shadow-md);
}

.carousel-inner {
    height: 65vh;
    max-height: 650px;
    border-radius: 12px 12px 0 0;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}
.carousel-item.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-inner {
  border-radius: 10px; /* Opcional */
  overflow: hidden;
}

.carousel-item img {
  object-fit: cover;
}
.thumbnails-container {
    display: flex;
    gap: 12px;
    padding: 1rem;
    overflow-x: auto;
    background: white;
    border-radius: 0 0 12px 12px;
}

.thumbnails-container img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.thumbnails-container img:hover,
.thumbnails-container img.active {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Sidebar de Informações */
.info-sidebar {
    height: 100vh;
    overflow-y: auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 1rem;
}

.property-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.price-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.price-badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.basic-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem;
    background: rgba(44, 83, 100, 0.05);
    border-radius: 8px;
    transition: var(--transition);
}

.info-item:hover {
    background: rgba(44, 83, 100, 0.1);
    transform: translateY(-3px);
}

.info-item i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

/* Botões de Ação */
.action-buttons {
    margin-top: 2rem;
}

.action-buttons .btn {
    padding: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--color-primary);
    border: none;
}

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

.btn-outline-primary {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline-primary:hover {
    background: var(--color-primary);
    color: white;
}

.btn-link {
    color: var(--color-accent);
}
.nav-link {
    display: block;
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
    font-size: var(--bs-nav-link-font-size);
    font-weight: var(--bs-nav-link-font-weight);
    color: #dee2e6;
    text-decoration: none;
    background: 0 0;
    border: 0;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}
/* Seção de Detalhes */
.details-expanded {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.description-text {
    white-space: pre-line;
    line-height: 1.8;
    color: var(--text-medium);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Card do Anunciante */
.agent-card {
    background: rgba(44, 83, 100, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    transition: var(--transition);
}

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

.agent-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
}

.agent-rating .stars {
    color: #ffc107;
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 992px) {
    .gallery-container,
    .info-sidebar {
        height: auto;
        position: static;
    }
    
    
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .basic-info-grid {
        grid-template-columns: 1fr;
    }
    
    .details-expanded {
        padding: 1.5rem;
    }
    
    .navbar-brand img {
        height: 100px;
    }
}
/* Estilo para a seção do anunciante */
.agent-section {
    transition: all 0.3s ease;
}

.agent-section.loading {
    opacity: 0.8;
}

.agent-avatar {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.agent-name {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.agent-type {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Adicione feedback visual durante o redirecionamento */
#btnWhatsApp {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#btnWhatsApp.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

#btnWhatsApp.loading i {
    animation: spin 1s linear infinite;
}

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

/* Adicione feedback visual durante o redirecionamento */
#btnWhatsApp {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#btnWhatsApp.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

#btnWhatsApp.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Estilo para o badge de visualizações */
.visualizacoes-badge {
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.visualizacoes-badge i {
    color: #17a2b8;
}

/* Estilo para os campos de aluguel */
.aluguel-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.aluguel-info p {
    margin-bottom: 5px;
}

/* Responsividade */
@media (max-width: 768px) {
    .d-flex.justify-content-between.align-items-center.mb-4 {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}


/* Estilo para o botão do WhatsApp */
.btn-success {
    background-color: #25D366;
    border-color: #25D366;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
}

.btn-success i {
    font-size: 1.2em;
}
.text-muted i.fas.fa-calendar-alt {
    color: var(--primary);
    margin-right: 5px;
}
.visualizacoes-badge {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Estilo do Botão */
.btn-share {
  background-color: #1877F2; /* Azul do Facebook */
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-share:hover {
  background-color: #166FE5;
}

/* Modal de Confirmação */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: white;
  margin: 20% auto;
  padding: 20px;
  width: 80%;
  max-width: 400px;
  border-radius: 8px;
  text-align: center;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  cursor: pointer;
}
/* Botão de compartilhamento profissional */
#shareFacebookBtn {
    background: linear-gradient(135deg, #1877f2 0%, #0e5a9d 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#shareFacebookBtn:hover {
    background: linear-gradient(135deg, #166fe5 0%, #0c4b82 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#shareFacebookBtn i {
    font-size: 18px;
}
