:root {
  --cor-texto: #333;
  --cor-borda: #e0e0e0;
  --sombra-box: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transicao: all 0.3s ease;
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
  height: 500px;
  border-radius: 4px;
  overflow: hidden;
}

.gallery-main-image {
  position: relative;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #f8f9fa;
  box-shadow: var(--sombra-box);
  transition: var(--transicao);
}

.gallery-main-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

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

.gallery-main-image:hover .main-image {
  transform: scale(1.02);
}

.image-counter {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-thumbnails {
  display: grid;
  grid-template-rows: 243px 243px;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  height: 500px;
}

.thumbnail-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: #f8f9fa;
  cursor: pointer;
  transition: var(--transicao);
  box-shadow: var(--sombra-box);
  height: -webkit-fill-available;
}

.thumbnail-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.more-photos-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: bold;
  transition: var(--transicao);
}

.thumbnail-item:hover .more-photos-overlay {
  background: rgba(0, 0, 0, 0.8);
}

.gallery-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}

.action-button {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  background: var(--cor-site-1);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transicao);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  box-shadow: var(--sombra-box);
}

.action-button i {
  font-size: 16px;
}

.action-button:hover {
  background: var(--cor-site-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.view-all-button {
  background: transparent;
  color: var(--cor-site-1);
  border: 2px solid var(--cor-site-1);
}

.view-all-button:hover {
  background: var(--cor-site-1);
  color: white;
}

.lightgallery-hidden {
  display: none;
}

/* Efeitos para o lightgallery */
.lg-thumb-outer {
  background: rgba(0, 0, 0, 0.9);
}

.lg-thumb-item {
  border: 2px solid transparent;
  transition: var(--transicao);
}

.lg-thumb-item.active,
.lg-thumb-item:hover {
  border-color: var(--cor-site-2) !important;
}

/* Responsividade */
@media (max-width: 992px) {
  .gallery-grid {
    height: 400px;
  }
  .gallery-thumbnails {
    display: grid;
    grid-template-rows: 192px 192px;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .gallery-main-image {
    height: 350px;
  }

  .gallery-thumbnails {
    height: max-content;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
  }

  .action-button {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .gallery-main-image {
    height: 250px;
  }

  .gallery-thumbnails {
    height: max-content;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
  }
  .thumbnail-item {
    width: 100%;
    height: 80px !important;
  }
  .gallery-actions {
    flex-direction: column;
  }
  .action-button {
    padding: 10px 15px;
    font-size: 14px;
  }
}
.lg-thumb-item {
  width: 100px !important;
  height: 80px !important;
}
/* Estilos para os botões de navegação */
.gallery-nav-buttons {
  display: flex;
  margin-bottom: 15px;
  gap: 15px;
}

.nav-button {
  padding: 8px 16px;
  background-color: var(--cor-site-3);
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid var(--cor-site-1);
  color: var(--cor-site-1);
}

.nav-button.active {
  background-color: var(--cor-site-1);
  border: 2px solid var(--cor-site-1);
  color: var(--cor-site-3);
}
.nav-button:hover:not(.active) {
  background-color: #e0e0e0;
}

.gallery-content {
  display: none;
  margin-bottom: 15px; /* Espaço para os botões de ação */
}

.gallery-content.active {
  display: block;
}

.map-container,
.video-container {
  width: 100%;
  height: 500px; /* Altura fixa para manter consistência */
}

.gallery-actions {
  margin-top: 15px;
  justify-content: space-between;
}

/* Container principal */
.property-details-container {
  margin: 1.5rem 0;
  padding: 0;
}

/* Grid de features */
.property-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  padding: 0;
}

/* Item individual */
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
}

/* Ícone */
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: #fff;
  color: #495057;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--cor-site-5);
}

/* Informações */
.feature-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feature-value {
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feature-label {
  font-size: 0.8rem;
  color: #6c757d;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsividade */
@media (max-width: 992px) {
  .property-features-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media (max-width: 768px) {
  .property-features-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
  }

  .feature-item {
    padding: 0.6rem;
    gap: 0.6rem;
  }

  .feature-icon {
    width: 32px;
    height: 32px;
  }

  .feature-icon svg {
    width: 16px;
    height: 16px;
  }

  .feature-value {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .property-features-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .feature-item {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .feature-icon {
    width: 30px;
    height: 30px;
  }

  .feature-value {
    font-size: 0.9rem;
  }

  .feature-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .property-features-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.6rem;
  }
}

.carac-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.carac-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  padding: 8px 10px;
  min-width: auto;
  transition: box-shadow 0.2s;
}

.carac-card:hover {
  box-shadow: 0 4px 16px 0 rgba(33, 161, 121, 0.12);
}

.carac-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
  font-size: 1.4rem;
}

.carac-nome {
  font-weight: 500;
  color: var(--cor-site-5);
}
body {
  height: 100%;
  font-family: var(--font-site);
}

.card-valores-imovel {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(56, 75, 110, 0.11);
  padding: 32px 24px 24px 24px;
  width: 100%;
  max-width: 350px;
  margin: 0 auto 32px auto;
  font-family: "Inter", Arial, sans-serif;
  transition: box-shadow 0.2s;
}
.card-lista-valores {
  list-style: none;
  margin: 0 0 12px 0;
  padding: 0;
}
.card-lista-valores li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 1.07rem;
  color: #1a2233;
  position: relative;
}
.card-lista-valores .valor {
  color: var(--cor-site-2);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.card-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 14px 0 8px 0;
}
.valor-total {
  color: #1a2233;
  font-size: 1.22rem;
  font-weight: 700;
}
.card-link {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: var(--cor-site-1);
  text-decoration: none;
  margin: 7px 0 18px 0;
  font-weight: 500;
  gap: 7px;
  transition: color 0.18s;
}
.card-link:hover {
  color: var(--cor-site-2);
}
.card-btn {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 15px 0;
  font-size: 1.14rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  transition: background 0.18s;
  box-shadow: 0 1px 8px rgba(35, 83, 234, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.card-btn-primary {
  background: var(--cor-site-1);
  color: #fff;
}
.card-btn-primary:hover {
  background: var(--cor-site-2);
  color: #fff;
}
.card-btn-secondary {
  background: #f4f6fa;
  color: #1a2233;
}
.card-btn-secondary:hover {
  background: #eaeaea;
  color: #1a2233;
}
.card-avaliacao {
  margin: 18px 0 10px 0;
  padding-bottom: 2px;
  border-bottom: 1px solid #ececec;
}
.card-avaliacao-titulo {
  display: flex;
  align-items: center;
  font-size: 1.02rem;
  font-weight: 600;
  color: #1a2233;
  cursor: pointer;
  margin-bottom: 2px;
  gap: 6px;
}
.card-avaliacao-desc {
  font-size: 0.96rem;
  color: #23272f;
  opacity: 0.77;
}
.card-acoes {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-top: 15px;
}
.card-acao {
  background: none;
  border: none;
  font-size: 0.99rem;
  color: #23272f;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  gap: 2px;
  transition: color 0.18s;
  height: 21px;
}

.favorito.active {
  color: var(--cor-site-1);
}
.card-acao i {
  font-size: 1.35em;
  margin-bottom: 2px;
  color: var(--cor-site-1);
}
.card-acao:hover i {
  color: var(--cor-site-2);
}
/* Responsivo */
@media (max-width: 991px) {
  .card-valores-imovel {
    position: static !important;
    max-width: 100%;
    margin: 0 0 18px 0;
    padding: 18px 10px;
  }
  .card-acoes {
    gap: 10px;
  }
}
/* Tooltip custom moderno */
.info-tooltip {
  margin-left: 6px;
  color: #808080;
  font-size: 1em;
  cursor: pointer;
  position: relative;
}
.info-tooltip .tooltip-box {
  display: none;
  position: absolute;
  left: 120%;
  top: 50%;
  transform: translateY(-50%);
  background: #23272f;
  color: #fff;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.99em;
  box-shadow: 0 2px 12px rgba(35, 83, 234, 0.11);
  z-index: 99;
  min-width: 180px;
  white-space: normal;
}
.info-tooltip:hover .tooltip-box {
  display: block;
}

.sidebar-sticky {
  position: relative;
  min-height: auto; /* ou altura mínima que caiba seu card */
}
.sticky-wrapper {
  position: relative;
  min-height: inherit;
}
.sticky-card {
  position: sticky;
  top: 32px;
  width: 100%;
  z-index: 10;
  box-shadow: 0 2px 16px rgba(56, 75, 110, 0.11);
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 8px;
}
.sticky-card.is-stopped {
  position: absolute !important;
  top: auto !important;
  bottom: 0;
  width: 100%;
}
@media (max-width: 991px) {
  .sticky-card {
    position: static !important;
    top: auto !important;
  }
  .sidebar-sticky,
  .sticky-wrapper {
    min-height: auto;
  }
}

/* Modal Compartilhar - Estilização */
#modalCompartilhar .modal-content {
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.15);
  background: linear-gradient(120deg, #f8fafc 80%, #e3eafc 100%);
  padding-bottom: 10px;
}

#modalCompartilhar .modal-header {
  border-bottom: none;
  padding-bottom: 0;
  background: none;
}

#modalCompartilhar .modal-title {
  font-weight: 700;
  font-size: 1.3rem;
  color: #32475b;
  letter-spacing: 0.01em;
}

#modalCompartilhar .btn-close {
  background: none;
  border: none;
}

#modalCompartilhar .modal-body {
  padding-top: 0.5rem;
}

.botao-acao {
  background: #f5f7fa;
  color: var(--cor-site-2);
  border: 1.5px solid #e3eafc;
  font-size: 1.08rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.05);
  min-height: 46px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.botao-acao i {
  font-size: 1.35em;
  margin-right: 0.7em;
  color: var(--cor-site-1);
  transition: color 0.2s;
}

.botao-acao:hover,
.botao-acao:focus {
  background: #ddd;
  color: var(--cor-site-2);
  border-color: var(--cor-site-3);
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.1);
}

.botao-acao:active {
  background: #d0e2fc;
}

.botao-acao[href*="whatsapp"] i {
  color: var(--cor-site-3);
}
.botao-acao[href*="facebook"] i {
  color: var(--cor-site-3);
}
.botao-acao[href*="linkedin"] i {
  color: var(--cor-site-3);
}
.botao-acao .fa-link {
  color: var(--cor-site-3);
}

@media (max-width: 500px) {
  #modalCompartilhar .modal-content {
    padding: 0.5rem;
    border-radius: 12px;
  }
  #modalCompartilhar .modal-title {
    font-size: 1.1rem;
  }
  .botao-acao {
    font-size: 0.98rem;
    min-height: 40px;
  }
  .botao-acao i {
    font-size: 1.1em;
  }
}

#whatsapp-widget-index {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9;
}
.card-valores-mobile {
  display: none;
}
@media (max-width: 767px) {
  .card-valores-mobile {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.1);
    z-index: 9;
    transition: max-height 0.3s;
    max-height: 100%;
    overflow: hidden;
    border-top: 1px solid var(--cor-site-1);
  }
  #whatsapp-widget-index {
    position: fixed;
    bottom: 110px;
    right: 20px;
    z-index: 9;
  }

  .card-valores-mobile.expanded {
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.18);
  }
  .card-grip-btn {
    width: 80px;
    height: 7px;
    background: #d9dbe1;
    border-radius: 3px;
    border: none;
    display: block;
    margin: 15px auto 15px auto;
    cursor: pointer;
    transition: background 0.2s;
    border-top: 1px solid var(--cor-site-1);
  }
  .card-grip-btn:active,
  .card-grip-btn:focus {
    background: #c3c6cc;
  }
  .card-valores-compacto {
    display: grid;
    grid-template-columns: 60% 40%;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 10px 20px;
    height: 60px;
  }
  .card-valor {
    font-size: 25px;
    font-weight: 600;
    color: var(--cor-site-1);
    width: -webkit-fill-available;
  }
  .card-btn-primary {
    background: linear-gradient(
      90deg,
      var(--cor-site-1) 0%,
      var(--cor-site-2) 100%
    );
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    white-space: nowrap;
    margin: 0px;
  }
  .card-btn-secondary {
    background: #fff;
    color: var(--cor-site-1);
    border: 1px solid var(--cor-site-1);
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    margin-top: 8px;
    white-space: nowrap;
  }
  .card-valores-detalhes {
    display: none;
    padding: 0 20px 12px 20px;
    animation: fade-in 0.25s;
  }
  .card-valores-mobile.expanded .card-valores-detalhes {
    display: block;
  }
  .card-valores-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 8px 0;
    gap: 8px;
  }
  .card-valores-preco span {
    color: #666;
    font-size: 14px;
    display: block;
  }
  .card-valores-preco strong {
    font-size: 20px;
    color: #222;
    font-weight: 700;
    display: block;
    margin-top: 2px;
  }
  .ver-pagamento {
    display: block;
    font-size: 12px;
    color: #e20074;
    margin-top: 3px;
    text-decoration: underline;
  }
  .card-valores-detalhes ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .card-valores-detalhes li {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    padding: 7px 0;
    border-bottom: 1px solid #eee;
  }
  .card-valores-detalhes li:last-child {
    border-bottom: none;
  }
  @keyframes fade-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}
