html, body {
      margin: 0;
      padding: 0;
      width: 100%;
      height: 100%;
      background-color: #000;
      overflow: hidden;
      font-family: Arial, sans-serif;
    }
    #viewer {
      width: 100%;
      height: 100%;
    }
    #loading {
      position: absolute;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.8);
      color: white;
      font-size: 22px;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 100;
    }
    /* Container do carrossel */
    #thumbnails-container {
      position: absolute;
      bottom: 50px;
      left: 0;
      right: 0;
      height: 70px;
      display: flex;
      justify-content: center;
      z-index: 1000;
      overflow: hidden;
    }
    #thumbnails {
      display: flex;
      gap: 0px;
      height: 100%;
      align-items: center;
      transition: transform 0.3s ease;
      padding: 0 50%;
    }
    .thumb {
      width: 80px;
      height: 50px;
      object-fit: cover;
      border: 2px solid rgba(255, 255, 255, 0.5);
      cursor: pointer;
      opacity: 0.7;
      transition: all 0.3s;
      flex-shrink: 0;
    }
    .thumb:hover {
      opacity: 1;
      transform: scale(1.05);
    }
    .thumb.active {
      opacity: 1;
      border-color: white;
      transform: scale(1.1);
      box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
      animation: piscarActive 1s infinite;
    }
    
    @keyframes piscarActive {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
    50% {
        opacity: 0.3;
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
    }
}
    
    
    #codigo-imovel {
      position: absolute;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 10px;
      font-weight: bold;
      color: white;
      background: rgba(0,0,0,0.5);
      padding: 5px 5px;
      border-radius: 10px;
      z-index: 1000;
      pointer-events: none;
    }
    #watermark {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1000;
      width: 150px;
      height: auto;
      opacity: 0.8;
      transition: opacity 0.3s;
      pointer-events: none;
    }
    #watermark:hover {
      opacity: 1;
    }
    /* Botões de navegação (opcionais) */
    .nav-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0,0,0,0.5);
      color: white;
      border: none;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      cursor: pointer;
      z-index: 1001;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 16px;
    }
    .nav-btn:hover {
      background: rgba(0,0,0,0.8);
    }
    #prev-btn {
      left: 10px;
    }
    #next-btn {
      right: 10px;
    }
    
    /* Responsividade */
    @media (max-width: 768px) {
      .thumb {
        width: 60px;
        height: 40px;
      }
      #codigo-imovel {
        font-size: 18px;
        padding: 8px 16px;
      }
      #watermark {
        width: 100px;
      }
    }
    
    @media (max-width: 480px) {
      .thumb {
        width: 50px;
        height: 35px;
      }
      #thumbnails-container {
        bottom: 10px;
      }
    }
